/* ==========================================================================
   AS212348 — Feuille de style
   Palette « salle serveur » : acier de baie, fibre monomode jaune.
   ========================================================================== */

:root {
  /* Couleurs */
  --rack:      #0B0D10;  /* fond : acier de baie */
  --panel:     #12151A;  /* surfaces */
  --panel-2:   #171B21;
  --rail:      #232830;  /* filets, bordures */
  --rail-2:    #313843;
  --fog:       #8D96A3;  /* texte secondaire */
  --paper:     #E8EBEE;  /* texte principal */
  --fiber:     #F6C445;  /* fibre monomode OS2 — accent unique */
  --fiber-ink: #1A1404;  /* texte sur fond fibre */
  --ok:        #5CD69F;  /* état : valide / annoncé */
  --bad:       #F27A62;  /* état : invalide */

  /* Typographie */
  --font-sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Martian Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  /* Mise en page */
  --wrap: 1320px;
  --gutter: clamp(20px, 4vw, 48px);
  --topbar-h: 64px;
  --radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--topbar-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--rack);
  color: var(--paper);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, canvas, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }

::selection { background: var(--fiber); color: var(--fiber-ink); }

:focus-visible {
  outline: 2px solid var(--fiber);
  outline-offset: 3px;
  border-radius: 2px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap;
}

.mono { font-family: var(--font-mono); font-stretch: 87.5%; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: fixed;
  top: 8px; left: 8px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--fiber);
  color: var(--fiber-ink);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform .2s;
}
.skip:focus { transform: none; }

/* ---------- Libellés ---------- */

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-stretch: 87.5%;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--fog);
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--fiber);
  flex: none;
}

.eyebrow-count {
  color: var(--fiber);
}

.live-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ok);
}
.live-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 0 rgba(92, 214, 159, .5);
  animation: live 2.4s ease-out infinite;
}
@keyframes live {
  0%   { box-shadow: 0 0 0 0 rgba(92, 214, 159, .55); }
  70%  { box-shadow: 0 0 0 7px rgba(92, 214, 159, 0); }
  100% { box-shadow: 0 0 0 0 rgba(92, 214, 159, 0); }
}

.h2 {
  font-stretch: 118%;
  font-weight: 700;
  font-size: clamp(2rem, 4.1vw, 3.5rem);
  line-height: 1.04;
  letter-spacing: -.02em;
  text-wrap: balance;
  max-width: 18ch;
}

.section-intro {
  margin-top: 20px;
  max-width: 56ch;
  color: var(--fog);
  font-size: 18px;
}

/* ---------- Boutons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 22px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  font-stretch: 105%;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn::after {
  content: "";
  width: 7px; height: 7px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: rotate(45deg);
  margin-left: 2px;
  transition: transform .2s;
}
.btn:hover::after { transform: translateX(3px) rotate(45deg); }

.btn-primary {
  background: var(--fiber);
  color: var(--fiber-ink);
}
.btn-primary:hover { background: #FFD465; }

.btn-ghost {
  border: 1px solid var(--rail-2);
  color: var(--paper);
}
.btn-ghost:hover { border-color: var(--fog); }

/* ==========================================================================
   Barre supérieure
   ========================================================================== */

.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--topbar-h);
  border-bottom: 1px solid transparent;
  transition: background-color .3s, border-color .3s;
}
.topbar.is-scrolled,
.topbar.is-open {
  background: rgba(11, 13, 16, .86);
  border-bottom-color: var(--rail);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
}

.topbar-inner {
  height: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-stretch: 125%;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -.01em;
}
.brand-mark {
  width: 14px; height: 14px;
  background: var(--fiber);
  clip-path: polygon(0 0, 100% 0, 100% 62%, 62% 100%, 0 100%);
}

