/* Mon IA Privée — identité propre (bleu, plus de présence, pas un clone SATI) */
:root {
  --bg: #e9eef5;
  --bg-deep: #d9e2ef;
  --surface: #f7f9fc;
  --ink: #0b1220;
  --muted: #4a5568;
  --blue: #1d4ed8;
  --blue-deep: #1e3a8a;
  --blue-soft: rgba(29, 78, 216, 0.12);
  --blue-glow: rgba(59, 130, 246, 0.22);
  --line: #c5d0e0;
  --line-soft: #dbe3ef;
  --ok: #0ea5e9;
  --radius: 14px;
  --font-display: "Outfit", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 1.05rem;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 500px at 0% -10%, var(--blue-glow), transparent 60%),
    radial-gradient(700px 420px at 100% 15%, rgba(30, 58, 138, 0.12), transparent 55%),
    radial-gradient(600px 400px at 50% 100%, rgba(14, 165, 233, 0.1), transparent 50%),
    linear-gradient(180deg, #f3f6fb 0%, var(--bg) 40%, var(--bg-deep) 100%);
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 0.16em; }
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.86em;
  background: #e2eaf5;
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

.wrap { width: min(var(--max), calc(100% - 2rem)); margin-inline: auto; }
.wrap.narrow { width: min(680px, calc(100% - 2rem)); }

.eyebrow {
  margin: 0 0 0.55rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
}

.section-head { margin-bottom: 2rem; }
.section-head h2,
.foyer-intro h2,
.limites-box h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.7rem, 3.4vw, 2.35rem);
  letter-spacing: -0.035em;
  line-height: 1.15;
  margin: 0 0 0.6rem;
  max-width: 22ch;
}
.section-lead {
  margin: 0;
  color: var(--muted);
  max-width: 38rem;
}
.section-head--row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(243, 246, 251, 0.82);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line-soft);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4.1rem;
  gap: 1rem;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
  letter-spacing: -0.02em;
  text-decoration: none;
}
.logo:hover { color: var(--blue-deep); text-decoration: none; }
.logo-mark {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.nav { display: flex; gap: 1.25rem; align-items: center; }
.nav a {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
}
.nav a:hover { color: var(--ink); }
.nav-cta {
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
  background: var(--blue-soft);
  color: var(--blue-deep) !important;
}
.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
}
.nav-toggle span {
  width: 16px;
  height: 1.5px;
  background: var(--ink);
  display: block;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  cursor: pointer;
  font: inherit;
  font-weight: 650;
  font-size: 0.95rem;
  border-radius: 10px;
  padding: 0.85rem 1.3rem;
  text-decoration: none;
  transition: transform 0.15s, background 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 8px 24px rgba(29, 78, 216, 0.28);
}
.btn-primary:hover { background: var(--blue-deep); color: #fff; }
.btn-ghost {
  background: rgba(255, 255, 255, 0.55);
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--blue); color: var(--blue-deep); }

/* Hero */
.hero {
  padding: 3.25rem 0 4rem;
  min-height: calc(100svh - 4.1rem);
  display: grid;
  align-items: center;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: center;
}
.hero-brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 7.5vw, 4.4rem);
  line-height: 0.92;
  letter-spacing: -0.04em;
  margin: 0 0 1rem;
  background: linear-gradient(120deg, var(--ink) 30%, var(--blue) 120%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: rise 0.7s ease both;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 650;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin: 0 0 0.9rem;
  max-width: 16ch;
  animation: rise 0.7s ease 0.08s both;
}
.hero-lead {
  margin: 0 0 1.6rem;
  color: var(--muted);
  max-width: 34rem;
  font-size: 1.08rem;
  animation: rise 0.7s ease 0.14s both;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  animation: rise 0.7s ease 0.2s both;
}

.hero-panel {
  background: linear-gradient(160deg, #ffffff 0%, #eef3fb 100%);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1.35rem 1.4rem;
  box-shadow: 0 18px 50px rgba(15, 35, 80, 0.1);
  animation: rise 0.8s ease 0.18s both;
}
.panel-row {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line-soft);
}
.panel-row:last-of-type { border-bottom: 0; }
.panel-kicker {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.25rem;
}
.panel-row p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.panel-meter {
  margin-top: 1rem;
  padding: 0.85rem 0.95rem;
  border-radius: 12px;
  background: var(--ink);
  color: #dbe7ff;
}
.panel-meter span { font-size: 0.85rem; }
.meter-bar {
  height: 6px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--blue), #38bdf8);
  margin-bottom: 0.55rem;
  animation: pulseBar 2.4s ease-in-out infinite;
}

