:root {
  --bg-color: #0d0d0d;
  --surface-color: #1a1a1a;
  --primary-color: #b0b0b0; /* Gris/Argent (style Monochrome) */
  --text-primary: #ffffff;
  --text-secondary: #a0a0a0;
  --font-main: 'Orbitron', sans-serif;
  --font-text: 'Inter', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: #000000;
  /* Dégradé gris vers noir */
  background-image: linear-gradient(180deg, rgba(200, 200, 200, 0.15) 0%, rgba(100, 100, 100, 0.08) 60%, rgba(30, 30, 30, 0.03) 100%);
  color: var(--text-primary);
  font-family: var(--font-text);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, .logo {
  font-family: var(--font-main);
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* Typography & Glow */
.glow-text {
  color: var(--primary-color);
  text-shadow: 0 0 10px rgba(176, 176, 176, 0.5), 0 0 20px rgba(176, 176, 176, 0.3);
}

/* Navbar */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 50px;
  background: rgba(13, 13, 13, 0.8);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  z-index: 1000;
  border-bottom: 1px solid rgba(176, 176, 176, 0.15);
}

.logo {
  font-size: 28px;
  font-weight: 900;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: 4px;
}

.nav-links {
  display: flex;
  gap: 20px;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.nav-links a:hover {
  color: var(--primary-color);
  text-shadow: 0 0 8px rgba(176, 176, 176, 0.6);
}

/* Language Switch */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-left: 20px;
  border-left: 1px solid rgba(176, 176, 176, 0.3);
  padding-left: 20px;
}

.lang-switch a {
  color: var(--text-secondary);
  font-weight: 400;
}

.lang-switch a.active {
  color: var(--text-primary);
  font-weight: 700;
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

.lang-sep {
  color: var(--text-secondary);
  font-size: 0.9rem;
  opacity: 0.5;
}

/* Sections */
section {
  padding: 60px 10vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
  scroll-margin-top: 100px; /* Prevent sticky nav from covering section titles */
}

/* Hero Section */
#accueil {
  min-height: 100vh;
  align-items: center;
  text-align: center;
  position: relative;
  /* Voile sombre et GIF */
  background-image: 
    linear-gradient(rgba(13, 13, 13, 0.5), rgba(13, 13, 13, 0.8)), 
    url('assets/Nouveau gif de fond.webp');
  background-size: cover, cover;
  background-position: center, center;
  background-attachment: scroll, scroll;
}

.hero-content {
  animation: fadeIn 1.5s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-title {
  font-size: 5rem;
  margin-bottom: 20px;
  font-weight: 900;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 40px auto;
}

.btn {
  display: inline-block;
  padding: 15px 40px;
  background: rgba(176, 176, 176, 0.05);
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
  font-family: var(--font-main);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.4s ease;
  box-shadow: 0 0 15px rgba(176, 176, 176, 0.1) inset;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(176, 176, 176, 0.2), transparent);
  transition: left 0.5s ease;
}

.btn:hover::before {
  left: 100%;
}

.btn:hover {
  background: var(--primary-color);
  color: var(--bg-color);
  box-shadow: 0 0 30px rgba(176, 176, 176, 0.5);
}

/* Profil Section */
.profile-container {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
}

.profile-card {
  background: linear-gradient(145deg, #161a12, #0d100a);
  border: 1px solid rgba(176, 176, 176, 0.1);
  border-radius: 20px;
  overflow: hidden;
  width: 45%;
  min-width: 350px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(176, 176, 176, 0.1);
  border-color: rgba(176, 176, 176, 0.3);
}

.card-banner {
  height: 120px;
  background-color: #2a331a;
  background-size: cover;
  background-position: center;
  border-bottom: 2px solid var(--primary-color);
}

.card-content {
  padding: 20px 30px 30px;
  position: relative;
}

.profile-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 4px solid #161a12;
  position: absolute;
  top: -50px;
  left: 30px;
  object-fit: cover;
  background-color: #222;
}

.discord-card .profile-name {
  margin-top: 50px;
  font-family: var(--font-main);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
}

.profile-handle {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 15px;
}

.profile-badge {
  display: inline-block;
  color: var(--primary-color);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 2px;
  border-bottom: 1px solid rgba(176, 176, 176, 0.3);
  padding-bottom: 5px;
  margin-bottom: 20px;
  width: 100%;
}

.profile-status {
  background: rgba(255,255,255,0.05);
  padding: 10px;
  border-radius: 8px;
  font-style: italic;
  font-size: 0.85rem;
  margin-bottom: 20px;
  border-left: 3px solid var(--primary-color);
}

.profile-roles p {
  font-family: var(--font-main);
  font-size: 1.1rem;
  margin-bottom: 5px;
}

/* Roblox Card specifics */
.roblox-card {
  background: linear-gradient(145deg, #1a220a, #0a0e05);
}

.roblox-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 40px;
}

.roblox-avatar {
  position: static;
  width: 120px;
  height: 120px;
  margin-bottom: 20px;
  border-color: #1a220a;
}

.roblox-card .profile-name {
  font-family: var(--font-text);
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 0;
}

.online-dot {
  width: 12px;
  height: 12px;
  background-color: var(--primary-color);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 10px var(--primary-color);
}

.roblox-stats {
  display: flex;
  gap: 10px;
  margin: 20px 0;
  flex-wrap: wrap;
  justify-content: center;
}

.stat-badge {
  background: rgba(255,255,255,0.1);
  padding: 8px 15px;
  border-radius: 20px;
  font-size: 0.9rem;
}

.stat-badge strong {
  color: var(--text-primary);
}

.profile-bio {
  color: var(--text-secondary);
  font-size: 0.9rem;
  text-align: left;
  width: 100%;
}

.bio-link {
  color: var(--text-primary);
  text-decoration: underline;
  font-size: 0.8rem;
}

/* Skills Section */
.section-title {
  font-size: 3rem;
  margin-bottom: 60px;
  text-align: center;
}

.skills-container {
  display: flex;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
}

.skill-card {
  background: var(--surface-color);
  border: 1px solid rgba(176, 176, 176, 0.1);
  padding: 50px 40px;
  border-radius: 15px;
  width: 300px;
  text-align: center;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
  position: relative;
  overflow: hidden;
}

.skill-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%;
  height: 3px;
  background: var(--primary-color);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.skill-card:hover::after {
  transform: scaleX(1);
}

.skill-card:hover {
  transform: translateY(-15px);
  box-shadow: 0 15px 40px rgba(176, 176, 176, 0.15);
  border-color: rgba(176, 176, 176, 0.3);
}

.skill-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 25px;
  /* Transforme le noir en blanc, pour qu'il soit bien visible sur fond sombre */
  filter: invert(1); 
  transition: filter 0.3s ease, transform 0.3s ease;
}

