/* BASE */
body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  background-color: #0e0d1b;
  color: #f5f5f5;
}

/* HEADER */
.header {
  background-color: #1a1a1a;
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}
.logo {
  max-width: 300px;
  max-height: 75px;
  height: auto;
  width: auto;
}
.nav {
  display: flex;
  gap: 30px;
}
.nav a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  padding: 10px 0;
  position: relative;
}
.nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background-color: #90e0d0;
  transition: width 0.3s ease;
}
.nav a:hover::after {
  width: 100%;
}
.nav a:hover {
  color: #ffffff;
}
.burger {
  display: none;
  font-size: 28px;
  color: #ffffff;
  cursor: pointer;
}

/* HERO */
.hero {
  height: 450px;
  background: url('../img/hero-banner.png') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  text-align: center;
}
.hero-slogan {
  color: #d0d0d0;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.6);
  text-align: center;
  position: relative;
  z-index: 2;
}
.hero-title {
  font-size: 45px;
  font-weight: 700;
  margin-bottom: 10px;
}
.hero-subtitle {
  font-family: 'Courier New', Courier, monospace;
  font-size: 25px;
  color: #ccc;
  font-style: normal;
  font-weight: 400;
  margin-top: 8px;
  min-height: 24px;
}
.cursor {
  display: inline-block;
  animation: blink 1s steps(2, start) infinite;
  color: #ccc;
}
@keyframes blink {
  0%, 50% { opacity: 1; }
  50.01%, 100% { opacity: 0; }
}

/* PROJETS */
.projects {
  background: linear-gradient(to right, #a09cd8, #90e0d0);
  padding: 50px 40px;
}
.projects h2 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 30px;
  text-align: center;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
}
.project-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}
.project-card {
  width: 400px;
  height: 200px;
  background-size: cover;
  background-position: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.4);
  display: flex;
  align-items: end;
}
.project-overlay {
  background-color: rgba(0, 0, 0, 0.6);
  width: 100%;
  padding: 10px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: end;
  gap: 6px;
}
.project-overlay p {
  margin: 0;
  font-weight: 700;
  font-size: 16px;
  color: #ffffff;
}
.project-status {
  font-style: italic;
  font-weight: normal !important;
  font-size: 14px;
  color: white;
}
.project-button-container {
  text-align: center;
  margin-top: 40px;
}
.btn-orange {
  background-color: #90e0d0;
  color: #0e0d1b;
  padding: 12px 24px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 4px;
  display: inline-block;
  transition: background-color 0.3s ease;
}

.btn-orange:hover {
  background-color: #c4f0f8;
}

/* Progress bar */
.progress-bar-back {
  width: 100%;
  height: 16px;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  overflow: hidden;
  margin-top: 4px;
  position: relative;
}
.progress-bar-fill {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 8px;
  font-size: 12px;
  font-weight: bold;
  color: #0e0d1b;
  transition: width 0.4s ease-in-out;
}
.progress-text-inside {
  z-index: 2;
  color: #0e0d1b;
}

/* DEVLOGS */
.devlogs {
  background-color: #1b1a2e;
  padding: 60px 40px;
  text-align: center;
  overflow-x: hidden;
}
.devlogs h2 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 30px;
  color: #a09cd8;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
}
.devlog-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
}
.devlog-card {
  width: 300px;
  background-color: #2b2944;
  padding: 20px;
  border-radius: 4px;
  text-align: left;
}
.devlog-card h3 {
  margin-top: 0;
  color: #c4f0f8;
}
.devlog-card a {
  color: #90e0d0;
  font-weight: bold;
  text-decoration: none;
}
.devlog-date {
  font-size: 13px;
  color: #ccc;
  font-style: italic;
  margin-bottom: 6px;
}

