:root {
  --bg: #0b0e13;
  --text: #e5e7eb;
  --muted: #9aa0aa;
  --surface: #11151b;
  --border: #1f242c;
  --accent: #a3a3a3;
}

* { box-sizing: border-box }
html, body { height: 100% }
body {
  margin: 0;
  background:
    radial-gradient(1200px 600px at 20% 0%, #0b0e13 10%, #0d1117 60%, #0b0e13 100%),
    var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, sans-serif;
  line-height: 1.6;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.2px;
}
.site-nav a {
  text-decoration: none;
  color: var(--text);
  margin-left: 20px;
}
.site-nav a:hover { color: var(--accent) }

.hero {
  min-height: 76vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 48px 0;
}
.hero-inner { max-width: 880px; margin: 0 auto }
.hero-title {
  font-size: clamp(2.4rem, 6vw, 4rem);
  letter-spacing: 0.04em;
  margin: 0 0 10px;
  color: #f4f4f5;
  text-shadow: 0 0 16px rgba(163,163,163,.25);
}
.hero-sub {
  margin: 0 auto 18px;
  color: var(--muted);
}
.hero-actions { margin-top: 14px }

.button {
  display: inline-block;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  text-decoration: none;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 600;
}
.button:hover { border-color: var(--accent) }
.button:active { transform: translateY(1px) }

.projets { padding: 24px 0 48px }
.projets h2, .a-propos h2, .contact h2 {
  font-size: 1.5rem;
  margin: 0 0 16px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color .2s, transform .2s;
}
.card-link { text-decoration: none; color: inherit; display: block }
.thumb {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #1f2937, #374151);
}
.card-body { padding: 12px 14px }
.card-body h3 { margin: 0 0 6px; font-size: 1.05rem }
.card-body p { margin: 0; color: var(--muted) }
.card:hover { border-color: var(--accent); transform: translateY(-2px) }

.a-propos, .contact { padding: 16px 0 48px }
.a-propos p { max-width: 780px; color: var(--muted) }

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.contact-list a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.contact-list a:hover { border-bottom-color: var(--accent) }

.site-footer {
  border-top: 1px solid var(--border);
  padding: 18px 0;
  color: var(--muted);
}

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

@media (max-width: 640px) {
  .hero { padding: 48px 0 40px }
  .site-header .container { height: 56px }
}
.start-screen {
  min-height: 86vh;
  display: grid;
  place-items: center;
  text-align: center;
  background:
    linear-gradient(180deg, #0b0e13 0%, #0c0f13 40%, #0b0e13 100%);
  opacity: 0;
  animation: startReveal .7s ease 1.6s forwards;
}
.start-inner { max-width: 900px; margin: 0 auto; padding-top: 24px }
.start-title {
  font-size: clamp(2.8rem, 8vw, 4.6rem);
  letter-spacing: .02em;
  color: #e9e9ea;
  margin: 0 0 8px;
}
.dot-art {
  background: linear-gradient(90deg, #b5a2ac 0%, #c7b0bb 50%, #d9c3cb 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.start-sub {
  margin: 0 auto 22px;
  color: var(--muted);
  font-size: clamp(1rem, 2.6vw, 1.25rem);
}
.rotator { display: inline-block; height: 1em; overflow: hidden; vertical-align: baseline }
.rotator-words { display: grid; grid-auto-rows: 1em; animation: rotateWords 9s steps(6) infinite }
.rotator-words > span { color: #e9e9ea; font-weight: 600 }
@keyframes rotateWords { to { transform: translateY(-500%) } }
.start-actions { display: flex; gap: 14px; justify-content: center; margin: 18px 0 22px }
.pill {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 12px;
  border: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  background: var(--surface);
  font-weight: 600;
}
.pill:hover { border-color: var(--accent) }
.start-terms { color: var(--muted); font-size: .9rem }
.start-terms a { color: var(--text); text-decoration: none; border-bottom: 1px solid transparent }
.start-terms a:hover { border-bottom-color: var(--accent) }

.intro {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #131313 0%, #0f0f10 100%);
  z-index: 999;
  animation: introHide 1.6s ease 1.4s forwards;
}
.intro-logo {
  width: min(180px, 22vw);
  filter: drop-shadow(0 6px 18px rgba(0,0,0,.45));
  animation: introLogo 1.2s cubic-bezier(.2,.8,.2,1);
}
@keyframes introLogo {
  0% { opacity: 0; transform: scale(.92) }
  50% { opacity: 1 }
  80% { transform: scale(1.08) }
  100% { transform: scale(1) }
}
@keyframes introHide { to { opacity: 0; visibility: hidden } }
@keyframes startReveal { to { opacity: 1 } }