.menu {
  display: flex;
  gap: 4px;
  margin-right: auto;
}
.menu a {
  padding: 8px 12px;
  border-radius: var(--radius);
  font-size: 14.5px;
  font-weight: 500;
  color: var(--fog);
  text-decoration: none;
  transition: color .2s;
}
.menu a:hover,
.menu a[aria-current="true"] { color: var(--paper); }

.topbar-tools {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
}

.menu-toggle {
  display: none;
  width: 40px; height: 40px;
  border: 1px solid var(--rail);
  border-radius: var(--radius);
  background: none;
  cursor: pointer;
  position: relative;
}
.menu-toggle-bars,
.menu-toggle-bars::before,
.menu-toggle-bars::after {
  position: absolute;
  left: 11px;
  width: 16px; height: 1.5px;
  background: var(--paper);
  transition: transform .25s, opacity .25s;
}
.menu-toggle-bars { top: 19px; }
.menu-toggle-bars::before,
.menu-toggle-bars::after { content: ""; left: 0; }
.menu-toggle-bars::before { top: -5px; }
.menu-toggle-bars::after  { top: 5px; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars::before { transform: translateY(5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars::after  { transform: translateY(-5px) rotate(-45deg); }

/* ==========================================================================
   Hero — le mur du NOC
   ========================================================================== */

.hero {
  position: relative;
  padding-top: calc(var(--topbar-h) + clamp(32px, 6vw, 72px));
  overflow: hidden;
}

.hero-head {
  position: relative;
  z-index: 2;
}

.asn {
  margin-top: clamp(14px, 2vw, 24px);
  font-stretch: 125%;
  font-weight: 800;
  font-size: clamp(2.6rem, 13.4vw, 12.1rem);
  line-height: .86;
  letter-spacing: -.035em;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.asn-prefix {
  color: var(--fiber);
  margin-right: .04em;
}

.hero-row {
  margin-top: clamp(28px, 3.6vw, 44px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 24px 48px;
}

.lede {
  max-width: 54ch;
  font-size: clamp(17px, 1.45vw, 20px);
  line-height: 1.55;
  color: #C3C9D1;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Carte */
.noc-map {
  position: relative;
  z-index: 1;
  margin: clamp(12px, 2.4vw, 32px) 0 0;
  width: 100%;
  aspect-ratio: 2.55 / 1;
  max-height: 640px;
  min-height: 220px;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 10%, #000 88%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 10%, #000 88%, transparent 100%);
}
.noc-map canvas {
  width: 100%;
  height: 100%;
}

.map-meta {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: 8%;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  max-width: calc(var(--wrap) - 2 * var(--gutter));
  margin-inline: auto;
  font-family: var(--font-mono);
  font-stretch: 87.5%;
  font-size: 10.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #5C6570;
  pointer-events: none;
}
.map-coords { color: var(--fog); }
.map-coords.is-active { color: var(--fiber); }

/* Horloges des PoPs */
.clocks {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border-top: 1px solid var(--rail);
  border-bottom: 1px solid var(--rail);
  margin-bottom: clamp(56px, 8vw, 104px);
}

.clock {
  position: relative;
  padding: 18px 16px 20px;
  border-left: 1px solid var(--rail);
  cursor: default;
  transition: background-color .25s;
  outline: none;
}
.clock:first-child { border-left: 0; padding-left: 0; }
.clock::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: -1px;
  height: 2px;
  background: var(--fiber);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s cubic-bezier(.2, .7, .2, 1);
}
.clock.is-active::before,
.clock:focus-visible::before { transform: scaleX(1); }
.clock:focus-visible { outline: none; background: var(--panel); }

.clock-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.clock-code {
  font-family: var(--font-mono);
  font-stretch: 100%;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .06em;
  color: var(--fiber);
}
.clock-cc {
  font-family: var(--font-mono);
  font-stretch: 87.5%;
  font-size: 10.5px;
  color: #5C6570;
  letter-spacing: .08em;
}
.clock-place {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.3;
  color: var(--paper);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.clock-country { color: var(--fog); }
.clock-country::before { content: "· "; }
.clock-time {
  margin-top: 6px;
  font-family: var(--font-mono);
  font-stretch: 87.5%;
  font-weight: 400;
  font-size: clamp(17px, 1.6vw, 22px);
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
  color: var(--paper);
}
.clock-time .sec { color: #5C6570; }
.clock-offset {
  margin-top: 2px;
  font-family: var(--font-mono);
  font-stretch: 87.5%;
  font-size: 10.5px;
  color: #5C6570;
  letter-spacing: .06em;
}

/* ==========================================================================
   Sections
   ========================================================================== */

.section {
  padding-block: clamp(80px, 10vw, 140px);
  border-top: 1px solid var(--rail);
}

.rail-grid {
  display: grid;
  grid-template-columns: minmax(150px, 2fr) minmax(0, 10fr);
  gap: 24px 40px;
}
.rail .eyebrow { position: sticky; top: calc(var(--topbar-h) + 24px); padding-top: 12px; }

/* ---------- Réseau ---------- */

.network-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px clamp(40px, 6vw, 96px);
  align-items: start;
}
.network-copy p {
  margin-top: 22px;
  max-width: 52ch;
  color: #C3C9D1;
}
.network-copy .h2 + p { margin-top: 32px; }

.spec {
  border: 1px solid var(--rail);
  border-radius: var(--radius);
  background: var(--panel);
}
.spec-title {
  padding: 14px 20px;
  border-bottom: 1px solid var(--rail);
  font-family: var(--font-mono);
  font-stretch: 87.5%;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--fog);
  display: flex;
  justify-content: space-between;
}
.spec-title::after {
  content: "AS212348";
  color: #5C6570;
}
.spec-list { margin: 0; }
.spec-list > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 16px;
  padding: 13px 20px;
  border-top: 1px solid var(--rail);
}
.spec-list > div:first-child { border-top: 0; }
.spec-list dt {
  font-size: 14px;
  color: var(--fog);
}
.spec-list dd {
  margin: 0;
  font-size: 14.5px;
  color: var(--paper);
  text-align: right;
  overflow-wrap: anywhere;
}
.spec-list dd.mono { font-size: 13px; }
.spec-list .pending { color: #5C6570; }
.spec-list .ok { color: var(--ok); }
.spec-list .bad { color: var(--bad); }
.spec-list .muted { color: var(--fog); }

/* ---------- Projets ---------- */

.projects {
  margin-top: clamp(48px, 6vw, 80px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.project {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--rail);
  border-radius: var(--radius);
  background: var(--panel);
  overflow: hidden;
  transition: border-color .3s;
}
.project:hover { border-color: var(--rail-2); }

.project-diagram {
  position: relative;
  aspect-ratio: 16 / 7;
  border-bottom: 1px solid var(--rail);
  background:
    radial-gradient(circle at 1px 1px, #20252D 1px, transparent 1.2px) 0 0 / 14px 14px,
    var(--rack);
}
.project-diagram svg { width: 100%; height: 100%; }

.project-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: clamp(24px, 3vw, 40px);
}
.project-tag {
  font-family: var(--font-mono);
  font-stretch: 87.5%;
  font-size: 11.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--fiber);
}
.project-name {
  margin-top: 14px;
  font-stretch: 125%;
  font-weight: 800;
  font-size: clamp(1.75rem, 3.2vw, 2.75rem);
  line-height: .98;
  letter-spacing: -.025em;
}
.project-text {
  margin-top: 18px;
  color: #C3C9D1;
  max-width: 50ch;
}
.project-points {
  margin-top: 24px;
  border-top: 1px solid var(--rail);
}
.project-points li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--rail);
  font-size: 15px;
}
.project-points li::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--fiber);
  flex: none;
}
.project-actions { margin-top: auto; padding-top: 28px; }
.project-actions:empty { display: none; }

/* Schémas */
.diag-text {
  font-family: var(--font-mono);
  font-stretch: 87.5%;
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  fill: var(--fog);
}
.diag-text-hot { fill: var(--fiber); }
.diag-line { stroke: #2E343D; stroke-width: 1; fill: none; }
.diag-line-hot { stroke: var(--fiber); stroke-opacity: .5; stroke-width: 1; fill: none; }
.diag-node { fill: var(--panel-2); stroke: var(--rail-2); }
.diag-node-hot { fill: var(--fiber); }
.diag-gate { fill: var(--fiber); }
.diag-pkt { fill: var(--paper); }
.diag-pkt-bad { fill: var(--bad); }
.diag-pkt-hot { fill: var(--fiber); }

/* ---------- Routage ---------- */

.routing {
  margin-top: clamp(48px, 6vw, 80px);
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  grid-template-areas:
    "prefixes neighbours"
    "prefixes ix"
    "foot foot";
  gap: 20px;
  align-items: stretch;
}
.panel-prefixes   { grid-area: prefixes; }
.panel-neighbours { grid-area: neighbours; }
.panel-ix         { grid-area: ix; }
.routing-foot     { grid-area: foot; }

.panel {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--rail);
  border-radius: var(--radius);
  background: var(--panel);
  min-width: 0;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--rail);
}
.panel-head h3 {
  font-stretch: 112%;
  font-weight: 650;
  font-size: 16px;
  letter-spacing: -.005em;
}
.panel-count {
  font-size: 12px;
  color: var(--fiber);
}
.panel-body { min-height: 120px; }
.panel-state {
  padding: 24px 20px;
  font-family: var(--font-mono);
  font-stretch: 87.5%;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--fog);
}
.panel-state.is-error { color: var(--bad); }
.panel-state a { color: var(--paper); }

