/* style.css */
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: 'Segoe UI', sans-serif;
  color: #f0f0f0;
  background: none;
  display: flex;
  flex-direction: column;
}

/* S'assurer que les pages utilisent la structure flexbox correctement */
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body.staff-page {
  margin: 0;
  padding: 0;
  font-family: 'Arial', sans-serif;
  background: url('../img/background.png') no-repeat center center fixed;
  background-size: cover;
  color: #fff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
}

body::before {
  content: "";
  background: url('../img/background.png') no-repeat center center/cover;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  filter: blur(8px) brightness(0.6);
  z-index: -1;
}

header {
  background: rgba(0, 0, 0, 0.7);
  padding: 10px 2px;
  position: fixed;
  top: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  backdrop-filter: blur(4px);
}

header h1 {
  font-size: 26px;
  font-weight: bold;
}

/* Navigation responsive sans hamburger */

nav ul {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
}

nav ul li {
  position: relative;
}

nav ul li a {
  padding: 10px 15px;
  text-decoration: none;
  color: #fff;
  display: block;
  transition: background 0.3s;
}

nav ul li a:hover {
  background: rgba(255, 255, 255, 0.1);
}

nav ul ul {
  display: none;
  position: absolute;
  background: rgba(0, 0, 0, 0.85);
  top: 40px;
  min-width: 160px;
  flex-direction: column;
  z-index: 200;
}

/* === STYLES POUR LE PANEL D'ADMINISTRATION DES ENTREPRISES === */

