:root {
  --bg:       #060e1c;
  --bg2:      #091223;
  --panel:    #0d1828;
  --panel2:   #111f35;
  --line:     #1e3050;
  --line2:    #253a5e;
  --text:     #e8f0ff;
  --muted:    #7a97c0;
  --accent:   #3b82f6;
  --accent2:  #60a5fa;
  --teal:     #2dd4bf;
  --teal2:    #5eead4;
  --green:    #22c55e;
  --amber:    #f59e0b;
  --red:      #ef4444;
  --max:      1160px;
  --r:        18px;
  --font-display: 'Space Grotesk', 'DM Sans', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --font-mono: 'DM Mono', monospace;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex; flex-direction: column;
}
a { color: inherit; text-decoration: none; }
main { flex: 1; }
code { font-family: var(--font-mono); }

/* ── HEADER ── */
header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(6,14,28,.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.topbar {
  max-width: var(--max); margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  min-height: 72px; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand a { display: flex; align-items: center; gap: 12px; }
.brand-logo {
  width: 40px; height: 40px; border-radius: 12px;
  background: linear-gradient(135deg,#1e40af,#1e3a8a);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; box-shadow: 0 8px 20px rgba(0,0,0,.4);
}
/* Quand le logo est une image SVG (qui a deja son propre fond arrondi),
   on retire le gradient et on laisse l'image remplir le bloc. */
.brand-logo-img {
  background: none; box-shadow: 0 8px 20px rgba(0,0,0,.35); overflow: hidden;
}
.brand-logo-img img { width: 100%; height: 100%; display: block; border-radius: 12px; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 18px; letter-spacing: .5px; }
.brand-tag { font-size: 12px; color: var(--muted); }
nav { display: flex; align-items: center; gap: 24px; }
nav a { font-size: 14px; color: var(--muted); transition: color .15s; }
nav a:hover { color: var(--text); }
nav a.active { color: var(--text); }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 22px; border-radius: 12px; font-weight: 600;
  font-size: 14px; transition: all .18s; cursor: pointer; border: none;
  font-family: var(--font-body);
}
.btn-primary {
  background: linear-gradient(180deg, #4b8df8, #2563eb);
  color: #fff; box-shadow: 0 8px 24px rgba(37,99,235,.35);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(37,99,235,.4); }
.btn-ghost {
  border: 1px solid var(--line2); color: var(--text);
  background: rgba(255,255,255,.03);
}
.btn-ghost:hover { background: rgba(255,255,255,.07); }
.btn-secondary {
  background: linear-gradient(180deg, #2dd4bf, #0d9488);
  color: #04201c; box-shadow: 0 8px 24px rgba(20,184,166,.35);
}
.btn-secondary:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(20,184,166,.4); }

/* ── HERO ── */
.hero {
  max-width: var(--max); margin: 0 auto; padding: 90px 24px 60px;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center;
}
.hero.center {
  grid-template-columns: 1fr; text-align: center; padding: 110px 24px 80px;
}
.hero.center .hero-sub { max-width: 720px; margin-left: auto; margin-right: auto; }
.hero.center .hero-ctas { justify-content: center; }
.hero.center .hero-chips { justify-content: center; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  background: rgba(34,197,94,.08); border: 1px solid rgba(34,197,94,.22);
  color: #86efac; font-size: 13px; margin-bottom: 22px;
  font-family: var(--font-mono); letter-spacing: .2px;
}
.pill::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 0 4px rgba(34,197,94,.2);
}
.pill.blue {
  background: rgba(59,130,246,.08); border-color: rgba(59,130,246,.22); color: #93c5fd;
}
.pill.blue::before { background: var(--accent2); box-shadow: 0 0 0 4px rgba(59,130,246,.2); }
.pill.teal {
  background: rgba(45,212,191,.08); border-color: rgba(45,212,191,.22); color: var(--teal2);
}
.pill.teal::before { background: var(--teal); box-shadow: 0 0 0 4px rgba(45,212,191,.2); }

h1 {
  font-family: var(--font-display);
  font-size: 50px; line-height: 1.04;
  letter-spacing: -1.5px; margin-bottom: 22px; font-weight: 700;
}
h1 span { color: var(--accent2); }
.hero-sub {
  font-size: 18px; color: var(--muted); max-width: 560px;
  line-height: 1.65; margin-bottom: 30px;
}
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 34px; }
.hero-chips { display: flex; gap: 10px; flex-wrap: wrap; }
.chip {
  padding: 6px 14px; border-radius: 999px;
  background: var(--panel); border: 1px solid var(--line);
  font-size: 13px; color: var(--muted);
}

/* ── HERO PANEL : "console de pilotage SI" (signature) ── */
.hero-panel {
  background: linear-gradient(180deg, var(--panel), var(--panel2));
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 22px;
  box-shadow: 0 30px 60px rgba(0,0,0,.45);
}
.hero-panel-head {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 14px; margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.hero-panel-title {
  font-family: var(--font-mono); font-size: 12px; color: var(--muted);
  text-transform: uppercase; letter-spacing: 1.5px;
}
.hero-panel-dot {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 11px; color: #86efac;
}
.hero-panel-dot::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 0 3px rgba(34,197,94,.2);
}
.hero-panel-row {
  display: flex; align-items: center; gap: 12px; padding: 11px 12px;
  border-radius: 10px; margin: 5px 0;
  border: 1px solid transparent; transition: all .2s;
}
.hero-panel-row:hover { border-color: var(--line2); background: rgba(255,255,255,.02); }
.hero-panel-row .hp-ico {
  width: 34px; height: 34px; border-radius: 9px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 17px;
  background: rgba(59,130,246,.12); border: 1px solid rgba(59,130,246,.22);
}
.hero-panel-row .hp-ico.teal { background: rgba(45,212,191,.12); border-color: rgba(45,212,191,.22); }
.hero-panel-row .hp-ico.amber { background: rgba(245,158,11,.12); border-color: rgba(245,158,11,.22); }
.hero-panel-row .hp-ico.green { background: rgba(34,197,94,.12); border-color: rgba(34,197,94,.22); }
.hero-panel-row .hp-body { flex: 1; min-width: 0; }
.hero-panel-row .hp-name { font-size: 14px; font-weight: 600; color: var(--text); }
.hero-panel-row .hp-meta { font-family: var(--font-mono); font-size: 11.5px; color: var(--muted); }
.hero-panel-row .hp-state {
  font-family: var(--font-mono); font-size: 11px; color: var(--teal2);
  white-space: nowrap;
}

/* ── SECTIONS ── */
section {
  padding: 84px 0;
  border-top: 1px solid rgba(255,255,255,.05);
}
section:nth-of-type(even) { background: var(--bg2); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.section-label {
  display: inline-block; padding: 6px 14px; border-radius: 999px;
  background: rgba(96,165,250,.08); border: 1px solid rgba(96,165,250,.18);
  color: var(--accent2); font-size: 12px; font-weight: 500; margin-bottom: 16px;
  font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 1.4px;
}
h2 {
  font-family: var(--font-display);
  font-size: 38px; letter-spacing: -1px; line-height: 1.12;
  margin-bottom: 16px; max-width: 760px; font-weight: 700;
}
h2 + .lead {
  font-size: 17px; color: var(--muted); max-width: 700px;
  margin-bottom: 48px;
}

/* features / cards grid */
.grid {
  display: grid; gap: 18px;
  grid-template-columns: repeat(3, 1fr);
}
.grid.two { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r); padding: 28px;
  transition: all .2s;
}
.card:hover {
  border-color: var(--line2);
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(0,0,0,.3);
}
.card-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: rgba(59,130,246,.12); border: 1px solid rgba(59,130,246,.22);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 18px;
}
.card-icon.green { background: rgba(34,197,94,.12); border-color: rgba(34,197,94,.22); }
.card-icon.amber { background: rgba(245,158,11,.12); border-color: rgba(245,158,11,.22); }
.card-icon.teal { background: rgba(45,212,191,.12); border-color: rgba(45,212,191,.22); }
.card h3 { font-family: var(--font-display); font-size: 18px; margin-bottom: 10px; letter-spacing: -.3px; font-weight: 600; }
.card p { font-size: 14.5px; color: var(--muted); }

/* ── SERVICE PILLARS (accueil) ── */
.pillars {
  display: grid; gap: 18px;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 24px;
}
.pillar {
  background: linear-gradient(180deg, var(--panel), var(--panel2));
  border: 1px solid var(--line);
  border-radius: var(--r); padding: 30px 28px;
  transition: all .22s; display: flex; flex-direction: column;
}
.pillar:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 20px 44px rgba(59,130,246,.12);
}
.pillar-ico {
  width: 50px; height: 50px; border-radius: 13px;
  background: linear-gradient(135deg,#1e40af,#1e3a8a);
  display: flex; align-items: center; justify-content: center;
  font-size: 25px; margin-bottom: 20px; box-shadow: 0 10px 24px rgba(0,0,0,.35);
}
.pillar.teal .pillar-ico { background: linear-gradient(135deg,#0d9488,#0f766e); }
.pillar.amber .pillar-ico { background: linear-gradient(135deg,#b45309,#92400e); }
.pillar h3 { font-family: var(--font-display); font-size: 19px; margin-bottom: 10px; letter-spacing: -.3px; font-weight: 600; }
.pillar p { font-size: 14.5px; color: var(--muted); margin-bottom: 18px; flex: 1; }
.pillar-link {
  font-size: 13.5px; color: var(--accent2); font-weight: 600;
  display: inline-flex; align-items: center; gap: 6px; transition: gap .18s;
}
.pillar:hover .pillar-link { gap: 10px; }
.pillar.teal .pillar-link { color: var(--teal2); }

/* ── APPROACH (méthode = vraie séquence, donc numérotée) ── */
.steps { display: grid; gap: 16px; grid-template-columns: repeat(4, 1fr); margin-top: 24px; }
.step {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 14px; padding: 26px 22px; position: relative;
}
.step-num {
  font-family: var(--font-mono); font-size: 13px; color: var(--accent2);
  letter-spacing: 1px; margin-bottom: 14px; display: block;
}
.step h3 { font-family: var(--font-display); font-size: 16px; margin-bottom: 8px; font-weight: 600; }
.step p { font-size: 13.5px; color: var(--muted); }

/* ── PRODUCT CARDS (outils) ── */
.product-grid {
  display: grid; gap: 24px;
  grid-template-columns: repeat(2, 1fr);
  margin-top: 24px;
}
.product-card {
  background: linear-gradient(180deg, var(--panel), var(--panel2));
  border: 1px solid var(--line);
  border-radius: var(--r); padding: 36px 32px;
  transition: all .25s; display: flex; flex-direction: column;
}
.product-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 24px 48px rgba(59,130,246,.15);
}
.product-card .product-icon {
  width: 60px; height: 60px; border-radius: 16px;
  background: linear-gradient(135deg,#1e40af,#1e3a8a);
  display: flex; align-items: center; justify-content: center;
  font-size: 30px; margin-bottom: 24px; box-shadow: 0 12px 28px rgba(0,0,0,.4);
}
.product-card.audit .product-icon { background: linear-gradient(135deg,#0d9488,#0f766e); }
.product-card h3 { font-family: var(--font-display); font-size: 24px; letter-spacing: -.5px; margin-bottom: 12px; font-weight: 600; }
.product-card .product-tag {
  font-family: var(--font-mono); font-size: 12px; color: var(--accent2); margin-bottom: 18px;
  text-transform: uppercase; letter-spacing: 1.4px; font-weight: 500;
}
.product-card.audit .product-tag { color: var(--teal2); }
.product-card p { font-size: 15.5px; color: var(--muted); margin-bottom: 24px; flex: 1; }
.product-card .product-features { list-style: none; margin-bottom: 28px; }
.product-card .product-features li {
  font-size: 14px; color: var(--muted); padding: 6px 0;
  display: flex; align-items: center; gap: 10px;
}
.product-card .product-features li::before { content: "✓"; color: var(--green); font-weight: 700; }
.product-card .product-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* mode rows */
.mode-row {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 14px; padding: 22px 28px; margin-bottom: 12px;
  display: grid; grid-template-columns: 220px 1fr; gap: 32px; align-items: center;
}
.mode-row .mode-name { font-family: var(--font-mono); font-size: 15px; color: var(--accent2); }
.mode-row .mode-desc { font-size: 14.5px; color: var(--muted); }
.mode-row .mode-desc strong { color: var(--text); }

/* CTA band */
.cta-band {
  max-width: var(--max); margin: 0 auto; padding: 0 24px;
}
.cta-inner {
  background: linear-gradient(135deg, rgba(59,130,246,.12), rgba(45,212,191,.08));
  border: 1px solid var(--line2);
  border-radius: var(--r); padding: 48px 40px; text-align: center;
}
.cta-inner h2 { margin: 0 auto 14px; }
.cta-inner p { color: var(--muted); max-width: 560px; margin: 0 auto 26px; font-size: 16px; }

/* contact */
.contact-grid { display: grid; gap: 24px; grid-template-columns: 1fr 1fr; margin-top: 32px; }
.contact-card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--r); padding: 32px;
}
.contact-card h3 { font-family: var(--font-display); font-size: 20px; margin-bottom: 12px; font-weight: 600; }
.contact-card p { color: var(--muted); margin-bottom: 18px; font-size: 15px; }
.contact-info { font-size: 14px; color: var(--muted); }
.contact-info div { margin-top: 8px; }
.contact-info strong { color: var(--text); }

/* faq */
.faq-item {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 14px; padding: 18px 24px; margin-bottom: 10px;
  cursor: pointer; transition: all .18s;
}
.faq-item:hover { border-color: var(--line2); }
.faq-item summary {
  font-weight: 600; font-size: 15.5px; list-style: none;
  display: flex; justify-content: space-between; align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 24px; color: var(--muted); }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { color: var(--muted); margin-top: 14px; font-size: 14.5px; }

/* page intro (secondary pages) */
.page-intro { max-width: var(--max); margin: 0 auto; padding: 70px 24px 10px; }
.page-intro h1 { font-size: 44px; }
.page-intro .hero-sub { margin-bottom: 0; }

/* ── PROSE / contenu pages de service ── */
.prose { max-width: 760px; }
.prose p { font-size: 16px; color: #c4d3ec; margin-bottom: 18px; line-height: 1.7; }
.prose h3 {
  font-family: var(--font-display); font-size: 22px; font-weight: 600;
  margin: 40px 0 14px; letter-spacing: -.3px; color: var(--text);
}
.prose h4 {
  font-family: var(--font-display); font-size: 17px; font-weight: 600;
  margin: 26px 0 10px; color: var(--text);
}
.prose ul.check { list-style: none; margin: 0 0 22px; }
.prose ul.check li {
  font-size: 15.5px; color: #c4d3ec; padding: 7px 0 7px 30px; position: relative;
}
.prose ul.check li::before {
  content: "✓"; position: absolute; left: 0; top: 7px;
  color: var(--green); font-weight: 700;
}
.prose ul.plain { margin: 0 0 22px 22px; }
.prose ul.plain li { font-size: 15.5px; color: #c4d3ec; padding: 5px 0; }
.prose strong { color: var(--text); }
.prose a { color: var(--accent2); text-decoration: underline; }

.info-box {
  background: rgba(59,130,246,.07); border: 1px solid rgba(59,130,246,.2);
  border-radius: 14px; padding: 22px 26px; margin: 28px 0;
}
.info-box.teal { background: rgba(45,212,191,.07); border-color: rgba(45,212,191,.2); }
.info-box h4 { margin-top: 0; }
.info-box p:last-child { margin-bottom: 0; }

.layout-2col {
  display: grid; grid-template-columns: 1fr 300px; gap: 48px; align-items: start;
}
.toc {
  position: sticky; top: 96px;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 14px; padding: 22px;
}
.toc-title {
  font-family: var(--font-mono); font-size: 11px; text-transform: uppercase;
  letter-spacing: 1.4px; color: var(--muted); margin-bottom: 14px;
}
.toc ul { list-style: none; }
.toc li { margin: 8px 0; }
.toc a { font-size: 14px; color: var(--muted); transition: color .15s; }
.toc a:hover { color: var(--accent2); }
.toc .toc-cta { margin-top: 18px; }

@media (max-width: 900px) {
  .layout-2col { grid-template-columns: 1fr; gap: 24px; }
  .toc { position: static; }
}

/* footer */
footer {
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 36px 24px; text-align: center;
  color: var(--muted); font-size: 14px;
}
footer .footer-links { margin-top: 10px; }
footer .footer-links a { margin: 0 12px; color: var(--muted); }
footer .footer-links a:hover { color: var(--text); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  h1 { font-size: 36px; }
  h2 { font-size: 28px; }
  .hero { grid-template-columns: 1fr; padding: 50px 24px 40px; }
  .grid, .grid.two, .product-grid, .pillars, .steps { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .mode-row { grid-template-columns: 1fr; gap: 8px; }
  nav { gap: 14px; }
  nav a:not(.btn) { display: none; }
  .topbar .brand-tag { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