.table-scroll { overflow-x: auto; }
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-stretch: 87.5%;
  font-size: 12.5px;
}
.data-table th {
  padding: 10px 20px;
  text-align: left;
  font-weight: 500;
  font-size: 10.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #5C6570;
  border-bottom: 1px solid var(--rail);
  white-space: nowrap;
}
.data-table td {
  padding: 11px 20px;
  border-bottom: 1px solid var(--rail);
  white-space: nowrap;
  color: var(--paper);
}
.data-table tr:last-child td { border-bottom: 0; }
.data-table tbody tr { transition: background-color .15s; }
.data-table tbody tr:hover { background: var(--panel-2); }
.data-table .num { text-align: right; }
.data-table .dim { color: var(--fog); }
.data-table a { text-decoration: none; }
.data-table a:hover { color: var(--fiber); }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
}
.tag::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.tag-ok { color: var(--ok); }
.tag-bad { color: var(--bad); }
.tag-muted { color: var(--fog); }

.vis {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.vis-bar {
  width: 56px; height: 4px;
  background: var(--rail);
  border-radius: 2px;
  overflow: hidden;
}
.vis-bar > i {
  display: block;
  height: 100%;
  background: var(--fiber);
}

.list-rows li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--rail);
  font-size: 14px;
}
.list-rows li:last-child { border-bottom: 0; }
.list-rows .asn-link {
  font-family: var(--font-mono);
  font-stretch: 87.5%;
  font-size: 12.5px;
  color: var(--fiber);
  text-decoration: none;
}
.list-rows .asn-link:hover { text-decoration: underline; }
.list-rows .name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #C3C9D1;
}
.list-rows .meta {
  font-family: var(--font-mono);
  font-stretch: 87.5%;
  font-size: 11px;
  color: var(--fog);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.list-rows .sub {
  display: block;
  margin-top: 2px;
  font-family: var(--font-mono);
  font-stretch: 87.5%;
  font-size: 11px;
  color: #5C6570;
  overflow: hidden;
  text-overflow: ellipsis;
}

.routing-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
  font-size: 11.5px;
  color: #5C6570;
}
.routing-foot span:empty { display: none; }
.routing-foot a {
  color: var(--fog);
  text-decoration: none;
  border-bottom: 1px solid var(--rail-2);
}
.routing-foot a:hover { color: var(--paper); border-bottom-color: var(--fiber); }
.routing-foot span { margin-right: auto; }

