/* ===============================
   Base globale
   =============================== */
:root {
  --primary: #ff4da6;
  --secondary: #4dabff;
  --background: #0e0e12;
  --card: #1a1a24;
  --text: #f5f5f5;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  font-family: "Segoe UI", Roboto, sans-serif;
  background: var(--background);
  color: var(--text);
  line-height: 1.6;
}

/* ===============================
   Layouts
   =============================== */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

header.site-header {
  background: var(--card);
  padding: 12px 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 1.2rem;
  text-decoration: none;
  font-weight: bold;
}

nav.main-nav ul {
  list-style: none;
  display: flex;
  gap: 18px;
}

nav.main-nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  transition: color 0.3s;
}

nav.main-nav a:hover,
nav.main-nav a.active {
  color: var(--primary);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
}

.dropdown {
  position: relative;
}
.dropdown-content {
  display: none;
  position: absolute;
  background: var(--card);
  padding: 10px;
  border-radius: 8px;
  top: 100%;
  left: 0;
  min-width: 200px;
  z-index: 99;
}
.dropdown:hover .dropdown-content {
  display: block;
}
.dropdown-content li {
  margin: 6px 0;
}
.dropdown-content a {
  color: var(--text);
  text-decoration: none;
}
.dropdown-content a:hover,
.dropdown-content a.active {
  color: var(--primary);
}

.site-footer {
  background: var(--card);
  text-align: center;
  padding: 20px;
  margin-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

/* ===============================
   Buttons
   =============================== */
.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s;
  background: rgba(255,255,255,0.08);
  color: var(--text);
}

.btn:hover {
  background: rgba(255,255,255,0.15);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover {
  background: #e03b8c;
}

/* ===============================
   Sections principales
   =============================== */
.hero {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  padding: 60px 0;
}
.hero-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.hero-text {
  max-width: 600px;
}
.hero-text h1 {
  font-size: 2.5rem;
}
.hero-text .highlight {
  color: yellow;
}
.hero-actions {
  margin-top: 20px;
}

.features {
  padding: 60px 0;
}
.features h2 {
  text-align: center;
  margin-bottom: 40px;
}
.features .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.callout {
  background: var(--card);
  text-align: center;
  padding: 50px 20px;
  border-radius: 12px;
  margin: 40px 0;
}

/* ===============================
   Styles fusionnés des pages
   =============================== */

/* ----- Pages Prévention ----- */
.prevention-section {
  margin-bottom: 28px;
}
.prevention-section h2 {
  color: var(--primary);
}
.prevention-section p {
  line-height: 1.6;
}

.resource-box,
.tip-box,
.support-box,
.alert-box {
  background: var(--card);
  padding: 16px;
  border-radius: 10px;
  margin-bottom: 16px;
}
.resource-box h3,
.tip-box h3,
.support-box h3,
.alert-box h3 {
  margin-top: 0;
}

/* ----- Page Règlement ----- */
.rules-container {
  background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent);
  padding: 28px;
  border-radius: 12px;
}
.rule-section {
  margin-bottom: 20px;
}
.rule-section h3 {
  margin: 0 0 8px;
}
.report-form {
  background: var(--card);
  padding: 14px;
  border-radius: 10px;
}
.report-form label {
  display: block;
  margin: 8px 0 4px;
  font-weight: 600;
  color: #dbe9ff;
}

/* ----- Page Confidentialité ----- */
.privacy-section {
  margin-bottom: 28px;
}
.privacy-section h2 {
  color: var(--primary);
}

/* ===============================
   Responsive
   =============================== */
@media (max-width: 768px) {
  .header-inner {
    flex-wrap: wrap;
  }
  .nav-toggle {
    display: block;
  }
  nav.main-nav {
    display: none;
    width: 100%;
  }
  nav.main-nav[aria-expanded="true"] {
    display: block;
  }
  nav.main-nav ul {
    flex-direction: column;
    gap: 12px;
  }
}

/* ===============================
   Effets d'apparition (scroll reveal)
   =============================== */
.hidden {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.show {
  opacity: 1;
  transform: translateY(0);
}

/* Cacher le menu déroulant par défaut */
.dropdown .dropdown-content {
  display: none;
  position: absolute;
  background: var(--card);
  min-width: 180px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  z-index: 1000;
  padding: 8px 0;
}

/* Afficher quand on passe la souris */
.dropdown:hover .dropdown-content {
  display: block;
}

/* Style des liens */
.dropdown-content a {
  display: block;
  padding: 10px 15px;
  color: white;
  text-decoration: none;
}

.dropdown-content a:hover {
  background: rgba(255,255,255,0.1);
}

/* === RÈGLES (rules.html) === */
.rules-container {
  display: grid;
  gap: 20px;
  margin: 30px 0;
}

.rule-card {
  background: var(--glass, rgba(255,255,255,0.05));
  border-left: 6px solid var(--primary);
  padding: 20px;
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rule-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.3);
}

