@font-face {
  font-family: "Jost";
  src: url("assets/jost-latin-300-normal.woff2") format("woff2");
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: "Jost";
  src: url("assets/jost-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Jost";
  src: url("assets/jost-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

:root {
  --ink: #f2f5f3;
  --muted: rgba(242, 245, 243, .62);
  --line: rgba(255, 255, 255, .14);
  --glass: rgba(6, 10, 9, .58);
  --glow: #7fe3b0;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }

body {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: #050807 url("assets/fond.webp") center / cover no-repeat fixed;
  color: var(--ink);
  font-family: "Jost", "Futura", "Century Gothic", system-ui, sans-serif;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Vidéo de fond + voile sombre façon « agent secret » */
.bg, .veil { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -2; }
.bg { object-fit: cover; }
.veil {
  z-index: -1;
  background:
    radial-gradient(ellipse at center, rgba(0,0,0,.05) 0%, rgba(0,0,0,.45) 70%, rgba(0,0,0,.85) 100%),
    linear-gradient(180deg, rgba(0,0,0,.45), rgba(4,20,12,.1) 45%, rgba(0,0,0,.55));
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(1.5rem, 4vh, 3rem);
  padding: clamp(1.5rem, 5vh, 3rem) 16px 1rem;
}

h1 {
  font-weight: 500;
  font-size: clamp(1.35rem, 4vw, 2.8rem);
  letter-spacing: .1em;
  text-transform: uppercase;
  text-align: center;
  padding-left: .1em; /* compense l'espacement de la dernière lettre */
  text-shadow: 0 2px 24px rgba(0,0,0,.6);
}
h1 sup { font-size: .35em; letter-spacing: 0; vertical-align: super; }

nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1rem, 2.5vh, 1.6rem);
  width: 100%;
}
.row {
  display: flex;
  gap: clamp(1rem, 2.5vw, 1.6rem);
  justify-content: center;
}

.card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .9rem;
  padding: 1.1rem 1.4rem 1rem;
  color: var(--muted);
  text-decoration: none;
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 18px;
  backdrop-filter: blur(10px) saturate(120%);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
  transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease, color .35s ease;
}
.card img {
  display: block;
  width: clamp(110px, 15vh, 160px);
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
}
.card.main img { width: clamp(120px, 19vh, 190px); }
.card img.wide {
  aspect-ratio: auto;
  width: clamp(190px, 27vh, 250px);
  margin-block: auto;
}
.card .screen { mix-blend-mode: screen; border-radius: 10px; }
.card .brand {
  font-weight: 400;
  font-size: clamp(1.8rem, 4.5vh, 2.6rem);
  letter-spacing: .06em;
  line-height: 1;
  color: var(--ink);
  margin-top: -.2rem;
}

.card span {
  font-size: .72rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  white-space: nowrap;
}
.card.main span { font-size: .82rem; color: var(--ink); }

.card:hover, .card:focus-visible {
  transform: translateY(-4px);
  color: var(--ink);
  border-color: rgba(127, 227, 176, .55);
  box-shadow: 0 0 0 1px rgba(127,227,176,.15), 0 10px 40px -10px rgba(127,227,176,.35);
  outline: none;
}

footer {
  text-align: center;
  padding: 1rem 16px 1.2rem;
  font-size: .68rem;
  letter-spacing: .25em;
  color: rgba(255,255,255,.35);
}

/* Mobile : les 3 empilés dans l'ordre NexoP, ProgetCom, Numsquare */
@media (max-width: 640px) {
  body { background-attachment: scroll; }
  .row { flex-direction: column; width: 100%; align-items: center; }
  .card, .row .card { width: min(100%, 340px); }
  .card span { font-size: .66rem; letter-spacing: .14em; }
  .card.main span { font-size: .72rem; }
  .card img { width: 120px; }
  .card.main img { width: 130px; }
  .card img.wide { width: 200px; }
}

/* Animations désactivées par le visiteur : image fixe */
@media (prefers-reduced-motion: reduce) {
  .bg { display: none; }
  .card { transition: none; }
}
