/* ==========================================================================
   NetSecur — design system
   Palette : papier neutre + bleu-confiance + vert-sécurité + ambre
   Typo     : Libre Franklin (display) / Source Sans 3 (corps) / IBM Plex Mono (data)
   ========================================================================== */

:root {
  --bg: #F6F8F8;
  --paper: #FFFFFF;
  --ink: #16232A;
  --slate: #56666D;
  --slate-light: #8B979C;
  --trust: #17415A;
  --trust-dark: #0F2E40;
  --trust-tint: #E9F0F3;
  --safe: #2F8F5B;
  --safe-dark: #256F47;
  --safe-tint: #E7F4ED;
  --warn: #C97A26;
  --warn-tint: #FBF0E2;
  --danger: #B23A3A;
  --danger-tint: #FBEAEA;
  --line: #E1E7E8;
  --mono-bg: #0F2E40;
  --mono-text: #BEEBCF;
  --mono-dim: #6E93A3;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(15, 46, 64, 0.06), 0 6px 20px rgba(15, 46, 64, 0.06);
  --max: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Source Sans 3", "Segoe UI", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .display {
  font-family: "Libre Franklin", "Segoe UI", Arial, sans-serif;
  font-weight: 800;
  color: var(--trust-dark);
  letter-spacing: -0.01em;
  line-height: 1.15;
}

h1 { font-size: clamp(2rem, 4.4vw, 3rem); }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-top: 0; }
h3 { font-size: 1.15rem; margin: 0 0 6px 0; }

p { margin: 0 0 1em 0; }

a { color: var(--trust); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--safe);
  outline-offset: 2px;
}

.mono { font-family: "IBM Plex Mono", "Consolas", monospace; }

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

/* ---------------------------------------------------------------------- */
/* Header / navigation                                                     */
/* ---------------------------------------------------------------------- */

.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--max);
  margin: 0 auto;
  gap: 16px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Libre Franklin", sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--trust-dark);
}

.brand:hover { text-decoration: none; }

.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--trust-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand-mark svg { width: 17px; height: 17px; }

.nav-links {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}

.nav-links a {
  color: var(--slate);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
}

.nav-links a:hover { background: var(--trust-tint); text-decoration: none; color: var(--trust-dark); }
.nav-links a.active { color: var(--trust-dark); background: var(--trust-tint); }

.nav-links a.cta {
  background: var(--trust-dark);
  color: #fff;
}
.nav-links a.cta:hover { background: var(--trust); color: #fff; }

/* ---------------------------------------------------------------------- */
/* Bandeau "offert par"                                                    */
/* ---------------------------------------------------------------------- */

.offered-bar {
  background: var(--trust-tint);
  color: var(--trust-dark);
  text-align: center;
  font-size: 0.88rem;
  padding: 7px 12px;
}
.offered-bar a { color: var(--trust-dark); font-weight: 700; }

/* ---------------------------------------------------------------------- */
/* Page header (non-home pages)                                           */
/* ---------------------------------------------------------------------- */

.page-hero {
  padding: 48px 0 8px;
}
.page-hero .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--safe-dark);
  margin-bottom: 10px;
  display: block;
}
.page-hero p.lede {
  font-size: 1.1rem;
  color: var(--slate);
  max-width: 640px;
}

/* ---------------------------------------------------------------------- */
/* Hero (home)                                                             */
/* ---------------------------------------------------------------------- */

.hero {
  padding: 56px 0 40px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

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

.hero-copy .eyebrow {
  display: inline-block;
  background: var(--safe-tint);
  color: var(--safe-dark);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.hero-copy p.lede {
  font-size: 1.15rem;
  color: var(--slate);
  max-width: 520px;
}

.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 22px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  text-decoration: none !important;
}

.btn-primary {
  background: var(--safe-dark);
  color: #fff;
  box-shadow: 0 8px 20px rgba(47, 143, 91, 0.28);
}
.btn-primary:hover { background: var(--safe); }

.btn-secondary {
  background: var(--paper);
  color: var(--trust-dark);
  border: 1.5px solid var(--line);
}
.btn-secondary:hover { border-color: var(--trust); background: var(--trust-tint); }

.btn-sm {
  padding: 9px 16px;
  font-size: 0.9rem;
  border-radius: var(--radius-sm);
}

.hero-note {
  margin-top: 14px;
  font-size: 0.85rem;
  color: var(--slate-light);
}

/* ---------------------------------------------------------------------- */
/* Signature element : terminal de scan                                   */
/* ---------------------------------------------------------------------- */

.scan-terminal {
  background: var(--mono-bg);
  border-radius: var(--radius);
  padding: 22px 22px 20px;
  box-shadow: var(--shadow);
  font-family: "IBM Plex Mono", "Consolas", monospace;
  color: var(--mono-text);
  font-size: 0.92rem;
  position: relative;
  overflow: hidden;
}

.scan-terminal::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), transparent 40%);
  pointer-events: none;
}

