/* =========================================================
   LE PHILOSOPHE INCONNU — V2
   Une esthétique sombre, contemplative et lisible.
========================================================= */

:root {
  --bg: #020307;
  --bg-soft: #080c15;
  --text: #e8edf5;
  --muted: #aab5c5;
  --subtle: #7f8b9d;
  --line: rgba(255,255,255,0.10);
  --glass: rgba(255,255,255,0.045);
  --accent: #8fdcff;
  --accent-soft: rgba(143,220,255,0.16);
  --max: 900px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 50% 0%, #0d1525 0%, var(--bg) 48%, #000 100%);
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  text-align: center;
  line-height: 1.85;
  overflow-x: hidden;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

#space {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  pointer-events: none;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 4px 4px;
  pointer-events: none;
  z-index: -1;
}

/* =========================
   PROLOGUE
========================= */

#prologue {
  position: fixed;
  inset: 0;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 9999;
  transition: opacity 1.4s ease;
}

#prologue-text {
  max-width: 720px;
  margin: 0;
  color: #fff;
  font-size: clamp(1rem, 2vw, 1.35rem);
  letter-spacing: 0.04em;
}

/* =========================
   HERO
========================= */

.hero {
  min-height: 100vh;
  padding: 34px 20px 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  scroll-margin-top: 20px;
}

.logo {
  width: 88px;
  max-width: 28vw;
  margin-bottom: 18px;
  filter: drop-shadow(0 0 18px rgba(143,220,255,0.30));
}

.menu {
  position: sticky;
  top: 12px;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
  margin-bottom: 52px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(2,3,7,0.62);
  backdrop-filter: blur(12px);
}

.menu a {
  color: #dbe7f5;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: 0.3s ease;
}

.menu a:hover {
  color: var(--accent);
  text-decoration: none;
}

.hero-content {
  max-width: 820px;
}

.eyebrow,
.section-kicker,
.path-intro {
  margin: 0 0 10px;
  color: var(--accent);
  font-family: Arial, sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(2.5rem, 7vw, 5rem);
  line-height: 1.08;
  font-weight: normal;
  letter-spacing: 0.035em;
  background: linear-gradient(90deg, #fff, #b9eaff, #72cfff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 24px rgba(143,220,255,0.08);
}

.hero p,
section p {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  color: var(--muted);
}

.hero-lead {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.hero-question {
  margin-top: 26px;
}

.hero-question strong {
  color: #fff;
}

.cover {
  display: block;
  width: min(85vw, 550px);
  margin: 38px auto 0;
  border-radius: 18px;
  box-shadow: 0 18px 70px rgba(0,0,0,0.62);
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.cover:hover {
  transform: scale(1.015);
  box-shadow: 0 24px 80px rgba(0,0,0,0.75);
}

/* =========================
   SECTIONS
========================= */

section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 105px 24px;
  scroll-margin-top: 70px;
}

h2 {
  margin: 0 0 30px;
  color: #fff;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: normal;
  letter-spacing: 0.04em;
}

h3 {
  margin-top: 48px;
  color: #dcefff;
  font-size: 1.15rem;
  font-weight: normal;
  letter-spacing: 0.05em;
}

.about,
.manifeste,
.paths,
.path,
.fragments,
.silence,
.contact-section {
  border-top: 1px solid var(--line);
}

.about p,
.manifeste p,
.path p,
.silence p {
  font-size: 1.05rem;
}

.orcid {
  margin: 30px auto;
}

.manifesto-note {
  margin: 36px auto 50px;
  padding: 24px;
  border: 1px solid var(--line);
  border-left: 2px solid rgba(143,220,255,0.45);
  border-radius: 12px;
  background: var(--glass);
}

.manifesto-note p {
  margin: 10px auto;
}

.closing-thought {
  margin-top: 48px !important;
  color: #dcefff !important;
  font-style: italic;
}

/* =========================
   CHEMINS
========================= */

.paths {
  max-width: 1000px;
}

.intro {
  max-width: 700px !important;
}

.path-map {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 42px;
}

.path-map a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--glass);
  color: #dfe8f2;
  text-align: left;
  transition: 0.35s ease;
}

.path-map a:hover {
  transform: translateY(-3px);
  border-color: rgba(143,220,255,0.35);
  background: var(--accent-soft);
  text-decoration: none;
}

.path-map span {
  min-width: 32px;
  color: var(--accent);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
}