/* ---------- Peering ---------- */

.peering-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.policy-badge {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 22px;
  border: 1px solid var(--fiber);
  border-radius: var(--radius);
  min-width: 180px;
}
.policy-label {
  font-family: var(--font-mono);
  font-stretch: 87.5%;
  font-size: 10.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--fog);
}
.policy-value {
  font-stretch: 125%;
  font-weight: 800;
  font-size: 26px;
  line-height: 1;
  color: var(--fiber);
}

.peering-grid {
  margin-top: clamp(40px, 5vw, 64px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.peering-block {
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid var(--rail);
  border-radius: var(--radius);
  background: var(--panel);
}
.block-title {
  font-family: var(--font-mono);
  font-stretch: 87.5%;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--fog);
}

.checklist { margin-top: 20px; }
.checklist li {
  position: relative;
  padding: 13px 0 13px 30px;
  border-top: 1px solid var(--rail);
  font-size: 15.5px;
  line-height: 1.5;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 2px; top: 19px;
  width: 11px; height: 6px;
  border-left: 2px solid var(--fiber);
  border-bottom: 2px solid var(--fiber);
  transform: rotate(-45deg);
}

.steps {
  margin-top: 20px;
  counter-reset: step;
}
.steps li {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 13px 0 13px 44px;
  border-top: 1px solid var(--rail);
  counter-increment: step;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: 13px;
  width: 26px; height: 26px;
  display: grid;
  place-items: center;
  border: 1px solid var(--rail-2);
  border-radius: 50%;
  font-family: var(--font-mono);
  font-stretch: 87.5%;
  font-size: 11px;
  color: var(--fiber);
}
.steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 13px; top: 40px; bottom: -13px;
  width: 1px;
  background: var(--rail-2);
}
.steps strong { font-weight: 600; font-size: 15.5px; }
.steps span { color: var(--fog); font-size: 14.5px; line-height: 1.5; }

