/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
}
body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #0e0e1a 0%, #1b1b35 100%);
  color: #eee;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 20px 20px;
}

/* Structure de base */

/* Structure de base */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  background: rgba(18, 18, 42, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #c084fc;
  z-index: 1000;
}

/* Logo à gauche */
.logo a {
  font-size: 1.8rem;
  font-weight: 800;
  color: #c084fc;
  text-decoration: none;
}

/* Menu centré */
.nav-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.nav-links {
  display: flex;
  gap: 25px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: #d8c9ff;
  text-decoration: none;
}

/* Boutons à droite */
.nav-buttons {
  display: flex;
  gap: 15px;
}

/* Hamburger (masqué par défaut) */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}
.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: #c084fc;
  transition: all 0.3s;
}

/* Menu mobile */
.mobile-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(18, 18, 42, 0.98);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transform: translateY(-100%);
  transition: transform 0.3s ease;
  z-index: 1000;
}
.mobile-overlay ul {
  list-style: none;
  padding: 0;
  text-align: center;
}
.mobile-overlay li {
  margin: 20px 0;
}
.mobile-overlay a {
  color: #d8c9ff;
  text-decoration: none;
  font-size: 1.2rem;
}
.mobile-buttons {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 30px;
}

/* Animation quand ouvert */
.mobile-overlay.open {
  transform: translateY(0);
}
.hamburger.open span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
}
.hamburger.open span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* Version mobile */
@media (max-width: 768px) {
  .nav-center, .nav-buttons {
    display: none;
  }
  .logo {
	display: none;
   }
  .hamburger {
    display: flex;
  }
}

/* Container */
.container {
  max-width: 900px;
  width: 100%;
  z-index: 1;
  position: relative;
  margin-top: 70px;
}

/* Header */
header.hero {
  text-align: center;
  margin-bottom: 3rem;
  user-select: none;
}
header.hero h1 {
  font-size: 3rem;
  color: #c084fc;
  margin-bottom: 0.25rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}
header.hero h1 a {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.3s ease;
}
header.hero h1 a:hover {
  color: #a855f7;
}
header.hero p {
  font-size: 1.3rem;
  color: #d8c9ff;
  font-weight: 500;
}

/* Boutons */
.hero-buttons {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}
a.btn {
  background: #c084fc;
  color: #0e0e1a;
  font-weight: 700;
  padding: 12px 32px;
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.25s ease;
  user-select: none;
}
a.btn:hover {
  background: #a855f7;
}
a.btn.secondary {
  background: transparent;
  border: 2px solid #c084fc;
  color: #c084fc;
}
a.btn.secondary:hover {
  background: #c084fc;
  color: #0e0e1a;
}
/* ==================== */
/* SECTION FONCTIONNALITÉS - VERSION PREMIUM */
/* ==================== */

section.features {
  margin-bottom: 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.features h2 {
  color: #c084fc;
  font-size: 2rem;
  margin-bottom: 2rem;
  position: relative;
  display: inline-block;
}

.features h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, #c084fc, #9333ea);
  border-radius: 3px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  perspective: 1000px;
}

.card {
  background: rgba(18, 18, 42, 0.7);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 30px 20px;
  font-size: 1.15rem;
  color: #e2d9ff;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  border: 1px solid rgba(192, 132, 252, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  transform-style: preserve-3d;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(192, 132, 252, 0.1) 0%, transparent 70%);
  transform: rotate(30deg);
  transition: all 0.6s ease;
  opacity: 0;
}

.card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
  border-color: rgba(192, 132, 252, 0.4);
}

.card:hover::before {
  opacity: 1;
  transform: rotate(0);
}

.card-icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
  display: inline-block;
  background: linear-gradient(135deg, #c084fc, #9333ea);
  -webkit-background-clip: text;
  background-clip: text;
  transition: all 0.3s ease;
}

.card:hover .card-icon {
  transform: scale(1.1);
}

/* ==================== */
/* VERSION MOBILE */
/* ==================== */

