body {
      font-family: 'Inter', sans-serif;
      background-color: #f7f9fc;
      margin: 0;
      padding: 0;
      color: #333;
    }
    header {
      background-color: white;
      padding: 15px 30px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      border-bottom: 1px solid #e0e0e0;
    }
    header img {
      height: 40px;
    }
    nav {
      display: flex;
      gap: 15px;
      align-items: center;
    }
    nav a {
      text-decoration: none;
      color: #2ecc71;
      font-weight: 500;
    }
    .user-box {
      padding: 6px 12px;
      background-color: #2ecc71;
      color: white;
      border-radius: 6px;
      font-weight: 600;
    }
    .alert-box {
      text-align: center;
      background-color: rgba(0, 0, 255, 0.1);
      padding: 15px;
      border-radius: 8px;
      margin: 20px auto;
      width: 90%;
      max-width: 800px;
      font-size: 0.95rem;
      border: 1px solid #5a5aff;
    }
    h1.title {
      text-align: center;
      margin: 30px 0 10px;
      font-size: 1.5rem;
      font-weight: 600;
    }
    .retro-list {
      width: 90%;
      max-width: 900px;
      margin: 0 auto 40px;
    }
    .retro {
      background-color: white;
      margin-bottom: 20px;
      border-radius: 8px;
      box-shadow: 0 2px 8px rgba(0,0,0,0.05);
      overflow: hidden;
      display: flex;
    }
    .retro img {
      width: 200px;
      object-fit: cover;
    }
    .retro-info {
      padding: 15px;
      flex: 1;
    }
    .retro-info h2 {
      color: #2ecc71;
      margin-bottom: 10px;
    }
    .retro-info p {
      margin-bottom: 10px;
    }
    .retro-info a {
      color: #3498db;
      text-decoration: none;
      font-size: 0.9rem;
    }
    footer {
      text-align: center;
      padding: 20px;
      font-size: 0.85rem;
      background-color: #f0f0f0;
    }
    .chat-box {
      position: fixed;
      bottom: 20px;
      right: 20px;
      width: 350px;
      height: 400px;
      background-color: white;
      border-radius: 12px;
      box-shadow: 0 4px 20px rgba(0,0,0,0.15);
      display: flex;
      flex-direction: column;
      overflow: hidden;
      font-size: 0.9rem;
      z-index: 999;
    }
    .chat-header {
      background-color: #2ecc71;
      color: white;
      padding: 12px;
      font-weight: bold;
      text-align: center;
    }
    .chat-messages {
      flex: 1;
      padding: 10px;
      overflow-y: auto;
      background-color: #f9f9f9;
    }
    .chat-input {
  display: flex;
  border-top: 1px solid #ddd;
  padding: 8px 10px;         /* réduit l’espace */
  background: white;
  height: 50px;              /* réduis cette hauteur */
  box-sizing: border-box;
}
 .chat-input input {
  flex: 1;
  padding: 6px 10px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
  outline: none;
  height: 100%;
  box-sizing: border-box;
}
 .chat-input button {
  padding: 6px 14px;
  margin-left: 8px;
  height: 100%;
  font-size: 14px;
  border-radius: 6px;
}
    .online-list {
      position: fixed;
      bottom: 20px;
      right: 390px;
      width: 150px;
      height: 400px;
      background-color: #ffffff;
      border-radius: 12px;
      box-shadow: 0 4px 20px rgba(0,0,0,0.15);
      padding: 10px;
      overflow-y: auto;
      font-size: 0.85rem;
      z-index: 998;
    }
    .online-list h3 {
      margin-bottom: 10px;
      font-size: 1rem;
      color: #2ecc71;
      text-align: center;
    }
    .online-list ul {
      list-style: none;
      padding: 0;
    }
    .online-list li {
      margin-bottom: 8px;
    }
  


  body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f0f0f0;
  }

.auth-toggle {
  position: relative;
}

.auth-toggle button {
  background-color: #2ecc71;
  color: white;
  border: none;
  padding: 8px 12px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
}

.auth-menu {
  position: absolute;
  top: 38px;
  right: 0;
  background: white;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  border-radius: 8px;
  display: none;
  flex-direction: column;
  min-width: 140px;
  z-index: 10;
}

.auth-menu a {
  padding: 10px 15px;
  text-decoration: none;
  color: #333;
  font-weight: 500;
  border-bottom: 1px solid #eee;
}

.auth-menu a:last-child {
  border-bottom: none;
}

