/* =====================================================================
   Archimède × Virtus Conseil — Datacenters sécurisés
   Design tokens & global styles
   ===================================================================== */

:root {
  /* Palette — souverain / institutionnel */
  --ink: #0A1628;            /* bleu nuit, encre */
  --ink-2: #0E1D33;
  --ink-3: #14253F;
  --line: rgba(255,255,255,0.08);
  --line-strong: rgba(255,255,255,0.18);

  --paper: #F5F2EA;          /* crème éditoriale */
  --paper-2: #EDE8DA;
  --paper-line: rgba(10,22,40,0.10);

  --gold: #C9A961;           /* or fin, sobre */
  --gold-2: #B89446;
  --gold-soft: rgba(201,169,97,0.14);

  --text: #0A1628;
  --text-mute: #4A5568;
  --text-dim: #7A8599;
  --on-ink: #E8E6DF;
  --on-ink-mute: #A8B0BF;
  --on-ink-dim: #6B7689;

  /* Type */
  --serif: "Cormorant Garamond", "EB Garamond", Georgia, serif;
  --sans:  "Inter Tight", "Söhne", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --mono:  "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Spacing scale */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;
  --s-10: 128px;
  --s-11: 160px;

  --container: 1280px;
  --container-narrow: 960px;

  --radius: 2px;
  --radius-lg: 6px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

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

/* ---------- Typography ---------- */
.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--gold-2);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--gold);
}

.display {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.015em;
  line-height: 1.02;
  margin: 0;
  font-size: clamp(48px, 7vw, 104px);
  text-wrap: balance;
}
.display em { font-style: italic; color: var(--gold-2); }
.display .roman { font-style: normal; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}
h2 { font-size: clamp(36px, 4.4vw, 64px); line-height: 1.05; }
h3 { font-size: clamp(22px, 2.2vw, 32px); line-height: 1.15; }
h4 { font-size: 18px; line-height: 1.3; font-family: var(--sans); font-weight: 500; letter-spacing: 0; }

p { margin: 0; text-wrap: pretty; }
.lede {
  font-size: clamp(18px, 1.4vw, 22px);
  line-height: 1.5;
  color: var(--text-mute);
  font-weight: 400;
  max-width: 60ch;
}
.kicker {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  text-transform: uppercase;
}

/* ---------- Layout ---------- */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 48px);
}
.container.narrow { max-width: var(--container-narrow); }

section { padding-block: clamp(80px, 10vw, 140px); }
section.tight { padding-block: clamp(56px, 7vw, 96px); }

.divider {
  height: 1px;
  background: var(--paper-line);
  border: 0;
  margin: 0;
}
.ink .divider { background: var(--line); }

/* ---------- Surfaces ---------- */
.ink {
  background: var(--ink);
  color: var(--on-ink);
}
.ink h1, .ink h2, .ink h3, .ink h4 { color: var(--on-ink); }
.ink .lede { color: var(--on-ink-mute); }
.ink .kicker, .ink .text-dim { color: var(--on-ink-dim); }

.paper-2 { background: var(--paper-2); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.02em;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .25s ease;
  background: transparent;
  color: inherit;
  white-space: nowrap;
}
.btn-primary {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--gold);
}
.btn-primary:hover { background: var(--gold-2); border-color: var(--gold-2); }

.btn-ghost {
  border-color: currentColor;
  opacity: 0.95;
}
.btn-ghost:hover {
  background: currentColor;
  color: var(--ink);
}
.ink .btn-ghost { border-color: var(--line-strong); color: var(--on-ink); }
.ink .btn-ghost:hover { background: var(--on-ink); color: var(--ink); }

.btn-link {
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 13px;
  letter-spacing: 0.02em;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  color: var(--gold-2);
}
.btn-link:hover { color: var(--ink); }
.ink .btn-link { color: var(--gold); }
.ink .btn-link:hover { color: var(--on-ink); }

