/* ==========================================================================
   INTRUZION, feuille de style principale
   ========================================================================== */

:root {
  --bg: #171e28;
  --bg-alt: #1a212c;
  --surface: #212a37;
  --surface-2: #283344;
  --border: #364457;
  --text: #eef1f5;
  --text-muted: #b3c0c6;
  --text-dim: #8697ab;
  --accent: #dd2041;
  --accent-dim: #b01834;
  --accent-2: #3b82f6;
  --gold: #f2b134;
  --safe: #22c55e;
  --danger: #ef4444;
  --warning: #f59e0b;

  --radius: 14px;
  --radius-lg: 20px;
  --container: 1160px;
  --shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.4);

  --font: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Space Grotesk", "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0 0 0.5em; line-height: 1.2; font-weight: 700; letter-spacing: -0.01em; font-family: var(--font-display); }
p { margin: 0 0 1em; color: var(--text-muted); }

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

.section {
  padding: 96px 0;
  border-bottom: 1px solid var(--border);
}
.section--tight { padding: 64px 0; }
.section--alt { background: var(--bg-alt); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--accent);
}

.section-head {
  max-width: 640px;
  margin-bottom: 56px;
}
.section-head h2 { font-size: clamp(28px, 3.4vw, 40px); }
.section-head p { font-size: 17px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---- Buttons -------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease, color .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(1px); }
.btn--primary:hover { box-shadow: 0 10px 24px -8px rgba(221, 32, 65, 0.55); }

.btn--primary {
  background: var(--accent);
  color: #ffffff;
}
.btn--primary:hover { background: #ea3f5e; }

.btn--ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn--block { width: 100%; }
.btn--lg { padding: 16px 32px; font-size: 16px; }

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

.site-header, .site-footer {
  font-family: var(--font);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 14, 20, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
}
.brand-logo {
  display: block;
  height: 52px;
  width: auto;
  max-width: none;
  flex: none;
}
.footer-brand .brand-logo { height: 56px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color .15s ease;
  position: relative;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--text); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -26px;
  height: 2px;
  background: var(--accent);
}

.nav-dropdown { position: relative; }
.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color .15s ease;
  position: relative;
}
.nav-dropdown-toggle:hover { color: var(--text); }
.nav-dropdown-toggle.active { color: var(--text); }
.nav-dropdown-toggle.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -26px;
  height: 2px;
  background: var(--accent);
}
.nav-dropdown-toggle svg { width: 12px; height: 12px; transition: transform .15s ease; }
.nav-dropdown.open .nav-dropdown-toggle svg { transform: rotate(180deg); }
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 18px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 8px;
  min-width: 280px;
  display: none;
  flex-direction: column;
  gap: 2px;
  z-index: 200;
}
.nav-dropdown.open .nav-dropdown-menu { display: flex; }
.nav-dropdown-menu a {
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: background .15s ease, color .15s ease;
}
.nav-dropdown-menu a:hover { background: var(--surface-2); color: var(--text); }

.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-actions .btn { padding: 12px 18px; font-size: 14px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  transition: transform .2s ease, opacity .2s ease;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 2px;
  padding: 8px 24px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
}
.mobile-nav a {
  padding: 12px 4px;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  font-weight: 500;
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav.open { display: flex; }
.mobile-nav-label {
  padding: 14px 4px 4px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--text-dim);
}

/* ---- Hero --------------------------------------------------------------*/

.hero {
  position: relative;
  padding: 96px 0 118px;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 600px;
  background:
    radial-gradient(600px 300px at 20% 0%, rgba(221, 32, 65, 0.14), transparent 60%),
    radial-gradient(500px 260px at 85% 10%, rgba(59, 130, 246, 0.14), transparent 60%);
  pointer-events: none;
  animation: hero-drift 16s ease-in-out infinite;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, black 40%, transparent 100%);
  pointer-events: none;
  animation: hero-grid-pulse 6s ease-in-out infinite;
}
@keyframes hero-drift {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(3%, -2%); }
}
@keyframes hero-grid-pulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

.hero-split {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas:
    "text stats"
    "cta stats";
  gap: 24px 72px;
  align-items: end;
}
.hero-text { position: relative; grid-area: text; align-self: start; }
.hero-split > .hero-cta { grid-area: cta; align-self: end; }