.auth-menu a:hover {
  background-color: #f7f7f7;
}

  .chat-wrapper {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    z-index: 1000;
  }

  .chat-box {
    width: 300px;
    display: flex;
    flex-direction: column;
    border-right: 1px solid #ddd;
  }

  .chat-header {
    background: #4CAF50;
    color: white;
    padding: 10px;
    font-weight: bold;
    text-align: center;
  }

  .chat-messages {
    flex-grow: 1;
    padding: 10px;
    height: 200px;
    overflow-y: auto;
    background: #fafafa;
  }

  .chat-input {
    display: flex;
    border-top: 1px solid #ddd;
  }

  .chat-input input {
    flex: 1;
    padding: 10px;
    border: none;
    outline: none;
  }

  .chat-input button {
    padding: 10px 15px;
    border: none;
    background: #4CAF50;
    color: white;
    cursor: pointer;
  }

  .online-list {
    width: 200px;
    background: #fff;
    padding: 10px;
  }

  .online-list h3 {
    margin-top: 0;
    font-size: 16px;
    border-bottom: 1px solid #ccc;
    padding-bottom: 5px;
  }

  .online-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .online-list li {
    padding: 5px 0;
    font-size: 14px;
    border-bottom: 1px dashed #ddd;
  }

  .retro-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 1000px;
  margin: 30px auto;
}

.retro-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  font-family: 'Inter', sans-serif;
  border: 1px solid #e4e4e4;
}

.retro-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  border-bottom: 1px solid #f0f0f0;
  font-size: 16px;
  font-weight: 600;
  color: #27ae60;
}

.retro-card-body {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 20px;
  align-items: center;
}

.retro-card-body img {
  width: 300px;
  height: auto;
  border-radius: 6px;
  object-fit: cover;
}

.retro-card-content {
  flex: 1;
  min-width: 250px;
}

.retro-card-content p {
  margin: 0 0 10px;
  line-height: 1.5;
}

.retro-card-content a {
  color: #27ae60;
  text-decoration: none;
  font-weight: 500;
}



  body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f0f0f0;
  }

  .chat-wrapper {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    z-index: 1000;
    width: 500px;
  }

  .online-list {
    background: #fff;
    padding: 10px;
    border-bottom: 1px solid #ddd;
  }

  .online-list h3 {
    margin: 0 0 8px 0;
    font-size: 16px;
    color: #333;
  }

  .online-list ul {
    display: flex;
    gap: 15px;
    padding: 0;
    margin: 0;
    list-style: none;
    flex-wrap: wrap;
  }

  .online-list li {
    font-size: 14px;
    padding: 4px 8px;
    background: #f4f4f4;
    border-radius: 10px;
  }

  .chat-box {
    display: flex;
    flex-direction: column;
  }

  .chat-header {
    background: #4CAF50;
    color: white;
    padding: 10px;
    font-weight: bold;
    text-align: center;
  }

  .chat-messages {
    padding: 10px;
    height: 200px;
    overflow-y: auto;
    background: #fafafa;
  }

  .chat-input {
    display: flex;
    border-top: 1px solid #ddd;
  }

  .chat-input input {
    flex: 1;
    padding: 10px;
    border: none;
    outline: none;
  }

  .chat-input button {
    padding: 10px 15px;
    border: none;
    background: #4CAF50;
    color: white;
    cursor: pointer;
  }



  body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f0f0f0;
  }

.chat-container {
  position: fixed;
  bottom: 20px;
  right: 202px; /* 🟢 augmente ici pour décaler le chat */
  width: 500px;
  height: 500px;
  background: white;
  border-radius: 15px 0 0 15px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  z-index: 1000;
  display: flex;
  flex-direction: column;
}

.chat-online {
  position: fixed;
  bottom: 20px;
  right: 20px; /* 🟢 garde ça, ça place bien à droite */
  width: 200px;
  height: 500px;
  background: white;
  border-radius: 0 15px 15px 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  overflow-y: auto;
  z-index: 1000;
  padding: 10px;
}


    .chat-online h3 {
      margin: 0 0 8px;
      font-size: 15px;
      text-align: center;
      border-bottom: 1px solid #ddd;
      padding-bottom: 4px;
    }

    .chat-online ul {
      list-style: none;
      padding: 0;
      margin: 0;
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
      justify-content: center;
    }

    .chat-online li {
      background: #f2f2f2;
      padding: 4px 10px;
      border-radius: 12px;
      font-size: 13px;
      white-space: nowrap;
    }

    .chat-header {
      background: #4CAF50;
      color: white;
      padding: 10px;
      font-weight: bold;
      text-align: center;
    }

    .chat-messages {
      padding: 10px;
      flex-grow: 1;
      overflow-y: auto;
      background: #fafafa;
    }

 .chat-input {
  display: flex;
  border-top: 1px solid #ddd;
  padding: 8px;
  background: white;
  height: 60px; /* Hauteur totale contrôlée */
  box-sizing: border-box;
}

