/* Commun aux versions française (/) et anglaise (/en/). */
:root {
  --ink: #2a2154;
  --ink-soft: #3d3466;
  --ink-muted: #574f7a;
  --line: #e4dff2;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  font: 17px/1.55 'Figtree', system-ui, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(ellipse 60% 45% at 0% 0%, rgba(205, 191, 245, 0.65) 0%, rgba(205, 191, 245, 0) 70%),
    radial-gradient(ellipse 50% 40% at 100% 10%, rgba(245, 211, 220, 0.6) 0%, rgba(245, 211, 220, 0) 70%),
    radial-gradient(ellipse 70% 45% at 50% 100%, rgba(207, 227, 247, 0.7) 0%, rgba(207, 227, 247, 0) 70%),
    #faf8fe;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

header {
  display: flex;
  justify-content: flex-end;
  padding: 16px 20px 0;
}

.lang {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  color: var(--ink);
}

.lang:hover {
  border-color: var(--ink);
}

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

.mark {
  width: 112px;
  height: 112px;
  border-radius: 36px;
  background: linear-gradient(145deg, #4b3b8a 0%, #2a2154 100%);
  display: grid;
  place-items: center;
  box-shadow: 0 24px 60px rgba(42, 33, 84, 0.3);
  animation: float 6s ease-in-out infinite;
}

.name {
  margin: 0;
  font-family: 'Bricolage Grotesque', system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(56px, 11vw, 112px);
  line-height: 0.9;
  letter-spacing: -0.05em;
}

.tease {
  margin: 0;
  max-width: 520px;
  font-size: clamp(19px, 2.4vw, 23px);
  line-height: 1.45;
  color: var(--ink-soft);
}

.soon {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-muted);
}

.demo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 28px;
  border-radius: 999px;
  background: linear-gradient(135deg, #4b3b8a 0%, #2a2154 80%);
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 14px 30px rgba(42, 33, 84, 0.25);
}

/* Tant que DEMO_URL (demo.js) est vide, le lien n'a pas de cible : fond pâle, lisible, non cliquable. */
.demo[aria-disabled='true'] {
  background: var(--line);
  color: var(--ink-muted);
  box-shadow: none;
  cursor: not-allowed;
}

footer {
  padding: 24px;
  text-align: center;
  font-size: 14px;
  color: var(--ink-muted);
}

@keyframes float {
  50% {
    transform: translateY(-8px);
  }
}

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