/* ==========================================================================
   Context Systems — styles
   Design sobre, premium et technique. Typographie et contenu avant tout.
   ========================================================================== */

:root {
  color-scheme: light;

  /* Thème clair — identité par défaut de Context Systems. */
  --bg: #f7f7f5;
  --bg-elevated: #f0f1ef;
  --surface: #ffffff;
  --surface-2: #e9ebe8;
  --border: rgba(23, 25, 28, 0.10);
  --border-strong: rgba(23, 25, 28, 0.18);

  --text: #17191c;
  --text-muted: #5f646b;
  --text-faint: #6f767d;

  --accent: #2f6bd8;
  --accent-soft: rgba(47, 107, 216, 0.10);
  --accent-glow: rgba(47, 107, 216, 0.30);

  --header-bg: rgba(247, 247, 245, 0.80);
  --menu-bg: rgba(247, 247, 245, 0.98);
  --canvas-opacity: 0.35;

  --btn-bg: var(--accent);
  --btn-text: #ffffff;
  --btn-hover-bg: #2453a8;
  --btn-shadow: 0 12px 28px rgba(47, 107, 216, 0.28);

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas,
    "Liberation Mono", monospace;

  --nav-height: 72px;
  --container: 1180px;
  --section-gap: clamp(5rem, 12vw, 10rem);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

[data-theme="dark"] {
  color-scheme: dark;

  --bg: #0a0b0e;
  --bg-elevated: #0e1015;
  --surface: #12141a;
  --surface-2: #161922;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);

  --text: #e8e6e2;
  --text-muted: #9aa0a8;
  --text-faint: #62686f;

  --accent: #5b8def;
  --accent-soft: rgba(91, 141, 239, 0.14);
  --accent-glow: rgba(91, 141, 239, 0.35);

  --header-bg: rgba(10, 11, 14, 0.72);
  --menu-bg: rgba(10, 11, 14, 0.97);
  --canvas-opacity: 0.5;

  --btn-bg: var(--text);
  --btn-text: #0a0b0e;
  --btn-hover-bg: #ffffff;
  --btn-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

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

* {
  margin: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

[id] {
  scroll-margin-top: calc(var(--nav-height) + 0.5rem);
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Transition très légère lors du changement de thème. */
body,
.expertise,
.missions,
.apropos,
.mobile-menu,
.site-footer {
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

img,
svg,
canvas {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  padding: 0;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

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

/* ------------------------------- Utilities ------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: clamp(1.25rem, 4vw, 3rem);
}

.section {
  padding-block: var(--section-gap);
  position: relative;
}

.section+.section {
  border-top: 1px solid var(--border);
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.75rem;
}

.section-title {
  font-size: clamp(1.85rem, 4.5vw, 3.25rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
  max-width: 20ch;
  margin-bottom: 1.5rem;
}

.section-lede {
  color: var(--text-muted);
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  max-width: 56ch;
  margin-bottom: 3.5rem;
}

/* ------------------------------ Reveal motion ---------------------------- */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.js .reveal.in-view {
  opacity: 1;
  transform: none;
}

/* -------------------------------- Header --------------------------------- */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  transition: background-color 0.35s ease, border-color 0.35s ease,
    backdrop-filter 0.35s ease;
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  background-color: var(--header-bg);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom-color: var(--border);
}

.nav-container {
  height: var(--nav-height);
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: clamp(1.25rem, 4vw, 3rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1.5rem);
}

.logo {
  display: inline-flex;
  align-items: center;
  flex: none;
}

.logo-image {
  display: block;
  height: 40px;
  width: auto;
}

.logo-image.logo-dark {
  display: none;
}

[data-theme="dark"] .logo-image.logo-light {
  display: none;
}

[data-theme="dark"] .logo-image.logo-dark {
  display: block;
}

.site-nav .nav-list {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 3vw, 2.25rem);
  list-style: none;
}

.nav-list a {
  position: relative;
  font-size: 0.92rem;
  color: var(--text-muted);
  transition: color 0.25s ease;
}

.nav-list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.nav-list a:hover,
.nav-list a:focus-visible {
  color: var(--text);
}

.nav-list a:hover::after {
  transform: scaleX(1);
}

.nav-list .nav-cta {
  color: var(--text);
  padding: 0.5rem 1.1rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  transition: border-color 0.25s ease, background-color 0.25s ease;
}

.nav-list .nav-cta::after {
  display: none;
}

.nav-list .nav-cta:hover {
  border-color: var(--accent);
  background-color: var(--accent-soft);
}

/* Theme toggle */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 999px;
  border: 1px solid transparent;
  color: var(--text-muted);
  transition: color 0.25s ease, background-color 0.25s ease,
    border-color 0.25s ease;
}

.theme-toggle:hover {
  color: var(--text);
  background-color: var(--accent-soft);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
}

.theme-toggle .icon-moon {
  fill: currentColor;
}

.theme-toggle .icon-sun {
  display: none;
}

[data-theme="dark"] .theme-toggle .icon-sun {
  display: block;
}

[data-theme="dark"] .theme-toggle .icon-moon {
  display: none;
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 0.5rem;
}

.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  transition: transform 0.3s var(--ease), opacity 0.3s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:first-child {
  transform: translateY(4px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--menu-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-menu[hidden] {
  display: none;
}

.mobile-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  text-align: center;
}

.mobile-nav-list a {
  font-size: 1.9rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text);
}

.mobile-nav-list a:hover {
  color: var(--accent);
}

/* --------------------------------- Hero ---------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: var(--canvas-opacity);
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding-block: calc(var(--nav-height) + 2rem) 6rem;
}

.hero-kicker {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 2rem;
}

.hero-title {
  font-size: clamp(2.75rem, 9vw, 7.5rem);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.hero-slogan {
  font-size: clamp(1.4rem, 3.2vw, 2.4rem);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--text-muted);
  max-width: 24ch;
  margin-bottom: 2.25rem;
}

.hero-sub {
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  color: var(--text);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.hero-tags {
  font-family: var(--font-mono);
  font-size: clamp(0.82rem, 1.3vw, 0.95rem);
  color: var(--text-faint);
  letter-spacing: 0.04em;
  margin-bottom: 2.5rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.7rem;
  border-radius: 999px;
  font-size: 0.98rem;
  font-weight: 500;
  transition: transform 0.25s var(--ease), background-color 0.25s ease,
    border-color 0.25s ease, box-shadow 0.25s ease;
}

.btn-primary {
  background: var(--btn-bg);
  color: var(--btn-text);
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: var(--btn-hover-bg);
  box-shadow: var(--btn-shadow);
}

/* Scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 2.25rem;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 56px;
  background: transparent;
  overflow: hidden;
}

.scroll-hint-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 100%;
  background: linear-gradient(to bottom,
      var(--accent),
      transparent);
  animation: scrollLine 2.4s var(--ease) infinite;
}

@keyframes scrollLine {
  0% {
    transform: translateY(-100%);
  }

  55%,
  100% {
    transform: translateY(100%);
  }
}

/* ------------------------------ Philosophie ------------------------------ */
.philosophy-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  margin-bottom: clamp(3rem, 7vw, 5.5rem);
}

.philosophy-intro p {
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  line-height: 1.55;
  letter-spacing: -0.01em;
  color: var(--text-muted);
  max-width: 48ch;
}

.philosophy-intro p+p {
  margin-top: 1.5rem;
  color: var(--text);
}

.philosophy-factors {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-content: flex-start;
}

.philosophy-factors li {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-muted);
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
}

.pull-quote {
  position: relative;
  padding: 0 0 0 clamp(1.5rem, 3vw, 2.5rem);
  border-left: 2px solid var(--accent);
}

.pull-quote p {
  font-size: clamp(1.5rem, 3.4vw, 2.6rem);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.02em;
  max-width: 26ch;
}

/* ------------------------------- Expertise ------------------------------- */
.expertise {
  background: var(--bg-elevated);
}

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.card {
  background: var(--bg-elevated);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  transition: background-color 0.35s ease;
}

.card:hover {
  background: var(--surface);
}

.card-index {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  color: var(--text-faint);
  margin-bottom: 2.25rem;
}

.card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 0.9rem;
}