@keyframes fade-up {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-text > .eyebrow { animation: fade-up .7s ease both; }
.hero-text > h1 { animation: fade-up .7s ease .12s both; }
.hero-text > .lead { animation: fade-up .7s ease .24s both; }
.hero-split > .hero-cta { animation: fade-up .7s ease .36s both; }
.hero-stats { animation: fade-up .7s ease .48s both; }

.hero h1 {
  font-size: clamp(34px, 4.4vw, 56px);
  letter-spacing: -0.02em;
}
.hero h1 .accent, .hero .lead .accent { color: var(--accent); }
.hero h1 .nowrap-desktop { white-space: nowrap; }
.hero .lead {
  font-size: 18px;
  max-width: 560px;
  margin: 0 0 24px;
}
.hero-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 0;
}

.hero-stats {
  position: relative;
  grid-area: stats;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 400px;
  margin: 0 0 0 auto;
}
.hero-halo {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 230%;
  aspect-ratio: 1;
  background: url('../assets/hero-halo-subtil.png') center / contain no-repeat;
  opacity: 0.85;
  pointer-events: none;
  z-index: 0;
}
.hero-stat {
  position: relative;
  z-index: 1;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0) 55%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: border-color .2s ease, transform .2s ease;
}
.hero-stat:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}
.hero-stat strong {
  display: block;
  height: 36px;
  overflow: hidden;
  font-size: 36px;
  line-height: 1;
  font-family: var(--font);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--accent);
  margin-bottom: 6px;
}
.hero-stat span {
  display: block;
  min-height: 2.8em;
  font-size: 13.5px;
  line-height: 1.4;
  color: var(--text-muted);
}
.hero-stat strong .counter {
  display: inline-block;
  font-size: inherit;
  line-height: 1;
  color: inherit;
}

/* ---- Bandeau logos clients (défilant) ---- */

.logo-marquee {
  padding: 24px 0;
  margin-top: 28px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.logo-marquee-label {
  margin: 0 0 16px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.logo-marquee .container {
  position: relative;
  overflow: hidden;
}
.logo-marquee-fade {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(90deg, var(--bg) 0%, transparent 8%, transparent 92%, var(--bg) 100%);
}
.logo-marquee-track {
  display: flex;
  width: max-content;
  animation: logo-marquee-scroll 38s linear infinite;
}
.logo-marquee:hover .logo-marquee-track { animation-play-state: paused; }
.logo-marquee-group {
  display: flex;
  align-items: center;
  gap: 26px;
  padding-right: 26px;
}
.logo-item {
  display: block;
  flex: none;
  width: 119px;
  height: 119px;
  object-fit: contain;
  filter: invert(1) brightness(1.6);
  opacity: .55;
  transition: opacity .2s ease;
}
.logo-item:hover { opacity: 1; }
@keyframes logo-marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .logo-marquee-track { animation: none; }
}

/* ---- Card grid ---- */

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

.services-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
.services-grid > .card { flex: 0 0 calc((100% - 48px) / 3); padding: 24px 32px; }
.services-grid > .card .icon { margin-bottom: 14px; }
.services-grid > .card p { margin-bottom: 12px; }
@media (max-width: 980px) {
  .services-grid > .card { flex-basis: calc((100% - 24px) / 2); }
}
@media (max-width: 720px) {
  .services-grid > .card { flex-basis: 100%; }
}

.card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px;
  transition: border-color .15s ease, transform .15s ease;
}
.card:hover { border-color: #2c3a50; transform: translateY(-2px); }
.card.featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), var(--shadow);
  position: relative;
}
.card.featured .flag {
  position: absolute;
  top: -13px;
  left: 24px;
  background: var(--accent);
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 5px;
  font-family: var(--font-mono);
}

.card .icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(221, 32, 65, 0.1);
  color: var(--accent);
  margin-bottom: 20px;
  transition: transform .3s ease, background .3s ease;
}
.card:hover .icon { transform: scale(1.08) rotate(-4deg); background: rgba(221, 32, 65, 0.18); }
.card .icon svg { width: 22px; height: 22px; }
.card h3 { font-size: 18px; margin-bottom: 10px; }
.card p { font-size: 14.5px; margin-bottom: 16px; }
.card .tags { display: flex; flex-wrap: wrap; gap: 6px; }
.card .tags span {
  font-family: var(--font-mono);
  font-size: 11.5px;
  padding: 4px 8px;
  border-radius: 5px;
  background: var(--surface-2);
  color: var(--text-dim);
  border: 1px solid var(--border);
}
.card .link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  margin-top: 4px;
}
.card .link svg { width: 14px; height: 14px; transition: transform .2s ease; }
.card:hover .link svg { transform: translateX(4px); }