.skill-card:hover .skill-icon {
  /* Effet jaune-vert au survol : teinte l'image */
  filter: invert(88%) sepia(21%) saturate(1022%) hue-rotate(29deg) brightness(105%) contrast(106%);
  transform: scale(1.1);
}

.skill-card h3 {
  font-size: 1.8rem;
  color: var(--text-primary);
}

.skill-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 10px;
  font-style: italic;
  font-family: var(--font-text);
}

/* Showcase */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
}

.project-card {
  background: var(--surface-color);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.4s ease;
  cursor: pointer;
}

.project-card:hover {
  border-color: var(--primary-color);
  box-shadow: 0 0 25px rgba(176, 176, 176, 0.2);
  transform: translateY(-5px);
}

.project-img {
  position: relative;
  width: 100%;
  height: 220px;
  background-color: #222;
  background-size: cover;
  background-position: center;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover .project-img {
  transform: scale(1.05);
}

.project-info {
  padding: 25px;
  position: relative;
  background: var(--surface-color);
  z-index: 2;
}

.project-info h3 {
  margin-bottom: 10px;
  font-size: 1.4rem;
}

.project-info p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Contact */
#contact {
  text-align: center;
  min-height: 60vh;
  justify-content: center;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 40px;
}

.contact-link {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 1.2rem;
  font-family: var(--font-main);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 10px 25px;
  border-radius: 30px;
  transition: all 0.3s;
}

.contact-link:hover {
  color: var(--bg-color);
  background: var(--primary-color);
  border-color: var(--primary-color);
  box-shadow: 0 0 15px rgba(176, 176, 176, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    display: none; /* A hamburger menu would be added here in a real scenario */
  }
  
  .hero-title {
    font-size: 3rem;
  }
  
  section {
    padding: 100px 5vw;
  }
}

/* Lightbox Styles */
.lightbox {
  display: none;
  position: fixed;
  z-index: 2000;
  padding-top: 80px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(5px);
}

.lightbox-content {
  position: relative;
  margin: auto;
  padding: 0;
  width: 90%;
  max-width: 1200px;
  height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#lightbox-img {
  max-width: 100%;
  max-height: 80vh; /* Limite la taille pour ne pas prendre toute la page */
  border-radius: 10px;
  box-shadow: 0 0 30px rgba(176, 176, 176, 0.15);
  object-fit: contain;
  transition: transform 0.3s ease;
}

#lightbox-img:hover {
  transform: scale(1.05); /* Petit zoom au survol */
}

.close-lightbox {
  color: white;
  position: absolute;
  top: 20px;
  right: 40px;
  font-size: 50px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s ease;
  z-index: 2001;
}

