/* BASE */
body {
  display: flex;
  flex-direction: column;
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  background-color: #0e0d1b;
  color: #f5f5f5;
}
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

/* 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;
}

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

/* LANG SWITCH */
.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;
}

/* MAIN */
main.container {
  flex: 1;
  max-width: 1000px;
  margin: 0 auto;
  padding: 100px 20px;
  line-height: 1.8;
}

main h1 {
  font-size: 4rem;
  text-align: center;
  color: #9cec5b;
  margin-bottom: 10px;
}

main .last-update {
  text-align: center;
  font-size: 0.9rem;
  color: #bbb;
  margin-bottom: 40px;
}

main h3 {
  font-size: 1.6rem;
  margin-top: 40px;
  margin-bottom: 15px;
  color: #9cec5b;
}

main ul {
  margin-left: 20px;
  list-style-type: disc;
}

/* EMAIL BUTTON */
.email-toggle {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.email-toggle button {
  background-color: #9cec5b;
  border: none;
  padding: 8px 12px;
  color: #0f0f0f; 
  font-weight: bold;
  cursor: pointer;
  border-radius: 5px;
  transition: background 0.3s ease;
}

.email-toggle button:hover {
  background-color: #78b745;
}

/*  project-public */

.project-public-banner {
  background: linear-gradient(90deg, #aba7d5, #9fd4cf);
  padding: 80px 20px;
}

.project-public-banner-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 60px;
}

.project-public-banner-image img {
  max-width: 280px;
  width: 100%;
}

.project-public-banner-text {
  flex: 1;
  min-width: 300px;
  text-align: right;
}

.project-public-banner-text h2 {
  font-size: 42px;
  font-weight: 800;
  color: #1a1a1a;
  margin-bottom: 20px;
}

.project-public-banner-subtitle {
  font-size: 20px;
  color: #1a1a1a;
  margin-bottom: 15px;
  font-weight: 500;
}

.project-public-banner-note {
  font-size: 15px;
  color: #1a1a1a;
  line-height: 1.6;
}

.project-category-title {
  font-size: 1.8rem;
  margin: 60px 0 20px;
  text-align: center;
  color: #a09cd8;
}

.project-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  margin-bottom: 60px;
}

.project-item {
  width: 400px;
  height: 400px;
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.project-item:hover .project-thumb {
  transform: scale(1.05);
}

.project-thumb {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  border-radius: 10px;
  position: relative;
  transition: transform 0.3s ease;
  display: flex;
  align-items: flex-end;
}

.project-title {
  width: 100%;
  background: rgba(0, 0, 0, 0.6);
  padding: 10px;
  font-size: 1rem;
  color: #ffffff;
  text-align: center;
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
  text-transform: uppercase; 
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}

.project-coming-soon {
  font-style: italic;
  color: #999;
  text-align: center;
  width: 100%;
  margin-bottom: 40px;
}

.project-item a, 
.project-item a:visited, 
.project-item a:hover {
  text-decoration: none;
}
/* DEVLOG */
.devlogs-container {
  max-width: 900px;
  margin: 100px auto;
  padding: 0 20px;
}

.devlogs-container h1 {
  flex: 1;
  margin: 0;
  color: #a09cd8;
  font-size: 3.5rem;
  font-family: 'Montserrat', bold;
}

.devlog-entry {
  background: rgba(255, 255, 255, 0.05);                
  border-left: 6px solid #e67e22;                      
  border: 1px solid rgba(255, 255, 255, 0.12);        
  backdrop-filter: blur(8px);                         
  -webkit-backdrop-filter: blur(8px);                   
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);         
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 30px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.devlog-entry:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.devlog-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.project-badge {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: inline-block;
}

.devlog-header h2 {
  flex: 1;
  margin: 0;
  color: #fff;
  font-size: 1.3rem;
}

.devlog-content {
  margin-top: 10px;
  color: #ddd;
  line-height: 1.6;
  font-size: 1rem;
  white-space: pre-line;
}

.devlog-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 1.3rem;
  color: #fff;
}

.project-chip {
  display: inline-flex;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.chip-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 6px;
}
/* Image devlog responsive */
.devlogs-container img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* Section titre et titre responsive */
.devlogs-container h1 {
  font-size: 3.5rem;
  text-align: center;
  word-wrap: break-word;
}

/* 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;
}

/* GAME */
.game-banner {
  background-size: cover;
  background-position: center;
  height: 300px;
  position: relative;
  margin-bottom: 40px;
}

.game-banner-overlay {
  background: rgba(0, 0, 0, 0.6);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.game-banner h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.8rem;
  color: #fff;
  text-transform: uppercase;
  text-align: center;
}

.game-details-container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 60px;
}

.game-sidebar {
  flex: 0 0 220px;
  max-width: 220px;
  height: 250px;
  background: #1a1a1a;
  padding: 20px;
  border-radius: 12px;
  font-size: 0.95rem;
  color: #ddd;
}

.game-sidebar .game-icon {
  width: 100%;
  max-width: 120px;
  margin-bottom: 20px;
  border-radius: 10px;
}
.game-sidebar p {
  margin-bottom: 15px;
  line-height: 1.4;
}

.game-sidebar strong {
  color: #a09cd8;
  font-size: 0.95rem;
}

.btn-steam {
  display: inline-block;
  background: #1b2838;
  color: #66c0f4;
  padding: 10px 15px;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  margin-top: 10px;
}

.game-main {
  flex: 2;
  min-width: 280px;
}

.progress-box {
  margin-bottom: 20px;
}

.progress-text {
  font-weight: bold;
  margin-bottom: 5px;
  color: #ccc;
}

