:root {
  --fg: rgba(255, 255, 255, 0.92);
  --fg-muted: rgba(255, 255, 255, 0.72);
  --link: rgba(220, 245, 238, 0.95);
  --link-hover: #ffffff;
}

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

html,
body {
  height: 100%;
  margin: 0;
}

body {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--fg);
  background: #0a1628;
  overflow-x: hidden;
}

/* Fond bleu / vert — animation lente */
.aurora {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 80%, rgba(16, 120, 100, 0.45), transparent 55%),
    radial-gradient(ellipse 70% 55% at 80% 20%, rgba(30, 90, 160, 0.5), transparent 50%),
    radial-gradient(ellipse 90% 70% at 50% 50%, rgba(12, 60, 90, 0.35), transparent 60%),
    linear-gradient(160deg, #071018 0%, #0c2840 45%, #0a3d38 100%);
}

.aurora__layer {
  position: absolute;
  inset: -20%;
  opacity: 0.55;
  filter: blur(48px);
  will-change: transform;
}

.aurora__layer--a {
  background: radial-gradient(circle at 30% 40%, rgba(56, 189, 160, 0.35), transparent 42%);
  animation: drift-a 28s ease-in-out infinite alternate;
}

.aurora__layer--b {
  background: radial-gradient(circle at 70% 60%, rgba(56, 130, 210, 0.4), transparent 45%);
  animation: drift-b 34s ease-in-out infinite alternate;
}

.aurora__layer--c {
  background: radial-gradient(circle at 50% 80%, rgba(40, 160, 140, 0.25), transparent 50%);
  animation: drift-c 40s ease-in-out infinite alternate;
}

@keyframes drift-a {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(6%, -4%) scale(1.08); }
}

@keyframes drift-b {
  from { transform: translate(0, 0) scale(1.05); }
  to { transform: translate(-5%, 6%) scale(0.96); }
}

@keyframes drift-c {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(3%, 5%) scale(1.04); }
}

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

.page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: 2.5rem 1.5rem;
  text-align: center;
}

.brand {
  margin: 0;
  font-size: clamp(2.25rem, 8vw, 3.25rem);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: none;
  color: var(--fg);
  text-shadow: 0 0 40px rgba(120, 200, 180, 0.15);
}

/* Boucle — flex column (cross-browser) : phrase · anneau · phrase */
.twin-loop {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
}

.twin-loop__frame {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: auto;
  max-width: 16rem;
  margin: 0 auto;
}

.twin-loop__ring {
  width: 7rem;
  height: 7rem;
  flex: 0 0 7rem;
  overflow: hidden;
  line-height: 0;
}

.twin-loop__svg {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  vertical-align: top;
}

.twin-loop__phrase {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0 0.25rem;
  max-width: 14rem;
  font-size: 0.75rem;
  font-weight: 400;
  font-style: italic;
  line-height: 1.35;
  letter-spacing: 0.02em;
  color: var(--fg-muted);
  text-align: center;
  flex: 0 0 auto;
}

@media (min-width: 380px) {
  .twin-loop__ring {
    width: 7.5rem;
    height: 7.5rem;
    flex-basis: 7.5rem;
  }

  .twin-loop__phrase {
    font-size: 0.8rem;
  }
}

.contact {
  margin: 0;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.contact a {
  color: var(--link);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 0.15rem;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.contact a:hover,
.contact a:focus-visible {
  color: var(--link-hover);
  border-bottom-color: rgba(255, 255, 255, 0.55);
}