.close-lightbox:hover {
  color: var(--primary-color);
}

.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 20px;
  margin-top: -50px;
  color: white;
  font-weight: bold;
  font-size: 30px;
  transition: 0.3s ease;
  border-radius: 5px;
  user-select: none;
  background-color: rgba(0, 0, 0, 0.5);
}

.prev { left: 0; }
.next { right: 0; }

.prev:hover, .next:hover {
  background-color: var(--primary-color);
  color: var(--bg-color);
}

.caption-container {
  text-align: center;
  padding: 10px 16px;
  color: var(--text-primary);
  font-family: var(--font-text);
  font-weight: bold;
  font-size: 1rem;
  letter-spacing: 2px;
  position: absolute;
  bottom: -40px;
  width: 100%;
}

.lightbox-dots {
  text-align: center;
  margin-top: 15px;
}

.dot {
  cursor: pointer;
  height: 12px;
  width: 12px;
  margin: 0 6px;
  background-color: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.dot.active, .dot:hover {
  background-color: var(--primary-color);
  transform: scale(1.3);
}

.slide-next {
  animation: slideNext 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.slide-prev {
  animation: slidePrev 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes slideNext {
  0% { opacity: 0; transform: translateX(100px); }
  100% { opacity: 1; transform: translateX(0); }
}

@keyframes slidePrev {
  0% { opacity: 0; transform: translateX(-100px); }
  100% { opacity: 1; transform: translateX(0); }
}

/* Watermarks */
.image-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 100%;
  max-height: 80vh;
}

.watermark-large {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-30deg);
  font-size: clamp(40px, 8vw, 150px);
  font-weight: 900;
  color: rgba(255, 255, 255, 0.15);
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  font-family: var(--font-title);
  letter-spacing: 10px;
  z-index: 10;
}

.watermark-small {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-20deg);
  font-size: 2rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.2);
  text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.8);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  font-family: var(--font-title);
  letter-spacing: 5px;
  z-index: 10;
}

/* Music Button & Controls */
.music-controls {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(13, 13, 13, 0.8);
  padding: 5px 15px 5px 5px;
  border-radius: 30px;
  border: 1px solid rgba(176, 176, 176, 0.3);
  backdrop-filter: blur(5px);
  z-index: 1000;
  box-shadow: 0 0 10px rgba(176, 176, 176, 0.2);
  transition: all 0.3s ease;
}

.music-controls:hover {
  border-color: var(--primary-color);
  box-shadow: 0 0 15px rgba(176, 176, 176, 0.4);
}

.music-btn {
  background: transparent;
  border: none;
  color: var(--primary-color);
  padding: 8px 15px;
  border-radius: 20px;
  cursor: pointer;
  font-family: var(--font-text);
  font-weight: 600;
  transition: all 0.3s ease;
}

.music-btn:hover {
  color: var(--text-primary);
}

.music-btn.playing {
  color: var(--text-secondary);
}

.volume-slider-container {
  display: flex;
  align-items: center;
  width: 80px;
}

#volume-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  outline: none;
}

#volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary-color);
  cursor: pointer;
  transition: transform 0.2s;
}

#volume-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

/* Scroll Animations */
.hidden-element {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: opacity, transform;
}

.show-element {
  opacity: 1;
  transform: translateY(0);
}

.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }
.delay-500 { transition-delay: 0.5s; }

/* Target Section Highlight */
@keyframes pulseGlow {
  0% { transform: scale(1); text-shadow: 0 0 10px rgba(176, 176, 176, 0.5); }
  50% { transform: scale(1.05); text-shadow: 0 0 30px rgba(176, 176, 176, 1), 0 0 50px rgba(255, 255, 255, 0.8); }
  100% { transform: scale(1); text-shadow: 0 0 10px rgba(176, 176, 176, 0.5); }
}

.highlight-section {
  animation: pulseGlow 1s ease-out forwards;
  display: inline-block; /* Ensure transform applies correctly to inline elements */
}

/* Game Overlay */
#game-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.95);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#game-container {
  background: var(--surface-color);
  padding: 20px;
  border-radius: 10px;
  border: 1px solid var(--primary-color);
  box-shadow: 0 0 20px rgba(176, 176, 176, 0.3);
  text-align: center;
}

#gameCanvas {
  background: #111;
  border: 2px solid #333;
  border-radius: 5px;
  display: block;
}

#close-game {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  padding: 10px 20px;
  font-family: var(--font-main);
  font-size: 1rem;
  cursor: pointer;
  border-radius: 5px;
  transition: all 0.3s ease;
}

#close-game:hover {
  background: var(--primary-color);
  color: #000;
}