@media (max-width: 768px) {
  section.features {
    padding: 0 15px;
  }
  
  .features h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
  }
  
  .cards {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .card {
    padding: 25px 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-radius: 12px;
  }
  
  .card-icon {
    font-size: 2rem;
    margin-bottom: 10px;
  }
  
  /* Animation en cascade pour les cartes */
  .card:nth-child(1) { animation: fadeInUp 0.6s ease 0.1s both; }
  .card:nth-child(2) { animation: fadeInUp 0.6s ease 0.2s both; }
  .card:nth-child(3) { animation: fadeInUp 0.6s ease 0.3s both; }
  .card:nth-child(4) { animation: fadeInUp 0.6s ease 0.4s both; }
}

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

/* Effet de vague décoratif */
.features::after {
  content: "";
  position: absolute;
  bottom: -50px;
  left: 0;
  width: 100%;
  height: 100px;
  background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1200 120" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="none"><path d="M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z" fill="%2312122a" opacity=".25"/><path d="M0,0V15.81C13,36.92,27.64,56.86,47.69,72.05,99.41,111.27,165,111,224.58,91.58c31.15-10.15,60.09-26.07,89.67-39.8,40.92-19,84.73-46,130.83-49.67,36.26-2.85,70.9,9.42,98.6,31.56,31.77,25.39,62.32,62,103.63,73,40.44,10.79,81.35-6.69,119.13-24.28s75.16-39,116.92-43.05c59.73-5.85,113.28,22.88,168.9,38.84,30.2,8.66,59,6.17,87.09-7.5,22.43-10.89,48-26.93,60.65-49.24V0Z" fill="%2312122a" opacity=".5"/><path d="M0,0V5.63C149.93,59,314.09,71.32,475.83,42.57c43-7.64,84.23-20.12,127.61-26.46,59-8.63,112.48,12.24,165.56,35.4C827.93,77.22,886,95.24,951.2,90c86.53-7,172.46-45.71,248.8-84.81V0Z" fill="%2312122a"/></svg>');
  background-size: cover;
  z-index: -1;
}

/* Wallpaper */
section.current-wallpaper {
  margin-bottom: 3rem;
  text-align: center;
  user-select: none;
}
section.current-wallpaper h2 {
  font-size: 2rem;
  color: #c084fc;
  margin-bottom: 1rem;
}
.wallpaper-container {
  display: flex;
  justify-content: center;
  margin-bottom: 0.75rem;
}
#currentWallpaper {
  max-width: 100%;
  max-height: 320px;
  border-radius: 15px;
  border: 2px solid #c084fc;
  object-fit: cover;
  transition: border-color 0.25s ease;
  user-select: none;
}
#currentWallpaper:hover {
  border-color: #a855f7;
}
.caption {
  font-style: italic;
  color: #d4b9ff;
  font-size: 1rem;
}

/* Contribuer */
section.contribute {
  text-align: center;
  margin-bottom: 3rem;
  user-select: none;
}
section.contribute h2 {
  font-size: 2rem;
  color: #c084fc;
  margin-bottom: 1rem;
}
section.contribute p {
  font-size: 1.15rem;
  margin-bottom: 1.5rem;
  color: #d8c9ff;
  font-weight: 600;
}

