:root{
  --bg:#090b10;
  --bg-2:#0f131b;
  --panel:#121824;
  --panel-2:#171f2e;
  --line:rgba(255,255,255,.08);
  --line-2:rgba(124,140,255,.24);
  --text:#eef2ff;
  --muted:#a8b1c4;
  --green:#44d7b6;
  --lime:#d6ff6b;
  --violet:#7c8cff;
  --shadow:0 24px 70px rgba(0,0,0,.35);
  --max:1180px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif;
  color:var(--text);
  background:
    radial-gradient(circle at 8% 8%, rgba(124,140,255,.16), transparent 26%),
    radial-gradient(circle at 92% 14%, rgba(68,215,182,.12), transparent 22%),
    radial-gradient(circle at 50% 100%, rgba(214,255,107,.07), transparent 24%),
    linear-gradient(180deg,#090b10 0%,#0a0d14 100%);
  min-height:100vh;
  overflow-x:hidden;
}

a{color:inherit}
code,pre{font-family:"SFMono-Regular",Consolas,"Liberation Mono",Menlo,monospace}
strong{color:#fff}

.ambient{
  position:fixed;
  border-radius:999px;
  filter:blur(60px);
  opacity:.23;
  pointer-events:none;
  z-index:-2;
}
.ambient-one{width:390px;height:390px;top:4%;left:-120px;background:rgba(124,140,255,.25)}
.ambient-two{width:340px;height:340px;right:-100px;top:38%;background:rgba(68,215,182,.18)}
.noise{
  position:fixed;inset:0;z-index:-1;pointer-events:none;opacity:.07;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.05) 1px, transparent 1px);
  background-size:34px 34px;
  mask-image:radial-gradient(circle at center,black 52%,transparent 100%);
}

