/* ===================================================================
   WipePilot — style.css
   Source de vérité : brief.md (« Apple, pas Alienware »)
   =================================================================== */

:root {
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --ink: #1d1d1f;
  --ink-2: #6e6e73;
  --accent: #c2410c;
  --accent-hover: #9a3412;
  --dark: #0a0a0a;
  --dark-ink: #f5f5f7;
  --dark-ink-2: #86868b;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI",
          Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- Base ---------- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
  -webkit-text-size-adjust: 100%;
}

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

h1, h2 {
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  text-wrap: balance;
}

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

.container {
  max-width: 1080px;
  margin-inline: auto;
  padding-inline: 24px;
}

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

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

::selection { background: rgba(194, 65, 12, 0.15); }

/* ---------- Boutons & liens ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border: 0;
  border-radius: 980px;
  background: var(--accent);
  color: #fff;
  font-family: inherit;
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease;
}

.btn:hover { background: var(--accent-hover); }

.btn--small { padding: 7px 16px; font-size: 14px; }

.link {
  color: var(--accent);
  font-size: 17px;
  font-weight: 500;
  text-decoration: none;
}

.link:hover { text-decoration: underline; }

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

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: 48px;
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.nav__inner {
  height: 48px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.nav__logo svg { color: var(--accent); }

.nav__links {
  display: flex;
  gap: 28px;
  margin-left: auto;
}

.nav__links a {
  color: var(--ink-2);
  font-size: 14px;
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav__links a:hover { color: var(--ink); }

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

.hero {
  padding: 152px 0 136px;
  text-align: center;
}

.hero h1 { font-size: clamp(2.25rem, 5vw, 4.5rem); }

.hero__sub {
  max-width: 640px;
  margin: 24px auto 0;
  font-size: clamp(1.19rem, 1.7vw, 1.5rem);
  line-height: 1.4;
  color: var(--ink-2);
}

.hero__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  margin-top: 36px;
}

.hero__visual {
  max-width: 920px;
  margin: 72px auto 0;
  text-align: left;
}

/* ---------- Fenêtre produit (fausse UI) ---------- */

.window {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04), 0 32px 80px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.window__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  background: #fafafa;
}

.window__title {
  font-size: 13px;
  color: var(--ink-2);
}

/* Dashboard du hero */

.dash { font-size: 14px; }

.dash__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 20px 24px;
}

.dash__update { font-size: 17px; font-weight: 600; }

.dash__meta { font-size: 13px; color: var(--ink-2); margin-top: 2px; }

.dash__chips { display: flex; gap: 8px; }

.chip {
  padding: 4px 12px;
  border-radius: 980px;
  font-size: 13px;
  font-weight: 600;
}

