/* ================= RESET ================= */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", system-ui, sans-serif;
  background: #0b0b10;
  color: #f5f5f7;
  line-height: 1.6;
}

/* ================= VARIABLES ================= */
:root {
  --purple: #7c5cff;
  --purple-light: #a78bfa;
  --bg-dark: #0b0b10;
  --bg-card: rgba(255, 255, 255, 0.05);
  --border: rgba(255, 255, 255, 0.1);
  --text-muted: #b5b5c0;
}

/* ================= GLOBAL ================= */
.container {
  width: min(1200px, 90%);
  margin-inline: auto;
}

section {
  padding: 6rem 0;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* ================= HEADER ================= */
.header {
  background: rgba(11, 11, 16, 0.6);
  backdrop-filter: blur(12px);
  border-bottom: none;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 100;
}

.nav {
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 0 1rem;
}

.nav__logo {
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--purple);
  flex-shrink: 0;
}

.nav__links {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.nav__links a {
  color: var(--text-muted);
  font-weight: 500;
  transition: color 0.3s;
}

.nav__links a:hover {
  color: #fff;
}

/* ================= HERO ================= */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 70px;
}

.hero__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
}

.hero__text {
  display: flex;
  flex-direction: column;
  gap: 15px;
  justify-content: center;
  align-items: flex-start;
  max-width: 400px;
}

.hero__title {
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 900;
  line-height: 1;
}

.hero__title span {
  color: var(--purple);
}

.hero__subtitle {
  margin-top: 0.5rem;
}

.hero__description {
  margin-top: 1rem;
}

.hero__cta {
  width: fit-content;
  padding: 0.8rem 1.8rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--purple), var(--purple-light));
  color: #000;
  font-weight: 700;
  transition: transform 0.3s, box-shadow 0.3s;
}

.hero__cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(124, 92, 255, 0.4);
}

.hero__scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0.4;
  animation: float 2.5s infinite ease-in-out;
}

.hero__scroll img {
  width: 28px;
}

.hero__visual {
  width: 400px;
  height: 420px;
  position: relative;
}

.hero__visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at center,
    rgba(124, 92, 255, 0.35),
    transparent 70%
  );
  filter: blur(60px);
}

@keyframes float {
  0% {
    transform: translate(-50%, 0);
  }
  50% {
    transform: translate(-50%, 10px);
  }
  100% {
    transform: translate(-50%, 0);
  }
}

/* ================= SECTIONS ================= */
.section__header {
  text-align: center;
  margin-bottom: 4rem;
}

.section__title {
  font-size: 2.5rem;
  font-weight: 800;
}

.section__subtitle {
  color: var(--text-muted);
  margin-top: 0.8rem;
}

/* ================= SKILLS ================= */
.skills__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.skill__card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 1.2rem;
  padding: 2rem;
  transition: transform 0.3s, border 0.3s;
}

.skill__card:hover {
  transform: translateY(-5px);
  border-color: var(--purple);
}

.skill__card h3 {
  margin-bottom: 1rem;
  color: var(--purple-light);
}

/* ================= PROJECTS ================= */
.projects__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
}

.project__card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  overflow: hidden;
  transition: transform 0.3s, border 0.3s;
}

.project__card:hover {
  transform: translateY(-8px);
  border-color: var(--purple);
}

.project__image {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.project__content {
  padding: 1.5rem;
}

.project__title {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.project__description {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.project__tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1rem 0;
}

.project__tech li {
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 0.75rem;
  background: rgba(124, 92, 255, 0.15);
  color: var(--purple-light);
}

.project__link {
  display: inline-block;
  margin-top: 0.5rem;
  color: var(--purple);
  font-weight: 600;
}

/* ================= CONTACT ================= */
.contact {
  padding: 6rem 0;
  background: var(--bg-dark);
}

.contact__content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  color: #f5f5f7;
}

.contact__content p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.contact__content ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  font-size: 1rem;
}

.contact__content ul li {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 0.8rem;
  padding: 0.7rem 1rem;
  transition: transform 0.3s, border 0.3s;
}

.contact__content ul li:hover {
  transform: translateY(-3px);
  border-color: var(--purple);
  cursor: default;
}

.contact__content ul li::before {
  content: "•";
  color: var(--purple);
  display: inline-block;
  width: 1em;
  margin-right: 0.5em;
}

.contact__button {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.9rem 2rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--purple), var(--purple-light));
  color: #000;
  font-weight: 700;
  transition: transform 0.3s, box-shadow 0.3s;
}

.contact__button:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(124, 92, 255, 0.4);
}

@media (max-width: 768px) {
  .contact__content {
    text-align: center;
    gap: 1.5rem;
  }

  .contact__content ul {
    gap: 0.6rem;
  }

  .contact__content ul li {
    font-size: 0.95rem;
  }

  .contact__button {
    padding: 0.8rem 1.8rem;
  }
}

@media (max-width: 480px) {
  .contact__content p {
    font-size: 0.95rem;
  }

  .contact__content ul li {
    font-size: 0.9rem;
    padding: 0.6rem 0.8rem;
  }

  .contact__button {
    padding: 0.7rem 1.5rem;
    font-size: 0.9rem;
  }
}

/* ================= FOOTER ================= */
.footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
}

.footer__content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer__links {
  display: flex;
  gap: 1.5rem;
}

.footer__links a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 1024px) {
  .hero__content {
    gap: 2rem;
  }

  .hero__visual {
    width: 300px;
    height: 350px;
  }

  .hero__text {
    max-width: 350px;
  }

  .section__title {
    font-size: 2rem;
  }

  .section__subtitle {
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  .nav__links {
    flex-direction: column;
    width: 100%;
    display: none;
    background: rgba(11, 11, 16, 0.95);
    padding: 1rem 0;
    border-radius: 1rem;
  }

  .nav__links.show {
    display: flex;
  }

  .nav__links a {
    padding: 0.5rem 1rem;
    width: 100%;
    text-align: center;
  }

  .hero {
    padding-top: 70px;
  }

  .hero__content {
    flex-direction: column;
    text-align: center;
  }

  .hero__text {
    align-items: center;
    max-width: 100%;
  }

  .hero__visual {
    width: 250px;
    height: 250px;
    margin-top: 2rem;
  }

  .skills__list,
  .projects__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero__title {
    font-size: 2.2rem;
  }

  .hero__subtitle {
    font-size: 1.1rem;
  }

  .hero__description {
    font-size: 0.95rem;
  }

  .hero__cta {
    padding: 0.7rem 1.5rem;
    font-size: 0.9rem;
  }

  .project__image {
    height: 150px;
  }
}

/* ================= SECTIONS ================= */

/* Hero / Accueil */
.hero {
  background-color: #0b0b10; /* sombre violet très foncé */
}

/* Compétences */
.skills {
  background-color: #11111a; /* légèrement plus clair que le hero */
}

/* Projets */
.projects {
  background-color: #0f0f17; /* intermédiaire sombre */
}

/* Contact */
.contact {
  background-color: #12121e; /* un peu différent pour se détacher */
}