.chat-input input {
  flex: 1;
  padding: 8px 10px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
  outline: none;
  height: 100%; /* s'aligne verticalement */
  box-sizing: border-box;
}

.chat-input button {
  padding: 8px 16px;
  margin-left: 10px;
  background-color: #2ecc71;
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  height: 100%; /* s'aligne avec l'input */
  box-sizing: border-box;
}

    .like-container {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  min-width: 70px;
}

.like-error {
  margin-top: 5px;
  font-size: 13px;
  color: #e74c3c;
  display: none;
  text-align: right;
}

/* Bouton de fermeture (réduction du chat) */
.close-chat-btn {
  position: absolute;
  top: 8px;
  right: 12px;
  background: #ff4d4d;
  border: none;
  color: white;
  font-size: 16px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  cursor: pointer;
  font-weight: bold;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  transition: background 0.3s ease;
}

.close-chat-btn:hover {
  background: #e60000;
}

/* Bouton flottant pour rouvrir */
.reopen-chat-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #4CAF50;
  color: white;
  border: none;
  font-size: 16px;
  padding: 10px 14px;
  border-radius: 30px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  display: none; /* masqué par défaut */
  z-index: 9999;
}

.retro-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.retro-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.retro-card-body img {
  width: 300px;
  height: auto;
  max-height: 180px;
  object-fit: contain;
  border-radius: 6px;
  display: block;
}

.retro-card-body img {
  max-width: 300px;
  max-height: 150px;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 6px;
}

.retro-card-body {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  flex-wrap: nowrap;
}

.retro-card-body img {
  width: 524px;
  height: 93px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}


.retro-card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.retro-card-content p {
  margin: 0 0 10px 0;
  line-height: 1.5;
}

header {
  background-color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 40px;
  border-bottom: 1px solid #eee;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

nav {
  display: flex;
  gap: 25px;
  align-items: center;
}

nav a {
  color: #2ecc71;
  font-weight: 600;
  text-decoration: none;
  font-size: 15px;
  transition: color 0.2s ease;
}

nav a:hover {
  color: #27ae60;
}

.profile-dropdown {
  position: relative;
}

.profile-btn {
  background: #2ecc71;
  color: white;
  border: none;
  padding: 8px 16px;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s ease;
}

.profile-btn:hover {
  background: #27ae60;
}

.profile-dropdown-menu {
  position: absolute;
  top: 42px;
  right: 0;
  background: white;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  border-radius: 8px;
  display: none;
  flex-direction: column;
  min-width: 160px;
  z-index: 999;
}

.profile-dropdown-menu a {
  padding: 10px 15px;
  text-decoration: none;
  color: #333;
  border-bottom: 1px solid #f0f0f0;
}

.profile-dropdown-menu a:hover {
  background-color: #f9f9f9;
}

.profile-dropdown:hover .profile-dropdown-menu {
  display: flex;
}

.admin-btn {
  background-color: #f1c40f;
  color: white;
  padding: 8px 14px;
  border-radius: 6px;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.3s;
}
.admin-btn:hover {
  background-color: #d4ac0d;
}

.chat-messages a {
  color: #27ae60; /* vert */
  text-decoration: none;
  font-weight: 500;
  word-break: break-word;
}

.chat-messages a:hover {
  text-decoration: underline;
}

.chat-message {
  padding: 8px 12px;
  margin-bottom: 6px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.04);
  font-size: 14px;
  line-height: 1.4;
}

.chat-message strong {
  color: #333;
  font-weight: 600;
}

.chat-messages {
  padding: 10px;
  max-height: 300px;
  overflow-y: auto;
}

.chat-message {
  padding: 8px 12px;
  border-bottom: 1px solid #f0f0f0;
  font-size: 15px;
  line-height: 1.4;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.chat-message a {
  color: #2ecc71; /* ✅ lien vert */
  font-weight: 500;
  text-decoration: none;
}

.chat-message a:hover {
  text-decoration: underline;
}

.chat-message .badge {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #27ae60;
  color: white;
  font-size: 18px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
}

.chat-wrapper {
  display: flex;
  align-items: stretch;
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
}

#chat-container {
  width: 450px;
  height: 500px;
  background: #fff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
}

.chat-online {
  width: 160px;
  height: 500px;
  background: #fff;
  border-radius: 0 15px 15px 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  padding: 10px;
  overflow-y: auto;
}