.peering-actions {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

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

.contacts {
  margin-top: clamp(40px, 5vw, 64px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.contact-card {
  display: flex;
  flex-direction: column;
  padding: 28px 24px 24px;
  border: 1px solid var(--rail);
  border-radius: var(--radius);
  background: var(--panel);
}
.contact-card h3 {
  font-stretch: 125%;
  font-weight: 800;
  font-size: 24px;
  letter-spacing: -.01em;
}
.contact-card p {
  margin-top: 10px;
  color: var(--fog);
  font-size: 15px;
  line-height: 1.5;
}
.contact-line {
  margin-top: auto;
  padding-top: 24px;
  font-family: var(--font-mono);
  font-stretch: 87.5%;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.contact-line a {
  color: var(--paper);
  text-decoration: none;
  border-bottom: 1px solid var(--fiber);
  padding-bottom: 2px;
  transition: color .2s;
}
.contact-line a:hover { color: var(--fiber); }
.contact-line .note {
  display: block;
  margin-top: 8px;
  font-size: 11px;
  color: #5C6570;
}

.tools-title { margin-top: clamp(48px, 6vw, 72px); }
.tools {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--rail);
}
.tools li { border-bottom: 1px solid var(--rail); }
.tools a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  height: 100%;
  padding: 18px 20px 18px 0;
  text-decoration: none;
  transition: color .2s;
}
.tools .tool-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15.5px;
}
.tools .tool-name::after {
  content: "↗";
  font-family: var(--font-mono);
  font-size: 12px;
  color: #5C6570;
  transition: color .2s, transform .2s;
}
.tools a:hover .tool-name::after { color: var(--fiber); transform: translate(2px, -2px); }
.tools .tool-desc { font-size: 14px; color: var(--fog); }

/* ---------- Pied de page ---------- */

.footer {
  border-top: 1px solid var(--rail);
  padding-block: 40px 48px;
}
.footer-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: end;
  gap: 24px 48px;
}
.footer-brand { display: flex; flex-direction: column; gap: 8px; }
.footer-asn {
  font-stretch: 125%;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -.02em;
}
.footer-projects {
  font-family: var(--font-mono);
  font-stretch: 87.5%;
  font-size: 10.5px;
  letter-spacing: .1em;
  color: var(--fiber);
}
.footer-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11px;
  color: #5C6570;
}
.footer-top {
  font-size: 11px;
  color: var(--fog);
  text-decoration: none;
}
.footer-top:hover { color: var(--paper); }

