/* Variables et Reset */
:root {
  --primary-color: #e79e2b;
  --primary-dark: #c47d00;
  --primary-light: #ffc048;
  --secondary-color: #f9e7bb;
  --text-color: #f9e7bb;
  --background-dark: #0a0a0a;
  --background-medium: #111111;
  --background-light: #1a1a1a;
  --box-shadow: 0 4px 20px rgba(231, 158, 43, 0.2);
  --transition: all 0.3s ease;
  --donut-brown: #8a4b00;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  color: var(--text-color);
  background-color: var(--background-dark);
  overflow-x: hidden;
  line-height: 1.6;
}

/* Particles Background */
#particles-js {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: -1;
}

/* Container */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Header and Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(10, 10, 10, 0.95);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 5%;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
}

.logo-container {
  display: flex;
  align-items: center;
}

.logo {
  height: 50px;
  width: auto;
  transition: var(--transition);
}

.logo:hover {
  transform: scale(1.05);
}

nav {
  display: flex;
  align-items: center;
}

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

.nav-links li {
  margin: 0 15px;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  font-size: 1rem;
  padding: 8px 12px;
  border-radius: 30px; /* Plus arrondi comme un donut */
  transition: var(--transition);
  position: relative;
}

.nav-links a:hover {
  color: var(--primary-color);
  background-color: rgba(231, 158, 43, 0.1);
}

.glow-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 3px;
  bottom: 0;
  left: 50%;
  background-color: var(--primary-color);
  transition: all 0.3s ease;
  transform: translateX(-50%);
  border-radius: 10px; /* Arrondi comme un glaçage */
}

.glow-link:hover::after {
  width: 100%;
  box-shadow: 0 2px 5px rgba(231, 158, 43, 0.4);
}

.menu-toggle {
  display: none;
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--text-color);
}

/* Hero Section */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 80px 20px;
  /* background: radial-gradient(circle at center, var(--background-medium) 0%, var(--background-dark) 80%); */
  position: relative;
  overflow: hidden;
}

.hero-content {
  text-align: center;
  z-index: 2;
  max-width: 800px;
}

.site-title {
  font-size: 3.5rem;
  margin-bottom: 20px;
  font-weight: 700;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
}

.evoma-text {
  font-family: 'Pacifico', cursive;
  color: var(--primary-color);
  font-size: 4rem;
  display: inline-block;
  text-shadow: 2px 2px 3px rgba(138, 75, 0, 0.6); /* Ombre plus subtile */
  position: relative;
  transform-origin: center bottom;
  animation: melt 10s ease-in-out infinite alternate;
}

.evoma-text::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 10px;
  background: var(--primary-color);
  border-radius: 10px;
  filter: blur(4px);
  opacity: 0.7;
  transform: scaleX(0.9) translateY(5px);
  animation: drip 10s ease-in-out infinite alternate;
}

.hero-subtitle {
  font-size: 1.2rem;
  margin-bottom: 40px;
  opacity: 0.9;
}

.donut-animation {
  position: relative;
}

.floating-donut {
  width: 300px;
  height: auto;
  animation: float 6s ease-in-out infinite;
  filter: drop-shadow(0 5px 15px rgba(231, 158, 43, 0.5));
}

/* Buttons */
.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.btn-primary, .btn-secondary, .btn-small {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  text-transform: uppercase;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  font-size: 1rem;
  letter-spacing: 1px;
}

.btn-small {
  padding: 8px 16px;
  font-size: 0.9rem;
}

.btn-primary {
  background: linear-gradient(to bottom, var(--primary-light), var(--primary-color));
  color: var(--background-dark);
  box-shadow: 0 4px 15px rgba(231, 158, 43, 0.4);
  border-bottom: 3px solid var(--donut-brown);
}

.btn-primary:hover {
  background: linear-gradient(to bottom, var(--primary-light), var(--primary-dark));
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(231, 158, 43, 0.6);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-color);
  border: 2px solid var(--primary-color);
  box-shadow: inset 0 0 10px rgba(231, 158, 43, 0.2);
}

.btn-secondary:hover {
  background-color: rgba(231, 158, 43, 0.1);
  transform: translateY(-3px);
  box-shadow: inset 0 0 10px rgba(231, 158, 43, 0.3), 0 4px 15px rgba(231, 158, 43, 0.3);
}