/* Bouton d'administration */
.admin-panel-btn {
  background: linear-gradient(135deg, #007bff, #0056b3);
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  margin-top: 15px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
}

.admin-panel-btn:hover {
  background: linear-gradient(135deg, #0056b3, #003d82);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 123, 255, 0.4);
}

/* Modal overlay */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.show {
  opacity: 1;
  visibility: visible;
}

/* Modal principal */
.admin-modal {
  background: linear-gradient(145deg, #1a1a1a, #2d2d2d);
  border-radius: 15px;
  width: 90%;
  max-width: 1000px;
  max-height: 90vh;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Header du modal */
.admin-header {
  background: linear-gradient(135deg, #007bff, #0056b3);
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: white;
}

.admin-header h2 {
  margin: 0;
  font-size: 24px;
}

.close-btn {
  background: none;
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
  padding: 5px;
  border-radius: 5px;
  transition: background 0.3s;
}

.close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Contenu du modal */
.admin-content {
  padding: 0;
  max-height: calc(90vh - 80px);
  overflow-y: auto;
  color: #f0f0f0;
}

/* Onglets */
.admin-tabs {
  display: flex;
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tab-btn {
  background: none;
  border: none;
  padding: 15px 25px;
  color: #ccc;
  cursor: pointer;
  transition: all 0.3s ease;
  border-bottom: 3px solid transparent;
}

.tab-btn.active {
  color: #007bff;
  border-bottom-color: #007bff;
  background: rgba(0, 123, 255, 0.1);
}

.tab-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Contenu des onglets */
.tab-content {
  display: none;
  padding: 25px;
}

.tab-content.active {
  display: block;
}

/* Table des entreprises */
.companies-table {
  margin-top: 20px;
  overflow-x: auto;
}

.companies-table table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  overflow: hidden;
}

.companies-table th {
  background: linear-gradient(135deg, #007bff, #0056b3);
  color: white;
  padding: 15px;
  text-align: left;
  font-weight: bold;
}

.companies-table td {
  padding: 12px 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.companies-table tr:hover {
  background: rgba(255, 255, 255, 0.05);
}

/* Status badges */
.status-badge {
  padding: 5px 10px;
  border-radius: 15px;
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
}

.status-badge.reprise {
  background: rgba(40, 167, 69, 0.2);
  color: #28a745;
  border: 1px solid #28a745;
}

.status-badge.disponible {
  background: rgba(255, 193, 7, 0.2);
  color: #ffc107;
  border: 1px solid #ffc107;
}

/* Boutons d'action */
.edit-btn, .delete-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  margin: 0 5px;
  padding: 5px 8px;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.edit-btn {
  color: #007bff;
}

.edit-btn:hover {
  background: rgba(0, 123, 255, 0.2);
  transform: scale(1.1);
}

.delete-btn {
  color: #dc3545;
}

.delete-btn:hover {
  background: rgba(220, 53, 69, 0.2);
  transform: scale(1.1);
}

/* Formulaires */
.add-form, .edit-form {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  padding: 25px;
  margin-top: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: #f0f0f0;
  font-weight: bold;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: #f0f0f0;
  font-size: 14px;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.2);
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

/* Preview d'image */
.image-preview {
  margin-top: 10px;
}

.image-preview img {
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
}

/* Actions de formulaire */
.form-actions {
  display: flex;
  gap: 15px;
  justify-content: flex-end;
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.form-actions button {
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s ease;
}

.form-actions button[type="submit"] {
  background: linear-gradient(135deg, #28a745, #1e7e34);
  color: white;
}

.form-actions button[type="submit"]:hover {
  background: linear-gradient(135deg, #1e7e34, #155724);
  transform: translateY(-2px);
}

.cancel-btn {
  background: linear-gradient(135deg, #6c757d, #545b62);
  color: white;
}

.cancel-btn:hover {
  background: linear-gradient(135deg, #545b62, #3d4348);
  transform: translateY(-2px);
}

/* Dialog de confirmation */
.confirm-modal .modal-overlay {
  z-index: 10001;
}

.confirm-dialog {
  background: linear-gradient(145deg, #1a1a1a, #2d2d2d);
  border-radius: 15px;
  padding: 30px;
  max-width: 400px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.confirm-dialog h3 {
  margin-top: 0;
  color: #dc3545;
  font-size: 24px;
}

.confirm-dialog p {
  color: #f0f0f0;
  margin-bottom: 25px;
  font-size: 16px;
}

.confirm-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
}

.confirm-btn {
  background: linear-gradient(135deg, #dc3545, #c82333);
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s ease;
}

.confirm-btn:hover {
  background: linear-gradient(135deg, #c82333, #a71e2a);
  transform: translateY(-2px);
}

/* Notifications */
.notification {
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .admin-modal {
    width: 95%;
    height: 95vh;
  }
  
  .form-row {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .admin-tabs {
    flex-wrap: wrap;
  }
  
  .tab-btn {
    flex: 1;
    min-width: 120px;
  }
  
  .companies-table {
    font-size: 14px;
  }
  
  .companies-table th,
  .companies-table td {
    padding: 8px;
  }
  
  .form-actions {
    flex-direction: column;
  }
  
  .confirm-actions {
    flex-direction: column;
  }
}

/* Scrollbar personnalisée pour le modal */
.admin-content::-webkit-scrollbar {
  width: 8px;
}

.admin-content::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

.admin-content::-webkit-scrollbar-thumb {
  background: rgba(0, 123, 255, 0.6);
  border-radius: 4px;
}

.admin-content::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 123, 255, 0.8);
}

nav ul li:hover ul {
  display: flex;
  flex-direction: column;
}

.main-content {
  flex: 1 0 auto;
  padding-top: 120px;
  text-align: center;
  animation: fadeIn 1.5s ease-in-out;
  background-color: transparent;
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem;
  min-height: calc(100vh - 200px);
}

.main-content h2 {
  font-size: 48px;
  color: #1e90ff;
  margin-bottom: 20px;
}

.main-content p {
  font-size: 20px;
  max-width: 600px;
  margin: 0 auto;
}

.container {
  text-align: center;
  animation: fadeIn 1.5s ease-in-out;
}

.logo {
  width: 200px;
  margin-bottom: 20px;
  animation: logoBounce 1.5s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes logoBounce {
  0% { opacity: 0; transform: scale(0.7); }
  60% { opacity: 1; transform: scale(1.05); }
  100% { transform: scale(1); }
}

footer {
  background-color: #0d0d0d;
  text-align: center;
  padding: 15px 0;
  width: 100%;
  animation: fadeInUp 1.8s ease-out;
  color: #4682b4;
  position: relative;
  z-index: 1;
  margin-top: auto;
  flex-shrink: 0;
}

.choice-box {
  max-width: 400px;
  margin: 80px auto;
  padding: 30px;
  background: rgba(0, 0, 0, 0.75);
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 0 15px rgba(0,0,0,0.5);
  animation: fadeIn 1s ease;
}

.choice-box h2 {
  margin-bottom: 20px;
  font-size: 24px;
  color: #ffffff;
}

.button-group {
  display: flex;
  justify-content: space-around;
  gap: 20px;
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  color: #fff;
  background-color: none;
  text-decoration: none;
  border-radius: 8px;
  transition: background-color 0.3s ease;
}

.btn:hover {
  background-color: none;
  filter: blur(1px) brightness(0.6);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.legal-section {
  text-align: center;
  margin-top: 60px;
  animation: fadeIn 1.2s ease-in-out;
}

.legal-section h2 {
  font-size: 32px;
  margin-bottom: 30px;
}

.legal-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
}

.legal-item {
  width: 80%;
  max-width: 400px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.1);
  border: 3px solid white;
  border-radius: 15px;
  font-size: 20px;
  color: white;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.3s;
}

.legal-item:hover {
  transform: scale(1.03);
  background: rgba(255, 255, 255, 0.2);
}

/* Apercu youtube */
.video-container {
  margin: 30px 0;
  text-align: center;
}

.video-container h3 {
  margin-bottom: 15px;
  color: #2e86de;
}

.video-container iframe {
  width: 800px;
  height: 450px;
  max-width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Responsive */
@media (max-width: 900px) {
  .video-container iframe {
    width: 90%;
    height: 350px;
  }
}

@media (max-width: 600px) {
  .video-container iframe {
    width: 100%;
    height: 250px;
  }
}

/* Apercu  rc STAFF */


.form-container {
  margin: 30px 0;
  padding: 20px;
  /* background-color: #f9f9f9; */
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.form-container h2 {
  margin-bottom: 15px;
  color: #ffffff;
  text-align: center;
}

.form-container iframe {
  border-radius: 15px;
  background-color: white;
}

/* Responsive pour le formulaire */
@media (max-width: 768px) {
  .form-container {
    margin: 20px 10px;
    padding: 15px;
  }
  
  .form-container iframe {
    height: 600px;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .form-container {
    margin: 15px 5px;
    padding: 10px;
  }
  
  .form-container iframe {
    height: 500px;
  }
}

/* requis STAFF */
.requirements-section {
  /* background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); */
  border-radius: 15px;
  padding: 30px;
  margin: 30px 0;
  color: white;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.requirements-section h3 {
  text-align: center;
  font-size: 28px;
  margin-bottom: 30px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.requirements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.requirement-item {
  background: rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 15px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.requirement-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.3);
}

.requirement-icon {
  font-size: 30px;
  flex-shrink: 0;
  margin-top: 5px;
}

.requirement-text strong {
  display: block;
  font-size: 18px;
  margin-bottom: 8px;
  color: #fff;
}

.requirement-text p {
  margin: 0;
  color: rgba(255,255,255,0.9);
  line-height: 1.4;
}

/* Responsive */
@media (max-width: 768px) {
  .requirements-section {
    padding: 20px;
    margin: 20px 0;
  }
  
  .requirements-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .requirement-item {
    padding: 15px;
  }
  
  .requirements-section h3 {
    font-size: 24px;
  }
}

/* Styles pour la page Legal */
.process-section, .companies-section, .available-section {
  margin: 40px 0;
  padding: 20px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.process-box {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}

.process-steps {
  flex: 2;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
}

.step {
  background: rgba(255, 255, 255, 0.1);
  padding: 15px;
  border-radius: 10px;
  text-align: center;
}

.process-info {
  flex: 1;
  background: rgba(0, 100, 255, 0.1);
  padding: 20px;
  border-radius: 10px;
}

.companies-grid, .available-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.company-card, .available-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 20px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: transform 0.3s ease;
}

.company-card:hover, .available-card:hover {
  transform: translateY(-5px);
}

.company-image, .available-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 15px;
}

.company-info, .available-info {
  text-align: left;
}

.company-desc, .available-desc {
  font-size: 14px;
  color: #ccc;
  margin: 10px 0;
  line-height: 1.5;
}

.discord-link, .contact-button {
  display: inline-block;
  background: #7289da;
  color: white;
  padding: 8px 15px;
  border-radius: 20px;
  text-decoration: none;
  font-size: 14px;
  margin-top: 10px;
  transition: background 0.3s ease;
}

.discord-link:hover, .contact-button:hover {
  background: #5b6eae;
}

.status {
  background: #ff6b35;
  color: white;
  padding: 5px 15px;
  border-radius: 15px;
  font-size: 12px;
  font-weight: bold;
  margin-top: 10px;
  display: inline-block;
}

.contact-info {
  text-align: center;
  margin-top: 30px;
  padding: 20px;
  background: rgba(0, 150, 0, 0.1);
  border-radius: 10px;
}



.roleplay-opportunities, .unique-systems {
  margin: 40px auto;
  max-width: 800px;
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 0 15px rgba(0,0,0,0.3);
}

.roleplay-opportunities h3, .unique-systems h3 {
  font-size: 32px;
  color: #1e90ff;
  margin-bottom: 20px;
  text-align: center;
}

.roleplay-opportunities p {
  font-size: 18px;
  line-height: 1.6;
  text-align: center;
  margin: 0 auto;
}

.system-item {
  margin: 15px 0;
  text-align: center;
  font-size: 18px;
  padding: 10px;
  border-radius: 8px;
  transition: background 0.3s ease;
}



/* Responsive pour tablets */
@media (max-width: 1024px) {
  .companies-grid, .available-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
  }
  
  .main-content {
    padding: 1.5rem;
  }
}

/* Responsive pour mobile */
@media (max-width: 768px) {
  .process-box {
    flex-direction: column;
    gap: 20px;
  }
  
  .companies-grid, .available-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .company-card, .available-card {
    padding: 15px;
  }
  
  .process-steps {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  
  .step {
    padding: 12px;
  }
  
  .process-info {
    padding: 15px;
  }
}

/* Responsive pour petits mobiles */
@media (max-width: 480px) {
  .companies-grid, .available-grid {
    margin-top: 15px;
  }
  
  .company-card, .available-card {
    padding: 12px;
  }
  
  .company-image, .available-image {
    height: 150px;
  }
  
  .process-section, .companies-section, .available-section {
    margin: 20px 0;
    padding: 15px;
  }
}

/* Styles spécifiques à la page reglementstaff.html */

body.staff-page {
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
    background: url('../img/background.png') no-repeat center center fixed;
    background-size: cover;
    color: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
}

/* Barre noire en haut */
.top-bar {
    background: rgba(0, 0, 0, 0.9);
    height: 60px;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.top-bar h1 {
    margin: 0;
    color: #fff;
    font-size: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}


/* Contenu principal avec marge pour la barre */
.content {
    margin-top: 80px;
    padding: 20px;
    backdrop-filter: blur(5px);
    border-radius: 10px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.content h2 {
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.content p, .content ul {
    line-height: 1.6;
    margin-bottom: 15px;
}

.content ul {
    padding-left: 20px;
}

.content li {
    margin-bottom: 8px;
}

/* Style pour le bouton de retour */
.back-btn {
    color: #fff;
    text-decoration: none;
    border: 2px solid transparent;
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.back-btn:hover {
    border-color: #5865F2;
    color: white;
}



.main-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem;
}
.rule-section {
  background: rgba(255, 255, 255, 0.05);
  border-left: 4px solid #ff6b6b;
  margin: 2rem auto;
  padding: 2rem;
  border-radius: 12px;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  max-width: 100%;
  text-align: left;
}
.rule-section h1 {
  color: #ff6b6b;
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-bottom: 2px solid rgba(255, 107, 107, 0.3);
  padding-bottom: 0.5rem;
  text-align: center;
}
.rule-section h2 {
  color: #4ecdc4;
  font-size: 1.4rem;
  margin: 2rem 0 1rem 0;
  text-align: center;
}
h2 {
  text-align: center;
  margin: 2rem 0;
}
.lexique-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
  margin: 1.5rem auto;
  max-width: 100%;
}
.lexique-item {
  background: rgba(78, 205, 196, 0.1);
  padding: 1rem;
  border-radius: 8px;
  border-left: 3px solid #4ecdc4;
  transition: transform 0.2s;
  text-align: left;
}
.lexique-item:hover {
  transform: translateY(-2px);
}
.lexique-item strong {
  color: #4ecdc4;
  display: block;
  margin-bottom: 0.3rem;
}
.rule-list {
  background: rgba(255, 255, 255, 0.03);
  padding: 1.5rem;
  border-radius: 8px;
  margin: 1rem auto;
  text-align: left;
}
.rule-list p {
  margin: 0.8rem 0;
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  border-left: 3px solid rgba(255, 107, 107, 0.5);
  text-align: left;
}
.hierarchy-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin: 2rem auto;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  max-width: 400px;
}
.hierarchy-item {
  padding: 0.8rem 1.5rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 25px;
  font-weight: bold;
  min-width: 150px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
.arrow-down {
  font-size: 1.5rem;
  color: #ff6b6b;
  text-align: center;
}
.vote-button {
  display: inline-block;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 1rem 2rem;
  text-decoration: none;
  border-radius: 25px;
  font-weight: bold;
  margin: 1rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s;
}
.vote-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}
.warning-box {
  background: rgba(255, 107, 107, 0.15);
  border: 2px solid rgba(255, 107, 107, 0.4);
  padding: 1.5rem;
  border-radius: 8px;
  margin: 1.5rem auto;
  text-align: center;
}
.info-box {
  background: rgba(78, 205, 196, 0.15);
  border: 2px solid rgba(78, 205, 196, 0.4);
  padding: 1.5rem;
  border-radius: 8px;
  margin: 1.5rem auto;
  text-align: center;
}
.collapsible {
  cursor: pointer;
  user-select: none;
  transition: color 0.3s;
}
.collapsible:hover {
  color: #4ecdc4;
}
.collapsible:after {
  content: ' ▼';
  font-size: 0.8em;
  opacity: 0.7;
  transition: transform 0.3s;
}
.collapsible.active:after {
  transform: rotate(180deg);
}
.content-collapsible {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.content-collapsible.active {
  max-height: 5000px;
}


.section-nav {
  position: sticky;
  top: 80px;
  background: rgba(255, 255, 255, 0.1);
  padding: 1rem;
  border-radius: 8px;
  margin: 0 auto 2rem auto;
  backdrop-filter: blur(10px);
  max-width: 900px;
}
.section-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  justify-content: center;
}
.section-nav a {
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.2s;
}
.section-nav a:hover {
  background: rgba(255, 107, 107, 0.3);
}
.section-nav a.active {
  background: linear-gradient(90deg, #1e90ff 60%, #4682b4 100%);
  color: #fff;
  font-weight: bold;
  box-shadow: 0 2px 8px rgba(30,144,255,0.15);
}

/* Responsive pour mobiles */
@media (max-width: 768px) {
  .main-content {
    padding: 1rem 0.5rem;
  }
  
  .rule-section {
    margin: 1rem 0.5rem;
    padding: 1rem;
  }
  
  .rule-section h1 {
    font-size: 1.5rem;
  }
  
  .rule-section h2 {
    font-size: 1.2rem;
  }
  
  .lexique-grid {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }
  
  .lexique-item {
    padding: 0.8rem;
  }
  
  .hierarchy-visual {
    max-width: 280px;
    padding: 1rem;
  }
  
  .hierarchy-item {
    padding: 0.6rem 1rem;
    font-size: 14px;
    min-width: 120px;
  }
  
  .rule-list {
    padding: 1rem;
  }
  
  .rule-list p {
    padding: 0.4rem;
    font-size: 14px;
  }
  
  .section-nav {
    padding: 0.8rem;
    top: 70px;
  }
  
  .section-nav ul {
    gap: 0.3rem;
  }
  
  .section-nav a {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
  }
}

/* Responsive pour très petits écrans */
@media (max-width: 480px) {
  .rule-section h1 {
    font-size: 1.3rem;
  }
  
  .rule-section h2 {
    font-size: 1.1rem;
  }
  
  .hierarchy-visual {
    max-width: 250px;
  }
  
  .hierarchy-item {
    padding: 0.5rem 0.8rem;
    font-size: 13px;
    min-width: 100px;
  }
  
  .lexique-item {
    padding: 0.6rem;
  }
  
  .section-nav {
    padding: 0.6rem;
  }
  
  .section-nav ul {
    flex-direction: column;
    align-items: center;
  }
  
  .section-nav a {
    margin-bottom: 0.2rem;
    width: auto;
    min-width: 120px;
    text-align: center;
  }
}

/* Responsive spécifique à legal-illegal.html */
@media (max-width: 768px) {
  .entreprise-form-section,
  .entreprises-table-section {
    margin: 25px 10px;
    padding: 20px 15px;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .table-header {
    flex-direction: column;
    gap: 15px;
    align-items: center;
  }

  .table-header h3 {
    text-align: center !important;
    margin-bottom: 0 !important;
  }

  .table-controls {
    flex-direction: column;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .entreprise-form-section,
  .entreprises-table-section {
    margin: 20px 5px;
    padding: 15px 10px;
  }

  .entreprise-form-section h3,
  .entreprises-table-section h3 {
    font-size: 18px;
  }

  .form-grid .form-group input {
    font-size: 16px;
  }

  .submit-btn {
    width: 100%;
    padding: 15px;
  }

  .empty-table-state {
    padding: 25px 15px;
  }
}

/* Styles pour la section Descriptions des postes */
.job-descriptions {
  margin: 2.5rem auto;
  padding: 2rem 1rem;
  background: rgba(255,255,255,0.07);
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(78,205,196,0.07);
  max-width: 700px;
  text-align: left;
}

.job-descriptions h2 {
  color: #4ecdc4;
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
  text-align: center;
}

.job-item {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(78,205,196,0.15);
}

.job-item:last-child {
  border-bottom: none;
}

.job-item h3 {
  margin: 0 0 0.5rem 0;
  color: #1e90ff;
  font-size: 1.1rem;
}

.job-item p {
  margin: 0;
  color: #e0e0e0;
  font-size: 1rem;
}

/* Styles spécifiques à staff.html déplacés ici */
.navbar {
    background-color: #000;
    padding: 15px 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.navbar ul {
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
}

.navbar li {
    margin: 0 20px;
}

.navbar a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    padding: 10px 15px;
    transition: background-color 0.3s;
}

.navbar a:hover {
    background-color: #333;
    border-radius: 5px;
}

.logo {
    text-align: center;
    margin-top: 120px;
    margin-bottom: 30px;
}

.logo img {
    max-width: 150px;
    height: auto;
}

.login-container {
    max-width: 400px;
    margin: 50px auto;
    background-color: rgba(0, 0, 0, 0.8);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
}

.login-container h2 {
    color: white;
    margin-bottom: 20px;
}

.discord-login-btn {
    background-color: #5865F2;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
    text-decoration: none;
    display: inline-block;
}

.discord-login-btn:hover {
    background-color: #4752C4;
}

.content {
    margin-top: 20px;
    padding: 20px;
    display: none;
}

.staff-content {
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 30px;
    border-radius: 10px;
    max-width: 800px;
    margin: 0 auto;
}

.user-info {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    text-align: center;
}

.logout-btn {
    background-color: #dc3545;
    color: white;
    padding: 8px 15px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    margin-left: 10px;
}

.logout-btn:hover {
    background-color: #c82333;
}

.error-message {
    color: #ff6b6b;
    background-color: rgba(255, 107, 107, 0.1);
    padding: 10px;
    border-radius: 5px;
    margin: 10px 0;
}

.loading {
    color: white;
    text-align: center;
    padding: 20px;
}

/* Styles pour la grille de boutons staff */
.staff-buttons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.staff-button {
    background-color: rgba(255, 255, 255, 0.1);
    border: 2px solid transparent;
    border-radius: 10px;
    padding: 25px;
    text-decoration: none;
    color: white;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    display: block;
}

.staff-button:hover {
    background-color: rgba(88, 101, 242, 0.2);
    border-color: #5865F2;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(88, 101, 242, 0.3);
}

.button-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.staff-button h3 {
    color: #5865F2;
    margin-bottom: 10px;
    font-size: 18px;
}

.staff-button p {
    color: #cccccc;
    font-size: 14px;
    margin: 0;
}

.staff-button:hover h3 {
    color: white;
}

.staff-button:hover p {
    color: white;
}

.section-nav a.active {
  background: linear-gradient(90deg, #1e90ff 60%, #4682b4 100%);
  color: #fff;
  font-weight: bold;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(30,144,255,0.15);
}

/* Responsive */
@media (max-width: 768px) {
    .staff-buttons-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .staff-button {
        padding: 20px;
    }
    
    .button-icon {
        font-size: 36px;
    }
}

/* Media queries pour une meilleure compatibilité mobile */
@media (max-width: 768px) {
  /* Navigation mobile - garder le menu normal */
  nav {
    width: 100%;
  }

  nav ul {
    display: flex !important;
    flex-direction: row; /* Garder les boutons sur la même ligne */
    justify-content: space-around; /* Espacement égal entre les boutons */
    align-items: center;
    position: static;
    background: transparent; /* Utiliser le background du header */
    padding: 5px 0; /* Réduire le padding */
    backdrop-filter: none;
    width: 100%;
    flex-wrap: wrap; /* Permettre le wrap si nécessaire */
  }

  nav ul li {
    width: auto; /* Largeur automatique */
    text-align: center;
    position: relative;
    flex: 1; /* Répartir l'espace équitablement */
  }

  nav ul li a {
    padding: 8px 12px; /* Réduire le padding */
    display: block;
    border-bottom: none; /* Supprimer les bordures */
    width: 100%;
    box-sizing: border-box;
    font-size: 14px; /* Réduire la taille de police */
  }

  /* Sous-menu mobile - comportement toggle propre */
  nav ul ul {
    display: none !important; /* Fermé par défaut sur mobile */
    position: absolute !important; /* Position absolue pour apparaître sous le menu */
    top: 100% !important; /* Apparaître juste sous le menu principal */
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.95) !important;
    margin: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    border-top: 2px solid #1e90ff;
    transition: all 0.3s ease;
    z-index: 1000;
  }
  
  /* Quand le sous-menu est ouvert */
  nav ul ul.mobile-open {
    display: flex !important;
  }
  
  /* Empêcher le hover desktop sur mobile */
  nav ul li:hover ul {
    display: none !important;
  }
  
  nav ul li:hover ul.mobile-open {
    display: flex !important;
  }
  
  /* Indicateur visuel pour le lien Serveur */
  nav ul > li > a[href="#"] {
    position: relative;
  }
  
  /* nav ul > li > a[href="#"]::after {
    content: " ▼";
    font-size: 12px;
    opacity: 0.7;
    transition: transform 0.3s ease;
  } */
  
  /* Rotation de la flèche quand ouvert */
  nav ul > li:has(ul.mobile-open) > a[href="#"]::after {
    transform: rotate(180deg);
  }

  nav ul ul li {
    width: 100%;
  }

  nav ul ul li {
    width: 100% !important;
    flex: none !important;
  }

  nav ul ul li a {
    padding: 12px 20px; /* Padding uniforme */
    font-size: 14px;
    color: #e0e0e0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
  }

  nav ul ul li a:hover {
    background: rgba(30, 144, 255, 0.1);
  }

  /* Style spécial pour le lien Discord sur mobile */
  nav ul > li > a[href*="discord"] {
    background: linear-gradient(135deg, #5865F2 0%, #4752C4 100%) !important;
    margin: 0 5px; /* Réduire les marges */
    border-radius: 15px; /* Réduire le border-radius */
    font-weight: bold;
    border-bottom: none !important;
    color: white !important;
    box-shadow: 0 2px 8px rgba(88, 101, 242, 0.3); /* Réduire l'ombre */
    padding: 6px 10px !important; /* Padding plus petit */
    font-size: 12px !important; /* Taille de police plus petite */
  }

  nav ul > li > a[href*="discord"]:hover {
    background: linear-gradient(135deg, #4752C4 0%, #3c45a3 100%) !important;
    transform: scale(1.02);
  }

  /* Header responsive */
  header {
    padding: 8px 15px; /* Réduire le padding */
    flex-direction: column;
    gap: 5px; /* Réduire l'espace entre logo et menu */
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    box-sizing: border-box;
    height: auto;
    min-height: 60px; /* Hauteur minimale plus petite */
  }

  header div {
    justify-content: center !important;
  }

  header h1 {
    font-size: 20px;
  }

  header div img {
    height: 35px !important;
  }

  /* Main content */
  .main-content {
    padding-top: 80px; /* Ajusté pour le header plus petit */
    padding-left: 15px;
    padding-right: 15px;
  }

  .main-content h2 {
    font-size: 32px;
  }

  .main-content p {
    font-size: 16px;
  }

  /* Boutons et éléments interactifs */
  .choice-box {
    margin: 40px 15px;
    padding: 20px;
  }

  .button-group {
    flex-direction: column;
    gap: 15px;
  }

  .btn {
    padding: 12px 20px;
    font-size: 16px;
  }

  /* Legal sections responsive */
  .legal-item {
    width: 90%;
    font-size: 18px;
    padding: 15px;
  }

  /* Logo responsive */
  .logo {
    width: 150px;
  }
}

@media (max-width: 480px) {
  /* Extra petits écrans */
  header h1 {
    font-size: 16px;
  }

  header div img {
    height: 30px !important;
  }

  .main-content h2 {
    font-size: 24px;
  }

  .main-content p {
    font-size: 14px;
  }

  .choice-box {
    margin: 20px 10px;
    padding: 15px;
  }

  .choice-box h2 {
    font-size: 20px;
  }

  .legal-item {
    font-size: 16px;
    padding: 12px;
  }

  /* Video container responsive */
  .video-container iframe {
    height: 200px !important;
  }

  /* Form container responsive */
  .form-container {
    padding: 10px;
  }

  .form-container iframe {
    height: 500px !important;
  }

  /* Amélioration des systèmes uniques pour mobile */
  .unique-systems {
    padding: 15px;
    margin: 20px 10px;
  }

  .system-item {
    font-size: 16px;
    padding: 8px;
    margin: 10px 0;
  }

  .roleplay-opportunities {
    padding: 15px;
    margin: 20px 10px;
  }

  .roleplay-opportunities h3 {
    font-size: 24px;
  }

  .unique-systems h3 {
    font-size: 24px;
  }

  /* Footer responsive */
  footer {
    padding: 15px 10px;
    font-size: 14px;
  }

  /* Amélioration du container */
  .container {
    padding: 0 10px;
  }

  /* Améliorations tactiles pour mobile */
  button, .btn, a {
    min-height: 44px;
    min-width: 44px;
  }

  .legal-item {
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Espacement amélioré pour les liens */
  nav ul li a {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* Styles pour le formulaire d'absence - VERSION COMPACTE */
.absence-form-container {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  padding: 25px;
  margin: 20px auto;
  max-width: 500px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.absence-form-container h3 {
  color: #1e90ff;
  text-align: center;
  margin-bottom: 20px;
  font-size: 22px;
}

/* Boîte d'information pour la validation */
.info-validation {
  background: rgba(255, 193, 7, 0.15);
  border: 2px solid rgba(255, 193, 7, 0.4);
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 20px;
  text-align: center;
}

.info-validation p {
  margin: 0;
  color: #fff;
  font-size: 14px;
  line-height: 1.4;
}

.info-validation strong {
  color: #ffc107;
}

.absence-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

/* Champs qui prennent toute la largeur */
.form-group:nth-child(1),  /* Nom du Staff */
.form-group:nth-child(2),  /* Pseudo Discord */
.form-group:nth-child(7),  /* Raison */
.form-group:nth-child(8) { /* Bouton */
  grid-column: 1 / -1;
}

.form-group label {
  color: #f0f0f0;
  margin-bottom: 6px;
  font-weight: 500;
  font-size: 14px;
}

.form-group input,
.form-group textarea,
.form-group select {
  padding: 10px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 14px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Style spécifique pour le select */
.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 16 16'%3E%3Cpath d='M8 10.5l-4-4h8l-4 4z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px;
  padding-right: 35px;
}

.form-group select option {
  background: rgba(20, 20, 20, 0.95);
  color: #fff;
  padding: 8px;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: #1e90ff;
  box-shadow: 0 0 0 3px rgba(30, 144, 255, 0.2);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
  grid-column: 1 / -1;
}

.submit-btn {
  background: linear-gradient(135deg, #1e90ff 0%, #4682b4 100%);
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 15px;
  grid-column: 1 / -1;
}

.submit-btn:hover {
  background: linear-gradient(135deg, #1c7ed6 0%, #3a6fa0 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(30, 144, 255, 0.3);
}

.submit-btn:active {
  transform: translateY(0);
}

.message {
  padding: 12px;
  border-radius: 6px;
  margin-top: 15px;
  text-align: center;
  font-weight: 500;
  transition: all 0.3s ease;
}

.message.success {
  background: rgba(76, 175, 80, 0.2);
  border: 1px solid rgba(76, 175, 80, 0.5);
  color: #4caf50;
}

.message.error {
  background: rgba(244, 67, 54, 0.2);
  border: 1px solid rgba(244, 67, 54, 0.5);
  color: #f44336;
}

.message.info {
  background: rgba(33, 150, 243, 0.2);
  border: 1px solid rgba(33, 150, 243, 0.5);
  color: #2196f3;
}

/* Styles pour la liste des absences */
.absences-list-container {
  margin: 40px auto;
  max-width: 900px;
}

.absences-list-container h3 {
  color: #1e90ff;
  text-align: center;
  margin-bottom: 25px;
  font-size: 24px;
}

.absences-list {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

.absence-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 20px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.absence-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.absence-card.upcoming {
  border-left: 4px solid #ff9800;
}

.absence-card.active {
  border-left: 4px solid #f44336;
  background: rgba(244, 67, 54, 0.05);
}

.absence-card.finished {
  border-left: 4px solid #4caf50;
  opacity: 0.8;
}

.absence-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.absence-header h4 {
  color: #fff;
  margin: 0;
  font-size: 18px;
}

.absence-status {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
}

.absence-status.upcoming {
  background: rgba(255, 152, 0, 0.2);
  color: #ff9800;
}

.absence-status.active {
  background: rgba(244, 67, 54, 0.2);
  color: #f44336;
}

.absence-status.finished {
  background: rgba(76, 175, 80, 0.2);
  color: #4caf50;
}

.absence-info p {
  margin: 8px 0;
  color: #e0e0e0;
}

.absence-info strong {
  color: #fff;
}

.absence-date {
  font-size: 14px;
  color: #aaa;
  margin-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 10px;
}

.no-absences {
  text-align: center;
  color: #aaa;
  font-style: italic;
  padding: 40px 20px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
}

/* Responsive pour le formulaire d'absence - VERSION COMPACTE */
@media (max-width: 768px) {
  .absence-form-container {
    margin: 15px 10px;
    padding: 20px;
    max-width: none;
  }

  .absence-form-container h3 {
    font-size: 20px;
    margin-bottom: 15px;
  }

  /* Formulaire en une colonne sur mobile */
  .absence-form {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .form-group:nth-child(1),
  .form-group:nth-child(2),
  .form-group:nth-child(7),
  .form-group:nth-child(8) {
    grid-column: 1;
  }

  .form-group input,
  .form-group textarea,
  .form-group select {
    padding: 12px;
    font-size: 16px; /* Évite le zoom sur iOS */
  }

  .submit-btn {
    padding: 14px 20px;
    font-size: 16px;
  }

  .absences-list {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .absence-card {
    padding: 15px;
  }

  .absence-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .absence-status {
    align-self: flex-end;
  }
}

@media (max-width: 480px) {
  .absence-form-container {
    margin: 15px 10px;
    padding: 15px;
  }

  .form-group input,
  .form-group textarea {
    padding: 10px;
    font-size: 14px;
  }

  .submit-btn {
    padding: 12px 24px;
    font-size: 14px;
  }

  .absence-card {
    padding: 12px;
  }

  .absence-header h4 {
    font-size: 16px;
  }
}

/* Styles propres pour la page staffdoc.html */
.rules-section {
  margin: 40px 0;
}

.rules-section h3 {
  color: #1e90ff;
  text-align: center;
  margin-bottom: 30px;
  font-size: 28px;
}

.info-box {
  background: rgba(255, 255, 255, 0.05);
  padding: 20px;
  border-radius: 10px;
  margin: 20px 0;
  border-left: 4px solid #1e90ff;
}

.info-box p {
  text-align: left;
  line-height: 1.6;
  margin-bottom: 15px;
  color: #f0f0f0;
}

.info-box p:last-child {
  margin-bottom: 0;
}

.warning-text {
  color: #ff6b6b !important;
  font-weight: bold !important;
}

/* Styles pour legal-illegal.html - utilise les mêmes que les autres pages */
.legal-illegal-page .main-content {
  flex: 1 0 auto;
  padding-top: 120px;
  text-align: center;
  animation: fadeIn 1.5s ease-in-out;
  background-color: transparent;
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem;
  min-height: calc(100vh - 200px);
}

.legal-illegal-page .container {
  text-align: center;
  animation: fadeIn 1.5s ease-in-out;
  max-width: 900px;
  margin: 0 auto;
}

.legal-illegal-page .container h2 {
  font-size: 48px;
  color: #1e90ff;
  margin-bottom: 20px;
}

.section-entreprises,
.section-illegal {
  margin: 50px 0;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  padding: 35px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.section-entreprises h3,
.section-illegal h3 {
  color: #1e90ff;
  text-align: center;
  margin-bottom: 30px;
  font-size: 26px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.section-illegal h3 {
  color: #ff6b6b;
}

/* Formulaires */
.form-container {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 25px;
  margin-bottom: 30px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.form-container h4 {
  color: #1e90ff;
  text-align: center;
  margin-bottom: 20px;
  font-size: 20px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.form-container form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 800px;
  margin: 0 auto;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  color: #f0f0f0;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 14px;
}

.form-group input {
  padding: 12px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 14px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus {
  outline: none;
  border-color: #1e90ff;
  box-shadow: 0 0 0 3px rgba(30, 144, 255, 0.2);
}

.form-group input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.form-container button {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, #1e90ff 0%, #4682b4 100%);
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 10px;
}

.form-container button:hover {
  background: linear-gradient(135deg, #1c7ed6 0%, #3a6fa0 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(30, 144, 255, 0.3);
}

/* Tableaux */
.table-container {
  background: rgba(255, 255, 255, 0.03) !important;
  border-radius: 12px;
  padding: 20px;
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
}

table {
  width: 100%;
  border-collapse: collapse;
  background: transparent !important;
}

table thead {
  background: rgba(30, 144, 255, 0.2) !important;
}

table th {
  padding: 15px 12px;
  text-align: left;
  color: #1e90ff !important;
  font-weight: bold;
  border-bottom: 2px solid rgba(30, 144, 255, 0.3);
  font-size: 14px;
  background: transparent !important;
}

table td {
  padding: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: #f0f0f0 !important;
  font-size: 14px;
  vertical-align: middle;
  background: transparent !important;
}

table tbody tr {
  transition: background-color 0.3s ease;
  background: rgba(255, 255, 255, 0.02) !important;
}

table tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.03) !important;
}

table tbody tr:nth-child(odd) {
  background: rgba(255, 255, 255, 0.05) !important;
}

table tbody tr:hover {
  background: rgba(30, 144, 255, 0.1) !important;
}

table a {
  color: #1e90ff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

table a:hover {
  color: #4682b4;
  text-decoration: underline;
}

.btn-delete {
  background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
}

.btn-delete:hover {
  background: linear-gradient(135deg, #c82333 0%, #bd2130 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(220, 53, 69, 0.4);
}

.btn-export {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #007bff;
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 5px;
  cursor: pointer;
  z-index: 1000;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-export:hover {
  background: #0056b3;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

/* Messages de notification */
.notification {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  padding: 15px 25px;
  border-radius: 8px;
  color: white;
  font-weight: 500;
  z-index: 2000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  animation: slideDown 0.3s ease;
}

.notification.success {
  background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
}

.notification.info {
  background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%);
}

.notification.error {
  background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* États vides des tableaux */
.empty-state {
  text-align: center;
  font-style: italic;
  color: #666;
  padding: 30px;
}

/* Responsive pour legal-illegal */
@media (max-width: 768px) {
  .legal-illegal-page .main-content {
    padding: 1.5rem;
    padding-top: 100px;
  }
  
  .legal-illegal-page .container {
    padding: 15px 0;
  }

  .container h2 {
    font-size: 24px;
    margin-bottom: 30px;
  }

  .section-entreprises,
  .section-illegal {
    margin: 25px 0;
    padding: 20px;
  }

  .section-entreprises h3,
  .section-illegal h3 {
    font-size: 22px;
    margin-bottom: 20px;
  }

  .form-container {
    padding: 20px;
  }

  .form-container form {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .form-group input {
    font-size: 16px; /* Évite le zoom sur iOS */
  }

  .table-container {
    padding: 15px;
  }

  table th,
  table td {
    padding: 10px 8px;
    font-size: 13px;
  }

  table th {
    font-size: 12px;
  }

  .btn-export {
    position: static;
    margin: 20px auto;
    display: block;
    width: 200px;
  }

  .notification {
    left: 15px;
    right: 15px;
    transform: none;
    margin: 0;
  }
}

@media (max-width: 480px) {
  .section-entreprises,
  .section-illegal {
    margin: 20px 0;
    padding: 15px;
  }

  .form-container {
    padding: 15px;
  }

  .form-container h4 {
    font-size: 18px;
  }

  table {
    font-size: 12px;
  }

  table th,
  table td {
    padding: 8px 6px;
  }

  .btn-delete {
    padding: 6px 8px;
    font-size: 16px;
  }
}

.alert-bubble {
  background: linear-gradient(135deg, #ff6b6b 0%, #d63031 100%);
  padding: 15px 20px;
  border-radius: 25px;
  margin: 15px auto;
  max-width: 600px;
  box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  justify-content: center;
  align-items: center;
}

.alert-bubble p {
  text-align: center;
  line-height: 1.4;
  margin: 0;
  color: white;
  font-weight: bold;
  font-size: 14px;
}

/* Correction du positionnement pour éviter les conflits avec le header */
body:has(.rules-section) .main-content {
  padding-top: 140px !important;
}

/* S'assurer que le tableau reste sous le header fixe */
.staff-table {
  position: relative;
  z-index: 1;
  margin: 30px auto;
}

/* Responsive pour la section rules */
@media (max-width: 768px) {
  .main-content {
    padding-top: 120px !important;
  }
  
  .rules-section h3 {
    font-size: 24px;
  }
  
  .info-box {
    padding: 15px;
    margin: 15px 10px;
  }
  
  .alert-bubble {
    margin: 15px 10px;
    padding: 12px 15px;
  }
  
  .alert-bubble p {
    font-size: 13px;
  }
}

/* Styles pour le tableau des entreprises */
.entreprises-section {
  margin: 40px 0;
  padding: 30px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.entreprises-section h3 {
  color: #1e90ff;
  text-align: center;
  margin-bottom: 30px;
  font-size: 28px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.entreprises-table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.entreprises-table thead {
  background: linear-gradient(135deg, #1e90ff 0%, #4682b4 100%);
}

.entreprises-table th {
  padding: 18px 20px;
  text-align: left;
  color: white;
  font-weight: bold;
  font-size: 16px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.entreprises-table td {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: #f0f0f0;
  font-size: 14px;
  transition: background-color 0.3s ease;
}

.entreprises-table tbody tr {
  transition: all 0.3s ease;
}

.entreprises-table tbody tr:hover {
  background: rgba(30, 144, 255, 0.1);
  transform: scale(1.01);
}

.entreprises-table tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.02);
}

.entreprises-table tbody tr:nth-child(odd) {
  background: rgba(255, 255, 255, 0.05);
}

/* Style pour la colonne Discord */
.entreprises-table td:last-child {
  color: #7289da;
  font-weight: 500;
}

/* Animation au survol de la colonne Discord */
.entreprises-table tbody tr:hover td:last-child {
  color: #ffffff;
  text-shadow: 0 0 8px #7289da;
}

/* Responsive pour le tableau */
@media (max-width: 768px) {
  .entreprises-section {
    margin: 20px 10px;
    padding: 20px;
  }

  .entreprises-section h3 {
    font-size: 24px;
    margin-bottom: 20px;
  }

  .entreprises-table {
    font-size: 12px;
  }

  .entreprises-table th,
  .entreprises-table td {
    padding: 12px 8px;
  }

  .entreprises-table th {
    font-size: 14px;
  }

  .entreprises-table td {
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .entreprises-section {
    margin: 15px 5px;
    padding: 15px;
  }

  .entreprises-table {
    font-size: 11px;
  }

  .entreprises-table th,
  .entreprises-table td {
    padding: 10px 6px;
  }

  .entreprises-section h3 {
    font-size: 20px;
  }
}

/* Styles pour les sections d'entreprises */
.entreprise-form-section,
.entreprises-table-section {
  margin: 40px 0;
  padding: 30px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.entreprise-form-section h3,
.entreprises-table-section h3 {
  color: #1e90ff;
  text-align: center;
  margin-bottom: 20px;
  font-size: 24px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.section-description {
  text-align: center;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 30px;
  font-size: 16px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-bottom: 30px;
}

.form-submit {
  text-align: center;
}

/* Styles pour le header du tableau */
.table-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 2px solid rgba(30, 144, 255, 0.3);
}

.table-header h3 {
  margin: 0 !important;
  text-align: left !important;
}

.table-controls {
  display: flex;
  align-items: center;
  gap: 20px;
}

.table-wrapper {
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid rgba(30, 144, 255, 0.3);
}

.section-header h2 {
  font-size: 28px;
  color: #1e90ff;
  margin: 0 0 10px 0;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.section-header p {
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
  font-size: 16px;
}

/* Styles pour le conteneur de formulaire */
.form-container {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.entreprise-form-container h3 {
  color: #1e90ff;
  text-align: center;
  margin-bottom: 25px;
  font-size: 24px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-bottom: 30px;
}

.form-actions {
  text-align: center;
}

.entreprise-form {
  width: 100%;
}

.entreprise-form .form-group {
  display: flex;
  flex-direction: column;
}

.entreprise-form .form-group label {
  color: #f0f0f0;
  margin-bottom: 8px;
  font-weight: 500;
  font-size: 14px;
}

.entreprise-form .form-group input {
  padding: 12px 15px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 14px;
  transition: all 0.3s ease;
}

.entreprise-form .form-group input:focus {
  outline: none;
  border-color: #1e90ff;
  box-shadow: 0 0 0 3px rgba(30, 144, 255, 0.2);
  background: rgba(255, 255, 255, 0.15);
}

.entreprise-form .form-group input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.submit-btn {
  background: linear-gradient(135deg, #1e90ff 0%, #4682b4 100%);
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
}

.submit-btn:hover {
  background: linear-gradient(135deg, #1c7ed6 0%, #3a6fa0 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(30, 144, 255, 0.3);
}

.submit-btn:active {
  transform: translateY(0);
}

.btn-icon {
  font-size: 18px;
  font-weight: bold;
}

/* Info et contrôles du tableau */
.table-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 15px;
  padding: 15px 20px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
}

.table-container {
  margin-top: 25px;
}

.clear-btn {
  background: linear-gradient(135deg, #ff6b6b 0%, #d63031 100%);
  color: white;
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.clear-btn:hover {
  background: linear-gradient(135deg, #e55656 0%, #b92d2d 100%);
  transform: translateY(-1px);
}

.entreprise-count {
  color: #1e90ff;
  font-weight: bold;
  font-size: 14px;
}

/* Colonne Actions dans le tableau */
.entreprises-table th:last-child {
  width: 120px;
  text-align: center;
}

.actions-cell {
  text-align: center !important;
  padding: 12px 8px !important;
}

.delete-btn {
  background: rgba(255, 107, 107, 0.2);
  border: 1px solid rgba(255, 107, 107, 0.4);
  color: #ff6b6b;
  padding: 6px 10px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 12px;
  transition: all 0.3s ease;
  margin-bottom: 5px;
  display: block;
  width: 100%;
}

.delete-btn:hover {
  background: rgba(255, 107, 107, 0.3);
  border-color: rgba(255, 107, 107, 0.6);
  transform: scale(1.05);
}

.delete-icon {
  font-size: 14px;
}

.date-info {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.6);
  display: block;
}

/* État vide du tableau */
.empty-table-state {
  text-align: center;
  padding: 50px 30px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 15px;
  border: 2px dashed rgba(30, 144, 255, 0.3);
  margin: 20px 0;
}

.empty-table-state .empty-icon {
  font-size: 48px;
  margin-bottom: 15px;
  opacity: 0.7;
}

.empty-table-state h4 {
  color: #1e90ff;
  font-size: 20px;
  margin: 15px 0 10px 0;
}

.empty-table-state p {
  color: rgba(255, 255, 255, 0.7);
  margin: 8px 0;
  font-size: 14px;
  line-height: 1.4;
}

.empty-tip {
  color: rgba(255, 193, 7, 0.8) !important;
  font-weight: 500 !important;
  font-style: italic !important;
}

/* Animation pour les nouvelles lignes */
.entreprise-row {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease;
}

.entreprise-row.fade-in {
  opacity: 1;
  transform: translateY(0);
}

/* Messages */
.message {
  padding: 12px 20px;
  border-radius: 8px;
  margin-top: 15px;
  text-align: center;
  font-weight: 500;
  transition: all 0.3s ease;
  border-left: 4px solid;
}

.message.success {
  background: rgba(76, 175, 80, 0.15);
  border-color: #4caf50;
  color: #4caf50;
}

.message.error {
  background: rgba(244, 67, 54, 0.15);
  border-color: #f44336;
  color: #f44336;
}

.message.info {
  background: rgba(33, 150, 243, 0.15);
  border-color: #2196f3;
  color: #2196f3;
}

/* Responsive pour les sections */
@media (max-width: 768px) {
  .main-content {
    padding-top: 120px !important;
  }

  .page-header {
    margin-bottom: 30px;
    padding: 30px 15px;
    margin-top: 10px;
  }

  .page-title {
    font-size: 28px;
  }

  .page-subtitle {
    font-size: 16px;
  }

  .form-section,
  .table-section {
    margin: 30px 0;
    padding: 20px;
  }

  .section-header h2 {
    font-size: 24px;
  }

  .form-container {
    padding: 20px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .table-info {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }

  .actions-cell {
    padding: 8px 4px !important;
  }

  .delete-btn {
    padding: 4px 6px;
    font-size: 11px;
  }

  .empty-state {
    padding: 40px 20px;
  }

  .empty-icon {
    font-size: 48px;
  }

  .empty-state h3 {
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  .main-content {
    padding-top: 100px !important;
  }

  .page-header {
    padding: 20px 10px;
    margin-top: 5px;
  }

  .page-title {
    font-size: 24px;
  }

  .form-section,
  .table-section {
    margin: 20px 0;
    padding: 15px;
  }

  .form-container {
    padding: 15px;
  }

  .entreprise-form .form-group input {
    padding: 12px;
    font-size: 16px; /* Évite le zoom sur iOS */
  }

  .submit-btn {
    padding: 12px 20px;
    font-size: 14px;
    width: 100%;
  }

  .empty-state {
    padding: 30px 15px;
  }

  .empty-icon {
    font-size: 40px;
  }

  .empty-state h3 {
    font-size: 18px;
  }

  .section-header h2 {
    font-size: 20px;
  }
}

/* Styles pour le tableau des règles pour régler une scène */
.staff-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px auto;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
}

.staff-table thead {
  background: linear-gradient(135deg, #1e90ff 0%, #4682b4 100%);
}

.staff-table th {
  padding: 15px 20px;
  color: white;
  font-weight: bold;
  text-align: center;
  font-size: 16px;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.staff-table th:last-child {
  border-right: none;
}

.staff-table td {
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.02);
  color: #f0f0f0;
  text-align: left;
  vertical-align: top;
  min-height: 50px;
  height: 60px;
}

.staff-table td:hover {
  background: rgba(255, 255, 255, 0.08);
}

.staff-table tbody tr:hover {
  background: rgba(30, 144, 255, 0.1);
}

/* Style spécial pour la cellule "Lieu" qui s'étend sur plusieurs lignes */
.staff-table td[rowspan] {
  background: rgba(78, 205, 196, 0.1);
  border-left: 3px solid #4ecdc4;
  text-align: center;
  vertical-align: middle;
  font-weight: bold;
  color: #4ecdc4;
}

/* Responsive pour le tableau */
@media (max-width: 768px) {
  .staff-table {
    font-size: 14px;
    margin: 15px auto;
  }
  
  .staff-table th,
  .staff-table td {
    padding: 12px 15px;
  }
  
  .staff-table th {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .staff-table {
    font-size: 12px;
  }
  
  .staff-table th,
  .staff-table td {
    padding: 8px 10px;
  }
  
  .staff-table td {
    height: 50px;
  }
}

/* ===== FORMULAIRE CANDIDATURE STAFF ===== */

/* Styles spécifiques pour la page candidature */
body.candidature-page {
  min-height: 100vh;
}

body.candidature-page main {
  flex: 1;
  display: block;
  align-items: unset;
  justify-content: unset;
  min-height: unset;
}

body.candidature-page .main-content {
  padding-top: 100px;
  padding-bottom: 50px;
  max-width: 1000px;
  text-align: center;
}

body.candidature-page .requirements-section {
  /* Garde le style original - pas de background ajouté */
  margin-bottom: 40px;
}

body.candidature-page h2 {
  text-align: center;
  margin-bottom: 30px;
}

/* Conteneur du formulaire de candidature - même style que l'absence */
.candidature-form-container {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  padding: 25px;
  margin: 20px auto;
  max-width: 600px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.candidature-form-container h3 {
  color: #1e90ff;
  text-align: center;
  margin-bottom: 20px;
  font-size: 22px;
}

/* Boîte d'information - même style que info-validation */
.info-candidature {
  background: rgba(255, 193, 7, 0.15);
  border: 2px solid rgba(255, 193, 7, 0.4);
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 20px;
  text-align: center;
}

.info-candidature p {
  margin: 0;
  color: #fff;
  font-size: 14px;
  line-height: 1.4;
}

.info-candidature strong {
  color: #ffc107;
}

/* Formulaire candidature - layout en colonne unique pour plus de lisibilité */
.candidature-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.candidature-form .form-group {
  display: flex;
  flex-direction: column;
}

.candidature-form .form-group label {
  color: #f0f0f0;
  margin-bottom: 6px;
  font-weight: 500;
  font-size: 14px;
}

.candidature-form .form-group input,
.candidature-form .form-group textarea,
.candidature-form .form-group select {
  padding: 10px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 14px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Style spécifique pour le select - même que l'absence */
.candidature-form .form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 16 16'%3E%3Cpath d='M8 10.5l-4-4h8l-4 4z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px;
  padding-right: 35px;
}

.candidature-form .form-group select option {
  background: rgba(20, 20, 20, 0.95);
  color: #fff;
  padding: 8px;
}

.candidature-form .form-group input:focus,
.candidature-form .form-group textarea:focus,
.candidature-form .form-group select:focus {
  outline: none;
  border-color: #1e90ff;
  box-shadow: 0 0 0 3px rgba(30, 144, 255, 0.2);
}

.candidature-form .form-group input::placeholder,
.candidature-form .form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.candidature-form .form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.candidature-form .form-group small.form-help {
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  margin-top: 5px;
  line-height: 1.4;
}

/* Bouton submit - même style que l'absence */
.candidature-form .submit-btn {
  background: linear-gradient(135deg, #1e90ff 0%, #4682b4 100%);
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 15px;
}

.candidature-form .submit-btn:hover {
  background: linear-gradient(135deg, #4682b4 0%, #1e90ff 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(30, 144, 255, 0.3);
}

.candidature-form .submit-btn:active {
  transform: translateY(0);
}

/* Messages pour candidature - même style que l'absence */
.candidature-form-container .message {
  margin-top: 15px;
  padding: 12px;
  border-radius: 8px;
  text-align: center;
  font-weight: 500;
  animation: slideIn 0.3s ease-out;
}

.candidature-form-container .message.success {
  background: rgba(40, 167, 69, 0.2);
  border: 1px solid rgba(40, 167, 69, 0.5);
  color: #28a745;
}

.candidature-form-container .message.error {
  background: rgba(220, 53, 69, 0.2);
  border: 1px solid rgba(220, 53, 69, 0.5);
  color: #dc3545;
}

.candidature-form-container .message.info {
  background: rgba(30, 144, 255, 0.2);
  border: 1px solid rgba(30, 144, 255, 0.5);
  color: #1e90ff;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive pour candidature */
@media (max-width: 768px) {
  .candidature-form-container {
    margin: 15px 10px;
    padding: 20px;
    max-width: none;
  }
  
  .candidature-form-container h3 {
    font-size: 20px;
  }
  
  .candidature-form .form-group input,
  .candidature-form .form-group textarea,
  .candidature-form .form-group select {
    font-size: 16px; /* Éviter le zoom sur iOS */
  }
}

@media (max-width: 480px) {
  .candidature-form-container {
    margin: 10px 5px;
    padding: 15px;
  }
  
  .candidature-form .submit-btn {
    padding: 12px 20px;
    font-size: 14px;
  }
}

/* Styles pour la page legal-illegal - hérite des styles par défaut */
body.legal-illegal-page {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: 'Segoe UI', sans-serif;
  color: #f0f0f0;
  background: none;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Même background que les autres pages */
body.legal-illegal-page::before {
  content: "";
  background: url('../img/background.png') no-repeat center center/cover;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  filter: blur(8px) brightness(0.6);
  z-index: -1;
}

/* Main section pour legal-illegal comme les autres pages */
body.legal-illegal-page main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
}

.auth-section {
  background: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 15px;
  text-align: center;
  max-width: 500px;
  margin: 20px auto;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-section h2 {
  color: #1e90ff;
  margin-bottom: 20px;
}

.auth-section p {
  color: #f0f0f0;
}

.discord-btn {
  background: #7289da;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  transition: all 0.3s ease;
  text-decoration: none;
}

.discord-btn:hover {
  background: #5865f2;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(114, 137, 218, 0.4);
}

.user-info {
  background: rgba(255, 255, 255, 0.05);
  padding: 15px;
  border-radius: 10px;
  margin-bottom: 20px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.connected-user {
  color: #1e90ff;
  font-weight: bold;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  margin: 0;
}

.logout-btn {
  background: #dc3545;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.3s ease;
}

.logout-btn:hover {
  background: #c82333;
}

.section-export {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 25px;
  border-radius: 12px;
  margin-top: 30px;
  backdrop-filter: blur(10px);
}

.section-export h3 {
  color: #1e90ff;
  margin-bottom: 20px;
  font-size: 1.4em;
  text-align: center;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.tools-container {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  justify-content: center;
}

.export-btn, .refresh-btn {
  background: linear-gradient(135deg, #1e90ff 0%, #4682b4 100%);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 15px;
  font-weight: bold;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.export-btn:hover, .refresh-btn:hover {
  background: linear-gradient(135deg, #1c7ed6 0%, #3a6fa0 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(30, 144, 255, 0.3);
}

.refresh-btn {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.refresh-btn:hover {
  background: linear-gradient(135deg, #218838 0%, #1ea085 100%);
  box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.loading {
  color: #7289da;
  font-style: italic;
  margin: 10px 0;
}

.error-message {
  background: rgba(220, 53, 69, 0.8);
  color: white;
  padding: 10px;
  border-radius: 5px;
  margin: 10px 0;
  border: 1px solid #dc3545;
}

/* Amélioration des tableaux pour legal-illegal */
.legal-illegal-page .table-container {
  background: rgba(255, 255, 255, 0.03) !important;
  border-radius: 10px;
  overflow: hidden;
  margin-top: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
}

.legal-illegal-page .table-container table {
  width: 100%;
  border-collapse: collapse;
  color: #f0f0f0;
  background: transparent !important;
}

.legal-illegal-page .table-container th {
  background: rgba(30, 144, 255, 0.2) !important;
  padding: 12px;
  text-align: left;
  font-weight: bold;
  border-bottom: 2px solid #1e90ff;
  color: #1e90ff !important;
}

.legal-illegal-page .table-container td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: #f0f0f0 !important;
  background: transparent !important;
}

.legal-illegal-page .table-container tbody tr {
  background: rgba(255, 255, 255, 0.02) !important;
}

.legal-illegal-page .table-container tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.03) !important;
}

.legal-illegal-page .table-container tbody tr:nth-child(odd) {
  background: rgba(255, 255, 255, 0.05) !important;
}

.legal-illegal-page .table-container tbody tr:hover {
  background: rgba(30, 144, 255, 0.1) !important;
}



/* Responsive pour legal-illegal */
@media (max-width: 768px) {
  .connected-user {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
  
  .tools-container {
    flex-direction: column;
  }
  
  .legal-illegal-page .table-container {
    overflow-x: auto;
  }
}

/* Styles pour le pop-up de confirmation personnalisé */
.custom-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.custom-popup-overlay.show {
  opacity: 1;
}

.custom-popup {
  background: linear-gradient(135deg, rgba(20, 20, 30, 0.95), rgba(30, 30, 45, 0.95));
  border: 2px solid rgba(30, 144, 255, 0.3);
  border-radius: 15px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 
              0 0 20px rgba(30, 144, 255, 0.2);
  max-width: 500px;
  width: 90%;
  color: #f0f0f0;
  animation: popupSlideIn 0.3s ease-out;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.custom-popup-overlay.show .custom-popup {
  transform: scale(1);
}

@keyframes popupSlideIn {
  0% {
    transform: translateY(-50px) scale(0.9);
    opacity: 0;
  }
  100% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.popup-header {
  background: linear-gradient(135deg, #1e90ff, #4169e1);
  padding: 20px;
  border-radius: 13px 13px 0 0;
  text-align: center;
}

.popup-header h3 {
  margin: 0;
  color: white;
  font-size: 1.4em;
  font-weight: 600;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.popup-body {
  padding: 25px;
  text-align: center;
}

.popup-body p {
  margin: 0 0 20px 0;
  font-size: 1.1em;
  line-height: 1.5;
  color: #e0e0e0;
}

.popup-warning {
  background: rgba(255, 107, 107, 0.1);
  border: 1px solid rgba(255, 107, 107, 0.3);
  border-radius: 8px;
  padding: 12px;
  margin-top: 15px;
  color: #ff6b6b;
  font-weight: 500;
  font-size: 0.95em;
}

.popup-actions {
  padding: 0 25px 25px;
  display: flex;
  gap: 15px;
  justify-content: center;
}

.popup-btn {
  padding: 12px 25px;
  border: none;
  border-radius: 8px;
  font-size: 1em;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.popup-btn-cancel {
  background: linear-gradient(135deg, #6c757d, #5a6268);
  color: white;
  border: 2px solid transparent;
}

.popup-btn-cancel:hover {
  background: linear-gradient(135deg, #5a6268, #495057);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(108, 117, 125, 0.3);
}

.popup-btn-confirm {
  background: linear-gradient(135deg, #dc3545, #c82333);
  color: white;
  border: 2px solid transparent;
}

.popup-btn-confirm:hover {
  background: linear-gradient(135deg, #c82333, #bd2130);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(220, 53, 69, 0.4);
}

.popup-btn:active {
  transform: translateY(0);
}

/* Responsive pour le pop-up */
@media (max-width: 768px) {
  .custom-popup {
    width: 95%;
    margin: 20px;
  }
  
  .popup-actions {
    flex-direction: column;
  }
  
  .popup-btn {
    width: 100%;
  }
}