/* ---------- Apparition au défilement ---------- */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* Séquence d'ouverture du hero */
.hero-eyebrow, .asn, .hero-row, .noc-map, .clocks {
  animation: rise .9s cubic-bezier(.2, .7, .2, 1) both;
}
.asn      { animation-delay: .08s; }
.hero-row { animation-delay: .2s; }
.noc-map  { animation-name: fade; animation-duration: 1.6s; animation-delay: .3s; }
.clocks   { animation-delay: .45s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes fade { from { opacity: 0; } }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1100px) {
  .menu a { padding-inline: 9px; }
  .topbar-inner { gap: 20px; }
  .network-grid { grid-template-columns: minmax(0, 1fr); }
  .network-copy p { max-width: 64ch; }
  .clocks { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .clock:nth-child(4) { border-left: 0; padding-left: 0; }
  .clock:nth-child(n+4) { border-top: 1px solid var(--rail); }
  .routing {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "prefixes" "neighbours" "ix" "foot";
  }
}

@media (max-width: 900px) {
  :root { --topbar-h: 60px; }
  .menu-toggle { display: inline-block; }
  .menu {
    position: fixed;
    top: var(--topbar-h);
    left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    padding: 8px var(--gutter) 24px;
    background: rgba(11, 13, 16, .97);
    border-bottom: 1px solid var(--rail);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  .menu.is-open { opacity: 1; transform: none; visibility: visible; }
  .menu a {
    padding: 14px 0;
    border-bottom: 1px solid var(--rail);
    font-size: 18px;
    color: var(--paper);
  }
  .rail-grid { grid-template-columns: minmax(0, 1fr); }
  .rail .eyebrow { position: static; padding-top: 0; }
  .hero-row { grid-template-columns: minmax(0, 1fr); }
  .projects { grid-template-columns: minmax(0, 1fr); }
  .peering-grid { grid-template-columns: minmax(0, 1fr); }
  .contacts { grid-template-columns: minmax(0, 1fr); }
  .tools { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-inner { grid-template-columns: minmax(0, 1fr); align-items: start; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .noc-map { aspect-ratio: 1.75 / 1; margin-top: 8px; }
  .map-meta { display: none; }
  .clocks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .clock:nth-child(n) { border-left: 1px solid var(--rail); padding-left: 16px; border-top: 1px solid var(--rail); }
  .clock:nth-child(odd) { border-left: 0; padding-left: 0; }
  .clock:nth-child(-n+2) { border-top: 0; }
  .clock-place { white-space: normal; }
  .clock-country { display: block; }
  .clock-country::before { content: none; }
  .btn { height: 46px; padding: 0 18px; }
  .hero-actions .btn { flex: 1 1 auto; justify-content: center; }
  .tools { grid-template-columns: minmax(0, 1fr); }
  .spec-list > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .spec-list dd { text-align: left; }
  .data-table th, .data-table td { padding-inline: 14px; }
  .list-rows li { padding-inline: 14px; gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