.values-grid { gap: 16px; }
.values-grid .card { padding: 20px; }
.values-grid .card .icon { width: 36px; height: 36px; margin-bottom: 12px; border-radius: 8px; }
.values-grid .card .icon svg { width: 18px; height: 18px; }
.values-grid .card h3 { font-size: 15.5px; margin-bottom: 6px; }
.values-grid .card p { font-size: 13px; margin-bottom: 0; }

/* ---- Process / steps ---- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}
.step { position: relative; padding-top: 8px; }
.step .num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  border: 1px solid var(--border);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  background: var(--surface);
}
.step h3 { font-size: 16.5px; margin-bottom: 8px; }
.step p { font-size: 14px; }

/* ---- Schéma technique (pipeline, étapes) ---- */

.scan-pipeline {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px 20px;
  overflow-x: auto;
}

.nis2-hub {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  overflow-x: auto;
}

/* ---- Bandeau de statistiques (chiffres clés) ---- */

.stat-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.stat-card b {
  display: block;
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--accent);
  margin-bottom: 10px;
}
.stat-card h3 { font-size: 15px; margin-bottom: 6px; }
.stat-card p { font-size: 13.5px; color: var(--text-muted); margin: 0; }
@media (max-width: 780px) {
  .stat-band { grid-template-columns: repeat(2, 1fr); }
}

/* ---- Why us / split ---- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.split.reverse { direction: rtl; }
.split.reverse > * { direction: ltr; }
.check-list li {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 15px;
}
.check-list li:last-child { border-bottom: none; }
.check-list li strong { color: var(--text); display: block; margin-bottom: 2px; }
.check-list .dot {
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  border-radius: 6px;
  background: rgba(221, 32, 65, .12);
  color: var(--accent);
  display: grid;
  place-items: center;
}
.check-list .dot svg { width: 12px; height: 12px; }

.report-fan-wrap { display: flex; justify-content: center; align-items: center; }
.report-fan-img { max-width: 540px; width: 100%; height: auto; display: block; }

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
}
.panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.panel-head span { font-family: var(--font-mono); font-size: 12px; color: var(--text-dim); }
.panel-head span::after {
  content: '';
  display: inline-block;
  width: 6px;
  height: 12px;
  margin-left: 6px;
  background: var(--accent);
  vertical-align: -2px;
  animation: cursor-blink 1s step-end infinite;
}
@keyframes cursor-blink { 50% { opacity: 0; } }

.panel .finding-row, .panel-summary > div {
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity .4s ease, transform .4s ease;
}
.panel .finding-row.show, .panel-summary > div.show {
  opacity: 1;
  transform: translateX(0);
}
.badge-severity {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 5px;
  font-weight: 700;
  letter-spacing: .04em;
}
.badge-severity.critical { background: rgba(239,68,68,.15); color: #f87171; }
.badge-severity.high { background: rgba(245,158,11,.15); color: #fbbf24; }
.badge-severity.medium { background: rgba(59,130,246,.15); color: #60a5fa; }
.badge-severity.low { background: rgba(34,197,94,.15); color: var(--safe); }

.finding-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13.5px;
}
.finding-row:last-child { border-bottom: none; }
.finding-row span:first-child { color: var(--text); font-family: var(--font-mono); font-size: 12.5px; }

.panel-summary {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  padding-bottom: 16px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--border);
}
.panel-summary div { display: flex; flex-direction: column; gap: 2px; }
.panel-summary strong { font-family: var(--font-mono); font-size: 18px; color: var(--text); }
.panel-summary span { font-size: 10.5px; color: var(--text-dim); text-transform: uppercase; letter-spacing: .03em; }
.panel-summary .sev-critical strong { color: #f87171; }
.panel-summary .sev-high strong { color: #fbbf24; }
.panel-summary .sev-medium strong { color: #60a5fa; }
.panel-summary .sev-low strong { color: var(--safe); }

.finding-meta { display: flex; align-items: center; gap: 9px; }
.cvss { font-family: var(--font-mono); font-size: 11px; color: var(--text-dim); }

.finding-block { padding: 12px 0; border-bottom: 1px solid var(--border); }
.finding-block:last-of-type { border-bottom: none; padding-bottom: 0; }
.finding-block .finding-row { padding: 0 0 8px; border-bottom: none; }
.finding-remediation {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-muted);
}
.finding-remediation strong { color: var(--text); }

.finding-more {
  padding-top: 14px;
  text-align: center;
  font-size: 12.5px;
  color: var(--text-dim);
}

/* ---- CTA banner ---- */

