@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Archivo:wght@600;700;800&display=swap");

:root {
  --nuit: #14213d;
  --nuit-2: #1b2e4c;
  --nuit-line: rgba(237, 240, 247, 0.14);
  --feu: #d62828;
  --feu-dark: #b91c1c;
  --feu-soft: #fdeceb;
  --brume-50: #f8f9fa;
  --brume-100: #f1f2f4;
  --brume-300: #dee2e6;
  --text: #1b2740;
  --text-muted: #57616f;
  --text-onnuit: #eef1f7;
  --text-onnuit-muted: #aab3c5;
  --check: #1e8a5f;
  --white: #ffffff;
  --font-display: "Archivo", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.001ms !important; animation-duration: 0.001ms !important; }
}

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  margin: 0;
  letter-spacing: -0.01em;
  text-wrap: balance;
  color: var(--text);
}

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 640px) { .wrap { padding: 0 20px; } body { font-size: 16px; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  padding: 13px 24px;
  border-radius: 8px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, opacity 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: 2px solid var(--feu); outline-offset: 2px; }
.btn-feu { background: var(--feu); color: #fff; }
.btn-feu:hover { background: var(--feu-dark); }
.btn-outline-onnuit { border-color: rgba(255,255,255,0.5); color: #fff; background: transparent; }
.btn-outline-onnuit:hover { border-color: #fff; background: rgba(255,255,255,0.06); }
.btn-outline { border-color: var(--brume-300); color: var(--text); background: transparent; }
.btn-outline:hover { border-color: var(--nuit); }

/* ---------- nav ---------- */
header.site-nav {
  background: #fff;
  border-bottom: 1px solid var(--brume-300);
  position: sticky;
  top: 0;
  z-index: 50;
}
.nav-row {
  max-width: 1180px;
  margin: 0 auto;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 19px;
  color: var(--nuit);
  white-space: nowrap;
}
.brand .mark {
  width: 30px; height: 30px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex: none;
  overflow: hidden;
}
.brand .mark img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }
.brand .accent { color: var(--feu); }
nav.links { display: flex; gap: 26px; flex: 1; justify-content: center; flex-wrap: wrap; }
nav.links a { font-size: 14.5px; font-weight: 600; color: var(--nuit); }
nav.links a:hover { color: var(--feu); }
nav.links a.active { color: var(--feu); }
nav.links a.mobile-only { display: none; }
.burger { display: none; background: none; border: 1px solid #ddd; border-radius: 6px; width: 42px; height: 38px; cursor: pointer; padding: 0; align-items: center; justify-content: center; flex-direction: column; gap: 5px; margin-left: auto; }
.burger span { display: block; width: 20px; height: 2px; background: var(--nuit); }
@media (max-width: 920px) {
  .burger { display: flex; }
  .nav-row { position: relative; flex-wrap: wrap; }
  nav.links { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 0 12px; box-shadow: 0 8px 20px rgba(0,0,0,.08); z-index: 50; }
  nav.links.open { display: flex; }
  nav.links a { padding: 12px 20px; border-top: 1px solid #f0f0f0; }
  .nav-row > a.btn { display: none; }
  nav.links a.mobile-only { display: block; color: var(--feu); }
}
@media (max-width: 480px) {
  .nav-row { flex-wrap: wrap; gap: 10px 16px; }
  .nav-row .btn { font-size: 13px; padding: 10px 14px; }
  .brand { font-size: 17px; }
}

/* ---------- sections ---------- */
section { padding: 88px 0; }
@media (max-width: 640px) { section { padding: 56px 0; } }
.on-nuit { background: var(--nuit); color: var(--text-onnuit); }
.photo-band { position: relative; overflow: hidden; background: var(--nuit); }
.photo-band::before {
  content: "";
  position: absolute;
  inset: -10px;
  background: url("hero-firefighters.jpg") center right / cover no-repeat;
  filter: saturate(1.05) brightness(0.92);
  z-index: 0;
}
.hero.photo-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(20,33,61,0.86) 0%, rgba(20,33,61,0.62) 34%, rgba(20,33,61,0.34) 62%, rgba(20,33,61,0.2) 100%);
  z-index: 0;
}
.hero.photo-band .wrap { position: relative; z-index: 1; }
.hero.photo-band h1, .hero.photo-band .lede { text-shadow: 0 2px 16px rgba(0,0,0,0.35); }

footer.photo-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(20,33,61,0.88) 0%, rgba(20,33,61,0.72) 45%, rgba(20,33,61,0.5) 100%);
  z-index: 0;
}
footer.photo-band .footer-grid, footer.photo-band .footer-bottom { position: relative; z-index: 1; }
.on-nuit h1, .on-nuit h2, .on-nuit h3 { color: #fff; }
.on-white { background: var(--white); }
.on-brume { background: var(--brume-50); }

.eyebrow-pill {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--brume-100);
  color: var(--nuit);
  margin-bottom: 18px;
}
.on-nuit .eyebrow-pill { background: rgba(255,255,255,0.1); color: var(--text-onnuit); }

.section-head { max-width: 680px; margin: 0 auto 44px; text-align: left; }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-head h2 { font-size: clamp(26px, 3vw, 34px); }
.section-head p.lede { margin-top: 14px; color: var(--text-muted); font-size: 16.5px; }
.on-nuit .section-head p.lede { color: var(--text-onnuit-muted); }

.accent { color: var(--feu); }

/* ---------- hero ---------- */
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }
.hero h1 { font-size: clamp(32px, 4.6vw, 48px); line-height: 1.08; margin-top: 16px; }
.hero p.lede { margin-top: 20px; font-size: 17.5px; color: var(--text-onnuit-muted); max-width: 52ch; }
.hero-ctas { margin-top: 30px; display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- browser mockup card ---------- */
.browser-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
}
.browser-card .chrome {
  background: var(--nuit-2);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.browser-card .chrome .dot { width: 10px; height: 10px; border-radius: 50%; }
.browser-card .chrome .dot.r { background: var(--feu); }
.browser-card .chrome .dot.g { background: var(--text-onnuit-muted); }
.browser-card .chrome .url {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-onnuit-muted);
  margin-left: 6px;
}
.browser-card .body-pad { padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.chat-q {
  background: var(--nuit-2);
  color: #fff;
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 15px;
}
.chat-a {
  background: var(--brume-50);
  border: 1px solid var(--brume-300);
  padding: 16px 18px;
  border-radius: 10px;
  font-size: 15px;
  color: var(--text);
}
.chat-a .source { margin-top: 10px; color: var(--feu); font-size: 13.5px; font-weight: 600; }

/* ---------- generic card ---------- */
.card {
  background: #fff;
  border: 1px solid var(--brume-300);
  border-radius: 14px;
  padding: 26px;
}
.card-muted {
  background: var(--brume-50);
  border: 1px solid var(--brume-300);
  border-radius: 14px;
  padding: 26px;
}
.card h3 { font-size: 18px; margin-bottom: 10px; }
.card p.desc { color: var(--text-muted); font-size: 15px; }
.card .outcome {
  margin-top: 14px;
  font-weight: 700;
  color: var(--feu);
  font-size: 14.5px;
}
.card .outcome.quote {
  border-left: 3px solid var(--feu);
  padding-left: 12px;
}

.tag-pill {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--brume-100);
  color: var(--nuit);
}
.tag-pill.feu { background: var(--feu-soft); color: var(--feu-dark); }

