:root {
  --bg: #0a1020;
  --bg-soft: #111a31;
  --bg-elevated: rgba(255,255,255,0.06);
  --card: rgba(255,255,255,0.045);
  --card-strong: rgba(255,255,255,0.065);
  --border: rgba(255,255,255,0.09);
  --border-strong: rgba(255,255,255,0.14);
  --text: #edf2fb;
  --muted: #a9b4c8;
  --muted-strong: #c7d0e0;
  --accent: #78a6ff;
  --accent-2: #9b8cff;
  --accent-soft: rgba(120,166,255,0.15);
  --success: #53d18c;
  --warning: #f2b84b;
  --danger: #f18484;
  --shadow-soft: 0 16px 32px rgba(0,0,0,0.18);
  --shadow: 0 22px 48px rgba(0,0,0,0.24);
  --shadow-strong: 0 30px 70px rgba(0,0,0,0.28);
  --radius-sm: 14px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-xl: 28px;
  --max-width: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(120,166,255,0.18), transparent 30%),
    radial-gradient(circle at top right, rgba(155,140,255,0.14), transparent 25%),
    linear-gradient(180deg, #0a1020 0%, #0b1326 100%);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

button,
input,
textarea,
select {
  font: inherit;
}

button {
  color: inherit;
}

:focus-visible {
  outline: 2px solid rgba(120,166,255,0.9);
  outline-offset: 2px;
}

::selection {
  background: rgba(120,166,255,0.28);
  color: white;
}

.container {
  width: min(var(--max-width), calc(100% - 32px));
  margin: 0 auto;
}

header.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(10,16,32,0.76);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 16px;
  position: relative;
}

.brand {
  display: inline-flex;
  align-items: center;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.01em;
  color: var(--text);
  position: relative;
  z-index: 3;
}

.brand span {
  color: var(--accent);
}

.nav-toggle {
  display: none !important;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  cursor: pointer;
  position: relative;
  z-index: 3;
  appearance: none;
  -webkit-appearance: none;
}

.nav-toggle-bars {
  display: inline-grid;
  gap: 5px;
}

.nav-toggle-bars span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--text);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.nav-links a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: rgba(255,255,255,0.07);
}

.nav-links a:hover {
  transform: translateY(-1px);
}

.hero {
  padding: 88px 0 56px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.9fr);
  gap: 24px;
}

.panel,
.card,
.section-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.panel {
  padding: 32px;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  background: rgba(120,166,255,0.10);
  border: 1px solid rgba(120,166,255,0.16);
  padding: 8px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.35rem, 4vw, 4.3rem);
  margin-bottom: 16px;
  max-width: 12ch;
}

h2 {
  font-size: clamp(1.55rem, 2.5vw, 2.35rem);
  margin-bottom: 12px;
}

h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

p {
  margin-top: 0;
}

p.lead {
  font-size: 1.08rem;
  color: var(--muted-strong);
  max-width: 64ch;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  transition: transform 0.2s ease, opacity 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  font-weight: 600;
}

.button.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: white;
  border: none;
  box-shadow: 0 14px 28px rgba(120,166,255,0.22);
}

.button.secondary {
  background: rgba(255,255,255,0.03);
  color: var(--text);
}

.button.secondary:hover,
.button.primary:hover {
  transform: translateY(-1px);
  opacity: 0.97;
}

.button.secondary:hover {
  background: rgba(255,255,255,0.06);
  border-color: var(--border-strong);
}

.meta-list {
  display: grid;
  gap: 14px;
}

.meta-item {
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  color: var(--muted-strong);
}

.meta-item strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text);
}

section.page-section {
  padding: 28px 0 56px;
}

.grid-3,
.grid-2 {
  display: grid;
  gap: 18px;
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  padding: 24px;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  background: var(--card-strong);
}

.card p,
.card li,
.section-box p {
  color: var(--muted);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.06);
}

.section-box {
  padding: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.03));
}

.page-intro {
  padding: 72px 0 24px;
}

.page-intro .container > p,
.page-intro .container .lead {
  max-width: 72ch;
}

.list-clean {
  list-style: none;
  padding: 0;
  margin: 0;
}

.list-clean li + li {
  margin-top: 14px;
}

.timeline {
  display: grid;
  gap: 16px;
}

.timeline-item {
  padding: 20px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: var(--shadow-soft);
}

.timeline-item .date {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 6px;
}

.timeline-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.filter-btn {
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  padding: 10px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.filter-btn:hover {
  transform: translateY(-1px);
  background: rgba(255,255,255,0.06);
}

.filter-btn.active {
  background: rgba(120,166,255,0.18);
  border-color: rgba(120,166,255,0.35);
}

.timeline-item.type-pro {
  border-left: 4px solid rgba(120,166,255,0.75);
}

.timeline-item.type-bafa {
  border-left: 4px solid rgba(83,209,140,0.75);
}

.timeline-item.type-annexe {
  border-left: 4px solid rgba(242,184,75,0.75);
}

.project-thumb {
  width: 100%;
  height: 220px;
  border-radius: 16px;
  margin-bottom: 16px;
  object-fit: cover;
  display: block;
  background:
    linear-gradient(135deg, rgba(120,166,255,0.22), rgba(155,140,255,0.22)),
    rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
}

.project-thumb.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid rgba(255,255,255,0.06);
  margin-top: 24px;
  padding: 24px 0 42px;
  color: var(--muted);
  font-size: 14px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.small {
  font-size: 14px;
  color: var(--muted);
}

.note {
  font-size: 14px;
  color: var(--muted-strong);
  padding: 14px 16px;
  border-left: 3px solid var(--accent);
  background: rgba(255,255,255,0.03);
  border-radius: 12px;
}

.section-stack {
  display: grid;
  gap: 14px;
}

.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.highlight {
  color: var(--text);
  font-weight: 600;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--text);
  border: 1px solid rgba(120,166,255,0.18);
  font-size: 12px;
  font-weight: 600;
}

.empty-state {
  padding: 20px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.06);
  color: var(--muted);
}

.split-list {
  display: grid;
  gap: 12px;
}

.split-list-item {
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
}

.split-list-item strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text);
}

@media (max-width: 900px) {
  .hero-grid,
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 64px 0 42px;
  }

  .panel,
  .card,
  .section-box {
    border-radius: 20px;
    padding: 22px;
  }

  h1 {
    max-width: none;
  }

  .nav {
    align-items: center;
    min-height: 72px;
    padding: 12px 0;
  }

  .nav-toggle {
    display: inline-flex !important;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% - 4px);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 8px;
    padding: 14px;
    border-radius: 18px;
    background: rgba(10,16,32,0.96);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: var(--shadow-strong);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255,255,255,0.03);
  }
}

@media (max-width: 640px) {
  .container {
    width: min(var(--max-width), calc(100% - 24px));
  }

  .button {
    width: 100%;
  }

  .actions {
    flex-direction: column;
  }
}
