/* Bobine : site vitrine.
   Identité Konnectoos (skin kor-brand) : White leads. Amber signals.
   Clair/sombre automatiques selon la préférence système (aucun réglage utilisateur).
   Zéro violet, zéro dépendance. */

:root {
  color-scheme: light dark;

  --bg: #FFFFFF;
  --fg: #000000;
  --amber: #FEC90A;
  --amber-deep: #EFBE00;
  --chiffon: #FFF1C5;
  --ink-soft: #4B4B4B;
  --ink-mute: #757575;
  --line: #E7E7E5;
  --link-u: #C9C9C4;
  --ghost-hover: #F3F4F6;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --fg: #F3F4F6;
    --ink-soft: #C7C7C7;
    --ink-mute: #A3A3A3;
    --line: #2A2A2A;
    --link-u: #5A5A5A;
    --ghost-hover: #171717;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: Inter, -apple-system, "SF Pro Text", "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--amber); color: #000000; }

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

a {
  color: var(--fg);
  text-decoration: underline;
  text-decoration-color: var(--link-u);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover { text-decoration-color: var(--fg); }

a:focus-visible, summary:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
  border-radius: 4px;
}

.wrap { max-width: 720px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }

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

.site-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 28px;
}

.brand { text-decoration: none; display: inline-block; }
.brand img { display: block; width: 160px; height: auto; }

.site-nav { display: flex; gap: 22px; font-size: 15px; font-weight: 500; }
.site-nav a { text-decoration: none; }
.site-nav a:hover {
  text-decoration: underline;
  text-decoration-color: var(--amber);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.site-nav .lang { color: var(--ink-mute); }
.site-nav .lang:hover { color: var(--fg); }

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

.hero { text-align: center; padding-top: 86px; }

.hero .hero-logo { display: block; margin: 0 0 30px; }
.hero .hero-logo img {
  display: block;
  width: min(420px, 82vw);
  height: auto;
  margin: 0 auto;
}

.hero .lead {
  margin: 0 auto;
  max-width: 560px;
  font-size: clamp(20px, 3.4vw, 23px);
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: -0.005em;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 14px 24px;
  border-radius: 12px;
  border: 1.5px solid transparent;
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
}
.btn svg { display: block; flex: none; }
.btn-primary { background: var(--amber); color: #000000; }
.btn-primary:hover { background: var(--amber-deep); }
.btn-ghost { background: var(--bg); border-color: var(--fg); color: var(--fg); }
.btn-ghost:hover { background: var(--ghost-hover); }

.note { font-size: 14px; color: var(--ink-mute); margin: 20px 0 0; }

.nowrap { white-space: nowrap; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Captures ---------- */

.shot { margin: 56px 0 0; }
.shot img {
  display: block;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.shot figcaption {
  margin-top: 12px;
  font-size: 13.5px;
  color: var(--ink-mute);
  text-align: center;
}

/* ---------- Sections ---------- */

section[id] { padding-top: 92px; }

h2 {
  margin: 0 0 18px;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

p { margin: 0 0 18px; }

.lead-para { font-size: 19px; line-height: 1.55; }

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

.steps {
  list-style: none;
  counter-reset: step;
  margin: 34px 0 0;
  padding: 0;
}

.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 54px 1fr;
  column-gap: 16px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.steps li:last-child { border-bottom: 1px solid var(--line); }

.steps li::before {
  content: counter(step, decimal-leading-zero);
  grid-column: 1;
  grid-row: 1 / span 2;
  align-self: start;
  justify-self: start;
  background: var(--amber);
  color: #000000;
  font-size: 13.5px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.03em;
  padding: 6px 9px;
  border-radius: 8px;
}

.steps h3 {
  grid-column: 2;
  grid-row: 1;
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.steps p {
  grid-column: 2;
  grid-row: 2;
  margin: 0;
  color: var(--ink-soft);
  font-size: 16.5px;
}

/* ---------- Ce qu'il te faut ---------- */

.reqs { list-style: none; margin: 26px 0 22px; padding: 0; }
.reqs li { position: relative; padding: 0 0 14px 22px; }
.reqs li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber);
}

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

.faq { margin-top: 30px; }

.faq details { border-top: 1px solid var(--line); }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }

.faq summary {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 18px 0;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before {
  content: "+";
  font-size: 19px;
  font-weight: 800;
  line-height: 1;
}
.faq details[open] summary::before { content: "−"; }

.faq .answer { padding: 0 0 20px 30px; color: var(--ink-soft); }
.faq .answer p { margin: 0; }

/* ---------- Pied de page ---------- */

.site-foot {
  margin-top: 104px;
  border-top: 1px solid var(--line);
  padding: 44px 0 64px;
  font-size: 15px;
  color: var(--ink-soft);
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 20px 0 24px;
  font-weight: 500;
}
.foot-links a { text-decoration: none; }
.foot-links a:hover {
  text-decoration: underline;
  text-decoration-color: var(--amber);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.copy { font-size: 13.5px; color: var(--ink-mute); margin: 0; }

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

@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero { padding-top: 64px; }
  .brand img { width: 126px; }
  .site-nav { gap: 16px; font-size: 14px; }
  h2 { font-size: 26px; }
  section[id] { padding-top: 72px; }
  .btn { width: 100%; justify-content: center; }
  .steps li { grid-template-columns: 46px 1fr; column-gap: 12px; }
}
