/* onyx-studio.dev : la charte d'Onyx Studio (docs/CHARTE-ONYX-STUDIO.md) */
@font-face { font-family: Sora; font-weight: 300; font-display: swap; src: url(../fonts/sora-latin-300-normal.woff2) format('woff2'); }
@font-face { font-family: Sora; font-weight: 400; font-display: swap; src: url(../fonts/sora-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: Sora; font-weight: 600; font-display: swap; src: url(../fonts/sora-latin-600-normal.woff2) format('woff2'); }

:root {
  color-scheme: dark;
  --onyx: #120c1c;
  --onyx-deep: #0b0812;
  --glow: #2a1840;
  --violet: #4b2a97;
  --violet-text: #b49cff;
  --blue: #0089ff;
  --blue-text: #5cb4ff;
  --text: #f2eefa;
  --text-dim: #bdb4cf;
  --text-faint: #857c98;
  --line: rgb(255 255 255 / 10%);
}

* { box-sizing: border-box; }
html { background: var(--onyx-deep); }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  font: 400 16px/1.65 Sora, system-ui, sans-serif; color: var(--text);
  background:
    radial-gradient(70% 55% at 50% 0%, var(--glow), transparent 70%),
    radial-gradient(50% 45% at 100% 100%, rgb(0 137 255 / 12%), transparent 70%),
    linear-gradient(180deg, var(--onyx), var(--onyx-deep));
  background-attachment: fixed;
}
a { color: inherit; }
:focus-visible { outline: 2px solid var(--blue-text); outline-offset: 3px; border-radius: 4px; }

.top, main, .foot { width: 100%; max-width: 880px; margin: 0 auto; padding: 0 24px; }

.top { display: flex; align-items: center; justify-content: space-between; padding-top: 32px; }
.top .logo img { display: block; height: 40px; width: auto; }
.lang { font-size: 14px; color: var(--text-faint); text-decoration: none; letter-spacing: .04em; }
.lang:hover { color: var(--blue-text); }

main { flex: 1; display: flex; flex-direction: column; justify-content: center; padding-block: 72px; }

.intro { max-width: 640px; animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; }
h1 { font-size: clamp(30px, 5.2vw, 46px); font-weight: 600; line-height: 1.18; letter-spacing: -.02em; margin: 0 0 18px; }
/* Le dégradé du V de VTrix : du violet du studio au bleu */
h1 em { font-style: normal; color: var(--violet-text); background: linear-gradient(100deg, var(--violet-text), var(--blue-text) 70%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.intro p { color: var(--text-dim); margin: 0; font-size: 17px; }

.made { position: relative; margin-top: 64px; padding-top: 28px; animation: rise .9s .15s cubic-bezier(.2, .7, .2, 1) both; }
.made::before { content: ''; position: absolute; inset: 0 0 auto; height: 1px; background: linear-gradient(90deg, var(--violet), var(--blue) 45%, var(--line) 80%); }
.made h2 { font-size: 13px; font-weight: 400; color: var(--text-faint); letter-spacing: .14em; text-transform: uppercase; margin: 0 0 20px; }

/* VTrix garde ses couleurs : la Nuit et son bleu */
.vtrix {
  display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center;
  padding: 26px 28px; border-radius: 16px; text-decoration: none;
  background: radial-gradient(60% 120% at 20% 50%, #2f4a6e, transparent 72%), linear-gradient(180deg, #1b2a42, #0d1424);
  border: 1px solid rgb(92 180 255 / 18%);
  transition: border-color .25s, transform .25s;
}
.vtrix:hover { border-color: rgb(92 180 255 / 45%); transform: translateY(-2px); }
.vtrix img { display: block; height: 52px; width: auto; }
.vtrix strong { display: block; font-weight: 600; font-size: 18px; color: #eef2f8; }
.vtrix span { display: block; color: #bcc5d4; font-size: 15px; }
.vtrix .status { display: inline-block; font-style: normal; margin-top: 8px; font-size: 13px; color: var(--blue-text); }
.vtrix .go { padding: 11px 20px; border-radius: 999px; background: var(--blue); color: #fff; font-weight: 600; font-size: 15px; white-space: nowrap; }

.foot { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; padding-bottom: 32px; font-size: 13px; color: var(--text-faint); }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--blue-text); }

@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@media (prefers-reduced-motion: reduce) { .intro, .made { animation: none; } .vtrix { transition: none; } }

@media (max-width: 640px) {
  .top .logo img { height: 32px; }
  main { padding-block: 48px; }
  .vtrix { grid-template-columns: 1fr; gap: 16px; padding: 22px; }
  .vtrix img { height: 42px; }
  .vtrix .go { justify-self: start; }
}