.cta-banner {
  background: linear-gradient(135deg, var(--surface), var(--bg-alt));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(400px 200px at 50% 0%, rgba(221,32,65,.12), transparent 70%);
}
.cta-banner h2 { font-size: clamp(24px, 3vw, 34px); position: relative; }
.cta-banner p { font-size: 16px; max-width: 520px; margin: 0 auto 28px; position: relative; }
.cta-banner .hero-cta { position: relative; margin-bottom: 0; }

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

.site-footer {
  padding: 72px 0 32px;
  background: var(--bg-alt);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
}
.footer-grid h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-dim);
  margin-bottom: 18px;
}
.footer-grid li { margin-bottom: 12px; }
.footer-grid a { color: var(--text-muted); font-size: 14.5px; }
.footer-grid a:hover { color: var(--accent); }
.footer-brand p { font-size: 14.5px; max-width: 280px; }
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.footer-social a {
  width: 36px; height: 36px;
  border: 1px solid var(--border);
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--text-muted);
}
.footer-social a:hover { border-color: var(--accent); color: var(--accent); }
.footer-social svg { width: 16px; height: 16px; }

.footer-badges { display: flex; gap: 18px; margin-top: 16px; flex-wrap: wrap; align-items: center; }
.footer-badge {
  height: 58px;
  width: auto;
  background: #ffffff;
  border-radius: 6px;
  padding: 5px 8px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--text-dim);
}
.footer-bottom a { color: var(--text-dim); }
.footer-bottom a:hover { color: var(--text-muted); }
.footer-legal { display: flex; gap: 20px; flex-wrap: wrap; }

/* ---- Page header (inner pages) ---- */

.page-hero {
  padding: 72px 0 56px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(600px 260px at 50% -10%, rgba(221,32,65,.10), transparent 60%);
}
.page-hero h1 { font-size: clamp(30px, 4.4vw, 48px); }
.page-hero p { max-width: 600px; margin: 16px auto 0; font-size: 17px; }
.breadcrumb {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-dim);
  margin-bottom: 18px;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent); }

/* ---- Service detail blocks ---- */

.service-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
  padding: 64px 0;
  border-bottom: 1px solid var(--border);
}
.service-block:last-child { border-bottom: none; }
.service-block.reverse { direction: rtl; }
.service-block.reverse > * { direction: ltr; }

.service-block .index {
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 13px;
  margin-bottom: 14px;
  letter-spacing: .06em;
}
.service-block h2 { font-size: 26px; }
.service-block .meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 18px 0 6px;
}
.service-block .meta span {
  font-family: var(--font-mono);
  font-size: 11.5px;
  padding: 5px 10px;
  border-radius: 5px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-dim);
}
.sub-service { margin-top: 22px; }
.sub-service + .sub-service {
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.sub-service h4 { font-size: 15.5px; margin-bottom: 8px; }
.sub-service p { margin-bottom: 0; }
.sub-service .meta { margin: 14px 0 0; }

.deliverables { margin-top: 22px; }
.deliverables li {
  display: flex;
  gap: 10px;
  font-size: 14.5px;
  color: var(--text-muted);
  padding: 8px 0;
}
.deliverables li svg { flex: none; width: 16px; height: 16px; color: var(--accent); margin-top: 2px; }

/* ---- Pricing-ish tier / engagement cards on services page ---- */

.tier-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.tier-card.featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), var(--shadow);
  position: relative;
}
.tier-card.featured--blue { border-color: var(--accent-2); box-shadow: 0 0 0 1px var(--accent-2), var(--shadow); }
.tier-card.featured--gold { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold), var(--shadow); }
.tier-card .flag {
  position: absolute;
  top: -13px;
  left: 24px;
  background: var(--accent);
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 5px;
  font-family: var(--font-mono);
}
.tier-card.featured--blue .flag { background: var(--accent-2); }
.tier-card.featured--gold .flag { background: var(--gold); color: #14100A; }
.tier-card h3 { font-size: 19px; }
.tier-card .price {
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--text-dim);
  margin-bottom: 20px;
}
.tier-card ul { margin-bottom: 24px; }
.tier-card li {
  display: flex;
  gap: 10px;
  font-size: 14px;
  color: var(--text-muted);
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.tier-card li:last-child { border: none; }
.tier-card li svg { flex: none; width: 15px; height: 15px; color: var(--accent); margin-top: 2px; }

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

.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item summary {
  cursor: pointer;
  padding: 22px 0;
  font-weight: 600;
  font-size: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .plus {
  font-family: var(--font-mono);
  font-size: 20px;
  color: var(--accent);
  transition: transform .2s ease;
}
.faq-item[open] summary .plus { transform: rotate(45deg); }
.faq-item p { padding-bottom: 22px; margin: 0; font-size: 14.5px; }

/* ---- Contact page ---- */

.contact-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: start;
}

.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: 40px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-muted);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--text);
  font-family: var(--font);
  font-size: 14.5px;
  transition: border-color .15s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(221, 32, 65, 0.14);
}
.field textarea { resize: vertical; min-height: 120px; }
.field .hint { font-size: 12.5px; color: var(--text-dim); margin-top: 6px; }
.checkbox-field {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 24px;
}
.checkbox-field input { margin-top: 3px; accent-color: var(--accent); }