.btn .arrow {
  display: inline-block;
  transition: transform .25s ease;
}
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: color-mix(in oklab, var(--paper) 86%, transparent);
  border-bottom: 1px solid var(--paper-line);
  transition: background .3s ease, border-color .3s ease, color .3s ease;
}
.site-header.on-ink {
  background: color-mix(in oklab, var(--ink) 78%, transparent);
  border-bottom-color: var(--line);
  color: var(--on-ink);
}
.site-header .row {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 108px;
  flex-wrap: nowrap;
}
.brand-lockup {
  display: flex;
  align-items: center;
  gap: 18px;
  white-space: nowrap;
  flex-shrink: 0;
  height: 56px;
}
.brand-lockup .brand-archimede {
  height: 64px;
  width: auto;
  display: block;
  flex-shrink: 0;
}
.brand-lockup .brand-virtus {
  height: 72px;
  width: auto;
  display: block;
  flex-shrink: 0;
}
.brand-link { display: inline-flex; align-items: center; transition: opacity .2s; }
.brand-link:hover { opacity: 0.78; }
.brand-lockup .x.x-tri {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  background: none;
  -webkit-text-fill-color: initial;
  color: initial;
  filter: none;
  font-size: 0;
  line-height: 0;
}
.x-tri .x-svg {
  width: 44px;
  height: 44px;
  display: block;
  overflow: visible;
}
.x-tri .x-spin {
  transform-origin: 50px 50px;
  animation: x-propeller 9s linear infinite;
  will-change: transform;
}
.x-tri .blade {
  fill: none;
  stroke-width: 16;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.x-tri .blade-blue  { stroke: #002654; }
.x-tri .blade-red   { stroke: #ED2939; }
.x-tri .blade-white { stroke: #e8eaee; }
.on-ink .x-tri .blade-white { stroke: #ffffff; }
.x-tri .x-hub {
  fill: rgba(15, 25, 45, 0.55);
}
.on-ink .x-tri .x-hub {
  fill: rgba(255, 255, 255, 0.85);
}
.x-tri.x-footer .x-svg { width: 44px; height: 44px; }
@keyframes x-propeller {
  to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .x-tri .x-spin { animation: none; }
}
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
/* On light/paper backgrounds the white band would vanish — give it a soft tint */
.brand-lockup .x { --tri-white: #f4f4f4; }
.on-ink .brand-lockup .x { --tri-white: #ffffff; }

/* ---------- Footer brand lockup ---------- */
.footer-lockup {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  max-width: 100%;
  flex-wrap: nowrap;
}
.footer-archimede {
  height: 64px;
  width: auto;
  display: block;
}
/* footer X uses .x-tri propeller (set inline by InsigniaX) */
.footer-virtus {
  height: 76px;
  width: auto;
  display: block;
}

.nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
  align-items: center;
  font-size: 13.5px;
  letter-spacing: 0.01em;
}
.nav a {
  position: relative;
  color: inherit;
  opacity: 0.85;
  transition: opacity .2s;
  white-space: nowrap;
}
.nav a:hover, .nav a.active { opacity: 1; }
.nav a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -22px;
  height: 1px;
  background: var(--gold);
}
.nav-cta {
  margin-left: 8px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--on-ink);
  padding-block: 80px 32px;
}
.site-footer .grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}
@media (max-width: 800px) {
  .site-footer .grid { grid-template-columns: 1fr 1fr; }
}
.site-footer h5 {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--on-ink-dim);
  margin: 0 0 16px;
  font-weight: 500;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 14px; }
.site-footer ul a { color: var(--on-ink-mute); }
.site-footer ul a:hover { color: var(--gold); }
.site-footer .legal {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--on-ink-dim);
  flex-wrap: wrap;
  gap: 16px;
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1s cubic-bezier(.2,.6,.2,1), transform 1s cubic-bezier(.2,.6,.2,1);
}
.reveal.in {
  opacity: 1;
  transform: none;
}
.reveal.delay-1 { transition-delay: .08s; }
.reveal.delay-2 { transition-delay: .16s; }
.reveal.delay-3 { transition-delay: .24s; }
.reveal.delay-4 { transition-delay: .32s; }

/* ---------- Utilities ---------- */
.muted { color: var(--text-mute); }
.dim { color: var(--text-dim); }
.gold { color: var(--gold-2); }
.italic-serif { font-family: var(--serif); font-style: italic; font-weight: 400; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 64px); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.4vw, 32px); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2vw, 28px); }
@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.row { display: flex; align-items: center; gap: 12px; }
.row.wrap { flex-wrap: wrap; }
.spacer { flex: 1; }

/* Section header (label + title + lede) */
.section-head {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(24px, 4vw, 80px);
  align-items: end;
  margin-bottom: clamp(48px, 6vw, 80px);
}
@media (max-width: 800px) {
  .section-head { grid-template-columns: 1fr; align-items: start; }
}
.section-head h2 { max-width: 16ch; }
.section-head .right { display: grid; gap: 20px; }

/* Index tag like 01 / 02 */
.index-tag {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--gold-2);
  display: inline-block;
}
.ink .index-tag { color: var(--gold); }

/* Datacenter SVG illustration container */
.viz {
  position: relative;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0));
  border-radius: var(--radius-lg);
  overflow: hidden;
}

/* tags */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--paper-line);
  border-radius: 100px;
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--text-mute);
}
.ink .tag { border-color: var(--line-strong); color: var(--on-ink-mute); }
.tag-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}