.bullets { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.bullets li { position: relative; padding-left: 20px; color: var(--text-muted); font-size: 15px; }
.bullets li::before { content: "•"; color: var(--feu); position: absolute; left: 0; font-weight: 700; }
.bullets.check li::before { content: "\2713"; color: var(--check); font-size: 13px; top: 2px; }

/* ---------- stats band ---------- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  text-align: center;
}
@media (max-width: 700px) { .stats-row { grid-template-columns: 1fr; } }
.stat .num { font-family: var(--font-display); font-weight: 800; font-size: clamp(32px,4vw,44px); color: var(--feu); }
.stat .label { margin-top: 6px; color: var(--text-muted); font-size: 14.5px; }

/* ---------- bouclier diagram (pourquoi.html) : empilé sur mobile ---------- */
@media (max-width: 780px) {
  .bouclier-card { overflow-x: visible !important; }
  .bouclier-grid {
    grid-template-columns: 1fr !important;
    min-width: 0 !important;
    gap: 22px !important;
    justify-items: center;
  }
  .bouclier-arrow { display: inline-block; transform: rotate(90deg); }
}

/* ---------- quote card ---------- */
.quote-card {
  background: #fff;
  border: 1px solid var(--brume-300);
  border-left: 3px solid var(--feu);
  border-radius: 4px 14px 14px 4px;
  padding: 30px 28px;
}
.quote-card .mark { font-family: var(--font-display); font-size: 40px; color: var(--feu); line-height: 1; }
.quote-card p.text { margin-top: 12px; font-size: 16.5px; }
.quote-card .attrib { margin-top: 14px; color: var(--nuit); font-weight: 700; font-size: 14.5px; }
.quote-card hr { border: none; border-top: 1px solid var(--brume-300); margin: 16px 0; }
.quote-card p.followup { color: var(--text-muted); font-size: 15px; }

/* ---------- grids ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; } }

.two-col { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: start; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }

/* ---------- filter tabs (cas d'usage) ---------- */
.filter-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 34px; }
.filter-btn {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13.5px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--brume-300);
  background: #fff;
  color: var(--text);
  cursor: pointer;
}
.filter-btn[aria-selected="true"] { background: var(--nuit); border-color: var(--nuit); color: #fff; }
.pole-panel { display: none; }
.pole-panel.active { display: block; }

/* ---------- numbered step cards ---------- */
.step-card .n { font-family: var(--font-display); font-weight: 800; font-size: 22px; color: var(--feu); }
.step-card .week { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); margin-top: 8px; }
.step-card h3 { font-size: 17px; margin-top: 4px; }
.step-card p.desc { margin-top: 8px; }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }
.cta-band h2 { font-size: clamp(26px, 3.6vw, 36px); }
.cta-band .fineprint { margin-top: 14px; color: var(--text-onnuit-muted); font-size: 14px; }
.cta-band .btn { margin-top: 26px; }