.site-header{
  width:min(calc(100% - 32px),var(--max));
  margin:18px auto 0;
  padding:14px 18px;
  border:1px solid var(--line);
  background:rgba(8,11,17,.70);
  backdrop-filter:blur(16px);
  border-radius:999px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  position:sticky;
  top:14px;
  z-index:50;
  box-shadow:0 10px 30px rgba(0,0,0,.18);
}
.brand{display:flex;align-items:center;gap:14px;text-decoration:none;min-width:0}
.brand-mark{
  width:42px;height:42px;border-radius:14px;display:grid;place-items:center;
  background:linear-gradient(135deg,rgba(124,140,255,.30),rgba(68,215,182,.24));
  border:1px solid rgba(255,255,255,.08);font-weight:800;letter-spacing:.04em;
}
.brand-copy{display:flex;flex-direction:column;gap:2px;line-height:1.05}
.brand-copy strong{font-size:.95rem;letter-spacing:.08em}
.brand-copy small{font-size:.76rem;color:var(--muted)}
.main-nav{display:flex;align-items:center;gap:12px;flex-wrap:wrap;justify-content:flex-end}
.main-nav a{
  text-decoration:none;color:#cfd6e6;font-size:.9rem;padding:10px 12px;
  border-radius:999px;border:1px solid transparent;transition:.2s ease;
}
.main-nav a:hover{color:#fff;background:rgba(255,255,255,.04);border-color:var(--line)}
.main-nav .nav-cta{
  background:linear-gradient(135deg,rgba(124,140,255,.18),rgba(68,215,182,.14));
  border-color:rgba(124,140,255,.22);
}

.page-shell{padding:42px 0 24px}
.section-shell{
  width:min(calc(100% - 32px),var(--max));
  margin:0 auto;
  padding:74px 0;
}

.hero{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:30px;
  padding-top:42px;
  min-height:auto;
}

.hero-copy{
  width:100%;
  max-width:980px;
  text-align:center;
  margin:0 auto;
}

.eyebrow{
  margin:0 0 14px;
  color:#c4ccdd;
  text-transform:uppercase;
  letter-spacing:.13em;
  font-size:.78rem;
  font-weight:700;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
}
.eyebrow span{
  width:26px;height:1px;background:linear-gradient(90deg,var(--green),var(--lime));
  box-shadow:0 0 14px rgba(68,215,182,.35);
}
h1,h2,h3,p{margin-top:0}
h1{
  margin-bottom:16px;
  font-size:clamp(3.2rem,7vw,5.6rem);
  line-height:.92;
  letter-spacing:-.06em;
  background:linear-gradient(120deg,#fff 10%,#cbd4ff 45%,#75e0c8 90%);
  -webkit-background-clip:text;background-clip:text;color:transparent;
}
h2{font-size:clamp(2rem,4vw,3.6rem);line-height:1.02;letter-spacing:-.045em;margin-bottom:18px}
h3{font-size:1.15rem}
.lead{
  font-size:1.02rem;
  line-height:1.72;
  color:var(--muted);
  max-width:72ch;
  margin:0 auto;
}
.hero-tags,.skills{display:flex;gap:10px;flex-wrap:wrap;margin-top:22px}
.hero-tags{justify-content:center}
.hero-tags span,.skills span{
  border:1px solid var(--line);
  background:rgba(255,255,255,.035);
  border-radius:999px;
  padding:9px 13px;
  color:#dce2ef;
  font-size:.88rem;
}

.network-stage{
  width:100%;
  min-height:660px;
  position:relative;
  display:grid;
  place-items:center;
  padding:34px;
  border:1px solid var(--line);
  border-radius:34px;
  overflow:hidden;
  background:
    radial-gradient(circle at 50% 48%,rgba(68,215,182,.09),transparent 35%),
    linear-gradient(180deg,rgba(17,23,34,.74),rgba(10,14,22,.46));
  box-shadow:var(--shadow);
}
.network-stage:before{
  content:"";
  position:absolute;
  inset:24px;
  border:1px dashed rgba(255,255,255,.055);
  border-radius:24px;
  pointer-events:none;
}
.network-stage img{
  position:relative;
  z-index:2;
  display:block;
  width:min(100%, 1020px);
  max-width:100%;
  height:auto;
  margin:0 auto;
  filter:drop-shadow(0 18px 35px rgba(0,0,0,.34));
}
.network-glow{
  position:absolute;
  width:420px;
  height:420px;
  border-radius:50%;
  background:radial-gradient(circle,rgba(124,140,255,.14),transparent 66%);
}

.section-heading{max-width:820px;margin-bottom:30px}
.section-heading>p:not(.eyebrow){color:var(--muted);font-size:1.02rem;line-height:1.75}
.metrics-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
.metric-card,.service-card,.router-card,.code-card{
  border:1px solid var(--line);
  border-radius:24px;
  background:linear-gradient(180deg,rgba(18,24,36,.94),rgba(13,18,27,.88));
  box-shadow:0 16px 45px rgba(0,0,0,.18);
}
.metric-card{padding:22px}
.metric-number{
  display:inline-flex;
  margin-bottom:34px;
  color:var(--lime);
  font-weight:800;
  letter-spacing:.06em;
  font-size:.85rem;
}
.metric-card strong{display:block;font-size:1.05rem;margin-bottom:8px}
.metric-card p{margin:0;color:var(--muted);line-height:1.55;font-size:.92rem}

.split-section{display:grid;grid-template-columns:.85fr 1.15fr;gap:44px;align-items:center}
.code-stack{display:grid;gap:16px}
.code-card{overflow:hidden}
.code-topline{
  padding:14px 18px;
  border-bottom:1px solid var(--line);
  display:flex;
  justify-content:space-between;
  gap:16px;
  color:var(--muted);
  font-size:.8rem;
}
.code-topline b{color:var(--green);letter-spacing:.08em}
pre{margin:0;overflow:auto}
pre code{display:block;padding:22px;color:#eaf1ff;font-size:.91rem;line-height:1.75}
.router-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:18px}
.router-card{padding:0;overflow:hidden}
.router-label{
  display:block;padding:14px 18px;border-bottom:1px solid var(--line);
  color:var(--green);font-size:.8rem;font-weight:800;letter-spacing:.08em;
}
.service-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.service-card{padding:24px}
.service-icon{
  display:grid;place-items:center;width:58px;height:58px;border-radius:18px;
  margin-bottom:30px;background:linear-gradient(135deg,rgba(124,140,255,.22),rgba(68,215,182,.15));
  border:1px solid var(--line-2);font-size:.8rem;font-weight:800;color:#fff;
}
.service-card p{color:var(--muted);line-height:1.65;margin-bottom:0}
.service-card code{color:var(--lime)}

.diagnostic-panel{
  border:1px solid rgba(214,255,107,.13);
  border-radius:30px;
  padding:34px;
  background:
    radial-gradient(circle at 90% 10%,rgba(214,255,107,.08),transparent 25%),
    linear-gradient(180deg,rgba(17,23,32,.95),rgba(12,17,24,.95));
}
.diagnostic-panel>div:first-child{max-width:820px}
.diagnostic-panel p:not(.eyebrow){color:var(--muted);line-height:1.75}
.diagnostic-flow{
  margin-top:30px;
  display:grid;
  grid-template-columns:1fr auto 1fr auto 1fr;
  align-items:center;
  gap:14px;
}
.diagnostic-flow>div{
  min-height:126px;
  padding:18px;
  border:1px solid var(--line);
  border-radius:20px;
  background:rgba(255,255,255,.025);
}
.diagnostic-flow span{display:block;color:var(--lime);font-size:.75rem;font-weight:800;margin-bottom:20px}
.diagnostic-flow strong{display:block;margin-bottom:5px}
.diagnostic-flow small{color:var(--muted);line-height:1.4}
.diagnostic-flow>b{color:var(--green);font-size:1.5rem}

.tests-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:12px}
.tests-grid div{
  min-height:94px;
  padding:18px;
  border:1px solid var(--line);
  border-radius:18px;
  background:rgba(255,255,255,.025);
  display:flex;
  gap:10px;
  align-items:flex-start;
  color:#d9e0ee;
  line-height:1.45;
}
.tests-grid span{color:var(--green);font-weight:900}

.skills-section{padding-bottom:82px}
.skills{max-width:980px}
.back-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:38px}
.button{
  display:inline-flex;align-items:center;gap:10px;text-decoration:none;color:var(--text);
  padding:13px 17px;border-radius:15px;border:1px solid var(--line);
  transition:.22s ease;font-weight:650;
}
.button:hover{transform:translateY(-1px);border-color:rgba(255,255,255,.16)}
.button-primary{
  background:linear-gradient(135deg,rgba(124,140,255,.22),rgba(68,215,182,.18));
  border-color:rgba(124,140,255,.22);
}
.button-ghost{background:rgba(255,255,255,.03)}