.rule-card h2 {
  margin-top: 0;
  font-size: 1.3rem;
  color: var(--primary);
}

.rule-card p {
  margin: 6px 0;
  line-height: 1.6;
}

.warning-box {
  background: rgba(255,0,0,0.1);
  border: 2px solid red;
  color: #ff4d4d;
  padding: 16px;
  border-radius: 12px;
  text-align: center;
  font-weight: bold;
  margin-bottom: 20px;
}
.warning-box a {
  color: #ff1a1a;
  text-decoration: underline;
}

/* === PAGE ABOUT === */
.intro-text {
  font-size: 1.2rem;
  margin-bottom: 28px;
  line-height: 1.7;
  color: var(--muted, #dbe9ff);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.about-card {
  background: var(--glass, rgba(255,255,255,0.05));
  padding: 20px;
  border-radius: 14px;
  border-left: 6px solid var(--primary, #6c63ff);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.about-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.3);
}

.about-card h2 {
  margin-top: 0;
  font-size: 1.3rem;
  color: var(--primary, #6c63ff);
}

.about-card ul {
  margin: 10px 0;
  padding-left: 18px;
}

.about-card ul li {
  margin: 6px 0;
  line-height: 1.6;
}

.welcome-box {
  background: linear-gradient(135deg, #ff4d4d, #ff9a76, #ffde59, #5ce1e6, #6c63ff, #c77dff);
  color: white;
  text-align: center;
  font-weight: bold;
  padding: 20px;
  border-radius: 16px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  animation: pulseBox 3s infinite alternate;
}

@keyframes pulseBox {
  from { transform: scale(1); }
  to { transform: scale(1.02); }
}

/* === TIMELINE === */
.timeline {
  margin: 50px 0;
}

.timeline h2 {
  text-align: center;
  margin-bottom: 30px;
  color: var(--primary, #6c63ff);
}

.timeline-line {
  position: relative;
  margin: 0 auto;
  padding-left: 20px;
  border-left: 3px solid var(--primary, #6c63ff);
  max-width: 700px;
}

.timeline-item {
  position: relative;
  margin-bottom: 30px;
  animation: fadeInUp 0.8s ease both;
}

.timeline-dot {
  position: absolute;
  left: -12px;
  top: 5px;
  width: 20px;
  height: 20px;
  background: var(--primary, #6c63ff);
  border-radius: 50%;
  border: 3px solid white;
  box-shadow: 0 0 0 4px rgba(108, 99, 255, 0.2);
}

.timeline-content {
  background: var(--glass, rgba(255,255,255,0.05));
  padding: 15px 20px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.timeline-content:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.3);
}

.timeline-content h3 {
  margin-top: 0;
  font-size: 1.2rem;
  color: var(--primary, #6c63ff);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Extra content caché */
.timeline-extra {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  margin-top: 10px;
  transition: max-height 0.5s ease, opacity 0.5s ease;
}

.timeline-item.active .timeline-extra {
  max-height: 500px; /* assez grand pour contenir texte + image */
  opacity: 1;
}

.timeline-content {
  cursor: pointer; /* indique qu'on peut cliquer */
}

.timeline-content img {
  margin-top: 10px;
  max-width: 100%;
  border-radius: 8px;
}

/* ===== Cartes Génériques ===== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, background 0.5s ease;
  backdrop-filter: blur(10px);
}

.card:hover {
  transform: scale(1.05);
  background: linear-gradient(135deg, #ff0080, #ff8c00, #40e0d0, #9370db);
  background-size: 300% 300%;
  animation: rainbow 4s ease infinite;
  color: white;
}

@keyframes rainbow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.card-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin-bottom: 16px;
  border: 3px solid var(--primary, #ff0080);
}

.card-title {
  font-size: 1.2rem;
  margin: 10px 0;
}

.card-text {
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.card-btn {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 8px;
  background: var(--primary, #ff0080);
  color: white;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease;
}

.card-btn:hover {
  background: #ff66b2;
}

/* ===== Sections équipe ===== */
.team-section {
  margin: 60px 0;
}

.team-section h2 {
  font-size: 1.6rem;
  margin-bottom: 20px;
  color: var(--primary, #ff0080);
  border-left: 5px solid var(--primary, #ff0080);
  padding-left: 10px;
}
/* ===== Menu interne équipe ===== */
.team-nav {
  margin: 20px 0 40px;
  text-align: center;
}

.team-nav ul {
  list-style: none;
  padding: 0;
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.team-nav a {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 30px;
  background: linear-gradient(90deg, red, orange, yellow, green, blue, indigo, violet);
  color: white;
  font-weight: bold;
  text-decoration: none;
  transition: transform 0.3s, box-shadow 0.3s;
}

.team-nav a:hover {
  transform: scale(1.08);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}
/* Active le scroll fluide pour tout le site */
html {
  scroll-behavior: smooth;
}

/* Bouton retour en haut */
.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: linear-gradient(45deg, red, orange, yellow, green, blue, indigo, violet);
  color: white;
  font-size: 18px;
  padding: 12px 16px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  display: none; /* masqué par défaut */
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  transition: transform 0.3s ease, opacity 0.3s ease;
  z-index: 999;
}

.back-to-top:hover {
  transform: scale(1.1);
  opacity: 0.9;
}

/* Grille de l'équipe */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin: 20px 0;
}

/* Carte profil */
.team-card {
  background: var(--glass);
  border-radius: 16px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(228, 228, 228, 0.2);
  transition: transform 0.3s ease, background 0.3s ease;
}

.team-card:hover {
  transform: scale(1.05);
  background: linear-gradient(145deg, rgba(107, 25, 73, 0.2), rgba(0,200,255,0.2));
}

.team-card img {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  margin-bottom: 12px;
  border: 3px solid var(--primary);
}

.team-card h3 {
  margin: 8px 0;
  color: var(--primary);
}

.team-card p {
  font-size: 0.9rem;
  color: var(--muted);
}

/* Tags */
.tags {
  margin-top: 10px;
}
.tag {
  background: var(--primary);
  color: white;
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 20px;
}

/* Liens sociaux sur cartes */
.social-links {
  margin-top: 12px;
  display: flex;
  justify-content: center;
  gap: 14px;
}

.social-links a {
  color: var(--primary, #6c63ff);
  transition: transform 0.2s ease, color 0.3s ease;
}

.social-links a:hover {
  transform: scale(1.2);
  color: var(--accent, #ff00aa);
}

/* Mise en page des cartes */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.team-card {
  background: linear-gradient(135deg, #ff0000, #ff7f00, #ffff00, #00ff00, #0000ff, #4b0082, #8b00ff);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  position: relative;
  overflow: hidden;
}

.team-card img {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  margin-bottom: 1rem;
  object-fit: cover;
}

/* Effet hover arc-en-ciel + zoom */
.team-card:hover {
  transform: scale(1.05);
  color: #fff;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

.team-card:hover h3,
.team-card:hover p,
.team-card:hover a {
  color: #fff;
}

/* Tags (petits badges de rôle) */
.tags {
  margin-top: 0.5rem;
}

.tag {
  display: inline-block;
  padding: 0.3rem 0.6rem;
  background: #eee;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: bold;
}

.team-card:hover .tag {
  background: rgba(255,255,255,0.3);
  color: #fff;
}

/* Liens sociaux */
.social-links {
  margin-top: 0.8rem;
}

.social-links a {
  display: inline-block;
  margin: 0 0.3rem;
  text-decoration: none;
  font-weight: bold;
  color: #333;
  transition: color 0.2s;
}

.social-links a:hover {
  color: #fff;
}

.discord-counter {
  text-align: center;
  margin: 40px auto;
  padding: 20px;
  max-width: 600px;
  border-radius: 15px;
  background: linear-gradient(90deg, #ff0080, #ff8c00, #40e0d0, #8a2be2);
  background-size: 400% 400%;
  color: white;
  font-size: 1.4rem;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  animation: gradientMove 6s infinite linear;
}

@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

.discord-counter span {
  font-weight: bold;
  font-size: 1.8rem;
}

/* === PAGE CONTACT === */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.contact-card {
  background: var(--glass);
  padding: 18px;
  border-radius: 12px;
}

.contact-card h3 {
  margin-top: 0;
}

.contact-form {
  background: var(--card);
  padding: 18px;
  border-radius: 12px;
}

.contact-form label {
  display: block;
  margin: 8px 0 4px;
  font-weight: 600;
  color: #dbe9ff;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: transparent;
  color: inherit;
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.map-container {
  overflow: hidden;
  border-radius: 12px;
  margin-top: 20px;
}

.small-muted {
  font-size: 13px;
  color: var(--muted);
}