.card p {
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.6;
}

/* -------------------------------- Proxmox -------------------------------- */
.proxmox-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  margin-bottom: clamp(3rem, 7vw, 5.5rem);
}

.proxmox-copy p {
  font-size: clamp(1.1rem, 1.9vw, 1.4rem);
  color: var(--text-muted);
  max-width: 52ch;
  line-height: 1.6;
}

.proxmox-copy p+p {
  margin-top: 1.25rem;
  color: var(--text);
}

.proxmox-list {
  list-style: none;
  border-top: 1px solid var(--border);
}

.proxmox-list li {
  display: flex;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 1.05rem;
}

.proxmox-list li::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 1rem;
  opacity: 0.8;
}

/* ------------------------------- Expérience ------------------------------ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 6vw, 5rem);
  margin-bottom: clamp(3rem, 6vw, 4.5rem);
  max-width: 820px;
}

.stat-number {
  font-size: clamp(4rem, 11vw, 8.5rem);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--text);
}

.stat-unit {
  font-size: 0.35em;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0;
  margin-left: 0.2em;
}

.stat p {
  margin-top: 1rem;
  color: var(--text-muted);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
}

.experience-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 2.5rem 0;
}

.experience-tags li {
  font-family: var(--font-mono);
  font-size: 0.86rem;
  color: var(--text);
  padding: 0.65rem 1.2rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
}

.experience-note {
  color: var(--text-muted);
  max-width: 56ch;
  font-size: 1.1rem;
}

/* -------------------------------- Missions ------------------------------- */
.missions {
  background: var(--bg-elevated);
}