/* Dev team */
section.dev-team {
  margin-top: 3rem;
  text-align: center;
}
section.dev-team h2 {
  font-size: 2rem;
  color: #c084fc;
  margin-bottom: 1.5rem;
}
.dev-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.dev-card {
  background: #12122a;
  border-radius: 15px;
  padding: 20px;
  text-align: center;
  transition: background 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.dev-card:hover {
  background: #2a2467;
}
.dev-card img {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 15px;
  border: 2px solid #c084fc;
}
.dev-card h3 {
  margin: 5px 0;
  font-size: 1.2rem;
  color: #c084fc;
}
.dev-card p {
  font-size: 1rem;
  color: #d8c9ff;
  font-style: italic;
}

/* Footer */
footer {
  margin-top: 4rem;
  padding: 15px 0;
  color: #a58de2;
  font-size: 0.9rem;
  text-align: center;
  width: 100%;
}

/* Background blur animation */
.bg-blur {
  position: fixed;
  width: 300px;
  height: 300px;
  background: #9333ea;
  filter: blur(100px);
  border-radius: 50%;
  top: 10%;
  left: 10%;
  animation: move 12s infinite alternate ease-in-out;
  opacity: 0.3;
  z-index: 0;
}
@keyframes move {
  0% { transform: translate(0, 0); }
  100% { transform: translate(200px, 100px); }
}

/* Overlay sombre */
.popup-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  backdrop-filter: blur(5px);
}
/* Popup en mode "verre dépoli" */
.popup {
  background: rgba(30, 30, 30, 0.6);
  color: #fff;
  padding: 30px;
  border-radius: 15px;
  text-align: center;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.popup h2 {
  margin-top: 0;
  font-size: 24px;
  color: #c084fd;
}

.popup p {
  font-size: 16px;
  margin-bottom: 20px;
  color: #d2c5f5;
}

.popup button {
  margin: 10px;
  padding: 12px 24px;
  border: none;
  background: #c084fd;
  color: #1e1035;
  font-size: 15px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.popup button:hover {
  background: #c084fd;
}
/* Menu Hamburger - Version Élégante */
.hamburger {
  display: none; /* Caché par défaut */
  cursor: pointer;
  padding: 12px;
  z-index: 1001;
  transition: all 0.3s ease;
}

.hamburger-box {
  width: 30px;
  height: 24px;
  display: inline-block;
  position: relative;
}
.mobile-auth-buttons {
	display: none;
}
.hamburger-inner {
  display: block;
  top: 50%;
  margin-top: -2px;
}

.hamburger-inner, 
.hamburger-inner::before, 
.hamburger-inner::after {
  width: 30px;
  height: 3px;
  background-color: #c084fc;
  border-radius: 3px;
  position: absolute;
  transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.hamburger-inner::before, 
.hamburger-inner::after {
  content: "";
  display: block;
}

.hamburger-inner::before {
  top: -10px;
}

.hamburger-inner::after {
  bottom: -10px;
}

/* Animation quand le menu est actif */
.hamburger.active .hamburger-inner {
  transform: rotate(45deg);
  background-color: #fff;
}

.hamburger.active .hamburger-inner::before {
  opacity: 0;
}

.hamburger.active .hamburger-inner::after {
  transform: rotate(-90deg) translateX(10px);
  background-color: #fff;
}

/* Menu mobile - version premium */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .nav-links {
    position: fixed;
    top: 0;
    left: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(18, 18, 42, 0.98);
    backdrop-filter: blur(15px);
    flex-direction: column;
    align-items: flex-start;
    padding: 80px 30px 30px;
    transition: all 0.5s cubic-bezier(0.77, 0.2, 0.05, 1);
    z-index: 999;
    box-shadow: 5px 0 25px rgba(0, 0, 0, 0.3);
    border-right: 1px solid rgba(192, 132, 252, 0.2);
  }
  
  .nav-links.active {
    left: 0;
  }
  
  .nav-links li {
    width: 100%;
    margin-bottom: 15px;
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.4s ease;
  }
  
  .nav-links.active li {
    opacity: 1;
    transform: translateX(0);
  }
  
  /* Animation décalée pour chaque lien */
  .nav-links.active li:nth-child(1) { transition-delay: 0.1s; }
  .nav-links.active li:nth-child(2) { transition-delay: 0.15s; }
  .nav-links.active li:nth-child(3) { transition-delay: 0.2s; }
  .nav-links.active li:nth-child(4) { transition-delay: 0.25s; }
  .nav-links.active li:nth-child(5) { transition-delay: 0.3s; }
  
  .nav-links a {
    display: block;
    padding: 12px 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
    width: 100%;
    font-size: 1.1rem;
  }
  
  .nav-links a:hover {
    background: rgba(192, 132, 252, 0.1);
    padding-left: 20px;
  }
  
  .nav-buttons {
    display: none;
  }
  
  /* Boutons dans le menu mobile */
  .mobile-auth-buttons {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-top: 30px;
    gap: 10px;
  }
  
  .mobile-auth-buttons .btn {
    width: 100%;
    text-align: center;
  }
}
/* Responsive */
@media (max-width: 900px) {
  .navbar {
    flex-direction: column;
    padding: 10px;
  }
  
  .nav-links {
    margin: 15px 0;
  }
  
  .container {
    margin-top: 140px;
  }
  
  header.hero h1 {
    font-size: 2.4rem;
  }
  section.features h2,
  section.current-wallpaper h2,
  section.contribute h2,
  section.dev-team h2 {
    font-size: 1.6rem;
  }
  .cards {
    flex-direction: column;
    gap: 20px;
  }
  .card {
    width: 100%;
    font-size: 1.1rem;
    padding: 20px;
  }
  #currentWallpaper {
    max-height: 240px;
  }
  .hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
  a.btn {
    padding: 10px 25px;
    font-size: 1rem;
  }
}

@media (max-width: 600px) {
  .nav-links {
    flex-direction: column;
    gap: 10px;
  }
  
  .nav-buttons {
    flex-direction: column;
    width: 100%;
  }
  
  .nav-btn {
    width: 100%;
    text-align: center;
  }
  
  .dev-card img {
    width: 70px;
    height: 70px;
  }
  .dev-card h3 {
    font-size: 1.05rem;
  }
  .dev-card p {
    font-size: 0.95rem;
  }
}

@media (max-width: 400px) {
  body {
    padding: 30px 15px 15px;
  }
  header.hero h1 {
    font-size: 2rem;
  }
  a.btn {
    padding: 10px 18px;
    font-size: 0.95rem;
  }
}

/* Page d'inscription */
.register-card {
  background: rgba(18, 18, 42, 0.8);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(192, 132, 252, 0.3);
}

.register-header {
  text-align: center;
  margin-bottom: 25px;
}

.register-header h2 {
  color: #c084fc;
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.register-header p {
  color: #d8c9ff;
  font-size: 1.1rem;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: #d8c9ff;
  font-weight: 500;
}

.input-with-icon {
  position: relative;
}

.input-with-icon i {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #c084fc;
}

.input-with-icon input {
  width: 100%;
  padding: 12px 15px 12px 45px;
  background: rgba(30, 30, 50, 0.7);
  border: 1px solid rgba(192, 132, 252, 0.3);
  border-radius: 10px;
  color: #eee;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.input-with-icon input:focus {
  border-color: #c084fc;
  outline: none;
  box-shadow: 0 0 0 3px rgba(192, 132, 252, 0.2);
}

.alert-danger {
  background: rgba(220, 53, 69, 0.2);
  border: 1px solid rgba(220, 53, 69, 0.4);
  color: #ff6b6b;
  padding: 10px 15px;
  border-radius: 8px;
  margin-bottom: 20px;
  text-align: center;
}

.register-btn {
  background: #c084fc;
  color: #0e0e1a;
  font-weight: 700;
  padding: 12px 20px;
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.25s ease;
  width: 100%;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  margin-top: 10px;
}

.register-btn:hover {
  background: #a855f7;
}

.register-footer {
  text-align: center;
  margin-top: 20px;
  color: #d8c9ff;
}

.register-footer a {
  color: #c084fc;
  text-decoration: none;
  transition: color 0.3s ease;
}

.register-footer a:hover {
  color: #a855f7;
  text-decoration: underline;
}

.g-recaptcha {
  display: flex;
  justify-content: center;
  margin: 20px 0;
}
@media (max-width: 600px) {
  .container {
    margin-top: 60px;
    padding: 0 15px;
  }
  
  header.hero h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
  }
  
  header.hero p {
    font-size: 1.1rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: 10px;
  }
  
  .btn {
    width: 100%;
    text-align: center;
  }
  
  .dev-grid {
    grid-template-columns: 1fr;
  }
  
  .card {
    padding: 15px;
    font-size: 1rem;
  min-width: 100%;
  }
  
  #currentWallpaper {
    max-height: 200px;
  }
}
@media (max-width: 480px) {
  body {
    font-size: 14px;
  }
  
  h2 {
    font-size: 1.5rem !important;
  }
  
  .card {
    font-size: 0.95rem;
  }
  
  .dev-card h3 {
    font-size: 1.1rem;
  }
  
  .dev-card p {
    font-size: 0.9rem;
  }
  
  footer {
    font-size: 0.8rem;
  }
}

