@import url("/brand/colors.css");

/* ---------- Base ---------- */

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

html {
  background-color: var(--nl-navy-900);
  color: var(--nl-text);
  font-family: var(--nl-font-sans);
  font-size: 100%;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background-image: linear-gradient(180deg, var(--nl-navy-900) 0%, var(--nl-navy-950) 100%);
  background-attachment: fixed;
  overflow-x: hidden;
  isolation: isolate;
}

/* ---------- Aurora glow (decorative, CSS only) ---------- */

body::before {
  content: "";
  position: fixed;
  z-index: -1;
  top: -30vh;
  left: -15vw;
  right: -15vw;
  height: 85vh;
  pointer-events: none;
  background:
    radial-gradient(ellipse 38% 42% at 22% 55%, rgb(45 212 191 / 0.34), transparent 70%),
    radial-gradient(ellipse 34% 38% at 52% 48%, rgb(95 211 160 / 0.22), transparent 70%),
    radial-gradient(ellipse 36% 44% at 80% 52%, rgb(139 124 246 / 0.30), transparent 70%);
  filter: blur(64px);
  opacity: 0.6;
  transform: translate3d(0, 0, 0);
}

@media (prefers-reduced-motion: no-preference) {
  body::before {
    animation: aurora-drift 48s ease-in-out infinite alternate;
  }
}

@keyframes aurora-drift {
  from {
    transform: translate3d(-2vw, 0, 0) scaleX(1);
    opacity: 0.5;
  }
  to {
    transform: translate3d(2vw, 1.5vh, 0) scaleX(1.06);
    opacity: 0.65;
  }
}

/* ---------- Utilities ---------- */

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.nowrap {
  white-space: nowrap;
}

/* ---------- Links & focus ---------- */

a {
  color: var(--nl-accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--nl-accent-strong);
}

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

/* ---------- Header / language switch ---------- */

.site-header {
  display: flex;
  justify-content: flex-end;
  padding: 1.25rem clamp(1.25rem, 4vw, 3rem);
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  letter-spacing: 0.08em;
}

.lang-switch a {
  display: inline-block;
  padding: 0.25rem 0.375rem;
  color: var(--nl-text-muted);
  text-decoration: none;
}

.lang-switch a:hover {
  color: var(--nl-text);
  text-decoration: underline;
}

.lang-switch a[aria-current="page"] {
  color: var(--nl-text);
  font-weight: 600;
}

.lang-sep {
  color: var(--nl-text-subtle);
}

/* ---------- Main ---------- */

.hero {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 44rem;
  margin: 0 auto;
  padding: clamp(3rem, 10vh, 7rem) 1.5rem clamp(4rem, 12vh, 8rem);
  text-align: center;
}

.wordmark {
  margin: 0;
  max-width: 100%;
}

.wordmark img {
  display: block;
  max-width: 100%;
  height: auto;
}

.tagline {
  margin: 1.5rem 0 0;
  max-width: 34rem;
  font-size: clamp(1rem, 0.94rem + 0.3vw, 1.1875rem);
  color: var(--nl-text-muted);
  letter-spacing: 0.01em;
  text-wrap: balance;
}

.location {
  margin: 0.375rem 0 0;
  font-size: clamp(0.875rem, 0.84rem + 0.18vw, 1rem);
  color: var(--nl-text-muted);
  letter-spacing: 0.03em;
}

/* ---------- Contact ---------- */

.contact {
  margin-top: clamp(2.75rem, 7vh, 4rem);
}

.contact p {
  margin: 0;
}

.cta {
  display: inline-block;
  padding: 0.875rem 2rem;
  border: 1px solid var(--nl-accent);
  border-radius: 2px;
  background-color: rgb(127 227 208 / 0.06);
  color: var(--nl-text);
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: background-color 150ms ease, color 150ms ease;
}

.cta:hover {
  background-color: rgb(127 227 208 / 0.14);
  color: var(--nl-text);
}

.contact-details {
  margin-top: 1.75rem;
  font-style: normal;
  font-size: 0.9375rem;
  color: var(--nl-text-muted);
  line-height: 1.9;
}

.contact-details a {
  overflow-wrap: anywhere;
}

.contact-label {
  color: var(--nl-text-muted);
  margin-right: 0.25em;
}

/* Narrow phones: keep "Courriel : contact@…" on one line (it overflowed 272px at 320px wide) */
@media (max-width: 24rem) {
  .hero {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .contact-details {
    font-size: 0.875rem;
  }
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 1.5rem;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--nl-text-subtle);
  letter-spacing: 0.02em;
}

.site-footer p {
  margin: 0;
}

/* ---------- 404 ---------- */

.wordmark-small {
  font-size: 1.25rem;
  font-weight: 400;
}

.notfound-title {
  margin: 2.5rem 0 0;
  font-size: clamp(1.5rem, 1.2rem + 1.5vw, 2.125rem);
  font-weight: 300;
  line-height: 1.3;
}

.notfound-part {
  white-space: nowrap;
}

.notfound-sep {
  color: var(--nl-text-subtle);
  margin: 0 0.25em;
}

/* Narrow screens: one language per line instead of splitting a title mid-phrase */
@media (max-width: 30rem) {
  .notfound-part {
    display: block;
  }

  .notfound-sep {
    display: none;
  }
}

.tagline-alt {
  margin-top: 0.25rem;
}

.notfound-links {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  line-height: 2;
}

/* ---------- Forced colours (Windows High Contrast) ---------- */

@media (forced-colors: active) {
  body::before {
    display: none;
  }

  .cta {
    border-color: LinkText;
  }
}