.path {
  max-width: 800px;
  min-height: 75vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.path-number {
  margin-bottom: 4px !important;
  color: var(--accent) !important;
  font-family: Arial, sans-serif;
  font-size: 0.8rem !important;
  letter-spacing: 0.3em;
}

.path h2 {
  margin-bottom: 8px;
}

.path-intro {
  margin-bottom: 34px !important;
  color: var(--subtle) !important;
}

.path p:not(.path-number):not(.path-intro) {
  max-width: 720px;
}

.path strong {
  color: #fff;
}

.path-nav {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 54px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-family: Arial, sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.future-path {
  min-height: 55vh;
  opacity: 0.92;
}

.future-path .teaser {
  font-style: italic;
  color: #aebed0;
}

/* =========================
   FRAGMENTS
========================= */

.fragments {
  max-width: 820px;
}

.fragment {
  margin: 0 auto 30px;
  padding: 18px 10px;
  color: #d9e0e9;
  font-size: 1.15rem;
  font-style: italic;
  transition: 0.35s ease;
}

.fragment:hover {
  color: #fff;
  transform: translateY(-2px);
}

/* =========================
   CARDS
========================= */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}

.card {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--glass);
  backdrop-filter: blur(10px);
  transition: 0.35s ease;
}

.card:hover {
  transform: translateY(-5px);
  border-color: rgba(143,220,255,0.25);
  box-shadow: 0 18px 40px rgba(0,0,0,0.38);
}

.card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 12px;
}

.card h3 {
  margin: 15px 0 7px;
  color: #fff;
  font-family: Georgia, serif;
  font-size: 1.05rem;
}

.card p {
  font-size: 0.9rem;
  color: var(--subtle);
}

button {
  cursor: pointer;
  padding: 10px 15px;
  border: 1px solid rgba(143,220,255,0.28);
  border-radius: 999px;
  background: rgba(143,220,255,0.10);
  color: #dff6ff;
  font-family: Arial, sans-serif;
  font-weight: bold;
  transition: 0.3s ease;
}

button:hover {
  transform: scale(1.04);
  background: rgba(143,220,255,0.18);
}

/* =========================
   LINKS
========================= */

.links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  max-width: 900px;
  margin: 0 auto;
}

.links a button {
  margin: 0;
}

/* =========================
   SILENCE
========================= */

.silence {
  max-width: 760px;
  min-height: 85vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.silence p:not(.section-kicker) {
  font-size: 1.12rem;
  font-style: italic;
}

.silence-mark {
  margin-top: 40px;
  opacity: 0.8;
}

/* =========================
   CONTACT
========================= */

.contact-section {
  max-width: 700px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 13px;
  max-width: 600px;
  margin: 0 auto;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: none;
  background: rgba(255,255,255,0.055);
  color: #fff;
  font: inherit;
  transition: 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(143,220,255,0.5);
  box-shadow: 0 0 20px rgba(143,220,255,0.07);
}

.contact-form textarea {
  min-height: 170px;
  resize: vertical;
}

.contact-form button {
  align-self: center;
  padding: 12px 22px;
}

/* =========================
   SPOTIFY
========================= */

.spotify-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 30;
  padding: 10px 15px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 999px;
  background: rgba(0,0,0,0.72);
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: 0.8rem;
  backdrop-filter: blur(10px);
}

.spotify-float:hover {
  text-decoration: none;
  border-color: rgba(143,220,255,0.35);
}

/* =========================
   REVEAL
========================= */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s ease, transform 1s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================
   FOOTER
========================= */

footer {
  margin-top: 20px;
  padding: 36px 20px 50px;
  border-top: 1px solid var(--line);
  color: var(--subtle);
  font-family: Arial, sans-serif;
  font-size: 0.78rem;
}

/* =========================
   MOBILE
========================= */

@media (max-width: 700px) {
  .hero {
    padding-top: 24px;
  }

  .menu {
    top: 7px;
    gap: 7px 12px;
    margin-bottom: 38px;
    border-radius: 16px;
  }

  .menu a {
    font-size: 0.68rem;
  }

  section {
    padding: 82px 18px;
  }

  .path-map {
    grid-template-columns: 1fr;
  }

  .path {
    min-height: 80vh;
  }

  .path-nav {
    font-size: 0.68rem;
  }

  .spotify-float {
    right: 12px;
    bottom: 12px;
    font-size: 0.72rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}