.form-success {
  display: none;
  text-align: center;
  padding: 40px 10px;
}
.form-success.show { display: block; }
.form-success .icon {
  width: 56px; height: 56px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: rgba(221,32,65,.12);
  color: var(--accent);
  display: grid;
  place-items: center;
}
.form-success .icon svg { width: 26px; height: 26px; }

.form-error {
  display: none;
  align-items: flex-start;
  gap: 12px;
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 10px;
  border: 1px solid rgba(239,68,68,.35);
  background: rgba(239,68,68,.08);
}
.form-error.show { display: flex; }
.form-error svg { flex: none; width: 20px; height: 20px; color: #f87171; margin-top: 1px; }
.form-error p { margin: 0; font-size: 13.5px; color: var(--text-muted); }
.form-error strong { display: block; color: var(--text); font-size: 14.5px; margin-bottom: 2px; }

.contact-info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px;
  margin-bottom: 20px;
}
.contact-info-card .row {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.contact-info-card .row:last-child { border-bottom: none; }
.contact-info-card .row .icon {
  flex: none;
  width: 38px; height: 38px;
  border-radius: 9px;
  background: rgba(221,32,65,.1);
  color: var(--accent);
  display: grid;
  place-items: center;
}
.contact-info-card .row .icon svg { width: 17px; height: 17px; }
.contact-info-card .row:nth-child(2) .icon { background: rgba(59,130,246,.12); color: var(--accent-2); }
.contact-info-card .row:nth-child(3) .icon { background: rgba(242,177,52,.14); color: var(--gold); }
.contact-info-card .row:nth-child(4) .icon { background: rgba(221,32,65,.1); color: var(--accent); }
.contact-info-card .row strong { display: block; font-size: 14px; margin-bottom: 2px; }
#terrain-intervention .row strong { font-size: 16.5px; }
.contact-info-card .row span, .contact-info-card .row a { font-size: 13.5px; color: var(--text-muted); }

.urgent-box {
  border: 1px solid rgba(239,68,68,.35);
  background: rgba(239,68,68,.06);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.urgent-box strong { color: #f87171; display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 15px; }
.urgent-box p { font-size: 13.5px; margin-bottom: 12px; }

/* ---- Blog ---- */

.blog-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color .15s ease, transform .15s ease;
}
.blog-card:hover { border-color: #2c3a50; transform: translateY(-2px); }
.blog-card-media {
  height: 150px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(240px 140px at 20% 0%, rgba(221,32,65,.16), transparent 70%),
    var(--surface-2);
  color: var(--accent);
}
.blog-card-media svg { width: 42px; height: 42px; }
.blog-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.blog-meta {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-dim);
}
.blog-tag {
  padding: 4px 9px;
  border-radius: 5px;
  background: rgba(221,32,65,.12);
  color: var(--accent);
  font-weight: 700;
  letter-spacing: .03em;
}
.blog-card h3 { font-size: 17px; margin: 0; }
.blog-card p.excerpt { font-size: 14px; margin: 0; flex: 1; }
.blog-card .link { margin-top: 4px; }
.blog-card .link svg { width: 14px; height: 14px; flex: none; }

.article-header { max-width: 760px; margin: 0 auto; }
.article-header .blog-meta { justify-content: center; margin-top: 18px; }

.article-wrap {
  max-width: 760px;
  margin: 0 auto;
}
.article-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 32px;
}
.article-back:hover { color: var(--accent); }
.article-back svg { width: 15px; height: 15px; }

.article-body { font-size: 16.5px; line-height: 1.8; color: var(--text-muted); }
.article-body p { margin: 0 0 1.3em; }
.article-body h2 { color: var(--text); font-size: 25px; margin: 2em 0 .6em; }
.article-body h3 { color: var(--text); font-size: 19px; margin: 1.8em 0 .5em; }
.article-body ul, .article-body ol { margin: 0 0 1.3em; padding-left: 1.3em; }
.article-body li { margin-bottom: .5em; }
.article-body strong { color: var(--text); }
.article-body blockquote {
  margin: 2em 0;
  padding: 18px 24px;
  border-left: 3px solid var(--accent);
  background: var(--surface);
  border-radius: 0 10px 10px 0;
  font-style: italic;
  color: var(--text);
}
.article-body blockquote p:last-child { margin-bottom: 0; }

.related-heading { text-align: center; margin-bottom: 40px; }

/* ---- Apparition au défilement (page d'accueil) ---- */

.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.js .reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}
.reveal-group > .reveal:nth-child(2) { transition-delay: .08s; }
.reveal-group > .reveal:nth-child(3) { transition-delay: .16s; }
.reveal-group > .reveal:nth-child(4) { transition-delay: .24s; }
.reveal-group > .reveal:nth-child(5) { transition-delay: .32s; }
.reveal-group > .reveal:nth-child(6) { transition-delay: .4s; }

