* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: radial-gradient(
    circle at top,
    #1f2937 0%,
    #111827 45%,
    #030712 100%
  );
  color: white;
}

/* MENU */
.navbar {
  height: 70px;
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #374151;
}

.logo {
  color: #a855f7;
  font-size: 22px;
}

nav a {
  color: white;
  text-decoration: none;
  margin-left: 25px;
  font-size: 16px;
}

nav a:hover {
  color: #a855f7;
}

/* ACCUEIL */
.hero {
  min-height: 60vh;
  padding: 80px 20px 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.hero h1 {
  max-width: 850px;
  font-size: 56px;
  color: white;
  margin-bottom: 20px;
  line-height: 1.1;
}
.hero h1 span {
  color: #a855f7;
}
.hero p {
  max-width: 700px;
  font-size: 18px;
  color: #d1d5db;
  line-height: 1.6;
  margin-bottom: 30px;
}

/* PANNEAUX */
.panels {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 25px;
  padding: 40px;
  flex-wrap: wrap;
}

.panel {
  background: rgba(31, 41, 55, 0.85);
  width: 320px;
  min-height: 230px;
  padding: 30px;
  border-radius: 20px;
  text-align: left;
  border: 1px solid rgba(168, 85, 247, 0.25);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
  transition:
    transform 0.3s ease,
    border 0.3s ease;
}

.panel:hover {
  transform: translateY(-8px);
  border: 1px solid #a855f7;
}

.panel h2 {
  margin-top: 0;
  font-size: 24px;
}

.panel p {
  color: #d1d5db;
  line-height: 1.5;
}

.panel ul {
  padding-left: 20px;
}

.panel li {
  margin-bottom: 8px;
}

/* BOUTONS */
.button {
  background: linear-gradient(135deg, #a855f7, #7c3aed);
  color: white;
  padding: 14px 28px;
  border-radius: 999px;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  font-weight: bold;
  box-shadow: 0 10px 25px rgba(168, 85, 247, 0.35);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.button:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(168, 85, 247, 0.5);
}

/* MENU MOBILE - BASE */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 32px;
  cursor: pointer;
  position: relative;
  z-index: 1001;
}

.nav-links {
  display: flex;
  align-items: center;
}

/* MOBILE */
@media (max-width: 900px) {
  .navbar {
    padding: 0 20px;
    position: relative;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    right: 20px;
    background-color: #1f2937;
    padding: 20px;
    border-radius: 12px;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    width: 170px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    z-index: 1000;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    margin-left: 0;
    font-size: 16px;
  }

  .hero h1 {
    font-size: 32px;
  }

  .panels {
    flex-direction: column;
    align-items: center;
    padding: 30px 20px;
  }

  .panel {
    width: 100%;
    max-width: 400px;
  }

  .portfolio {
    padding: 60px 20px;
  }

  .portfolio-card {
    width: 100%;
    max-width: 400px;
  }
}
/* PORTFOLIO */
.portfolio {
  padding: 60px 20px;
}

.portfolio-card {
  width: 100%;
  max-width: 400px;
}
.portfolio-card {
  transition: 0.3s;
  cursor: pointer;
}

.portfolio-card:hover {
  transform: translateY(-8px);
}

/* PORTFOLIO */
.portfolio {
  padding: 80px 40px;
  text-align: center;
}

.portfolio h2 {
  font-size: 36px;
  color: #a855f7;
  margin-bottom: 10px;
}

.portfolio p {
  color: #d1d5db;
  font-size: 18px;
}

.portfolio-grid {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 25px;
  flex-wrap: wrap;
}

.portfolio-card {
  background-color: #1f2937;
  width: 320px;
  min-height: 200px;
  padding: 25px;
  border-radius: 16px;
  text-align: left;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

.portfolio-card h3 {
  margin-top: 0;
  color: white;
}

.portfolio-card p {
  font-size: 16px;
  line-height: 1.5;
}

.portfolio-card {
  cursor: pointer;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.portfolio-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6);
}

#portfolioMessage {
  text-align: center;
  margin-top: 30px;
  color: #d1d5db;
  font-size: 18px;
}