.missions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.mission {
  background: var(--bg-elevated);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  transition: background-color 0.35s ease;
}

.mission:hover {
  background: var(--surface);
}

.mission h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--accent);
}

.mission p {
  color: var(--text-muted);
  font-size: 0.98rem;
}

/* Grilles : la dernière ligne reste complète plutôt que de laisser une
   cellule vide (le fond de la grille transparaîtrait). */
.expertise-grid>.card:last-child:nth-child(3n + 1),
.missions-grid>.mission:last-child:nth-child(3n + 1) {
  grid-column: 1 / -1;
}

/* En 3 colonnes, une grille dont le nombre de cartes vaut 3n + 2 (ex. 8) :
   la dernière carte s'étale sur les deux dernières colonnes. */
@media (min-width: 901px) {

  .expertise-grid>.card:last-child:nth-child(3n + 2),
  .missions-grid>.mission:last-child:nth-child(3n + 2) {
    grid-column: span 2;
  }
}

/* -------------------------------- Méthode -------------------------------- */
.steps {
  list-style: none;
  counter-reset: step;
  border-top: 1px solid var(--border);
}

.step {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 1.5rem;
  padding: 2.25rem 0;
  border-bottom: 1px solid var(--border);
}

.step-number {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  padding-top: 0.35rem;
}

.step h3 {
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
}

.step p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 52ch;
}

.methode-note {
  margin-top: clamp(2rem, 4vw, 3rem);
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 56ch;
  border-left: 2px solid var(--border-strong);
  padding-left: 1.5rem;
}

/* -------------------------------- À propos ------------------------------- */
.apropos {
  background: var(--bg-elevated);
}

.apropos-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
}

.apropos-copy p {
  color: var(--text-muted);
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  line-height: 1.65;
  max-width: 52ch;
}

.apropos-copy p+p {
  margin-top: 1.25rem;
}

.apropos-copy p:first-child {
  color: var(--text);
}

.apropos-list {
  list-style: none;
  border-top: 1px solid var(--border);
}