/* Pourquoi */
.pourquoi { padding: 4.5rem 0; }
.why-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 0.85rem;
}
.why-block {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.4rem;
}
.why-block--wide {
  grid-column: 1 / -1;
  background: linear-gradient(120deg, var(--blue-deep), var(--blue));
  color: #fff;
  border: 0;
  padding: 1.75rem 1.8rem;
}
.why-block h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 0 0 0.4rem;
  letter-spacing: -0.02em;
}
.why-block p { margin: 0; color: var(--muted); font-size: 0.98rem; }
.why-block--wide h3 { color: #fff; }
.why-block--wide p {
  color: #ffffff;
  max-width: 52rem;
  opacity: 0.95;
}

/* Foyer */
.foyer {
  padding: 4.5rem 0;
  background: rgba(255, 255, 255, 0.45);
  border-block: 1px solid var(--line-soft);
}
.foyer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}
.foyer-intro p:not(.eyebrow) {
  color: var(--muted);
  max-width: 34rem;
}
.foyer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}
.foyer-list li {
  display: grid;
  gap: 0.15rem;
  padding: 1rem 1.15rem;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.foyer-list strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}
.foyer-list span { color: var(--muted); font-size: 0.92rem; }

/* Installer */
.lancer { padding: 4.5rem 0; }
.lancer-note {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--blue-deep);
  background: var(--blue-soft);
  padding: 0.55rem 0.85rem;
  border-radius: 8px;
}
.installer-shell {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 1rem;
  background: #0b1220;
  color: #e8eef8;
  border-radius: 20px;
  padding: 1.25rem;
  box-shadow: 0 24px 60px rgba(11, 18, 32, 0.28);
}
.installer-rail {
  display: grid;
  gap: 1rem;
  padding: 0.5rem;
}
.rail-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: start;
  padding: 0.85rem 0.9rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.rail-num {
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--blue);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
}
.rail-title {
  margin: 0 0 0.55rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #9fb0cb;
}
.usage-help {
  margin: 0.75rem 0 0;
  font-size: 0.88rem;
  line-height: 1.45;
  color: #b7c7dd;
  max-width: 36rem;
}
.chips { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.chip {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: #d5e0f0;
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  font: inherit;
  font-size: 0.88rem;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.chip:hover { border-color: rgba(147, 197, 253, 0.5); }
.chip.active {
  background: #fff;
  color: var(--ink);
  border-color: #fff;
  font-weight: 600;
}

.installer-side {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 1.15rem;
  display: grid;
  gap: 0.85rem;
  align-content: start;
}
.installer-side label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: #9fb0cb;
}
.installer-port-note {
  margin: 0;
  font-size: 0.88rem;
  color: #9fb0cb;
}
.installer-port-note strong { color: #e8eef8; }
.installer-side input {
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 0;
  border-radius: 8px;
  padding: 0.7rem 0.8rem;
  width: 100%;
}
.installer-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.installer-side .btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
}
.gen-status {
  margin: 0;
  font-size: 0.88rem;
  color: #9fb0cb;
}
.os-guides { margin-top: 1.25rem; }
.docker-explainer {
  display: none;
}
.os-guide a {
  color: var(--blue);
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}
.term-link {
  display: inline;
  padding: 0;
  margin: 0;
  border: 0;
  background: none;
  font: inherit;
  font-weight: 650;
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 0.15em;
  cursor: pointer;
}
.term-link:hover { color: var(--blue-deep); }

.info-modal {
  border: 0;
  border-radius: 16px;
  padding: 0;
  width: min(32rem, calc(100vw - 1.5rem));
  background: #fff;
  color: var(--ink);
  box-shadow: 0 24px 60px rgba(11, 18, 32, 0.28);
}
.info-modal::backdrop {
  background: rgba(11, 18, 32, 0.45);
}
.info-modal-inner {
  padding: 1.35rem 1.4rem 1.4rem;
  display: grid;
  gap: 0.85rem;
}
.info-modal-inner header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.info-modal-inner h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 0;
  letter-spacing: -0.02em;
}
.info-modal-inner p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}
.modal-close {
  border: 0;
  background: var(--bg);
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 8px;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  color: var(--ink);
}
.modal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}
.modal-links a {
  font-weight: 650;
  color: var(--blue);
}
.info-modal .btn-primary {
  justify-self: start;
  width: auto;
}
.os-guide {
  display: none;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.35rem 1.45rem 1.2rem;
}
.os-guide.active { display: block; animation: rise 0.35s ease both; }
.os-guide h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 0 0 0.85rem;
  letter-spacing: -0.02em;
}
.os-guide ol {
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.65rem;
  color: var(--muted);
}
.os-guide li { padding-left: 0.15rem; }
.os-guide pre {
  margin: 0.55rem 0 0;
  padding: 0.75rem 0.9rem;
  background: #0b1220;
  color: #d7e3f5;
  border-radius: 8px;
  font-size: 0.85rem;
  overflow-x: auto;
  white-space: pre-wrap;
}
.os-tip {
  margin: 1rem 0 0;
  font-size: 0.9rem;
  color: var(--blue-deep);
  background: var(--blue-soft);
  padding: 0.7rem 0.85rem;
  border-radius: 8px;
}
.preview {
  background: #060a12;
  border-radius: 10px;
  padding: 0.85rem;
  max-height: 220px;
  overflow: auto;
}
.preview pre {
  margin: 0;
  font-size: 0.78rem;
  white-space: pre-wrap;
  color: #b7c7dd;
  font-family: ui-monospace, Menlo, monospace;
}

