/* ATS Checker — site de présentation. Aucune ressource externe : polices système, pas de suivi. */

:root {
  --navy: #1f2a44;
  --navy-deep: #141c2f;
  --green: #1e8f4c;
  --green-bright: #4ade80;
  /* Bleu Windows (bouton de téléchargement) : contraste 5,3:1 avec le blanc. */
  --blue: #0067c0;
  --bg: #ffffff;
  --bg-soft: #f4f6fa;
  --text: #172033;
  --muted: #4a5568;
  --border: #dde3ec;
  --card: #ffffff;
  --link: #1d6b3d;
  --warn-bg: #fff7e6;
  --warn-border: #f0c36d;
  --radius: 14px;
  --shadow: 0 18px 50px rgba(20, 28, 47, 0.18);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1524;
    --bg-soft: #151d30;
    --text: #e8ecf4;
    --muted: #a9b3c6;
    --border: #2a3550;
    --card: #182136;
    --link: #6ee7a0;
    --warn-bg: #2b2412;
    --warn-border: #8a6a24;
    --shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  font-family:
    -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--link);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--green-bright);
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  width: min(1120px, 100% - 40px);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--bg);
  padding: 8px 12px;
  z-index: 100;
}

.skip-link:focus {
  left: 8px;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(20, 28, 47, 0.92);
  backdrop-filter: blur(10px);
  color: #fff;
}

.site-header .container {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
}

.brand img {
  width: 34px;
  height: 34px;
}

.site-nav {
  display: flex;
  gap: 20px;
  margin-left: auto;
}

.site-nav a {
  color: #d6dcea;
  text-decoration: none;
  font-size: 15px;
}

.site-nav a:hover {
  color: #fff;
}

.lang-switch {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 14px;
  text-decoration: none;
}

@media (max-width: 860px) {
  .site-nav {
    display: none;
  }
  .lang-switch {
    margin-left: auto;
  }
}

/* ── Boutons ─────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 14px 22px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  font-size: 17px;
  line-height: 1.25;
  border: 2px solid transparent;
  transition: transform 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn small {
  font-weight: 500;
  font-size: 13px;
  opacity: 0.85;
}

.btn-mac {
  background: var(--green);
  color: #fff;
}

.btn-windows {
  background: var(--blue);
  color: #fff;
}

/* ── Accroche ────────────────────────────────────────────────────────────── */