.scan-terminal .term-titlebar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--mono-dim);
  font-size: 0.78rem;
}

.term-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--mono-dim); opacity: 0.6; }

.term-line {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 0;
  opacity: 0;
  transform: translateY(2px);
  animation: term-in 0.35s ease forwards;
}

.term-line .mark { width: 16px; display: inline-block; text-align: center; }
.term-line.ok .mark { color: var(--mono-text); }
.term-line.warn .mark { color: #F0C179; }
.term-line .label { color: #DCEEE3; }
.term-line .dim { color: var(--mono-dim); }

.term-score {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed rgba(190, 235, 207, 0.25);
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.term-score .num { font-size: 2.2rem; font-weight: 700; color: #fff; }
.term-score .of { color: var(--mono-dim); font-size: 1rem; }
.term-score .tag {
  margin-left: auto;
  background: rgba(190, 235, 207, 0.15);
  color: var(--mono-text);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

@keyframes term-in {
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .term-line { animation: none; opacity: 1; transform: none; }
}

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

section.block { padding: 34px 0; }
section.block.tight { padding: 18px 0; }

.section-intro { max-width: 620px; margin-bottom: 28px; }
.section-intro p { color: var(--slate); }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}

.card .icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--trust-tint);
  color: var(--trust-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.card .icon svg { width: 19px; height: 19px; }

.card p { color: var(--slate); font-size: 0.96rem; margin-bottom: 0; }

.card .card-link { display: inline-block; margin-top: 12px; font-weight: 700; font-size: 0.92rem; }

.card.recommended { border-color: var(--safe); position: relative; }
.card .pill {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.pill.safe { background: var(--safe-tint); color: var(--safe-dark); }
.pill.info { background: var(--trust-tint); color: var(--trust-dark); }
.pill.alt { background: var(--warn-tint); color: var(--warn); }

/* Callout / important note */

.callout {
  background: var(--trust-tint);
  border-left: 4px solid var(--trust);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  color: var(--trust-dark);
  font-size: 0.96rem;
}
.callout.warn { background: var(--warn-tint); border-color: var(--warn); color: #6B4110; }
.callout strong { display: block; margin-bottom: 4px; }

/* Steps list (outils-windows + comment ça marche) */

.step-list { display: flex; flex-direction: column; gap: 4px; }
.step {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.step:last-child { border-bottom: none; }
.step .num {
  font-family: "IBM Plex Mono", monospace;
  color: var(--safe-dark);
  font-weight: 700;
  font-size: 1.05rem;
}
.step p { margin: 0; color: var(--slate); }
.step h3 { margin-bottom: 4px; }
.step kbd {
  background: var(--trust-tint);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 1px 6px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.86rem;
  color: var(--trust-dark);
}

/* Download list */

.download-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.download-row:last-child { border-bottom: none; }
.download-row .dl-name { font-weight: 700; color: var(--trust-dark); }
.download-row .dl-desc { color: var(--slate); font-size: 0.92rem; margin-top: 2px; }
.download-row .dl-main { flex: 1 1 320px; }

.hero-flagship {
  background: var(--paper);
  border: 1.5px solid var(--safe);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px;
  margin-bottom: 8px;
}

/* Legal / plain text pages */

.legal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px 32px;
  margin: 20px 0 8px;
}
.legal-item .k {
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--slate-light);
  font-weight: 700;
  margin-bottom: 3px;
}
.legal-item .v { color: var(--ink); font-size: 0.98rem; }
.legal-item .v a { font-weight: 600; }

/* FAQ */

.faq-list { display: flex; flex-direction: column; gap: 10px; }

.faq-item {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 4px 20px;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 14px 0;
  font-weight: 700;
  color: var(--trust-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.3rem;
  color: var(--slate-light);
  flex-shrink: 0;
  transform: translateY(-1px);
}
.faq-item[open] summary::after { content: "–"; }
.faq-item p { color: var(--slate); padding-bottom: 16px; margin: 0; }

/* 404 page */

.not-found {
  text-align: center;
  padding: 90px 24px 70px;
}
.not-found .code {
  font-family: "IBM Plex Mono", monospace;
  font-size: 5rem;
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 2px var(--trust);
  line-height: 1;
}
.not-found h1 { margin-top: 12px; }
.not-found p.lede { max-width: 460px; margin: 10px auto 22px; color: var(--slate); }

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

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 40px;
  padding: 28px 0 34px;
  color: var(--slate-light);
  font-size: 0.88rem;
}
.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a { color: var(--slate); font-weight: 600; }

/* Utility */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