.chip--ok    { background: rgba(52, 199, 89, 0.13);  color: #1d7a3a; }
.chip--patch { background: rgba(255, 159, 10, 0.15); color: #93610a; }
.chip--ko    { background: rgba(255, 59, 48, 0.12);  color: #c22b23; }

.dash__row {
  display: grid;
  grid-template-columns: 1.5fr 0.9fr 0.9fr 1fr;
  gap: 12px;
  align-items: center;
  padding: 11px 24px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.dash__row--head {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-2);
}

.dash__row span:nth-child(2),
.dash__row span:nth-child(3) { color: var(--ink-2); }

.dash__row--head span { color: var(--ink-2); }

.pill {
  justify-self: start;
  padding: 3px 10px;
  border-radius: 980px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.pill--ok    { background: rgba(52, 199, 89, 0.13);  color: #1d7a3a; }
.pill--patch { background: rgba(255, 159, 10, 0.15); color: #93610a; }
.pill--ko    { background: rgba(255, 59, 48, 0.12);  color: #c22b23; }

/* ---------- Ligne de positionnement ---------- */

.statement {
  background: var(--bg-alt);
  padding: clamp(72px, 9vw, 128px) 0;
  text-align: center;
}

.statement p {
  max-width: 900px;
  margin-inline: auto;
  font-size: clamp(1.5rem, 2.6vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.25;
  text-wrap: balance;
}

.statement span { color: var(--ink-2); }

/* ---------- Blocs feature ---------- */

.feature { padding: clamp(72px, 9vw, 136px) 0; }

.feature--alt { background: var(--bg-alt); }

.feature__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.feature__copy h2 { font-size: clamp(2rem, 3.4vw, 3rem); }

.feature__copy p {
  margin-top: 20px;
  font-size: clamp(1.06rem, 1.4vw, 1.31rem);
  line-height: 1.45;
  color: var(--ink-2);
  max-width: 44ch;
}

.feature__tag {
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-2);
}

/* Cartes visuelles des features */

.card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 24px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
  padding: 28px;
}

.feature .card { font-size: 14px; }

/* Fil de détection (radar) */

.feed__row {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 11px 4px;
}

.feed__row + .feed__row { border-top: 1px solid rgba(0, 0, 0, 0.05); }

.feed__time {
  flex: none;
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  color: var(--ink-2);
}

.feed__dot {
  flex: none;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.18);
  align-self: center;
}

.feed__row--accent .feed__dot { background: var(--accent); }

.feed__row--accent { font-weight: 600; }

/* Checklist de wipe */

.wipe__head { padding-bottom: 14px; }

.wipe__title { font-size: 15px; font-weight: 600; }

.wipe__meta { font-size: 13px; color: var(--ink-2); margin-top: 2px; }

.wipe__row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 4px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  color: var(--ink-2);
}

.wipe__row svg { flex: none; width: 16px; height: 16px; }

.wipe__row--done { color: var(--ink); }

.wipe__row--done svg { color: #1d7a3a; }

.wipe__detail {
  margin-left: auto;
  font-size: 13px;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}

/* Contraste « dedans / dehors » (section outside) */

.outside__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 4px;
}

.outside__row + .outside__row { border-top: 1px solid rgba(0, 0, 0, 0.06); }

/* La rangée « dedans » est estompée : ce qui vit dans le serveur tombe avec
   l'update. WipePilot reste à pleine intensité, avec l'accent. */
.outside__row--muted { opacity: 0.5; }

.outside__where { font-weight: 600; font-size: 15px; }

.outside__what { margin-top: 3px; font-size: 13px; color: var(--ink-2); }

.outside__state {
  flex: none;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
}

.outside__state--up { color: var(--accent); }

/* ---------- Section sombre — rapport Discord ---------- */

.cinema {
  position: relative;
  overflow: hidden;
  background: var(--dark);
  color: var(--dark-ink);
  padding: clamp(88px, 11vw, 160px) 0;
  text-align: center;
}

.cinema__glow {
  position: absolute;
  left: 50%;
  bottom: -140px;
  transform: translateX(-50%);
  width: 860px;
  height: 860px;
  background: radial-gradient(closest-side, rgba(194, 65, 12, 0.22), transparent 70%);
  pointer-events: none;
}

.cinema h2 { font-size: clamp(2.25rem, 4vw, 3.5rem); }

.cinema__sub {
  max-width: 620px;
  margin: 24px auto 0;
  font-size: clamp(1.06rem, 1.4vw, 1.31rem);
  line-height: 1.45;
  color: var(--dark-ink-2);
}

/* Message Discord reconstitué */

.discord {
  position: relative;
  max-width: 600px;
  margin: 64px auto 0;
  background: #313338;
  border-radius: 12px;
  padding: 20px;
  text-align: left;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
  font-size: 14px;
}

.discord__msg { display: flex; gap: 14px; }

.discord__avatar {
  flex: none;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.discord__body { min-width: 0; flex: 1; }

.discord__head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.discord__name { color: #f2f3f5; font-weight: 600; }

.discord__tag {
  background: #5865f2;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 4px;
}

.discord__time { color: #949ba4; font-size: 12px; }

.embed {
  margin-top: 8px;
  background: #2b2d31;
  border-left: 4px solid var(--accent);
  border-radius: 6px;
  padding: 14px 16px;
}

.embed__title { color: #f2f3f5; font-weight: 600; font-size: 14px; }

.embed__row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 10px;
  color: #dbdee1;
}

.dot {
  flex: none;
  width: 8px; height: 8px;
  border-radius: 50%;
  /* Alignée sur la première ligne de texte (hauteur de ligne 21px) */
  align-self: flex-start;
  margin-top: 7px;
}

.dot--ok    { background: #23a559; }
.dot--patch { background: #f0b232; }
.dot--ko    { background: #f23f43; }

.embed__link { color: #00a8fc; }

.embed__footer {
  margin-top: 14px;
  font-size: 12px;
  color: #949ba4;
}

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

.faq { padding: clamp(72px, 9vw, 136px) 0; }

.faq h2 {
  font-size: clamp(2rem, 3.4vw, 3rem);
  text-align: center;
}

.faq__list { max-width: 720px; margin: 48px auto 0; }

.faq details { border-top: 1px solid rgba(0, 0, 0, 0.1); }

.faq details:last-child { border-bottom: 1px solid rgba(0, 0, 0, 0.1); }

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 4px;
  font-size: 19px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary svg {
  flex: none;
  color: var(--ink-2);
  transition: transform 0.3s var(--ease);
}

.faq details[open] summary svg { transform: rotate(45deg); }

.faq details p {
  padding: 0 4px 22px;
  max-width: 62ch;
  color: var(--ink-2);
}

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

.cta {
  background: var(--bg-alt);
  padding: clamp(80px, 10vw, 144px) 0;
  text-align: center;
}

.cta h2 { font-size: clamp(2rem, 3.4vw, 3rem); }

.offer {
  max-width: 680px;
  margin: 40px auto 0;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 24px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
  padding: 32px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  text-align: center;
}

.offer div {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.offer strong {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.offer span {
  font-size: 14px;
  line-height: 1.4;
  color: var(--ink-2);
}

.signup {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 36px;
  flex-wrap: wrap;
}

.signup input {
  height: 48px;
  min-width: 300px;
  padding: 0 22px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 980px;
  background: #fff;
  font-family: inherit;
  font-size: 16px;
  color: var(--ink);
}

.signup input::placeholder { color: var(--ink-2); }

.signup input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 0;
  border-color: transparent;
}

.signup__done { font-size: 17px; font-weight: 600; }

.signup__error {
  flex-basis: 100%;
  margin-top: 4px;
  font-size: 15px;
  color: #c22b23;
}

.signup__note {
  margin-top: 20px;
  font-size: 14px;
  color: var(--ink-2);
}

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

.footer {
  padding: 28px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--ink-2);
}

.footer nav { display: flex; gap: 24px; }

.footer a {
  color: var(--ink-2);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer a:hover { color: var(--ink); }

/* ---------- Apparitions au scroll ---------- */

.reveal {
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.reveal--pending {
  opacity: 0;
  transform: translateY(16px);
}

/* ---------- Responsive ---------- */

@media (max-width: 768px) {
  .nav__links { display: none; }

  .hero { padding: 120px 0 88px; }

  .hero__cta { flex-direction: column; gap: 20px; }

  .hero__visual { margin-top: 56px; }

  .dash__row { grid-template-columns: 1.4fr 0.9fr 1fr; }
  .dash__row span:nth-child(3) { display: none; }
  .dash__row--head span:nth-child(3) { display: none; }

  .feature__grid { grid-template-columns: 1fr; gap: 40px; }

  .feature__grid .feature__copy { order: -1; }

  .feature__copy p { max-width: none; }

  .signup input { min-width: 0; width: 100%; max-width: 420px; }

  .offer { grid-template-columns: 1fr; gap: 22px; padding: 28px 24px; }

  .faq summary { font-size: 17px; }

  .footer__inner { flex-direction: column; justify-content: center; text-align: center; }
}

/* ---------- Accessibilité : mouvement réduit ---------- */

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