.hero {
  background: linear-gradient(180deg, #2c3a5a 0%, var(--navy-deep) 100%);
  color: #fff;
  padding: 72px 0 0;
  overflow: hidden;
}

.hero h1 {
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.1;
  margin: 0 0 20px;
  max-width: 820px;
  letter-spacing: -0.02em;
}

.hero .lead {
  font-size: 20px;
  color: #d6dcea;
  max-width: 720px;
  margin: 0 0 24px;
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}

.pills li {
  background: rgba(74, 222, 128, 0.14);
  color: var(--green-bright);
  border: 1px solid rgba(74, 222, 128, 0.35);
  padding: 4px 14px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
}

.downloads {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.release-meta {
  color: #b7c0d4;
  font-size: 14px;
  margin: 14px 0 0;
}

.release-meta a {
  color: #d6dcea;
}

/* Avertissement Windows sous les boutons, sur le fond sombre de l'accroche. */
.win-note {
  max-width: 760px;
  margin: 18px 0 0;
  padding: 12px 16px;
  border-radius: 10px;
  background: rgba(255, 200, 61, 0.12);
  border: 1px solid rgba(255, 200, 61, 0.5);
  color: #ffe7a8;
  font-size: 15px;
}

.win-note strong,
.win-note a {
  color: #fff;
}

.hero-shot {
  margin: 56px auto 0;
  width: min(1040px, 100%);
}

/* Capture dans un cadre de fenêtre. */
.window {
  border-radius: 12px 12px 0 0;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.window-bar {
  display: flex;
  gap: 7px;
  padding: 11px 14px;
  background: #e9edf3;
}

.window-bar span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #c4cad6;
}

.window-bar span:nth-child(1) {
  background: #ff5f57;
}
.window-bar span:nth-child(2) {
  background: #febc2e;
}
.window-bar span:nth-child(3) {
  background: #28c840;
}

.window img {
  display: block;
  width: 100%;
}

.window.rounded {
  border-radius: 12px;
}

/* ── Sections ────────────────────────────────────────────────────────────── */

section {
  padding: 84px 0;
}

section.soft {
  background: var(--bg-soft);
}

.section-title {
  font-size: clamp(28px, 3.4vw, 38px);
  line-height: 1.2;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}

.section-lead {
  color: var(--muted);
  font-size: 19px;
  max-width: 760px;
  margin: 0 0 40px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  counter-reset: step;
  padding: 0;
  list-style: none;
}

.steps li {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-weight: 700;
  margin-bottom: 14px;
}

.steps h3,
.card h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.steps p,
.card p {
  margin: 0;
  color: var(--muted);
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
}

.card .icon {
  font-size: 26px;
  line-height: 1;
  margin-bottom: 12px;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: center;
}

.split.reverse {
  grid-template-columns: 1.2fr 1fr;
}

.split ul {
  padding-left: 20px;
  margin: 0;
}

.split li {
  margin-bottom: 10px;
}

@media (max-width: 900px) {
  .steps,
  .grid,
  .split,
  .split.reverse {
    grid-template-columns: 1fr;
  }
  section {
    padding: 60px 0;
  }
}

.notice {
  border-left: 5px solid var(--green);
  background: var(--card);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 22px 26px;
  border-top: 1px solid var(--border);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.notice p:last-child {
  margin-bottom: 0;
}

/* ── Installation ────────────────────────────────────────────────────────── */

.install {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

@media (max-width: 900px) {
  .install {
    grid-template-columns: 1fr;
  }
}

.install .card ol {
  padding-left: 22px;
  margin: 12px 0 0;
}

.install .card li {
  margin-bottom: 8px;
}

.requirements {
  font-size: 15px;
  color: var(--muted);
  margin: 14px 0 0;
}

.warning {
  background: var(--warn-bg);
  border: 1px solid var(--warn-border);
  border-radius: 10px;
  padding: 14px 16px;
  margin: 16px 0 0;
  font-size: 15px;
}

.dl-inline {
  display: inline-block;
  margin-top: 16px;
  background: var(--green);
  color: #fff;
  padding: 10px 18px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
}

.dl-inline.dl-windows {
  background: var(--blue);
}

/* Windows : les deux écrans de SmartScreen (illustration en HTML, sans image). */
.win-guide {
  /* Lien « Voir les deux écrans » : le titre ne doit pas passer sous l'en-tête collé. */
  scroll-margin-top: 84px;
  margin-top: 28px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 26px;
}

.win-guide h3 {
  margin: 0 0 8px;
}

.win-guide p {
  margin: 0 0 12px;
}

.win-guide > p code {
  white-space: nowrap;
}

.smartscreen {
  margin: 18px 0 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

@media (max-width: 760px) {
  .smartscreen {
    grid-template-columns: 1fr;
  }
}

.smartscreen figcaption {
  grid-column: 1 / -1;
  font-size: 14px;
  color: var(--muted);
}

.ss-step {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.ss-badge {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #ffc83d;
  color: #1b1b1b;
  font-weight: 800;
}

.ss-dialog {
  background: #0f5ea8;
  color: #fff;
  border-radius: 6px;
  padding: 20px 22px 16px;
  font-family:
    'Segoe UI',
    -apple-system,
    BlinkMacSystemFont,
    Roboto,
    Arial,
    sans-serif;
  font-size: 14px;
  line-height: 1.45;
}

.win-guide .ss-dialog p {
  margin: 0 0 12px;
}

.win-guide .ss-dialog .ss-title {
  font-size: 22px;
  font-weight: 300;
  margin-bottom: 14px;
}

.ss-link span {
  text-decoration: underline;
}

.ss-meta {
  opacity: 0.95;
}

.ss-buttons {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.ss-btn {
  border: 1px solid #fff;
  padding: 5px 16px;
  font-size: 14px;
}

.ss-target {
  outline: 3px solid #ffc83d;
  outline-offset: 3px;
  border-radius: 2px;
}

.hash {
  margin-top: 28px;
  font-size: 14px;
  color: var(--muted);
}

.hash code {
  display: block;
  word-break: break-all;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  margin: 4px 0 12px;
  color: var(--text);
  font-size: 13px;
}

/* ── FAQ ─────────────────────────────────────────────────────────────────── */

.faq details {
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 12px;
  padding: 4px 22px;
  margin-bottom: 12px;
}

.faq summary {
  cursor: pointer;
  font-weight: 650;
  padding: 14px 0;
  font-size: 18px;
}

.faq details p {
  margin: 0 0 16px;
  color: var(--muted);
}

/* ── Pied de page ────────────────────────────────────────────────────────── */

.site-footer {
  background: var(--navy-deep);
  color: #b7c0d4;
  padding: 44px 0;
  font-size: 15px;
}

.site-footer a {
  color: #e8ecf4;
}

.site-footer .row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  align-items: center;
  margin-bottom: 14px;
}

.site-footer .credits {
  font-size: 13px;
  color: #8f9ab0;
  max-width: 900px;
}

/* ── Pages de texte (mentions légales) ───────────────────────────────────── */

.prose {
  max-width: 820px;
  padding: 56px 0 84px;
}

.prose h1 {
  font-size: 36px;
  margin: 0 0 24px;
}

.prose h2 {
  font-size: 22px;
  margin: 36px 0 10px;
}

.prose p,
.prose li {
  color: var(--text);
}