@media (prefers-reduced-motion: reduce) {
  .hero-text > .eyebrow,
  .hero-text > h1,
  .hero-text > .lead,
  .hero-split > .hero-cta,
  .hero-stats,
  .hero::before,
  .hero-grid {
    animation: none;
  }
  .js .reveal {
    transition: none;
    opacity: 1;
    transform: none;
  }
}

/* ---- Responsive ---- */

@media (max-width: 980px) {
  .grid--4, .steps { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding-top: 39px; }
  .hero-split {
    grid-template-columns: 1fr;
    grid-template-areas: "text" "stats" "cta";
    gap: 32px;
    text-align: center;
  }
  .hero-split > .hero-cta { justify-content: center !important; }
  .hero .lead { margin-left: auto; margin-right: auto; }
  .hero-stats {
    grid-template-columns: repeat(4, 1fr);
    max-width: 420px;
    margin: 0 auto;
    gap: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 18px 4px;
  }
  .hero-stat {
    aspect-ratio: unset;
    background: none;
    border: none;
    border-radius: 0;
    border-right: 1px solid var(--border);
    box-shadow: none;
    padding: 0 4px;
    justify-content: flex-start;
  }
  .hero-stat:last-child { border-right: none; }
  .hero-stat:hover { transform: none; }
  .hero-stat strong { font-size: 21px; height: auto; overflow: visible; margin-bottom: 6px; }
  .hero-stat span { font-size: 10.5px; min-height: 0; line-height: 1.25; }
  .hero h1 .nowrap-desktop { white-space: normal; }
  .service-block { grid-template-columns: 1fr; gap: 28px; }
  .service-block.reverse { direction: ltr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
}

@media (max-width: 1300px) {
  .nav-links, .nav-actions .btn--ghost, .nav-actions .btn--primary { display: none; }
  .nav-toggle { display: flex; }
  .brand-logo { height: 38px; }
}

.mobile-break { display: none; }

@media (max-width: 720px) {
  .grid--4, .grid--3, .grid--2, .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .cta-banner { padding: 40px 24px; }
  .mobile-break { display: inline; }
}

@media (max-width: 480px) {
  .page-hero h1 { font-size: clamp(17px, calc(-6px + 7.2vw), 30px); }
  .hero .lead { font-size: 15px; }
}

@media (max-width: 400px) {
  .brand-logo { height: 32px; }
}

/* ---- Bandeau confidentialite ---- */

.cookie-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(8, 11, 16, 0.72);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 24px;
  animation: fade-up .35s ease both;
}
.cookie-banner {
  width: 100%;
  max-width: 460px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 32px;
  text-align: center;
}
.cookie-banner-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: rgba(221, 32, 65, 0.12);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}
.cookie-banner-icon svg { width: 24px; height: 24px; }
.cookie-banner h3 { font-size: 19px; margin-bottom: 10px; }
.cookie-banner p {
  font-size: 14.5px;
  color: var(--text-muted);
  margin: 0 0 22px;
}
.cookie-banner .btn { width: 100%; }
.cookie-banner-link {
  display: inline-block;
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-dim);
}
.cookie-banner-link:hover { color: var(--text-muted); }

@media (prefers-reduced-motion: reduce) {
  .cookie-overlay { animation: none; }
}