.site-footer{
  width:min(calc(100% - 32px),var(--max));
  margin:0 auto 24px;
  padding:20px 0;
  border-top:1px solid var(--line);
  display:flex;
  justify-content:space-between;
  gap:18px;
  flex-wrap:wrap;
  color:#808aa0;
  font-size:.78rem;
}

@media (max-width:980px){
  .network-stage{min-height:520px;padding:24px}
  .metrics-grid{grid-template-columns:repeat(2,1fr)}
  .split-section{grid-template-columns:1fr}
  .service-grid{grid-template-columns:1fr}
  .tests-grid{grid-template-columns:repeat(2,1fr)}
}
@media (max-width:720px){
  .site-header{border-radius:24px;align-items:flex-start}
  .brand-copy small{display:none}
  .main-nav{gap:4px}
  .main-nav a{font-size:.78rem;padding:9px 8px}
  .section-shell{padding:54px 0}
  .hero{padding-top:34px}
  h1{font-size:clamp(2.8rem,15vw,4.4rem)}
  .lead{font-size:.98rem}
  .network-stage{min-height:320px;padding:16px}
  .network-stage img{width:100%}
  .metrics-grid,.router-grid,.tests-grid{grid-template-columns:1fr}
  .diagnostic-flow{grid-template-columns:1fr}
  .diagnostic-flow>b{transform:rotate(90deg);justify-self:center}
}

/* Harmonisation des titres et des introductions de section */
h1{
  font-size:clamp(2.4rem,4vw,3.25rem);
  line-height:1.02;
  letter-spacing:-.045em;
  white-space:nowrap;
}

h2{
  font-size:clamp(1.7rem,1.75vw,1.75rem);
  line-height:1.12;
  letter-spacing:-.025em;
  white-space:nowrap;
}

.section-heading,
.diagnostic-panel>div:first-child{max-width:none}

.split-section{grid-template-columns:1fr}

@media (max-width:720px){
  h1{font-size:clamp(2.55rem,14vw,3.45rem);white-space:normal}
  h2{font-size:clamp(1.65rem,7vw,2rem);white-space:normal}
}