/* Sections */
.section {
  padding: 100px 0;
  position: relative;
}

.section.dark {
  background-color: var(--background-medium);
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 60px;
  color: var(--primary-color);
  font-weight: 700;
  position: relative;
  padding-bottom: 15px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 5px;
  background: linear-gradient(to right, var(--primary-dark), var(--primary-color), var(--primary-dark));
  border-radius: 10px;
}

/* Cards */
.cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.card {
  background-color: var(--background-light);
  border-radius: 20px;
  padding: 30px;
  transition: var(--transition);
  box-shadow: var(--box-shadow);
  text-align: center;
  border: 1px solid rgba(231, 158, 43, 0.1);
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(to right, var(--primary-dark), var(--primary-color), var(--primary-dark));
  opacity: 0;
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(231, 158, 43, 0.3);
  border-color: rgba(231, 158, 43, 0.3);
}

.card:hover::before {
  opacity: 1;
}

.card-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 20px;
  background: rgba(231, 158, 43, 0.1);
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin: 0 auto 20px;
}

.card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--primary-light);
}

.card p {
  color: var(--text-color);
  opacity: 0.8;
}

/* Rules */
.rules-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.rule {
  display: flex;
  align-items: flex-start;
  background-color: var(--background-light);
  border-radius: 20px;
  padding: 25px;
  transition: var(--transition);
  border: 1px solid rgba(231, 158, 43, 0.1);
  position: relative;
  overflow: hidden;
}

.rule::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(to right, transparent, var(--primary-color), transparent);
  opacity: 0;
  transition: var(--transition);
}

.rule:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(231, 158, 43, 0.2);
  border-color: rgba(231, 158, 43, 0.2);
}

.rule:hover::before {
  opacity: 1;
}

.rule-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-right: 20px;
  line-height: 1;
  opacity: 0.8;
  font-family: 'Bebas Neue', sans-serif;
  text-shadow: 1px 1px 2px var(--donut-brown);
}

.rule-content h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: var(--primary-light);
}

.rule-content p {
  opacity: 0.8;
}

.full-rules {
  text-align: center;
  margin-top: 40px;
}

/* Join Steps */
.join-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.step {
  background-color: var(--background-light);
  border-radius: 20px;
  padding: 30px;
  text-align: center;
  transition: var(--transition);
  border: 1px solid rgba(231, 158, 43, 0.1);
  position: relative;
  overflow: hidden;
}

.step::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(to right, transparent, var(--primary-color), transparent);
  opacity: 0;
  transition: var(--transition);
}

.step:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(231, 158, 43, 0.2);
  border-color: rgba(231, 158, 43, 0.2);
}

.step:hover::before {
  opacity: 1;
}

.step-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 20px;
  background: rgba(231, 158, 43, 0.1);
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin: 0 auto 20px;
  box-shadow: 0 5px 15px rgba(231, 158, 43, 0.2);
}

.step h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: var(--primary-light);
}

.step p {
  margin-bottom: 20px;
  opacity: 0.8;
}

.server-info {
  background-color: rgba(231, 158, 43, 0.1);
  padding: 15px;
  border-radius: 15px;
  margin-top: 15px;
  border: 1px dashed var(--primary-color);
}

.server-info span {
  font-weight: 600;
  color: var(--primary-light);
}

.server-info a {
  text-decoration: none;
  color: var(--secondary-color);
}

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
}

.team-member {
  background-color: var(--background-light);
  border-radius: 20px;
  padding: 25px;
  text-align: center;
  transition: var(--transition);
  border: 1px solid rgba(231, 158, 43, 0.1);
  overflow: hidden;
  position: relative;
}

.team-member::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(to right, transparent, var(--primary-color), transparent);
  opacity: 0;
  transition: var(--transition);
}

.team-member:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(231, 158, 43, 0.2);
  border-color: rgba(231, 158, 43, 0.2);
}

.team-member:hover::before {
  opacity: 1;
}

.member-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 2rem;
  color: var(--background-dark);
  box-shadow: 0 5px 15px rgba(231, 158, 43, 0.3);
}

.team-member h3 {
  font-size: 1.2rem;
  margin-bottom: 5px;
  color: var(--primary-light);
}

.member-name {
  font-weight: 600;
  margin-bottom: 5px;
}

