@font-face {
  font-family: "Unbounded";
  src: url("/fonts/unbounded.woff2") format("woff2");
  font-weight: 200 900;
  font-display: swap;
}

:root {
  --bg: #070a1c;
  --line: rgba(159, 176, 238, 0.22);
  --text: #f4f6ff;
  --muted: #9fb0ee;
  --blue: #2f57e8;
  --blue-hover: #3d6bff;
  --cyan: #3fd0ff;
  color-scheme: dark;
  scrollbar-color: #2a3466 var(--bg);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

::selection { background: var(--blue-hover); color: #fff; }

a { color: var(--cyan); text-underline-offset: 0.2em; }

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

/* Fond de toutes les pages : dégradé flou et granuleux aux couleurs du logo. */
body::before,
body::after { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; }

body::before {
  background:
    radial-gradient(28rem 22rem at 8% 6%, rgba(138, 63, 252, 0.34), transparent 70%),
    radial-gradient(30rem 24rem at -6% 48%, rgba(47, 87, 232, 0.3), transparent 70%);
}

body::after {
  opacity: 0.16;
  mix-blend-mode: overlay;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.page {
  max-width: 38rem;
  margin: 0 auto;
  padding: 1.25rem 1.25rem 2.5rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.marque {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  color: var(--text);
  text-decoration: none;
  font: 600 1rem/1 "Unbounded", system-ui, sans-serif;
  align-self: flex-start;
}

/* Le V occupe 64 % de la largeur du logo : marge négative pour l'aligner sur le texte dessous. */
.marque img { width: 32px; height: 32px; margin-left: -0.375rem; }

main { flex: 1; padding-top: 1.75rem; }

h1 {
  font: 600 clamp(1.75rem, 7vw, 2.5rem)/1.2 "Unbounded", system-ui, sans-serif;
  letter-spacing: -0.01em;
  text-wrap: balance;
  margin: 0;
}

/* Accueil : le nom en grand, puis les vidéos en lignes. */
.titre-marque { display: flex; align-items: center; font-size: clamp(2.75rem, 13vw, 3.5rem); line-height: 1; letter-spacing: -0.025em; }

.titre-marque img { width: 1.05em; height: 1.05em; margin-left: -0.19em; }

.videos { list-style: none; margin: 2.5rem 0 0; padding: 0; border-top: 1px solid var(--line); }

.videos a {
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 1rem;
  align-items: center;
  min-height: 44px;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  text-decoration: none;
  font: 600 1.5rem/1.15 "Unbounded", system-ui, sans-serif;
  letter-spacing: -0.01em;
  text-wrap: balance;
  transition: border-color 0.15s ease-out;
}

.videos a:hover, .videos a:active { border-bottom-color: var(--muted); }

/* Flèche sortante : chaque vidéo mène à son dépôt GitHub. */
.videos a::after {
  content: "";
  width: 1.5rem;
  height: 1.5rem;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7M8 7h9v9'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7M8 7h9v9'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform 0.15s ease-out;
}

.videos a:hover::after { transform: translate(2px, -2px); }

/* Mentions légales : une rubrique par ligne, séparées d'un filet. */
dl { margin: 1.5rem 0 0; }

dt { font-weight: 600; padding-top: 1rem; border-top: 1px solid var(--line); }

dd { margin: 0.25rem 0 1.25rem; }

/* Zone de toucher de 44 px sans décaler la ligne. */
dd a { padding: 0.6875rem 0; }

dd:last-child { margin-bottom: 0; }

footer {
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.5rem;
  font-size: 0.9375rem;
}

footer a { color: var(--muted); display: inline-flex; align-items: center; min-height: 44px; transition: color 0.15s ease-out; }

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

/* Bureau : toute la largeur, le titre à gauche en grand, le contenu à droite. */
@media (min-width: 960px) {
  .page { max-width: 76rem; padding: 2rem 3rem 2.5rem; }

  main {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    column-gap: clamp(3rem, 6vw, 6rem);
    align-items: center;
    padding: 2rem 0 3rem;
  }

  body::before {
    background:
      radial-gradient(44rem 34rem at 12% 34%, rgba(138, 63, 252, 0.32), transparent 70%),
      radial-gradient(36rem 30rem at 30% 92%, rgba(47, 87, 232, 0.28), transparent 70%);
  }

  .titre-marque { font-size: clamp(4.5rem, 8vw, 6rem); }

  /* Le nom et les vidéos se font face, centrés sur la hauteur. */
  .accueil main { align-content: center; }

  .videos { margin-top: 0; }

  .videos a { font-size: 2.25rem; padding: 1.5rem 0; }

  .mentions main { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); align-items: start; padding-top: 3rem; }

  .mentions h1 { font-size: 3rem; line-height: 1.05; letter-spacing: -0.02em; }

  .mentions dl { margin-top: 0; max-width: 36rem; }
}

@media (prefers-reduced-motion: reduce) {
  .videos a, .videos a::after, footer a { transition: none; }
}
