body {
  background-color: #0e0e0e;
  color: white;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 20px;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.guilds {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.guild-card {
  background: #1a1a1a;
  border-radius: 12px;
  padding: 20px;
  text-decoration: none;
  color: white;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.guild-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
}

.guild-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin-bottom: 10px;
  object-fit: cover;
  background-color: #222;
}

.guild-name {
  font-size: 16px;
  font-weight: 600;
  word-break: break-word;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: #0f0f0f;
  color: white;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #1a1a1a;
  padding: 10px 20px;
  box-shadow: 0 2px 4px #00000050;
}

.navbar-logo {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  margin-right: 10px;
}

.navbar-title {
  color: white;
  text-decoration: none;
  font-size: 1.3rem;
  font-weight: bold;
}

.navbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.navbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
}

.logout-btn {
  color: #ff6666;
  text-decoration: none;
  font-weight: bold;
}

.content {
  padding: 20px;
}

.page-title {
  font-size: 24px;
  margin-bottom: 15px;
}

form label {
  display: block;
  margin-bottom: 10px;
}

form button {
  margin-top: 10px;
  padding: 6px 12px;
}

.back-btn {
  display: inline-block;
  margin-top: 20px;
  color: #cccccc;
  text-decoration: none;
}

/* Animation à l'arrivée */
@keyframes fadeInSlide {
  0% {
    opacity: 0;
    transform: translateY(-10px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Appliquer l'animation au navbar */
.navbar {
  animation: fadeInSlide 0.5s ease-out;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
}

/* Ajustements logo + titre */
.navbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.navbar-logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  transition: transform 0.3s ease;
}

.navbar-title {
  font-size: 24px;
  font-weight: bold;
  text-decoration: none;
  color: #fff;
  transition: transform 0.3s ease;
}

.navbar-logo:hover,
.navbar-title:hover {
  transform: scale(1.05);
}

.server-page {
  max-width: 700px;
  margin: 3rem auto;
  background: var(--card-bg, #1e1e1e);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  color: var(--text-color, #fff);
  animation: fadeIn 0.4s ease;
}

.server-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.settings-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.setting-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.1rem;
}

.toggle-input {
  transform: scale(1.5);
  cursor: pointer;
}

.save-btn {
  background-color: #00ffcc;
  color: #000;
  border: none;
  padding: 0.8rem 1.5rem;
  font-weight: bold;
  font-size: 1rem;
  border-radius: 0.6rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.save-btn:hover {
  background-color: #00e6b8;
}

/* .settings-form {
  max-width: 600px;
  margin: auto;
  padding: 2rem;
  background-color: var(--bg-secondary);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.setting-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  font-size: 1.1rem;
  color: var(--text-primary);
}

.setting-item input[type="checkbox"] {
  transform: scale(1.3);
}

.settings-form button {
  margin-top: 1rem;
  padding: 10px 20px;
  background-color: var(--accent);
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.settings-form button:hover {
  background-color: var(--accent-dark);
} */

.fonctionnalités {
  text-align: center;
}

.settings-container {
  display: flex;
  min-height: 100vh;
  background-color: #121212;
}

.sidebar {
  width: 240px;
  background-color: #1f1f1f;
  padding: 20px;
  box-shadow: 4px 0 10px rgba(0, 0, 0, 0.2);
}

.sidebar ul {
  list-style: none;
  padding: 0;
}

.sidebar ul li {
  margin-bottom: 12px;
}

.sidebar ul li a {
  display: block;
  padding: 10px 16px;
  color: #eee;
  text-decoration: none;
  background-color: #2c2c2c;
  border-radius: 8px;
  transition: background 0.2s;
}

.sidebar ul li a:hover,
.sidebar ul li a.active {
  background-color: #3a3a3a;
  color: #fff;
}

.settings-content {
  flex-grow: 1;
  padding: 40px;
  color: white;
  /* background: linear-gradient(to right, #1f1f1f, #121212); */
}

.settings-content form {
  margin-top: 20px;
}

.settings-content label {
  display: block;
  margin-bottom: 10px;
  font-weight: 500;
}

.settings-content input[type="checkbox"] {
  transform: scale(1.3);
  margin-bottom: 20px;
}

.settings-content button {
  padding: 10px 20px;
  background-color: #4caf50;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s;
}

.settings-content button:hover {
  background-color: #45a049;
}

.setting-card {
  background-color: #1e1e1e;
  border-radius: 12px;
  padding: 30px;
  max-width: 600px;
  margin: auto;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.setting-card h2 {
  font-size: 24px;
  margin-bottom: 10px;
}

.setting-card p {
  font-size: 14px;
  color: #ccc;
  margin-bottom: 20px;
  line-height: 1.5;
}

.toggle-group {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.toggle-group label {
  font-weight: 500;
  font-size: 16px;
}

.setting-card input[type="checkbox"] {
  transform: scale(1.4);
  cursor: pointer;
}

.setting-card button {
  padding: 10px 22px;
  font-size: 15px;
  background-color: #4c77af;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s;
}

.setting-card button:hover {
  background-color: #365680;
}

.fonctionnalités {
  margin-top: 150px;
  text-align: center;
  font-size: 50px;
  color: white;
  text-shadow: 0 0 8px white;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 26px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider-switch {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0;
  right: 0; bottom: 0;
  background-color: #888;
  transition: 0.4s;
  border-radius: 34px;
}

.slider-switch:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}

.toggle-switch input:checked + .slider-switch {
  background-color: #4c77af;
}

.toggle-switch input:checked + .slider-switch:before {
  transform: translateX(24px);
}

.alert-success {
  background-color: #4c77af; /* 2e7d32 */
  color: #fff;
  padding: 12px 20px;
  margin-bottom: 20px;
  border-radius: 8px;
  text-align: center;
  font-weight: bold;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.alert-danger {
  background-color: #c50101; /* 2e7d32 */
  color: #fff;
  padding: 12px 20px;
  margin-bottom: 20px;
  border-radius: 8px;
  text-align: center;
  font-weight: bold;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

:root {
  --bg-light: #ffffff;
  --bg-dark: #1e1e1e;
  --text-light: #1e1e1e;
  --text-dark: #f2f2f2;
  --accent: #5865f2; /* bleu Discord */
  --border-radius: 8px;
  --transition-speed: 0.2s;
}

body {
  /* background-color: var(--bg-light); */
  /* color: var(--text-light); */
  transition: background-color var(--transition-speed), color var(--transition-speed);
}

body.dark {
  background-color: var(--bg-dark);
  color: var(--text-dark);
}

/* INPUT & SELECT STYLES */
input[type="text"], input[type="number"], input[type="password"], select, textarea {
  background-color: rgba(0, 0, 0, 0.05);
  border: 1px solid #ccc;
  color: inherit;
  padding: 10px 12px;
  font-size: 14px;
  border-radius: var(--border-radius);
  width: 100%;
  transition: 0.2s ease;
}

body.dark input, body.dark select, body.dark textarea {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid #444;
  color: #fff;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(88, 101, 242, 0.3);
}

/* CHECKBOX */
input[type="checkbox"] {
  accent-color: var(--accent);
  width: 16px;
  height: 16px;
}

.form-group {
  margin-bottom: 20px;
}

label {
  display: block;
  margin-bottom: 2px;
  margin-top: 20px;
  font-weight: 500;
}

/* Déjà stylé */
select {
  appearance: none;
  background-color: rgba(0, 0, 0, 0.05);
  color: inherit;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: var(--border-radius);
  font-size: 14px;
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg width='10' height='6' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23666' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 10px 6px;
}

/* Dark mode pour select */
body.dark select {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid #444;
  color: #fff;
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg width='10' height='6' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23ccc' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E");
}

select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(88, 101, 242, 0.3);
}

.option-channel {
  color: #f2f2f2;
  background-color: #0e0e0e;
}

.option-aucun {
  color: #f2f2f2;
  background-color: #0e0e0e;
}