/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  user-select: none !important;
  -webkit-user-drag: none;
}

/* THEME VARIABLES */
:root {
  --bg: #ffffff;
  --text: #0f172a;
  --headline: #ca8a04;
  --subtext: #334155;
  --button-bg: #4f46e5;
  --logo-path: url("../assets/logo_bleu.png");

  --discord-icon: url("../assets/Logo_Discord_Bleu.png");
  --teamspeak-icon: url("../assets/Logo_TeamSpeak_Bleu.png");
  --twitter-icon: url("../assets/Logo_X_Bleu.png");

  --hover-bg: rgba(0, 0, 0, 0.05);
}

.dark {
  --bg: #0f172a;
  --text: #ffffff;
  --headline: #facc15;
  --subtext: #e2e8f0;
  --button-bg: #5865F2;
  --logo-path: url("../assets/logo-2.png");

  --discord-icon: url("../assets/Logo_Discord_White.png");
  --teamspeak-icon: url("../assets/Logo_TeamSpeak_white.png");
  --twitter-icon: url("../assets/Logo_X_Blanc.png");

  --hover-bg: rgba(255, 255, 255, 0.08);
}

html, body {
  height: 100%;
  width: 100%;
  scroll-behavior: smooth;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  user-select: none;
  opacity: 0;
  animation: fadeIn 1.2s ease-in-out forwards;
  transition: background 0.3s ease, color 0.3s ease;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

@keyframes fadeIn {
  to { opacity: 1; }
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: var(--bg);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo-header {
  height: 50px;
  object-fit: contain;
}

.menu {
  display: flex;
  align-items: center;
}

.menu > * {
  display: flex;
  align-items: center;
  margin-left: 1.5rem;
}

.menu > *:first-child {
  margin-left: 0;
}


.menu a,
.dropdown > span {
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
  position: relative;
}

.dropdown {
  position: relative;
}

.dropdown-toggle {
  background: none;
  border: none;
  color: var(--text);
  font: inherit;
  cursor: pointer;
  padding: 0;
  margin: 0;
  outline: none;
  display: inline-block;
  position: relative;
  padding: 0.3rem 0.7rem;
}

.dropdown-toggle::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -20px; /* ↓ étend vers le bas */
  height: 20px;

}


.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  margin-top: 20px;
  right: 0;
  background-color: var(--bg);
  border: 1px solid #ccc;
  border-radius: 6px;
  box-shadow: 0 10px 12px rgba(0, 0, 0, 0.1);
  list-style: none;
  padding: 0.5rem 0;
  z-index: 10;
  min-width: 200px;
}

.dropdown:hover .dropdown-content {
  display: block;
}

.dropdown-content li a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  color: var(--text);
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.3s ease;
}

.dropdown-content li a:hover {
  background-color: var(--hover-bg);
}

.dropdown-content {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease;
}

.dropdown:hover .dropdown-content {
  opacity: 1;
  visibility: visible;
  display: block;
}


.icon-discord,
.icon-teamspeak,
.icon-twitter {
  width: 20px;
  height: 20px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.icon-discord { background-image: var(--discord-icon); }
.icon-teamspeak { background-image: var(--teamspeak-icon); }
.icon-twitter { background-image: var(--twitter-icon); }

.container {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 1rem;
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.announcements {
  flex: 2;
}

.announcements h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--headline);
}

.announcement-box {
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid #e5e7eb;
  border-left: 4px solid var(--headline);
  padding: 1rem;
  margin-bottom: 1.5rem;
  border-radius: 6px;
  transition: background 0.3s ease;
  text-align: left;
}

.announcement-box h2 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.announcement-box p {
  color: var(--subtext);
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  flex: 1;
}


.donators {
  flex: 1;
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 1rem;
  text-align: left;
  color: var(--subtext);
}

.donators h2 {
  color: var(--headline);
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.donators ul {
  list-style: none;
  padding-left: 1rem;
  margin-bottom: 1rem;
}

.donators li::before {
  content: "⭐ ";
}

.discord-widget {
  width: 100%;
  height: 400px; /* ↑ Augmente un peu pour un rendu plus équilibré */
  border: none;
  border-radius: 8px;
  overflow: hidden;
  margin-top: 1rem;
}

.discord-container {
  width: 100%;
  max-width: 400px;
  display: flex;
  justify-content: flex-end; /* pour l’aligner à droite */
}




.logo {
  width: 140px;
  height: auto;
  animation: breathing 2.5s ease-in-out infinite;
  pointer-events: none;
  user-select: none;
  content: var(--logo-path);
}

@keyframes breathing {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

.theme-toggle {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  z-index: 10000;
}

.toggle-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: #1e293b;
  border-radius: 9999px;
  padding: 0.3rem 0.6rem;
  font-size: 0.85rem;
  color: white;
  cursor: pointer;
}

.toggle-label input {
  display: none;
}

.slider {
  width: 30px;
  height: 16px;
  background: #94a3b8;
  border-radius: 9999px;
  position: relative;
  transition: background 0.3s ease;
}

.slider::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  top: 2px;
  left: 2px;
  background: white;
  border-radius: 50%;
  transition: transform 0.3s ease;
}

#themeToggle:checked + .slider::after {
  transform: translateX(14px);
}

.rgpd-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #1e293b;
  color: white;
  padding: 1rem;
  text-align: center;
  font-size: 0.95rem;
  z-index: 9999;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
}

.rgpd-banner button {
  margin-left: 0.8rem;
  padding: 0.4rem 1rem;
  background-color: #4f46e5;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s ease;
  font-size: 0.9rem;
}

.rgpd-banner button:hover {
  background: #4338ca;
}

.rgpd-banner .refuser {
  background-color: #374151;
}

.rgpd-banner .refuser:hover {
  background-color: #1f2937;
}

@media (max-width: 768px) {
  .header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .menu {
    flex-direction: column;
    gap: 1rem;
  }

  .dropdown-content {
    right: auto;
    left: 0;
  }

  .container {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .logo { width: 100px; }
  .headline { font-size: 1.4rem; }
  .subtext { font-size: 1rem; }
  .social-button { width: 50px; height: 50px; }
  .socials-icon { width: 24px; height: 24px; }
}

.donators iframe.discord-widget {
  margin-top: 1rem;
}

/* PAGE STAFF */

.staff-section {
  width: 100%;
  padding: 2rem 1rem;
  text-align: center;
}

.staff-title {
  font-size: 2rem;
  color: var(--headline);
  margin-bottom: 2rem;
  font-weight: bold;
}

.staff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  justify-items: center;
}

.staff-card {
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 1rem;
  width: 100%;
  max-width: 240px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.staff-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.staff-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
  border: 3px solid var(--headline);
}

.staff-name {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.3rem;
}

.staff-role {
  font-size: 0.95rem;
  color: var(--subtext);
}


.staff-rank-group {
  margin-bottom: 3rem;
  width: 100%;
}

.rank-title {
  font-size: 1.5rem;
  color: var(--headline);
  margin-bottom: 1rem;
  font-weight: bold;
  text-align: center;
}

.staff-row {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.staff-card {
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 1rem;
  width: 260px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.staff-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.staff-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
  border: 3px solid var(--headline);
}

.staff-name {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.3rem;
}

.staff-role {
  font-size: 0.95rem;
  color: var(--subtext);
}