.progress-bar {
  background: #333;
  height: 20px;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.progress-fill {
  height: 100%;
  background-color: var(--progress-color, #999);
  transition: width 0.5s ease;
}

.game-description {
  margin-top: 20px;
  font-size: 1rem;
  line-height: 1.7;
  color: #eee;
}

.game-gallery {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.game-gallery img {
  width: 100%;
  max-width: 400px;
  border-radius: 8px;
}
.btn-back-projects {
  display: inline-block;
  background-color: #9cec5b;
  color: #0f0f0f;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.3s ease;
}

.btn-back-projects:hover {
  background-color: #78b745;
}

/* ABOUT */
.about-main {
  padding: 100px 20px;
  display: flex;
  flex-direction: column;
  gap: 80px;
  background-color: #121212;
}

.story-block {
  display: flex;
  align-items: center;
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.story-block.reverse {
  flex-direction: row-reverse;
}

.story-text {
  flex: 1;
  min-width: 300px;
}

.story-text h2 {
  font-size: 2rem;
  color: #a09cd8;
  margin-bottom: 20px;
}

.story-text p {
  font-size: 1.1rem;
  color: #ccc;
  line-height: 1.6;
}

.story-image {
  flex: 1;
  min-width: 300px;
}

.story-image img {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 0 10px #000;
  object-fit: cover;
}
.story-block.vertical {
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0;

}

.story-image.centered {
  display: flex;
  justify-content: center;
  margin-bottom: 5px;
}
.story-image.centered img {
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
}

.story-text.centered-text {
  max-width: 700px;
}
.story-image img.no-shadow {
  box-shadow: none !important;
}

.section-divider {
  border: none;
  height: 1px;
  background: linear-gradient(to right, transparent, #a09cd8, transparent);
  margin: 20px auto;
  width: 40%;
  opacity: 0.5;
}

[data-animate] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}

/* CONTACT */
.contact-info {
  background-color: #1a1a1a;
  padding: 30px;
  border-radius: 10px;
  color: #fff;
  margin: 40px auto;
  max-width: 900px;
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.contact-info p {
  margin-bottom: 15px;
  font-size: 0.95rem;
}

.btn-orange-small {
  background-color: #a09cd8;
  color: #fff;
  border: none;
  padding: 5px 12px;
  font-weight: bold;
  border-radius: 6px;
  cursor: pointer;
}

.contact-form {
  background-color: #1a1a1a;
  padding: 40px;
  margin: 40px auto;
  border-radius: 10px;
  max-width: 900px;
  color: #fff;
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.contact-form label {
  display: block;
  margin-top: 20px;
  font-weight: 600;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  margin-top: 8px;
  padding: 12px;
  border-radius: 8px;
  border: none;
  background-color: #2a2a2a;
  color: #fff;
  box-sizing: border-box;
  font-family: inherit;
}

.contact-form .submit-btn {
  margin-top: 30px;
  background-color: #2c3e50;
  color: #fff;
  border: none;
  padding: 14px;
  width: 100%;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
}

.contact-form .submit-btn:hover {
  background-color: #34495e;
}

.contact-title {
  text-align: center;
  color: #a09cd8;
  font-size: 1.8rem;
  margin-bottom: 30px;
}

.privacy-text {
  font-size: 0.85rem;
  color: #aaa;
}

.hidden-email {
  display: none;
  margin-left: 10px;
  font-weight: 500;
}

.hidden-email.visible {
  display: inline;
}
.alert {
  max-width: 900px;
  margin: 30px auto;
  padding: 15px 20px;
  border-radius: 8px;
  font-weight: bold;
  text-align: center;
}

.alert.success {
  background-color: #2ecc71;
  color: white;
}

.alert.error {
  background-color: #e74c3c;
  color: white;
}
.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;
  }
  
    main h1 {
    font-size: 2.2rem;
  }

  .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;
  }
  .project-public-banner-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 60px;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.project-public-banner-text {
  flex: 1;
  min-width: 280px;
  text-align: center !important;
}

.project-public-banner-image {
  flex: 1;
  min-width: 280px;
  text-align: center;
}

.project-public-banner-image img {
  max-width: 280px;
  width: 100%;
  height: auto;
}
 .project-public-banner-text h2,
  .project-public-banner-subtitle,
  .project-public-banner-note {
    text-align: center;
  }

/* Section Projets */
.project-gallery-section {
  padding: 60px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.project-category-title {
  font-size: 1.8rem;
  text-align: center;
  margin: 40px 0 20px;
  color: #a09cd8;
}

.project-gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.project-item {
  width: 280px;
  height: 280px;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.project-item:hover .project-thumb {
  transform: scale(1.05);
}

.project-thumb {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  border-radius: 12px;
  transition: transform 0.3s ease;
}

.project-title {
  width: 100%;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  text-align: center;
  padding: 10px;
}

/* GAME */
.game-sidebar {
  margin: 0 auto;
}
.btn-back-projects {
  display: block;
  text-align: center;
  margin: 20px auto;
}

  .footer {
    padding: 30px 20px;
  }
  
  /* Devlogs */
  .devlogs-container {
    padding: 0 15px;
  }

  .devlogs-container h1 {
    font-size: 2rem;
  }

  .devlog-entry {
    padding: 16px;
  }

  .devlog-title {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    font-size: 1.1rem;
  }

  .project-chip {
    font-size: 0.7rem;
    padding: 3px 8px;
  }

  .devlog-content {
    font-size: 0.95rem;
  }

  .devlog-header small {
    font-size: 0.8rem;
    display: block;
    margin-top: 5px;
  }
}