/* NEWSLETTER */
.newsletter {
  background: linear-gradient(to right, #a09cd8, #90e0d0);
  padding: 60px 40px;
  color: #1a1a1a;
}
.newsletter-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}
.newsletter-text {
  flex: 1 1 500px;
  padding-right: 20px;
}
.newsletter-image {
  flex: 1 1 300px;
  text-align: center;
}
.newsletter-image img {
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}
.newsletter h2 {
  font-size: 48px;
  font-weight: 800;
  margin: 0;
}
.newsletter .subtitle {
  font-size: 20px;
  margin: 15px 0 25px;
}
.newsletter-form {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.newsletter-form input {
  padding: 12px;
  width: 250px;
  border: none;
  border-radius: 4px;
  font-size: 16px;
}
.newsletter-form button {
  padding: 12px 20px;
  background-color: #90e0d0;
  border: none;
  color: #1a1a1a;
  font-weight: bold;
  font-size: 16px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
}
.newsletter-form button:hover {
  background-color: #c4f0f8;
}
.newsletter-note {
  font-size: 13px;
  color: #1a1a1a;
}
.newsletter-note .highlight {
  color: #9cec5b;
  font-weight: 600;
}

/* ABOUT */
.about {
  background-color: #1b1a2e;
  padding: 60px 40px;
  text-align: center;
}
.about h2 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 20px;
  color: #a09cd8;
}

/* FOOTER */
.footer {
  background-color: #1a1a1a;
  padding: 60px 40px;
}
.footer-sections {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 30px;
  text-align: center;
}
.footer-block h3 {
  font-weight: 800;
  margin-bottom: 5px;
  color: #a09cd8;
}
.footer-block p {
  margin-bottom: 15px;
}
.footer-links {
  text-align: center;
  margin-top: 10px;
  font-family: 'Montserrat', sans-serif;
}

.footer-links a {
  color: #9cec5b;
  text-decoration: none;
  margin: 0 10px;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: #78b745;
}

.discord-btn {
  display: inline-block;
  background-color: #5865F2; /* Couleur Discord */
  color: white;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 20px;
  text-decoration: none;
  margin: 0 10px;
  transition: background-color 0.3s ease;
  font-size: 0.9rem;
}

.discord-btn:hover {
  background-color: #4752c4;
}



/* RESPONSIVE */
@media screen and (max-width: 768px) {
  .header {
    flex-direction: column;
    align-items: flex-start;
    padding: 15px 20px;
    position: relative;
  }
  .logo {
    max-width: 220px;
    max-height: 60px;
    margin-bottom: 10px;
  }
  .burger {
    display: block;
    position: absolute;
    top: 20px;
    right: 20px;
  }
  .nav {
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: #1a1a1a;
    margin-top: 10px;
  }
  .nav.nav-open {
    display: flex;
  }
  .nav a {
    padding: 10px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 16px;
  }
  .hero {
    height: auto;
    padding: 40px 20px;
  }
  .hero-title {
    font-size: 28px;
  }
  .hero-subtitle {
    font-size: 16px;
  }
  .projects, .devlogs, .newsletter, .about, .footer {
    padding: 30px 20px;
  }
  .project-grid,
  .devlog-grid,
  .newsletter-content,
  .footer-sections {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
  .project-card,
  .devlog-card {
    width: 100%;
    box-sizing: border-box;
  }
  .newsletter-text,
  .newsletter-image {
    text-align: center;
  }
  .newsletter h2 {
    font-size: 28px;
  }
  .newsletter .subtitle {
    font-size: 16px;
  }
  .newsletter-form {
    flex-direction: column;
    gap: 10px;
  }
  .newsletter-form input {
    width: 100%;
  }
}

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

.lang-switch {
  display: flex;
  gap: 10px;
  padding: 4px 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.lang-switch a {
  color: white;
  padding: 4px 10px;
  text-decoration: none;
  border-radius: 12px;
  transition: background 0.3s;
}

.lang-switch a.active {
  background: #9cec5b;
  color: #0f0f0f;
}