.portfolio-card.active {
  border: 2px solid #a855f7;
  box-shadow: 0 25px 50px rgba(168, 85, 247, 0.35);
}

.hidden {
  display: none;
}

#toggleDetails {
  background-color: transparent;
  color: #a855f7;
  border: 1px solid #a855f7;
  padding: 12px 22px;
  border-radius: 12px;
  cursor: pointer;
  display: block;
  margin: 30px auto 0;
}

#toggleDetails:hover {
  background-color: #a855f7;
  color: white;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 30px;
  cursor: pointer;
}

.nav-links {
  display: flex;
  align-items: center;
}
/* CORRECTION MENU MOBILE */
.burger-btn {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 34px;
  cursor: pointer;
  z-index: 9999;
}

@media (max-width: 900px) {
  .navbar {
    position: relative;
    padding: 0 20px;
  }

  .burger-btn {
    display: block !important;
    position: absolute;
    right: 20px;
    top: 17px;
  }

  .nav-links {
    display: none !important;
    position: absolute;
    top: 70px;
    right: 20px;
    width: 170px;
    background-color: #1f2937;
    padding: 20px;
    border-radius: 12px;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    z-index: 9998;
  }

  .nav-links.active {
    display: flex !important;
  }

  .nav-links a {
    margin-left: 0;
    font-size: 16px;
  }

  .about {
    padding: 40px 20px;
  }

  .about-content {
    padding: 28px;
  }

  .about-content h2 {
    font-size: 30px;
  }

  .about-content p {
    font-size: 16px;
  }
}
.project-link {
  display: inline-block;
  margin-top: 20px;
  color: #a855f7;
  text-decoration: none;
  font-weight: bold;
}

.project-link:hover {
  text-decoration: underline;
}

.badge {
  background-color: rgba(168, 85, 247, 0.15);
  color: #d8b4fe;
  border: 1px solid rgba(168, 85, 247, 0.4);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 14px;
  margin-bottom: 20px;
}

.hero {
  animation: fadeInUp 0.8s ease forwards;
}

.panel,
.portfolio-card {
  animation: fadeInUp 0.9s ease forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* À PROPOS */
.about {
  padding: 60px 40px;
  display: flex;
  justify-content: center;
}

.about-content {
  max-width: 850px;
  background: rgba(31, 41, 55, 0.75);
  border: 1px solid rgba(168, 85, 247, 0.25);
  border-radius: 24px;
  padding: 40px;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
}

.about-content h2 {
  font-size: 36px;
  color: #a855f7;
  margin-top: 0;
  margin-bottom: 20px;
}

.about-content p {
  color: #d1d5db;
  font-size: 18px;
  line-height: 1.7;
}

/* TARIFS */
.pricing {
  padding: 80px 40px;
  text-align: center;
}

.pricing h2 {
  font-size: 36px;
  color: #a855f7;
  margin-bottom: 10px;
}

.pricing p {
  color: #d1d5db;
  font-size: 18px;
}

.pricing-grid {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 25px;
  flex-wrap: wrap;
}

.price-card {
  background: rgba(31, 41, 55, 0.85);
  border: 1px solid rgba(168, 85, 247, 0.25);
  width: 320px;
  padding: 30px;
  border-radius: 20px;
  text-align: left;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  transition:
    transform 0.3s ease,
    border 0.3s ease;
}

.price-card:hover {
  transform: translateY(-8px);
  border: 1px solid #a855f7;
}

.price-card h3 {
  font-size: 24px;
  margin-top: 0;
}

.price {
  font-size: 32px !important;
  color: #a855f7 !important;
  font-weight: bold;
}

.price-card ul {
  padding-left: 20px;
}

.price-card li {
  margin-bottom: 10px;
  color: #d1d5db;
}

.popular {
  border: 1px solid #a855f7;
}

#contact {
  margin-left: auto;
  margin-right: auto;
}