.apropos-list li {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 1rem;
}

.apropos-list li::before {
  content: "—";
  color: var(--accent);
  margin-right: 0.75rem;
}

/* -------------------------------- Sites web ------------------------------- */
.websites-copy p {
  color: var(--text-muted);
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  line-height: 1.65;
  max-width: 56ch;
}

.websites-copy p+p {
  margin-top: 1.25rem;
}

.websites-copy p:first-child {
  color: var(--text);
}

.websites-copy strong {
  color: var(--text);
  font-weight: 600;
}

.websites-cta {
  margin-top: 2.5rem;
}

/* -------------------------------- Contact -------------------------------- */
.contact {
  text-align: center;
}

.contact-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact .section-title {
  margin-inline: auto;
}

.contact-lede {
  color: var(--text-muted);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  max-width: 46ch;
  margin-bottom: 2.75rem;
}

.contact-location {
  font-size: 0.92rem;
  color: var(--text-faint);
  max-width: 52ch;
  margin: -1.5rem 0 2.75rem;
}

.contact-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.contact-email {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-strong);
  padding-bottom: 2px;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.contact-email:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* -------------------------------- LinkedIn ------------------------------- */
.linkedin-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.95rem;
  line-height: 1;
  color: var(--text-muted);
  transition: color 0.25s ease;
}

.linkedin-link svg {
  width: 15px;
  height: 15px;
  flex: none;
  fill: currentColor;
  transition: fill 0.25s ease;
}

.linkedin-link:hover {
  color: var(--text);
}

.linkedin-link:hover svg {
  fill: var(--accent);
}

.apropos-copy .linkedin-link {
  margin-top: 2rem;
}

.footer-inner .linkedin-link {
  font-size: 0.85rem;
}

/* ------------------------------ Pages légales ----------------------------- */
.legal .section-title {
  margin-bottom: 2.5rem;
}

.legal-body {
  max-width: 70ch;
}

.legal-body h2 {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 2.5rem 0 1rem;
}

.legal-body h2:first-child {
  margin-top: 0;
}

.legal-body p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.7;
}

.legal-body ul {
  list-style: none;
  margin-bottom: 1.5rem;
}

.legal-body ul.legal-facts {
  border-top: 1px solid var(--border);
}

.legal-body ul.legal-facts li {
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
}

.legal-body ul:not(.legal-facts) li {
  position: relative;
  padding-left: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.legal-body ul:not(.legal-facts) li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.legal-body strong {
  color: var(--text);
  font-weight: 600;
}

.legal-body a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-body a:hover {
  color: var(--text);
}

.legal-body code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  color: var(--text);
}

/* -------------------------------- Footer --------------------------------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding-block: 3.5rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-brand {
  display: flex;
  align-items: center;
}

.footer-brand .logo-image {
  height: 26px;
}

.footer-tagline {
  color: var(--text-muted);
}

.footer-meta {
  color: var(--text-faint);
  font-size: 0.85rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-top: 0.75rem;
}

.footer-link {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color 0.25s ease;
}

.footer-link:hover {
  color: var(--text);
}

/* ------------------------------ Responsive ------------------------------- */
@media (max-width: 900px) {
  .site-nav {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .philosophy-grid,
  .proxmox-grid,
  .apropos-grid {
    grid-template-columns: 1fr;
  }

  .expertise-grid,
  .missions-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 620px) {

  .nav-container {
    gap: 1rem;
    padding-inline: 1rem;
  }

  .nav-right {
    gap: 0.5rem;
  }

  .theme-toggle {
    width: 34px;
    height: 34px;
  }

  .logo-image {
    height: 32px;
  }

  .expertise-grid,
  .missions-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .step {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .hero-title {
    line-height: 1;
    font-size: clamp(2.5rem, 15vw, 4.25rem);
  }
}

/* ------------------------- Reduced motion -------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .scroll-hint-line {
    animation: none;
  }

  .hero-canvas {
    display: none;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}