* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #0a0a0a;
  --fg: #ffffff;
  --accent: #ffffff;
  --gray: #1a1a1a;
  --border: rgba(255, 255, 255, 0.1);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: #fff;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 4rem;
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
}

nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 300;
  letter-spacing: 0.3em;
  z-index: 1001;
}

.nav-links {
  display: flex;
}

nav a {
  color: var(--fg);
  text-decoration: none;
  margin-left: 3rem;
  font-size: 0.9rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  transition: opacity 0.3s;
  text-transform: uppercase;
}

nav a:hover {
  opacity: 0.5;
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  z-index: 1001;
  gap: 6px;
}

.hamburger span {
  width: 28px;
  height: 2px;
  background: var(--fg);
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(8px, -8px);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  padding-top: 100px;
  position: relative;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  height: 90vh;
}

.hero h1 {
  margin-bottom: 2rem;
  letter-spacing: -0.02em;
  line-height: 1.1;
  font-size: 10rem;
  font-weight: 700;
}

.hero p {
  font-size: 1.2rem;
  font-weight: 300;
  opacity: 0.6;
  max-width: 600px;
  line-height: 1.8;
}

.scroll-indicator {
  position: absolute;
  bottom: 10rem;
  left: 50%;
  transform: translateX(-50%);
  writing-mode: vertical-rl;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  opacity: 0.3;
  text-transform: uppercase;
}

/* Section générique */
section {
  padding: 8rem 0;
  position: relative;
}

.section-number {
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  opacity: 0.3;
  text-transform: uppercase;
  display: block;
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 300;
  margin-bottom: 4rem;
  letter-spacing: -0.02em;
}

/* Compétences */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.skill-item {
  background: var(--bg);
  padding: 3rem 2rem;
  transition: all 0.4s ease;
}

.skill-item:hover {
  background: var(--fg);
  color: var(--bg);
}

.skill-item h3 {
  font-size: 1.2rem;
  font-weight: 400;
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
}

.skill-item p {
  font-size: 0.9rem;
  font-weight: 300;
  opacity: 0.6;
}

.skill-item:hover p {
  opacity: 0.8;
}

/* Projets */
.projects-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.project-item {
  border-top: 1px solid var(--border);
  padding: 4rem 0;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  align-items: center;
  transition: all 0.4s ease;
  cursor: pointer;
}

.project-item:last-child {
  border-bottom: 1px solid var(--border);
}

.project-item:hover {
  padding-left: 2rem;
  background: var(--gray);
}

.project-number {
  font-size: 4rem;
  font-weight: 300;
  opacity: 0.2;
}

.project-content h3 {
  font-size: 2rem;
  font-weight: 300;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.project-content p {
  font-size: 1rem;
  font-weight: 300;
  opacity: 0.6;
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.tag {
  padding: 0.5rem 1.5rem;
  border: 1px solid var(--border);
  font-size: 0.8rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: all 0.3s;
}

.project-item:hover .tag {
  border-color: var(--fg);
  background: var(--fg);
  color: var(--bg);
}

/* Contact */
#contact {
  min-height: 60vh;
  display: flex;
  align-items: center;
}

.contact-content {
  text-align: center;
  width: 100%;
}

.contact-icons {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 4rem;
}

.contact-icons a {
  width: 80px;
  height: 80px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--fg);
  transition: all 0.4s ease;
  position: relative;
}

.contact-icons a::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--fg);
  transform: scale(0);
  transition: transform 0.4s ease;
}

.contact-icons a:hover::before {
  transform: scale(1);
}

.contact-icons a svg {
  position: relative;
  z-index: 1;
  transition: all 0.4s ease;
}

.contact-icons a:hover {
  border-color: var(--fg);
}

.contact-icons a:hover svg {
  filter: invert(1);
}

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0;
  text-align: center;
  opacity: 0.3;
  font-size: 0.9rem;
  font-weight: 300;
  letter-spacing: 0.1em;
}

/* Responsive Tablet */
@media (max-width: 1024px) {
  .container {
    padding: 0 2rem;
  }

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

  .project-item {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .project-number {
    font-size: 2rem;
  }
}

/* Responsive Mobile */
@media (max-width: 768px) {
  .container {
    padding: 0 1.5rem;
  }

  /* Menu Hamburger */
  .hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: right 0.4s ease;
    padding: 2rem;
  }

  .nav-links.active {
    right: 0;
  }

  nav a {
    margin: 1.5rem 0;
    font-size: 1.5rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
  }

  .nav-links.active a {
    opacity: 1;
    transform: translateY(0);
  }

  .nav-links.active a:nth-child(1) {
    transition-delay: 0.1s;
  }
  .nav-links.active a:nth-child(2) {
    transition-delay: 0.2s;
  }
  .nav-links.active a:nth-child(3) {
    transition-delay: 0.3s;
  }
  .nav-links.active a:nth-child(4) {
    transition-delay: 0.4s;
  }

  /* Hero */
  .hero-content {
    height: 80vh;
  }

  .hero h1 {
    font-size: clamp(2.5rem, 12vw, 4rem);
  }

  .hero p {
    font-size: 1rem;
  }

  .scroll-indicator {
    bottom: 4rem;
  }

  /* Sections */
  section {
    padding: 4rem 0;
  }

  .section-number {
    position: relative;
    left: 0;
    margin-bottom: 0.5rem;
    margin-top: 10%;
  }

  h2 {
    font-size: clamp(1.8rem, 8vw, 3rem);
    margin-bottom: 2rem;
  }

  /* Skills */
  .skills-grid {
    grid-template-columns: 1fr;
  }

  .skill-item {
    padding: 2rem 1.5rem;
  }

  /* Projects */
  .project-item {
    padding: 2rem 0;
    gap: 1.5rem;
  }

  .project-item:hover {
    padding-left: 0;
  }

  .project-number {
    font-size: 1.5rem;
  }

  .project-content h3 {
    font-size: 1.5rem;
  }

  .project-content p {
    font-size: 0.95rem;
  }

  .tags {
    gap: 0.5rem;
  }

  .tag {
    padding: 0.4rem 1rem;
    font-size: 0.75rem;
  }

  /* Contact */
  .contact-icons {
    gap: 1.5rem;
    flex-wrap: wrap;
  }

  .contact-icons a {
    width: 60px;
    height: 60px;
  }

  .contact-icons a svg {
    width: 20px;
    height: 20px;
  }
}

/* Très petits écrans */
@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

  .logo {
    font-size: 1.2rem;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .project-content h3 {
    font-size: 1.3rem;
  }

  .contact-icons a {
    width: 50px;
    height: 50px;
  }
}
