/* ===========================
   The Noctuas — Style principal
   Taplink-style single-page vertical layout
   Fond #151c2e + texte doré #d6a24a
   =========================== */

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ---------- Custom properties ---------- */
:root {
  --color-bg: #151c2e;
  --color-text: #d6a24a;
  --color-accent: #d6a24a;
  --color-accent-hover: #e4b965;
  --color-muted: rgba(214, 162, 74, 0.65);
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Playfair Display', serif;
  --radius: 12px;
  --transition: 0.25s ease;
}

/* ---------- Base ---------- */
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* subtle vignette and animated star shimmer */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(1200px 600px at 50% 20%, rgba(255,255,255,0.02), transparent 10%),
              radial-gradient(800px 400px at 80% 70%, rgba(0,0,0,0.35), transparent 30%);
  mix-blend-mode: overlay;
  z-index: 0;
}

.page {
  position: relative;
  z-index: 1;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* apply gentle entrance */
.page > * {
  animation: fadeInUp 520ms var(--transition) both;
}

/* description card subtle glass */
.description {
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  border-radius: 12px;
  padding: 1rem 1.25rem;
  box-shadow: 0 6px 18px rgba(0,0,0,0.35);
  backdrop-filter: blur(4px) saturate(1.05);
}

/* CTA sheen */
.btn--primary {
  position: relative;
  overflow: hidden;
}
.btn--primary::after {
  content: '';
  position: absolute;
  left: -40%; top: -40%;
  width: 60%; height: 180%;
  background: linear-gradient(120deg, rgba(255,255,255,0.12), rgba(255,255,255,0.02) 60%, rgba(255,255,255,0));
  transform: rotate(18deg) translateX(-10%);
  transition: transform 0.9s cubic-bezier(.2,.9,.2,1);
  mix-blend-mode: overlay;
}
.btn--primary:hover::after,
.btn--primary:focus-visible::after {
  transform: rotate(18deg) translateX(120%);
}

/* subtle logo rim */
.logo {
  border: 3px solid rgba(255,255,255,0.03);
}

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

a {
  color: inherit;
  text-decoration: none;
}

/* ---------- Page layout ---------- */
.page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 100vh;
  padding: clamp(1.25rem, 3vh, 2rem) 1rem 1.25rem;
  padding-top: clamp(2rem, 6vh, 3.5rem);
  text-align: center;
  background-color: var(--color-bg);
}

/* ---------- Logo ---------- */
.logo {
  width: min(200px, 45vw);
  aspect-ratio: 1 / 1;
  margin-bottom: 2rem;
  border-radius: 50%;
  display: block;
  object-fit: cover;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

/* ---------- Tagline ---------- */
.tagline {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 3.6vw, 1.8rem);
  font-weight: 400;
  font-style: italic;
  color: var(--color-text);
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

/* ---------- Description ---------- */
.description {
  max-width: 480px;
  margin-bottom: 1.25rem;
  text-align: center;
  padding-left: 0.25rem;
  padding-right: 0.25rem;
}

.description p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--color-muted);
  margin-bottom: 0.6rem;
}

.description__lead {
  font-size: 1.1rem !important;
  font-weight: 600;
  color: var(--color-text) !important;
  margin-bottom: 1.25rem !important;
}

.description__notice {
  margin-top: 1rem !important;
  font-style: italic;
  color: var(--color-text) !important;
  font-size: 0.9rem !important;
}

/* ---------- CTAs ---------- */
.ctas {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: min(400px, 85vw);
  margin-bottom: 0.75rem;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
}

.btn--primary {
  background: var(--color-accent);
  color: var(--color-bg);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(214, 162, 74, 0.3);
}

.btn--secondary {
  background: rgba(214, 162, 74, 0.1);
  color: var(--color-text);
  border: 1px solid rgba(214, 162, 74, 0.25);
  backdrop-filter: blur(4px);
}

.btn--secondary:hover,
.btn--secondary:focus-visible {
  background: rgba(214, 162, 74, 0.18);
  transform: translateY(-2px);
}

/* ---------- Language toggle ---------- */
.lang-toggle {
  margin-top: 1rem;
  background: transparent;
  border: 1px solid rgba(214, 162, 74, 0.3);
  color: var(--color-accent);
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  transition: background var(--transition), color var(--transition);
}

.lang-toggle:hover,
.lang-toggle:focus-visible {
  background: var(--color-accent);
  color: var(--color-bg);
}

/* ---------- Footer ---------- */
.site-footer {
  text-align: center;
  padding: 1.5rem 1rem;
  background: transparent;
  color: var(--color-muted);
  font-size: 0.75rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 480px) {
  .page {
    padding: 2rem 1rem 1.5rem;
  }

  .logo {
    width: min(240px, 65vw);
    margin-bottom: 1.5rem;
  }

  .tagline {
    margin-bottom: 1.5rem;
  }

  .description {
    margin-bottom: 2rem;
  }

  .ctas {
    width: 100%;
  }
}

/* ---------- Accessibility ---------- */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }

  html {
    scroll-behavior: auto;
  }
}
