/*
 * Yanis Portfolio — accueil minimal
 */

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

:root {
  --bg: #0c0c0c;
  --text: #f5f5f5;
  --muted: #888;
  --font: 'Inter', system-ui, sans-serif;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

/* --- Layout accueil --- */
body.is-home .site-header,
body.is-home .site-footer {
  display: none;
}

body.is-home .site-main {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --- Hero --- */
.hero {
  width: 100%;
  padding: 2rem;
  text-align: center;
}

.hero__inner {
  max-width: 48rem;
  margin: 0 auto;
}

.hero__label {
  margin: 0 0 1rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero__title {
  margin: 0;
  font-size: clamp(2.5rem, 10vw, 5.5rem);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.hero__subtitle {
  margin: 1.25rem 0 0;
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  font-weight: 400;
  color: var(--muted);
}

/* --- Reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(1.5rem);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }

/* --- Pages internes (projets, etc.) --- */
body:not(.is-home) .site-header {
  padding: 1.5rem 2rem;
}

body:not(.is-home) .site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 72rem;
  margin: 0 auto;
}

body:not(.is-home) .site-header__logo {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
}

body:not(.is-home) .site-nav__list {
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

body:not(.is-home) .site-nav__link {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.875rem;
}

body:not(.is-home) .site-nav__link:hover,
body:not(.is-home) .site-nav__link.is-active {
  color: var(--text);
}

body:not(.is-home) .site-main {
  max-width: 72rem;
  margin: 0 auto;
  padding: 2rem;
}

body:not(.is-home) .site-footer {
  padding: 2rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.875rem;
}

.projects__grid { display: grid; gap: 1.5rem; }
.project-card__link { text-decoration: none; color: inherit; }
.projet__gallery-grid { display: grid; gap: 1rem; }
.projet__nav { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; }

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
