/*
Theme Name: NVSD Homelab
Theme URI: https://nvsd.ch/
Author: NVSD
Description: Thème éditorial sombre pour documenter Docker, le VPS et l'IA locale.
Version: 2.1.2
Text Domain: nvsd-homelab
*/

:root {
  --nvsd-blue: #0066cc;
  --nvsd-blue-deep: #003b73;
  --nvsd-blue-light: #4da3ff;
  --nvsd-bg: #020617;
  --nvsd-panel: rgba(2, 6, 23, .76);
  --nvsd-panel-soft: rgba(15, 23, 42, .78);
  --nvsd-text: #e2e8f0;
  --nvsd-muted: #94a3b8;
  --nvsd-line: rgba(255, 255, 255, .10);
  --nvsd-radius: 1.5rem;
  --nvsd-width: 1490px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--nvsd-text);
  background:
    radial-gradient(circle at 50% 0%, rgba(0, 102, 204, .24), transparent 34rem),
    linear-gradient(180deg, #020617 0%, #0f172a 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.screen-reader-text:focus { width: auto; height: auto; padding: .75rem 1rem; margin: .5rem; clip: auto; background: white; color: #111827; z-index: 10000; }
.container { width: min(calc(100% - 2rem), var(--nvsd-width)); margin-inline: auto; }

.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--nvsd-line); background: rgba(2, 6, 23, .88); backdrop-filter: blur(18px); }
.nav-wrap { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { display: flex; align-items: center; gap: .85rem; min-width: max-content; }
.brand img { width: auto; height: 46px; }
.brand-text { display: grid; line-height: 1.1; }
.brand-text strong { color: white; font-size: 1rem; letter-spacing: .03em; }
.brand-text span { color: var(--nvsd-muted); font-size: .78rem; }
.menu-toggle { display: none; border: 1px solid var(--nvsd-line); border-radius: .75rem; background: var(--nvsd-panel-soft); color: white; padding: .65rem .8rem; font: inherit; }
.nav-menu, .nav-menu ul { list-style: none; margin: 0; padding: 0; }
.nav-menu { display: flex; align-items: center; gap: 1.35rem; }
.nav-menu a { color: #cbd5e1; font-size: .94rem; transition: color .2s ease; }
.nav-menu a:hover, .nav-menu .current-menu-item > a { color: var(--nvsd-blue-light); }

.hero { padding: clamp(4rem, 9vw, 8rem) 0 5rem; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: clamp(2rem, 6vw, 5rem); }
.eyebrow { color: #7dd3fc; font-size: .78rem; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; }
.hero h1 { margin: .9rem 0 1.1rem; max-width: 13ch; color: white; font-size: clamp(2.8rem, 7vw, 5.6rem); line-height: .98; letter-spacing: -.055em; }
.hero-copy { max-width: 62ch; color: #cbd5e1; font-size: clamp(1.05rem, 2vw, 1.25rem); }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .7rem 1.15rem; border: 1px solid rgba(77, 163, 255, .35); border-radius: .8rem; background: rgba(0, 102, 204, .16); color: #dbeafe; font-weight: 700; transition: transform .2s ease, background .2s ease; }
.button.primary { border-color: transparent; background: #38bdf8; color: #020617; }
.button:hover { transform: translateY(-2px); background: rgba(0, 102, 204, .28); }
.button.primary:hover { background: #7dd3fc; }
.hero-card { position: relative; padding: 1rem; border: 1px solid rgba(77, 163, 255, .24); border-radius: 2rem; background: var(--nvsd-panel); box-shadow: 0 30px 80px rgba(0, 59, 115, .28); }
.hero-card img { display: block; width: 100%; border-radius: 1.25rem; }
.hero-card::after { content: "LOCAL → VPS"; position: absolute; right: 1.5rem; bottom: 1.5rem; padding: .5rem .75rem; border: 1px solid rgba(125, 211, 252, .3); border-radius: 999px; background: rgba(2, 6, 23, .86); color: #bae6fd; font-size: .68rem; letter-spacing: .18em; }

.section { padding: 4.5rem 0; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 1.5rem; margin-bottom: 1.5rem; }
.section-heading h2 { margin: .35rem 0 0; color: white; font-size: clamp(1.8rem, 4vw, 2.7rem); line-height: 1.1; }
.section-heading p { max-width: 52ch; margin: 0; color: var(--nvsd-muted); }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.card { overflow: hidden; border: 1px solid var(--nvsd-line); border-radius: var(--nvsd-radius); background: var(--nvsd-panel); transition: border-color .2s ease, transform .2s ease; }
.card:hover { transform: translateY(-4px); border-color: rgba(77, 163, 255, .38); }
.card-media { aspect-ratio: 16 / 9; overflow: hidden; background: #0f172a; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .card-media img { transform: scale(1.035); }
.card-body { padding: 1.3rem; }
.meta { display: flex; flex-wrap: wrap; gap: .45rem .75rem; color: var(--nvsd-muted); font-size: .79rem; }
.tag { color: #7dd3fc; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.card h3 { margin: .55rem 0 .6rem; color: white; font-size: 1.25rem; line-height: 1.3; }
.card p { margin: 0; color: #aebbd0; }
.empty-state { grid-column: 1 / -1; padding: 2rem; border: 1px dashed rgba(77, 163, 255, .28); border-radius: var(--nvsd-radius); color: var(--nvsd-muted); text-align: center; }

.topics { display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem; }
.topic { min-height: 120px; display: flex; flex-direction: column; justify-content: end; padding: 1.1rem; border: 1px solid var(--nvsd-line); border-radius: 1.15rem; background: linear-gradient(145deg, rgba(0, 102, 204, .13), rgba(2, 6, 23, .8)); }
.topic strong { color: white; font-size: 1.05rem; }
.topic span { margin-top: .2rem; color: var(--nvsd-muted); font-size: .82rem; }

.content-layout { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 2rem; padding: 4rem 0; }
.article, .sidebar-panel { border: 1px solid var(--nvsd-line); border-radius: var(--nvsd-radius); background: var(--nvsd-panel); }
.article { overflow: hidden; }
.article-header, .article-content { padding: clamp(1.4rem, 4vw, 3rem); }
.article-header { border-bottom: 1px solid var(--nvsd-line); }
.article-header h1 { margin: .65rem 0; color: white; font-size: clamp(2rem, 5vw, 3.7rem); line-height: 1.05; letter-spacing: -.035em; }
.article-content { color: #cbd5e1; font-size: 1.04rem; }
.article-content h2, .article-content h3 { color: white; line-height: 1.2; }
.article-content h2 { margin-top: 2.3rem; }
.article-content a { color: #7dd3fc; text-decoration: underline; text-underline-offset: .2em; }
.article-content pre { overflow-x: auto; padding: 1rem; border: 1px solid var(--nvsd-line); border-radius: 1rem; background: #020617; color: #bae6fd; }
.article-content code { font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace; }
.article-content :not(pre) > code { padding: .12rem .35rem; border-radius: .35rem; background: #0f172a; }
.article-content blockquote { margin-left: 0; padding: .3rem 0 .3rem 1.2rem; border-left: 3px solid #38bdf8; color: #dbeafe; }
.sidebar-panel { height: fit-content; padding: 1.25rem; }
.sidebar-panel h2 { margin-top: 0; color: white; font-size: 1.05rem; }
.sidebar-panel ul { padding-left: 1.1rem; color: #cbd5e1; }
.pagination { margin-top: 2rem; }

.site-footer { margin-top: 3rem; border-top: 1px solid var(--nvsd-line); background: rgba(2, 6, 23, .65); }
.footer-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 2rem; padding: 2.5rem 0; }
.footer-grid p { max-width: 55ch; color: var(--nvsd-muted); }
.footer-bottom { padding: 1rem 0; border-top: 1px solid var(--nvsd-line); color: #64748b; font-size: .85rem; }

@media (max-width: 900px) {
  .hero-grid, .content-layout, .footer-grid { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .topics { grid-template-columns: repeat(2, 1fr); }
  .menu-toggle { display: inline-flex; }
  .nav-menu { display: none; position: absolute; top: 68px; left: 1rem; right: 1rem; flex-direction: column; align-items: stretch; padding: 1rem; border: 1px solid var(--nvsd-line); border-radius: 1rem; background: #020617; }
  .nav-menu.is-open { display: flex; }
}
@media (max-width: 620px) {
  .grid, .topics { grid-template-columns: 1fr; }
  .brand-text { display: none; }
  .hero { padding-top: 3rem; }
  .section-heading { align-items: start; flex-direction: column; }
}

/* Accueil V2 — fidèle à la direction visuelle du site de référence */
.hero-v2 { min-height: 690px; display:flex; align-items:center; background: radial-gradient(circle at 74% 45%,rgba(0,102,204,.22),transparent 28rem); }
.hero-v2 h1 { max-width: 12ch; font-size:clamp(3rem,6.3vw,5.4rem); }
.hero-v2 h1 span { color:#47b8f2; }
.hero-chips { display:flex; gap:1.5rem; margin-top:1.5rem; color:#8191ab; font-size:.8rem; }
.architecture { min-height:360px; display:flex; align-items:center; justify-content:center; }
.arch-node { width:150px; padding:1.3rem; border:1px solid #1e4e79; border-radius:1.2rem; text-align:center; background:linear-gradient(145deg,#0b1c35,#050a18); box-shadow:0 15px 50px rgba(0,0,0,.35); }
.arch-node.accent { box-shadow:0 0 45px rgba(32,154,255,.2); }
.arch-node b { display:block; color:#fff; letter-spacing:.15em; }.arch-node small { display:block;color:#8291aa;margin-top:.5rem; }
.arch-link { flex:1; min-width:120px; display:flex; align-items:center; flex-direction:column; color:#54c6ff; font-size:.67rem; text-transform:uppercase; letter-spacing:.12em; }.arch-link i { width:100%; border-top:1px solid #2675ac; }.arch-link span{padding:.7rem 0;}
.tech-strip { border-block:1px solid var(--nvsd-line); background:rgba(1,5,16,.72); }.tech-strip .container { min-height:74px; display:flex; align-items:center; justify-content:space-between; gap:1rem; color:#73829a; font-size:.78rem; font-weight:700; text-transform:uppercase; letter-spacing:.08em; }
.split-heading,.structure-grid,.ai-grid { display:grid; grid-template-columns:1fr 1fr; gap:clamp(2rem,8vw,7rem); align-items:center; }.split-heading h2,.structure h2,.ai-section h2 { margin:.6rem 0 1.2rem;color:#fff;font-size:clamp(2.2rem,4.5vw,4rem);line-height:1.02;letter-spacing:-.04em; }.split-heading p,.structure p,.ai-section p{color:var(--nvsd-muted);font-size:1.05rem}.stats{display:flex;gap:2.4rem;margin-top:2rem}.stats span{color:#7d8ba1;font-size:.75rem;text-transform:uppercase}.stats b{display:block;color:#fff;font-size:1.8rem}.guides{background:rgba(2,6,19,.48)}
.guide-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem}.guide-card{min-height:285px;padding:1.6rem;border:1px solid var(--nvsd-line);border-radius:1rem;background:linear-gradient(145deg,rgba(10,28,54,.85),rgba(3,8,21,.9));transition:.2s}.guide-card:hover{transform:translateY(-4px);border-color:#245f92}.guide-number{display:inline-grid;place-items:center;width:42px;height:42px;margin-bottom:2.1rem;border:1px solid #24577c;border-radius:.7rem;color:#5bc8ff;background:#071629;font-size:.75rem}.guide-card h3{margin:.6rem 0;color:white;font-size:1.25rem}.guide-card p{color:#8c9bb1}.text-link{display:inline-block;margin-top:1rem;color:#52c5ff;font-size:.85rem;font-weight:700}.muted-link{color:#66758c}
.structure{background:linear-gradient(120deg,rgba(4,12,28,.6),rgba(5,31,61,.32))}.tree{padding:2rem;border:1px solid #173a5d;border-radius:1rem;background:#020714;box-shadow:0 25px 70px rgba(0,0,0,.3);color:#8ea0b9;line-height:1.8}.tree span{color:#56c9ff}.duo-grid{display:grid;grid-template-columns:1fr 1fr;gap:1rem}.duo-grid article{padding:2rem;border:1px solid var(--nvsd-line);border-radius:1.2rem;background:#050b1a}.duo-grid h3{color:white;font-size:1.5rem}.duo-grid p,.duo-grid li{color:#8f9db2}.pill{display:inline-block;padding:.3rem .6rem;border-radius:999px;background:#07365d;color:#67ceff;font-size:.68rem;font-weight:800;letter-spacing:.15em}.pill.hot{background:#152650;color:#9dbeff}
.project-grid{display:grid;grid-template-columns:1fr 1fr;gap:1rem}.project-card{min-height:300px;padding:2rem;display:flex;flex-direction:column;justify-content:end;border:1px solid #1b466e;border-radius:1.2rem;background:radial-gradient(circle at 80% 20%,rgba(23,127,211,.25),transparent 45%),#061225}.project-card.villa{background:radial-gradient(circle at 80% 20%,rgba(139,104,48,.22),transparent 45%),#11100d}.project-card span,.project-card p{color:#8d9cb3}.project-card h3{margin:.4rem 0;color:white;font-size:2rem}.project-card b{color:#52c5ff;margin-top:.8rem}
.ai-section{overflow:hidden}.ai-orbit{position:relative;min-height:390px;display:grid;place-items:center}.ai-core{position:relative;z-index:2;width:120px;height:120px;display:grid;place-items:center;border:1px solid #55c8ff;border-radius:50%;background:#07182b;color:white;font-size:2rem;box-shadow:0 0 60px rgba(60,190,255,.25)}.ai-core small{display:block;font-size:.55rem;letter-spacing:.2em;color:#5ccaff}.orbit{position:absolute;border:1px solid rgba(78,176,236,.22);border-radius:50%}.o1{width:250px;height:250px}.o2{width:380px;height:380px}.sat{position:absolute;padding:.45rem .7rem;border:1px solid #1b466e;border-radius:.5rem;background:#061225;color:#8ccff2;font-size:.7rem}.s1{top:55px}.s2{right:10px}.s3{bottom:55px;left:55px}.cta{padding:5rem 0;background:linear-gradient(110deg,#024e91,#087fc5)}.cta .container{display:flex;align-items:end;justify-content:space-between;gap:2rem}.cta h2{margin:.6rem 0;color:#fff;font-size:clamp(2.5rem,5vw,4.5rem);line-height:.98}.cta p{color:#cbeafe}.cta-button{background:#fff;color:#04325a;border:0}
@media(max-width:900px){.split-heading,.structure-grid,.ai-grid{grid-template-columns:1fr}.guide-grid{grid-template-columns:repeat(2,1fr)}.architecture{min-height:250px}.tech-strip .container{flex-wrap:wrap;justify-content:center;padding:1.2rem}.cta .container{align-items:start;flex-direction:column}}
@media(max-width:620px){.hero-v2{min-height:auto}.architecture{display:none}.hero-chips,.stats{flex-direction:column;gap:.5rem}.guide-grid,.duo-grid,.project-grid{grid-template-columns:1fr}.cta{padding:3.5rem 0}}

/* ==========================================================
   NVSD Homelab 2.1 — Alignement visuel avec le builder validé
   ========================================================== */

:root {
  --nvsd-builder-blue: #2386ff;
  --nvsd-builder-cyan: #43b9ff;
  --nvsd-builder-bg: #031126;
  --nvsd-builder-bg-deep: #020817;
  --nvsd-builder-panel: #0a213e;
  --nvsd-builder-line: rgba(55, 139, 224, .45);
}

.container {
  width: min(calc(100% - 80px), var(--nvsd-width));
}

/* Header */
.site-header {
  background: rgba(2, 8, 23, .96);
  border-bottom-color: rgba(71, 112, 160, .22);
  backdrop-filter: blur(18px);
}
.nav-wrap {
  min-height: 88px;
  gap: 2rem;
}
.brand-builder {
  gap: 1rem;
}
.brand-mark {
  width: 47px !important;
  height: 47px !important;
}
.brand-builder-copy {
  display: grid;
  line-height: 1;
}
.brand-builder-copy strong {
  color: #f8fbff;
  font-size: 1.62rem;
  font-weight: 800;
  letter-spacing: .34em;
  padding-left: .34em;
}
.brand-builder-copy small {
  margin-top: .45rem;
  color: #46b7ff;
  font-size: .55rem;
  font-weight: 800;
  letter-spacing: .42em;
  padding-left: .42em;
}
.nav-menu-builder {
  gap: 1.75rem;
}
.nav-menu-builder a {
  position: relative;
  padding: 2rem 0 1.8rem;
  color: #c0c9d8;
  font-size: .89rem;
}
.nav-menu-builder a:hover {
  color: #fff;
}
.nav-menu-builder a.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: #2b8dff;
  box-shadow: 0 0 12px rgba(43, 141, 255, .95);
}
.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 2rem;
  min-height: 45px;
  padding: 0 1.15rem;
  border-radius: .6rem;
  background: #1479f4;
  color: #fff;
  font-size: .88rem;
  font-weight: 800;
  box-shadow: 0 8px 24px rgba(14, 99, 222, .2);
}
.header-cta:hover { background: #2588ff; }

/* Hero — builder */
.hero-v3 {
  min-height: 730px;
  padding: 88px 0 34px;
  display: block;
  background-color: #06152d;
  background-image:
    radial-gradient(circle at 66% 50%, rgba(24, 106, 226, .12), transparent 31rem),
    linear-gradient(rgba(57, 118, 191, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(57, 118, 191, .045) 1px, transparent 1px);
  background-size: auto, 44px 44px, 44px 44px;
}
.hero-shell { position: relative; }
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: .72rem;
  min-height: 39px;
  padding: 0 .9rem;
  border: 1px solid #1676da;
  border-radius: 999px;
  background: rgba(4, 27, 55, .58);
  color: #aab9cd;
  font-size: .67rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.hero-kicker > span { color: #41b9ff; font-size: .9rem; }
.hero-kicker i { color: #1d86ff; font-style: normal; }
.hero-grid-v3 {
  grid-template-columns: minmax(0, 620px) minmax(720px, 1fr);
  align-items: center;
  gap: clamp(2rem, 4.5vw, 5rem);
  margin-top: 33px;
}
.hero-copy-column { min-width: 0; }
.hero-v3 h1 {
  margin: 0 0 1.55rem;
  max-width: none;
  color: #f4f7ff;
  font-size: clamp(3.5rem, 4.15vw, 4.25rem);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -.045em;
}
.hero-v3 .hero-line { display: block; white-space: nowrap; }
.hero-v3 .hero-accent { color: var(--nvsd-builder-blue); }
.hero-v3 .hero-copy {
  max-width: 600px;
  margin: 2rem 0 0;
  color: #aebcd1;
  font-size: 1.03rem;
  line-height: 1.85;
}
.hero-actions { margin-top: 1.65rem; }
.builder-primary,
.builder-secondary {
  min-height: 56px;
  padding-inline: 1.35rem;
  border-radius: .58rem;
  font-size: .92rem;
}
.builder-primary {
  gap: 2rem;
  background: #1479f4 !important;
  color: #fff !important;
}
.builder-primary:hover { background: #2588ff !important; }
.builder-secondary {
  background: rgba(5, 21, 44, .72);
  color: #dce6f4;
  border-color: rgba(65, 135, 211, .55);
}
.hero-proof {
  gap: 1.65rem;
  margin-top: 2.05rem;
  color: #8394ac;
  font-size: .73rem;
}
.hero-proof span::first-letter { color: #36b7ff; }

/* Architecture Local -> VPS */
.architecture-v3 {
  position: relative;
  min-height: 430px;
  display: grid;
  grid-template-columns: 340px 100px 380px;
  align-items: center;
  justify-content: end;
  gap: 0;
}
.architecture-v3::before {
  content: "";
  position: absolute;
  inset: 12% 0;
  background: #006cff;
  opacity: .08;
  filter: blur(100px);
  pointer-events: none;
}
.infra-panel {
  position: relative;
  z-index: 2;
  min-height: 262px;
  padding: 18px;
  border: 1px solid rgba(64, 144, 226, .63);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(12, 38, 70, .95), rgba(5, 20, 42, .98));
  box-shadow: 0 24px 70px rgba(0, 0, 0, .22);
}
.vps-panel { min-height: 316px; }
.infra-panel-head {
  display: grid;
  grid-template-columns: 36px auto 1fr;
  align-items: center;
  gap: .55rem;
}
.infra-panel-head strong {
  color: #f5f8ff;
  font-size: .78rem;
  letter-spacing: .02em;
}
.infra-panel-head small {
  justify-self: end;
  color: #7f91ad;
  font-size: .48rem;
  font-weight: 800;
  letter-spacing: .18em;
}
.infra-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #126bd2;
  color: #aee4ff;
  font-size: .9rem;
}
.infra-rule {
  height: 1px;
  margin: 14px 0 18px;
  background: rgba(71, 131, 195, .38);
}
.infra-panel h3 {
  margin: 0 0 13px;
  color: #f7f9ff;
  font-size: 1.5rem;
  line-height: 1;
}
.infra-service,
.infra-service-grid .infra-service {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: 0 .9rem;
  border: 1px solid rgba(55, 123, 195, .52);
  border-radius: 8px;
  background: rgba(4, 20, 42, .72);
  color: #e0e8f5;
  font-size: .77rem;
  font-weight: 700;
}
.infra-service + .infra-service { margin-top: 10px; }
.infra-service-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 10px 0;
}
.infra-service-grid .infra-service { margin: 0; }
.status-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #2da8ff;
  box-shadow: 0 0 10px rgba(45, 168, 255, .9);
}
.status-dot.green {
  background: #53eb78;
  box-shadow: 0 0 10px rgba(83, 235, 120, .95);
}
.muted-service { color: #8798b1; }
.infra-bridge {
  position: relative;
  z-index: 3;
  min-height: 132px;
  display: grid;
  grid-template-rows: 1fr 62px auto 1fr;
  justify-items: center;
  align-items: center;
}
.bridge-line {
  width: 100%;
  border-top: 2px dashed #168cff;
}
.bridge-core {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 1px solid #2095ff;
  border-radius: 50%;
  background: #073467;
  box-shadow: 0 0 30px rgba(21, 134, 255, .24);
}
.bridge-core i {
  width: 24px;
  height: 24px;
  border: 2px solid #39adff;
  border-radius: 50%;
  box-shadow: inset 0 0 0 5px #073467, inset 0 0 0 7px #39adff;
}
.infra-bridge small {
  margin-top: -3px;
  color: #a1b3cc;
  font-size: .5rem;
  letter-spacing: .18em;
}

/* IA — builder */
.ai-builder {
  padding: 50px 0 72px;
  border-top: 1px solid rgba(55, 120, 185, .33);
  border-bottom: 1px solid rgba(55, 120, 185, .33);
  background: #0a2140;
}
.ai-builder-grid {
  display: grid;
  grid-template-columns: 110px minmax(420px, 1.05fr) minmax(360px, .95fr) auto;
  align-items: center;
  gap: 36px;
}
.ai-builder-icon {
  width: 90px;
  height: 90px;
  display: grid;
  place-items: center;
  border: 1px solid #1788f6;
  border-radius: 25px;
  background: #0d3b76;
  color: #60c5ff;
  font-size: 2.25rem;
  box-shadow: 0 20px 55px rgba(0, 0, 0, .18);
}
.ai-builder-title .eyebrow { margin-bottom: 1rem; }
.ai-builder-title h2 {
  margin: 0;
  color: #f5f7fb;
  font-size: clamp(2rem, 2.2vw, 2.35rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -.035em;
}
.ai-builder-title h2 span { color: #2386ff; }
.ai-builder-copy {
  margin: 0;
  color: #a6b6cc;
  font-size: .94rem;
  line-height: 1.8;
}
.ai-builder-button {
  min-width: 224px;
  min-height: 56px;
  justify-content: space-between;
  gap: 1rem;
  padding-inline: 1.35rem;
  border-color: rgba(92, 151, 218, .58);
  border-radius: .55rem;
  background: rgba(4, 16, 34, .62);
  color: #dce6f4;
  white-space: nowrap;
}

/* CTA — builder */
.start-section {
  padding: 80px 0;
  background: #020a18;
}
.start-card {
  min-height: 222px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  padding: 50px 60px;
  border-radius: 20px;
  background: linear-gradient(108deg, #1677f4 0%, #1350ba 100%);
  box-shadow: 0 30px 70px rgba(0, 31, 84, .18);
}
.start-card .eyebrow { color: #66c6ff; }
.start-card h2 {
  margin: 1rem 0 .2rem;
  color: #fff;
  font-size: clamp(2.1rem, 2.8vw, 2.55rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -.035em;
}
.start-card p {
  margin: 0;
  color: #d6e5ff;
  font-size: .96rem;
}
.start-button {
  min-width: 290px;
  min-height: 55px;
  justify-content: space-between;
  gap: 1rem;
  padding-inline: 1.35rem;
  border: 0;
  border-radius: .55rem;
  background: #fff;
  color: #0b56bb;
  white-space: nowrap;
}
.start-button:hover { background: #eef6ff; }

/* Footer — builder */
.site-footer {
  margin-top: 0;
  border-top: 1px solid rgba(39, 83, 132, .55);
  background: #020817;
}
.footer-builder {
  min-height: 156px;
  display: grid;
  grid-template-columns: 250px minmax(340px, 1fr) auto;
  align-items: center;
  gap: 40px;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
}
.footer-brand img { width: 48px; height: 48px; }
.footer-brand span { display: grid; line-height: 1; }
.footer-brand strong {
  color: #f3f6fb;
  font-size: 1.55rem;
  letter-spacing: .34em;
  padding-left: .34em;
}
.footer-brand small {
  margin-top: .4rem;
  color: #3bacff;
  font-size: .52rem;
  font-weight: 800;
  letter-spacing: .42em;
  padding-left: .42em;
}
.footer-description {
  max-width: 450px;
  margin: 0;
  color: #8292aa;
  font-size: .82rem;
}
.footer-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1.6rem;
  color: #8797af;
  font-size: .75rem;
  white-space: nowrap;
}
.footer-nav a:hover { color: #bcd9f5; }
.footer-bottom {
  padding: 1.35rem 0 1.55rem;
  border-top: 1px solid rgba(36, 73, 114, .6);
  color: #71829b;
  font-size: .68rem;
}

/* Responsive builder */
@media (max-width: 1320px) {
  .nav-menu-builder { gap: 1.15rem; }
  .nav-menu-builder a { font-size: .82rem; }
  .architecture-v3 { grid-template-columns: 300px 80px 335px; }
  .hero-grid-v3 { grid-template-columns: minmax(0, 560px) minmax(650px, 1fr); gap: 2.5rem; }
  .ai-builder-grid { grid-template-columns: 90px 1fr 1fr; }
  .ai-builder-button { grid-column: 3; justify-self: start; }
}

@media (min-width: 1101px) {
  .architecture-v3 {
    transform: translateY(-36px);
  }
}

@media (max-width: 1100px) {
  .header-cta { display: none; }
  .nav-menu-builder { gap: .9rem; }
  .hero-grid-v3 { grid-template-columns: 1fr; }
  .architecture-v3 { justify-content: center; }
  .hero-v3 { padding-top: 64px; }
  .footer-builder { grid-template-columns: 1fr 1fr; padding: 2.5rem 0; }
  .footer-nav { grid-column: 1 / -1; justify-content: flex-start; flex-wrap: wrap; }
}

@media (max-width: 900px) {
  .container { width: min(calc(100% - 40px), var(--nvsd-width)); }
  .nav-wrap { min-height: 76px; }
  .brand-mark { width: 42px !important; height: 42px !important; }
  .brand-builder-copy strong { font-size: 1.25rem; }
  .menu-toggle { display: inline-flex; }
  .nav-menu-builder {
    display: none;
    position: absolute;
    top: 68px;
    left: 1rem;
    right: 1rem;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    border: 1px solid var(--nvsd-line);
    border-radius: 1rem;
    background: #020617;
  }
  .nav-menu-builder.is-open { display: flex; }
  .nav-menu-builder a { padding: .65rem .4rem; }
  .nav-menu-builder a.is-active::after { display: none; }
  .hero-v3 { min-height: auto; }
  .hero-v3 .hero-line { white-space: normal; }
  .architecture-v3 { grid-template-columns: 1fr; gap: 1rem; min-height: auto; margin-top: 2rem; }
  .infra-bridge { min-height: 92px; grid-template-rows: 1fr 52px auto 1fr; }
  .bridge-line { width: 2px; height: 100%; border-top: 0; border-left: 2px dashed #168cff; }
  .infra-panel { width: min(100%, 520px); justify-self: center; }
  .ai-builder-grid { grid-template-columns: 90px 1fr; }
  .ai-builder-copy { grid-column: 2; }
  .ai-builder-button { grid-column: 2; }
  .start-card { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 620px) {
  .brand-builder-copy { display: none; }
  .hero-v3 { padding: 48px 0 30px; }
  .hero-kicker { gap: .4rem; font-size: .55rem; padding-inline: .7rem; }
  .hero-v3 h1 { font-size: clamp(2.65rem, 13vw, 3.6rem); }
  .hero-v3 .hero-copy { font-size: .96rem; line-height: 1.7; }
  .hero-actions { flex-direction: column; }
  .builder-primary, .builder-secondary { width: 100%; }
  .hero-proof { flex-direction: column; gap: .55rem; }
  .architecture-v3 { display: grid; }
  .ai-builder-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .ai-builder-icon { width: 74px; height: 74px; border-radius: 20px; }
  .ai-builder-copy, .ai-builder-button { grid-column: auto; }
  .ai-builder-button { width: 100%; }
  .start-section { padding: 48px 0; }
  .start-card { padding: 34px 26px; border-radius: 16px; }
  .start-button { width: 100%; min-width: 0; }
  .footer-builder { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-nav { grid-column: auto; gap: .9rem 1.3rem; }
}