/* ---------- footer ---------- */
footer {
  background: var(--nuit);
  color: var(--text-onnuit-muted);
  padding: 56px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.footer-grid .brand { color: #fff; margin-bottom: 12px; }
.footer-grid p { font-size: 14.5px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 14.5px; }
.footer-links a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid var(--nuit-line);
  padding: 20px 0;
  text-align: center;
  font-size: 13.5px;
}

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ---------- comparison table ---------- */
.compare-wrap { overflow-x: auto; border-radius: 14px; border: 1px solid var(--brume-300); }
.compare-table { width: 100%; border-collapse: collapse; min-width: 640px; }
.compare-table th, .compare-table td { padding: 20px 24px; text-align: left; vertical-align: top; font-size: 15px; }
.compare-table thead th { font-family: var(--font-display); font-weight: 800; font-size: 14.5px; }
.compare-table thead th:first-child { background: var(--brume-100); color: var(--nuit); }
.compare-table thead th:last-child { background: var(--nuit); color: #fff; }
.compare-table tbody td:first-child { font-weight: 700; background: var(--brume-50); border-top: 1px solid var(--brume-300); }
.compare-table tbody td:nth-child(2) { color: var(--text-muted); border-top: 1px solid var(--brume-300); }
.compare-table tbody td:last-child { background: var(--feu-soft); color: var(--feu-dark); font-weight: 600; border-top: 1px solid #f3cfcd; }

/* ---------- model switcher card (alternatives) ---------- */
.model-switch { background: var(--nuit); border-radius: 16px; padding: 30px 26px; color: #fff; }
.model-switch .label { font-family: var(--font-display); font-weight: 800; font-size: 14px; letter-spacing: 0.02em; }
.model-switch .sub { font-size: 13px; color: var(--text-onnuit-muted); margin-top: 4px; }
.model-switch .arrows { text-align: center; color: var(--feu); font-size: 20px; font-weight: 800; margin: 18px 0; }
.model-switch .rows { display: flex; flex-direction: column; gap: 10px; }
.model-switch .row { background: #fff; color: var(--text); border-radius: 8px; padding: 13px 16px; font-weight: 700; font-size: 14.5px; border: 1.5px solid transparent; }
.model-switch .row.picked { border-color: var(--feu); color: var(--feu-dark); }

/* ---------- article cards & prose ---------- */
.article-meta { font-size: 12.5px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: #6b7a99; margin-bottom: 12px; }
.on-nuit .article-meta { color: var(--text-onnuit-muted); }
.article-card h3 { font-size: 19px; margin-bottom: 12px; }
.article-card p.desc { color: var(--text-muted); font-size: 15px; }
.article-card .read-link { display: inline-block; margin-top: 18px; color: var(--feu); font-weight: 700; font-size: 14.5px; }
.article-back { display: inline-block; color: var(--text-onnuit-muted); font-size: 14px; font-weight: 600; margin-bottom: 22px; }
.article-back:hover { color: #fff; }
.prose { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.prose h2 { font-size: clamp(21px, 2.6vw, 25px); margin-top: 18px; }
.prose p { color: var(--text-muted); font-size: 16px; }

/* ---------- contact form ---------- */
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 40px; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 20px; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }
.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: 14px; font-weight: 700; color: var(--text); }
.form-field input, .form-field textarea {
  font-family: var(--font-body);
  font-size: 15px;
  padding: 13px 14px;
  border-radius: 8px;
  border: 1.5px solid var(--brume-300);
  color: var(--text);
  background: #fff;
}
.form-field input:focus, .form-field textarea:focus { outline: 2px solid var(--nuit); outline-offset: 1px; }
.form-field textarea { resize: vertical; min-height: 130px; font-family: var(--font-body); }

/* ---------- case detail pages ---------- */
.case-hero { padding-top: 44px; padding-bottom: 44px; }
.breadcrumb { font-size: 14px; color: var(--text-onnuit-muted); margin-bottom: 20px; }
.breadcrumb a { color: var(--text-onnuit-muted); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb .sep { margin: 0 8px; opacity: 0.6; }
.breadcrumb .current { color: #fff; font-weight: 600; }
.tag-row { display: flex; gap: 10px; flex-wrap: wrap; }
.on-nuit .tag-pill { background: rgba(255,255,255,0.12); color: var(--text-onnuit); }
.on-nuit .tag-pill.feu { background: var(--feu-soft); color: var(--feu-dark); }
.gain-box {
  background: var(--brume-50);
  border: 1px solid var(--brume-300);
  border-left: 4px solid var(--feu);
  border-radius: 4px 14px 14px 4px;
  padding: 22px 24px;
  margin-top: 30px;
}
.gain-box h4 { font-size: 15.5px; margin-bottom: 8px; }
.gain-box p { color: var(--feu-dark); font-weight: 700; font-size: 15px; }
.related-link {
  display: flex;
  align-items: center;
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
}
.related-link:hover { border-color: var(--nuit); }

/* ---------- placeholder page ---------- */
.placeholder-box {
  border: 1.5px dashed var(--brume-300);
  border-radius: 14px;
  padding: 60px 32px;
  text-align: center;
  color: var(--text-muted);
}

/* Pied de page commun (gabarit 2026) */
footer.site-footer { background: #1a1a1a; color: #fff; padding: 50px 20px; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; }
footer.site-footer .footer-content { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 30px; }
footer.site-footer .footer-section h4 { margin: 0 0 15px; font-weight: 600; color: #E60000; font-size: 14px; font-family: inherit; letter-spacing: 0; }
footer.site-footer .footer-section a, footer.site-footer .footer-section p { font-family: inherit; font-weight: 400; }
footer.site-footer .footer-section ul { list-style: none; margin: 0; padding: 0; }
footer.site-footer .footer-section a { color: #ccc; text-decoration: none; display: block; margin-bottom: 8px; font-size: 13px; }
footer.site-footer .footer-section a:hover { color: #fff; }
footer.site-footer .footer-section p { font-size: 12px; color: #999; margin: 0; }
