:root {
  --ink: #0e0817;
  --panel: #170f26;
  --line: #2d2044;
  --text: #ece6f7;
  --muted: #a79bbf;
  --violet: #9b6bff;
  --violet-soft: #c4a8ff;
  --gold: #f2c14e;
  --display: "Segoe UI Black", "Arial Black", "Avenir Next Heavy", "Helvetica Neue", system-ui, sans-serif;
  --body: "Segoe UI", "Helvetica Neue", system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

a:focus-visible,
.btn:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  width: 100%;
  max-width: 68rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Barre du haut */
.topbar {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 68rem;
  margin: 0 auto;
  padding: 1.25rem;
}

.topbar-logo {
  font-family: var(--display);
  font-size: 1.1rem;
  text-decoration: none;
  letter-spacing: -0.01em;
}

.topbar nav { display: flex; gap: 1.5rem; }

.topbar nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
}

.topbar nav a:hover { color: var(--text); }

/* Accueil */
.hero {
  position: relative;
  display: grid;
  align-content: center;
  min-height: 92vh;
  min-height: 92svh;
  padding: 6rem 0 4rem;
  background:
    radial-gradient(60rem 32rem at 12% 8%, rgba(155, 107, 255, 0.28), transparent 60%),
    var(--ink);
}

.crown {
  display: block;
  width: clamp(5.5rem, 15vw, 9.5rem);
  height: auto;
  margin-bottom: -0.4rem;
  margin-left: 0.4rem;
  transform: rotate(-8deg);
  transform-origin: 50% 90%;
  filter: drop-shadow(0 0 28px rgba(242, 193, 78, 0.35));
  animation: crown-drop 0.95s cubic-bezier(0.2, 1.35, 0.4, 1) both;
}

@keyframes crown-drop {
  from { opacity: 0; transform: translateY(-4.5rem) rotate(-22deg); }
  to   { opacity: 1; transform: translateY(0) rotate(-8deg); }
}

.wordmark {
  margin: 0;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(3.4rem, 15vw, 10.5rem);
  line-height: 0.95;
  letter-spacing: -0.045em;
  color: var(--text);
}

.hero-text {
  max-width: 34rem;
  margin: 1.75rem 0 0;
  font-size: clamp(1.1rem, 2.4vw, 1.35rem);
  color: var(--violet-soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin: 2rem 0 0;
}

/* Boutons */
.btn {
  display: inline-block;
  padding: 0.8rem 1.4rem;
  border: 2px solid var(--violet);
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}

.btn-primary { background: var(--violet); color: var(--ink); }
.btn-primary:hover { background: var(--violet-soft); border-color: var(--violet-soft); }

.btn-ghost { background: transparent; color: var(--text); }
.btn-ghost:hover { background: rgba(155, 107, 255, 0.16); }

/* Sections */
.section { padding: 5.5rem 0; }

.section-alt {
  background: var(--panel);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section h2 {
  margin: 0 0 2.5rem;
  max-width: 22ch;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(1.9rem, 5vw, 3.1rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.lead {
  max-width: 36rem;
  margin: -1rem 0 0;
  font-size: 1.2rem;
  color: var(--muted);
}

.mail {
  color: var(--violet-soft);
  font-weight: 700;
  text-underline-offset: 4px;
}

.mail:hover { color: var(--gold); }

/* Projets */
.projects {
  margin: 0;
  padding: 0;
  list-style: none;
  border-bottom: 1px solid var(--line);
}

.project {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr);
  gap: 1rem 3rem;
  padding: 2rem 0;
  border-top: 1px solid var(--line);
}

.project-head h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(1.35rem, 3vw, 1.9rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.project-body p {
  max-width: 38rem;
  margin: 0;
  color: var(--text);
}

.status {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0.6rem 0 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.status::before {
  content: "";
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: var(--muted);
}

.status-wip::before { background: var(--gold); }
.status-live::before { background: #62d39a; }
.status-soon::before { background: transparent; border: 2px solid var(--violet-soft); }

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.1rem 0 0;
  padding: 0;
  list-style: none;
}

.tags li {
  padding: 0.2rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.9rem;
  color: var(--violet-soft);
}

/* Pied de page */
.footer {
  padding: 2.5rem 0 3rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
}

.footer p { margin: 0; }

/* Mobile */
@media (max-width: 720px) {
  .project { grid-template-columns: 1fr; gap: 0.75rem; }
  .section { padding: 4rem 0; }
  .topbar nav { gap: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .crown { animation: none; }
  .btn { transition: none; }
}