.chat-online h3 {
  margin: 0 0 10px;
  text-align: center;
  font-size: 16px;
  color: #2ecc71;
}

.chat-wrapper {
  display: flex;
  align-items: stretch;
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
}

.chat-container {
  height: 500px; /* par exemple */
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.chat-online {
  width: 160px;
  height: 500px;
  background: white;
  border-radius: 0 15px 15px 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  padding: 12px 10px;
  overflow-y: auto;
}

.chat-header {
  background: #2ecc71;
  color: white;
  font-weight: bold;
  text-align: center;
  padding: 10px;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
  background: #fafafa;
}


.chat-input {
  display: flex;
  border-top: 1px solid #ddd;
}

.chat-input input {
  flex: 1;
  padding: 10px;
  border: none;
  outline: none;
}

.chat-input button {
  padding: 10px 15px;
  border: none;
  background: #2ecc71;
  color: white;
  cursor: pointer;
}

.logo {
  width: 45px;   /* ajuste la taille à ta convenance */
  height: auto;
}

.logo {
  transform: scale(1.9);
  transform-origin: left center; /* pour qu’il s’élargisse vers la droite */
}

.main-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 30px;
  background: white;
  border-bottom: 1px solid #eee;
}

.logo {
  height: 50px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 20px;
}

.nav-links a {
  text-decoration: none;
  color: #2ecc71;
  font-weight: 600;
}

@media (max-width: 768px) {
  .main-header {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 20px;
  }

  .logo {
    height: 40px;
    margin-bottom: 10px;
  }

  .nav-links {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }

  .nav-links a {
    padding: 8px 0;
    display: block;
    width: 100%;
    border-top: 1px solid #eee;
  }
}

/* 🌙 Mode nuit activé */
body.dark-mode {
  background-color: #121212;
  color: #e0e0e0;
}

.dark-mode .retro-card {
  background-color: #1e1e1e;
  border-left-color: #2ecc71;
}

.dark-mode .retro-card h2,
.dark-mode .retro-card label {
  color: #ffffff;
}

.dark-mode .retro-card input,
.dark-mode .retro-card textarea {
  background-color: #2a2a2a;
  color: #fff;
  border: 1px solid #444;
}

.dark-mode .retro-card .modifier-btn {
  background-color: #27ae60;
}

.dark-mode .retro-card .supprimer-btn {
  background-color: #c0392b;
}

.dark-mode .chat-container,
.dark-mode .chat-input input {
  background-color: #1e1e1e;
  color: #fff;
  border-color: #555;
}

.dark-mode .chat-input button {
  background-color: #27ae60;
  color: white;
}

.team-container {
  max-width: 1000px;
  margin: 40px auto;
  padding: 20px;
  text-align: center;
}

.team-title {
  font-size: 28px;
  margin-bottom: 30px;
  font-weight: 700;
}

.team-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.team-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  width: 180px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.team-card:hover {
  transform: translateY(-5px);
}

.team-card img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 12px;
  border: 2px solid #eee;
}

.team-card h3 {
  margin: 5px 0;
  font-size: 18px;
  color: #333;
}

.team-card .rank {
  font-size: 14px;
  font-weight: 600;
  color: #888;
  margin-top: 5px;
}

.staff-section {
  margin: 40px 0;
}

.staff-title {
  font-size: 22px;
  margin-bottom: 15px;
  font-weight: bold;
  color: #2ecc71;
}

.staff-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: flex-start;
}

.staff-card {
  background: white;
  border-radius: 12px;
  padding: 15px;
  width: 140px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.staff-card img {
  width: 64px;
  height: 110px;
  object-fit: contain;
  margin-bottom: 10px;
}

.pseudo {
  font-weight: bold;
  color: #333;
  display: block;
  margin-bottom: 4px;
}

.badge {
  display: inline-block;
  padding: 4px 8px;
  font-size: 12px;
  border-radius: 8px;
  color: white;
  font-weight: 600;
}

/* Couleurs dynamiques selon les rangs */
.badge.fondateur { background: #e74c3c; }
.badge.cogérante { background: #d35400; }
.badge.administrateur { background: #2ecc71; }
.badge.respsécurité { background: #1abc9c; }
.badge.modérateur { background: #3498db; }
.badge.médiateur { background: #9b59b6; }
.badge.respradio { background: #f39c12; }
.badge.animateurradio { background: #e67e22; }
.badge.agentcommunication { background: #ff9ff3; }
.badge.resporganisations { background: #6ab04c; }
.badge.agentorganisations { background: #00cec9; }

.box-form input[type="text"],
.box-form input[type="email"],
.box-form input[type="password"] {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
}