/* Matériel */
.materiel { padding: 4.5rem 0; }
.gear {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}
.gear-card {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  display: grid;
  gap: 0.35rem;
  min-height: 100%;
}
.gear-card--featured {
  background: linear-gradient(165deg, #eff4ff, #dbe7ff);
  border-color: #93b4f5;
  position: relative;
}
.gear-tag {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
}
.gear-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin: 0;
  letter-spacing: -0.02em;
}
.gear-spec {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--blue-deep);
}
.gear-card p { margin: 0; color: var(--muted); font-size: 0.92rem; }
.gear-examples {
  margin-top: 0.35rem !important;
  font-size: 0.86rem !important;
  line-height: 1.45;
}
.gear-examples strong {
  color: var(--ink);
  font-weight: 650;
}
.gear-price {
  margin-top: 0.65rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
}

/* Limites */
.limites { padding: 2rem 0 4.5rem; }
.limites-box {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 2rem;
  align-items: center;
  padding: 1.75rem 1.9rem;
  border-radius: 20px;
  border: 1px dashed var(--line);
  background: rgba(255, 255, 255, 0.55);
}
.limites-box ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.75rem;
}
.limites-box li {
  color: var(--muted);
  padding-left: 1rem;
  border-left: 3px solid var(--blue);
}

/* FAQ */
.faq { padding: 1rem 0 4.5rem; }
.faq-list details {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.95rem 1.1rem;
  margin-bottom: 0.55rem;
}
.faq summary {
  cursor: pointer;
  font-weight: 650;
  list-style: none;
  font-family: var(--font-display);
  letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq details p {
  margin: 0.65rem 0 0.1rem;
  color: var(--muted);
}

/* Footer */
.site-footer {
  padding: 2.5rem 0 3rem;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.25rem;
}
.site-footer p {
  margin: 0.55rem 0 0;
  color: var(--muted);
  max-width: 28rem;
  font-size: 0.95rem;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  color: var(--muted);
  font-size: 0.9rem;
}
.footer-links a { color: var(--ink); font-weight: 600; }

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
@keyframes pulseBar {
  0%, 100% { width: 72%; opacity: 0.85; }
  50% { width: 92%; opacity: 1; }
}

@media (max-width: 960px) {
  .hero-grid,
  .foyer-grid,
  .installer-shell,
  .limites-box { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .why-block--wide { grid-column: 1 / -1; }
  .gear { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .header-inner { position: relative; }
  .nav {
    display: none;
    position: absolute;
    top: 4.1rem;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #f7f9fc;
    border-bottom: 1px solid var(--line);
    padding: 0.35rem 1rem 1rem;
  }
  .nav.open { display: flex; }
  .nav a {
    padding: 0.8rem 0.2rem;
    border-bottom: 1px solid var(--line-soft);
  }
  .why-grid,
  .gear { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding-top: 2.25rem; }
  .hero-cta { flex-direction: column; }
  .btn { width: 100%; }
}