.member-role {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* CTA Section */
.cta-section {background: linear-gradient(rgba(10, 10, 10, 0.7), rgba(10, 10, 10, 0.9)), url('images/bg.png');
  
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(231, 158, 43, 0.1) 0%, transparent 70%);
}

.cta-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.cta-content h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: var(--primary-color);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.cta-content p {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

/* Footer */
footer {
  background-color: var(--background-medium);
  padding: 60px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo img {
  width: 120px;
  height: auto;
  filter: drop-shadow(0 5px 15px rgba(231, 158, 43, 0.3));
}

.footer-links h3, .footer-social h3 {
  color: var(--primary-color);
  margin-bottom: 20px;
  font-size: 1.2rem;
  position: relative;
  display: inline-block;
  padding-bottom: 5px;
}

.footer-links h3::after, .footer-social h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50%;
  height: 2px;
  background: var(--primary-color);
  border-radius: 2px;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--text-color);
  text-decoration: none;
  transition: var(--transition);
  opacity: 0.8;
  position: relative;
  padding-left: 15px;
}

.footer-links a::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--primary-color);
}

.footer-links a:hover {
  color: var(--primary-color);
  opacity: 1;
  transform: translateX(5px);
}

.social-icons {
  display: flex;
  gap: 15px;
}

.social-icons a {
  color: var(--text-color);
  font-size: 1.5rem;
  transition: var(--transition);
  background: rgba(231, 158, 43, 0.1);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  text-decoration: none;
}

.social-icons a:hover {
  color: var(--primary-color);
  transform: translateY(-3px);
  background: rgba(231, 158, 43, 0.2);
  box-shadow: 0 5px 15px rgba(231, 158, 43, 0.2);
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(249, 231, 187, 0.1);
  padding-top: 20px;
  font-size: 0.9rem;
  opacity: 0.7;
}

.footer-bottom p {
  margin-bottom: 5px;
}

/* Animations */
@keyframes melt {
  0% {
    transform: scale(1) translateY(0);
  }
  30% {
    transform: scale(1.03, 0.97) translateY(2px);
  }
  60% {
    transform: scale(0.98, 1.02) translateY(0);
  }
  100% {
    transform: scale(1) translateY(1px);
  }
}

@keyframes drip {
  0% {
    transform: scaleX(0.9) translateY(5px);
    opacity: 0.7;
  }
  50% {
    transform: scaleX(1.1) translateY(8px);
    opacity: 0.9;
  }
  100% {
    transform: scaleX(0.95) translateY(6px);
    opacity: 0.8;
  }
}

@keyframes float {
  0% {
    transform: translateY(0) rotate(0);
    filter: drop-shadow(0 5px 15px rgba(231, 158, 43, 0.5));
  }
  50% {
    transform: translateY(-15px) rotate(5deg);
    filter: drop-shadow(0 15px 20px rgba(231, 158, 43, 0.6));
  }
  100% {
    transform: translateY(0) rotate(0);
    filter: drop-shadow(0 5px 15px rgba(231, 158, 43, 0.5));
  }
}

/* Responsive Design */
@media (max-width: 992px) {
  .site-title {
    font-size: 3rem;
  }
  
  .evoma-text {
    font-size: 3.5rem;
  }
  
  .section {
    padding: 80px 0;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
  
  .nav-links {
    position: fixed;
    top: 80px;
    right: -100%;
    width: 250px;
    height: calc(100vh - 80px);
    background-color: var(--background-medium);
    flex-direction: column;
    align-items: center;
    padding: 40px 0;
    transition: var(--transition);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    border-left: 1px solid rgba(231, 158, 43, 0.1);
  }
  
  .nav-links.active {
    right: 0;
  }
  
  .nav-links li {
    margin: 15px 0;
  }
  
  .site-title {
    font-size: 2.5rem;
  }
  
  .evoma-text {
    font-size: 3rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .floating-donut {
    width: 120px;
  }
}

@media (max-width: 576px) {
  .site-title {
    font-size: 2rem;
  }
  
  .evoma-text {
    font-size: 2.5rem;
  }
  
  .section {
    padding: 60px 0;
  }
  
  .btn-primary, .btn-secondary {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
  
  .rule, .step, .card, .team-member {
    padding: 20px;
  }
  
  .floating-donut {
    width: 100px;
  }
}