/* Commun aux quatre styles. Le style choisi (sobre.css, verre.css…) est ajouté après. */

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(/fonts/manrope.woff2) format("woff2-variations");
}

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

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

body {
  margin: 0;
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
  border-radius: 6px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 8px;
  background: #111;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.skip:focus {
  top: 16px;
}

.i {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Mise en page : en-tête, un bloc centré, pied de page */

.page {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  padding: 0 clamp(16px, 5vw, 56px);
}

.top {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 28px 0;
}

.top p,
.foot p {
  margin: 0;
}

.lang {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  margin-left: auto;
  padding: 0 14px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
}

.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 0 48px;
  text-align: center;
}

h1 {
  margin: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 24px;
  font-size: 0.9375rem;
  font-weight: 700;
  text-decoration: none;
}

.foot {
  padding: 24px 0 28px;
  font-size: 0.8125rem;
  text-align: center;
}

@media (max-width: 480px) {
  .top {
    padding: 20px 0;
  }
}

/* Apparition en douceur */

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .main > * {
    animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }

  .main > :nth-child(2) {
    animation-delay: 0.06s;
  }

  .main > :nth-child(3) {
    animation-delay: 0.12s;
  }

  .main > :nth-child(4) {
    animation-delay: 0.18s;
  }
}

/* Futur : interface de science-fiction. Nuit noire, sol quadrillé en perspective qui défile,
   lueur à l'horizon, coins de visée, étiquettes en police à chasse fixe, nom en néon. */

:root {
  --bg: #04050b;
  --ink: #e8f6ff;
  --muted: #7f93a8;
  --cyan: #22e5ff;
  --magenta: #ff3df2;
  --grid: rgba(34, 229, 255, 0.34);
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", "Roboto Mono", Menlo, Consolas, monospace;
  --horizon: 64%;
}

body {
  background: var(--bg);
  color: var(--ink);
  overflow-x: hidden;
}

/* Décor : lueur, sol en perspective, ligne d'horizon */

.space {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  perspective: 320px;
  perspective-origin: 50% var(--horizon);
}

.glow {
  position: absolute;
  top: var(--horizon);
  left: 50%;
  width: min(120vw, 1100px);
  height: min(60vw, 520px);
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at center, rgba(255, 61, 242, 0.45) 0%, rgba(34, 229, 255, 0.14) 38%, rgba(4, 5, 11, 0) 70%);
}

.floor {
  position: absolute;
  top: var(--horizon);
  left: -150%;
  right: -150%;
  height: 300px;
  background-image:
    linear-gradient(to bottom, var(--grid) 1px, transparent 1px),
    linear-gradient(to right, var(--grid) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: 50% 0;
  transform-origin: 50% 0;
  transform: rotateX(80deg);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 22%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 22%);
  animation: floor 1.4s linear infinite;
}

.space::after {
  content: "";
  position: absolute;
  top: var(--horizon);
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan) 30%, var(--magenta) 50%, var(--cyan) 70%, transparent);
  box-shadow: 0 0 16px 1px rgba(34, 229, 255, 0.6);
  opacity: 0.8;
}

@keyframes floor {
  to {
    transform: rotateX(80deg) translateY(40px);
  }
}

/* Lignes de balayage, très légères */

.scan {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 3px);
}

/* Cadre et coins de visée */

.page {
  padding: 0 clamp(34px, 6vw, 72px);
}

.corner {
  position: absolute;
  width: 22px;
  height: 22px;
  border: 0 solid var(--cyan);
  opacity: 0.85;
}

.tl {
  top: 14px;
  left: 14px;
  border-top-width: 2px;
  border-left-width: 2px;
}

.tr {
  top: 14px;
  right: 14px;
  border-top-width: 2px;
  border-right-width: 2px;
}

.bl {
  bottom: 14px;
  left: 14px;
  border-bottom-width: 2px;
  border-left-width: 2px;
}

.br {
  right: 14px;
  bottom: 14px;
  border-right-width: 2px;
  border-bottom-width: 2px;
}

.top {
  padding-top: 34px;
}

.label {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.lang {
  border: 1px solid rgba(34, 229, 255, 0.45);
  border-radius: 0;
  background: rgba(4, 5, 11, 0.6);
  color: var(--cyan);
  font-family: var(--mono);
  font-weight: 600;
  letter-spacing: 0.14em;
  transition: background-color 0.15s, color 0.15s;
}

.lang:hover {
  background: var(--cyan);
  color: var(--bg);
}

/* Contenu, un peu au-dessus de l'horizon */

.main {
  padding-bottom: 16vh;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 26px;
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.dot {
  width: 7px;
  height: 7px;
  background: var(--cyan);
  box-shadow: 0 0 10px 2px rgba(34, 229, 255, 0.7);
}

.cursor {
  margin-left: -6px;
  animation: blink 1s steps(1) infinite;
}

h1 {
  margin-right: -0.08em; /* compense l'espacement après la dernière lettre, pour bien centrer */
  font-size: clamp(3rem, 16vw, 9rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: linear-gradient(180deg, #ffffff 0%, #c9f7ff 50%, var(--cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 26px rgba(34, 229, 255, 0.4));
}

.role {
  margin: 22px 0 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.8125rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.sep {
  margin: 0 0.4em;
  color: var(--magenta);
}

.btn {
  margin-top: 40px;
  border: 1px solid var(--cyan);
  background: rgba(4, 5, 11, 0.7);
  color: var(--cyan);
  font-family: var(--mono);
  font-weight: 600;
  letter-spacing: 0.04em;
  box-shadow: 0 0 22px rgba(34, 229, 255, 0.28), inset 0 0 18px rgba(34, 229, 255, 0.12);
  transition: background-color 0.15s, color 0.15s, box-shadow 0.15s;
}

.btn:hover {
  background: var(--cyan);
  color: var(--bg);
  box-shadow: 0 0 34px rgba(34, 229, 255, 0.6);
}

.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-bottom: 34px;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

@media (max-width: 480px) {
  .role {
    font-size: 0.75rem;
    letter-spacing: 0.14em;
  }

  .sep {
    display: block;
    height: 0;
    overflow: hidden;
  }

  .btn {
    padding: 0 18px;
    font-size: 0.875rem;
  }

  .foot {
    flex-direction: column;
    align-items: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .floor,
  .cursor {
    animation: none;
  }
}
