/* PrimeSec – site vitrine. Aucune dépendance externe, aucun JavaScript. */

:root {
  --ink: #0d1b2a;
  --ink-soft: #4a5a70;
  --bg: #f6f7f9;
  --surface: #ffffff;
  --line: #dfe4ea;
  --night: #0a1422;
  --night-raised: #111f33;
  --night-line: #22334b;
  --night-soft: #a3b3c9;
  --accent: #0a7d63;
  --accent-bright: #3ddbb0;
  --radius: 14px;
  --wrap: 1080px;
  --gutter: 24px;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "SF Mono", Consolas, "Liberation Mono", monospace;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
}

h1,
h2,
h3,
p,
ul,
ol {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
}

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

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

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: var(--gutter);
  top: 12px;
  z-index: 10;
  padding: 8px 14px;
  background: var(--surface);
  color: var(--ink);
  border-radius: 8px;
}

/* ---------- En-tête et accroche (fond sombre) ---------- */

.top {
  background-color: var(--night);
  background-image:
    linear-gradient(var(--night-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--night-line) 1px, transparent 1px),
    radial-gradient(ellipse 70% 60% at 80% 0%, rgba(61, 219, 176, 0.16), transparent 70%);
  background-size: 56px 56px, 56px 56px, 100% 100%;
  background-position: -1px -1px, -1px -1px, 0 0;
  color: #fff;
}

.top::after {
  content: "";
  display: block;
  height: 64px;
  background: linear-gradient(transparent, var(--night));
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 22px;
  padding-bottom: 22px;
}

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

.brand svg {
  width: 30px;
  height: 30px;
  flex: none;
}

.brand b {
  font-weight: inherit;
  color: var(--accent-bright);
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 15px;
}

.nav a {
  color: var(--night-soft);
  text-decoration: none;
}

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

.nav .lang {
  padding: 5px 11px;
  border: 1px solid var(--night-line);
  border-radius: 999px;
  background: var(--night-raised);
  color: #fff;
  font-family: var(--mono);
  font-size: 13px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 56px;
  align-items: center;
  padding-top: 64px;
  padding-bottom: 40px;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.top .eyebrow {
  color: var(--accent-bright);
}

.hero h1 {
  margin-top: 18px;
  font-size: clamp(34px, 5.2vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-weight: 700;
  text-wrap: balance;
}

.hero .lead {
  margin-top: 22px;
  max-width: 34em;
  font-size: 19px;
  color: var(--night-soft);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.btn {
  display: inline-block;
  padding: 13px 22px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent-bright);
  color: var(--night);
}

.btn-primary:hover {
  background: #66e6c3;
}

.btn-ghost {
  border: 1px solid var(--night-line);
  background: var(--night-raised);
  color: #fff;
}

.btn-ghost:hover {
  border-color: var(--night-soft);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 36px;
}

.chips li {
  padding: 6px 12px;
  border: 1px solid var(--night-line);
  border-radius: 999px;
  background: rgba(17, 31, 51, 0.7);
  font-family: var(--mono);
  font-size: 13px;
  color: var(--night-soft);
}

/* Carte « exemple de synthèse » */

.report {
  padding: 24px;
  border: 1px solid var(--night-line);
  border-radius: var(--radius);
  background: var(--night-raised);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.report-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--night-line);
  font-family: var(--mono);
  font-size: 13px;
  color: var(--night-soft);
}

.report-head strong {
  color: #fff;
  font-weight: 600;
}

.sev {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.sev li {
  display: grid;
  grid-template-columns: 84px 1fr 20px;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--night-soft);
}

.sev .bar {
  height: 8px;
  border-radius: 999px;
  background: var(--night-line);
  overflow: hidden;
}

.sev .bar i {
  display: block;
  height: 100%;
  border-radius: 999px;
}

.sev .n {
  font-family: var(--mono);
  color: #fff;
  text-align: right;
}

.sev-crit i { width: 12%; background: #ff5d6c; }
.sev-high i { width: 34%; background: #ff9f43; }
.sev-med i { width: 58%; background: #ffd166; }
.sev-low i { width: 44%; background: var(--accent-bright); }

.report-foot {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid var(--night-line);
  font-size: 13px;
  color: var(--night-soft);
}

/* ---------- Sections (fond clair) ---------- */

.section {
  padding: 88px 0;
}

.section + .section {
  padding-top: 0;
}

.section h2 {
  margin-top: 12px;
  max-width: 22em;
  font-size: clamp(26px, 3.4vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.section .intro {
  margin-top: 14px;
  max-width: 40em;
  color: var(--ink-soft);
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 40px;
}

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

.card .tag {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent);
}

.card h3 {
  margin-top: 8px;
  font-size: 23px;
  letter-spacing: -0.01em;
}

.card p {
  margin-top: 10px;
  color: var(--ink-soft);
}

.ticks {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.ticks li {
  position: relative;
  padding-left: 26px;
}

.ticks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.5em;
  width: 11px;
  height: 6px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

.steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  margin-top: 40px;
  counter-reset: step;
}

.steps li {
  padding: 22px 20px 24px;
  border-top: 3px solid var(--ink);
  background: var(--surface);
  border-radius: 0 0 var(--radius) var(--radius);
  counter-increment: step;
}

.steps li::before {
  content: "0" counter(step);
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent);
}

.steps h3 {
  margin-top: 6px;
  font-size: 18px;
}

.steps p {
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-soft);
}

.about {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 48px;
  align-items: start;
  margin-top: 40px;
}

.about p + p {
  margin-top: 16px;
}

.creds {
  display: grid;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.creds li {
  padding: 18px 22px;
}

.creds li + li {
  border-top: 1px solid var(--line);
}

.creds .k {
  display: block;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.creds .v {
  display: block;
  margin-top: 2px;
  font-weight: 600;
}

/* ---------- Contact et pied de page ---------- */

.contact {
  padding: 80px 0;
  background: var(--night);
  color: #fff;
}

.contact .eyebrow {
  color: var(--accent-bright);
}

.contact h2 {
  margin-top: 12px;
  font-size: clamp(26px, 3.4vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.contact p {
  margin-top: 14px;
  max-width: 36em;
  color: var(--night-soft);
}

.mail {
  display: inline-block;
  margin-top: 28px;
  font-family: var(--mono);
  font-size: clamp(20px, 3.4vw, 30px);
  color: var(--accent-bright);
  text-decoration: none;
  border-bottom: 2px solid rgba(61, 219, 176, 0.4);
  overflow-wrap: anywhere;
}

.mail:hover {
  border-bottom-color: var(--accent-bright);
}

.footer {
  padding: 40px 0 48px;
  background: var(--night);
  border-top: 1px solid var(--night-line);
  color: var(--night-soft);
  font-size: 13.5px;
  line-height: 1.7;
}

.footer h2 {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
}

.footer p {
  margin-top: 10px;
  max-width: 62em;
}

.footer .copy {
  margin-top: 22px;
  color: #6f8099;
}

/* ---------- Petits écrans ---------- */

@media (max-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
    padding-top: 40px;
  }

  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
}

@media (max-width: 720px) {
  :root {
    --gutter: 18px;
  }

  body {
    font-size: 16px;
  }

  .nav a:not(.lang) {
    display: none;
  }

  .cards,
  .steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .card {
    padding: 24px;
  }

  .section {
    padding: 64px 0;
  }

  .contact {
    padding: 64px 0;
  }
}
