/* --- Reset général --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  html, body {
    height: 100%;
    overflow: hidden; /* Pas de scroll */
    font-family: Arial, sans-serif;
  }
  
  /* Le body utilise bg.jpg comme fond (placez bg.jpg dans ../images/) */
  body {
    background: url('../bg.jpg') no-repeat center center/cover;
    position: relative;
  }
  
  /* Overlay sombre */
  .overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 0;
  }
  
  /* Structure globale en colonnes */
  body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
  
  /* --- Barre de navigation --- */
  .navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(28, 28, 28, 0.8);
    padding: 10px 20px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 50px;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  }
  
  .nav-logo {
    color: #fff;
    font-size: 1.5rem;
    font-weight: bold;
  }
  
  .menu-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.8rem;
    cursor: pointer;
    display: none; /* Visible sur petits écrans */
  }
  
  .nav-links {
    list-style: none;
    display: flex;
  }
  
  .nav-links li {
    margin: 0 15px;
  }
  
  .nav-links a {
    text-decoration: none;
    color: #fff;
    font-size: 1rem;
    transition: color 0.3s;
  }
  
  .nav-links a:hover {
    color: #f39c12;
  }
  
  /* --- Section principale de connexion --- */
  .login-main {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 50px; /* Pour l'espace de la navbar */
    position: relative;
    z-index: 5;
  }
  
  .login-container {
    background: rgba(28, 28, 28, 0.85);
    padding: 30px;
    border-radius: 8px;
    max-width: 400px;
    width: 100%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    text-align: center;
  }
  
  .login-container h1 {
    font-family: 'Sawarabi Gothic', sans-serif;
    color: #fff;
    margin-bottom: 20px;
    font-size: 2.5rem;
  }
  
  .instruction {
    color: #fff;
    margin-bottom: 20px;
    font-size: 1.1rem;
  }
  
  /* --- Sélection de rôle sous forme de cartes --- */
  .role-selection {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
  }
  
  .role-card {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid transparent;
    border-radius: 8px;
    padding: 20px;
    width: 30%;
    text-align: center;
    cursor: pointer;
    transition: border 0.3s, transform 0.3s;
    color: #fff;
  }
  
  .role-card:hover {
    transform: translateY(-5px);
  }
  
  .role-card.selected {
    border: 2px solid #f39c12;
  }
  
  .role-card h2 {
    font-size: 1.3rem;
  }
  
  /* --- Champ clé de sécurité (affiché uniquement pour Staff) --- */
  .security-key-group {
    text-align: left;
    color: #fff;
    margin-bottom: 20px;
  }
  
  .security-key-group label {
    display: block;
    margin-bottom: 5px;
  }
  
  .security-key-group input {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 4px;
    outline: none;
  }
  
  /* --- Bouton Entrer --- */
  .login-btn {
    width: 100%;
    padding: 12px;
    background: #f39c12;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    color: #fff;
    cursor: pointer;
    transition: background 0.3s;
  }
  
  .login-btn:hover {
    background: #d78b0e;
  }
  
  /* --- Footer --- */
  .footer {
    background: rgba(28, 28, 28, 0.8);
    color: #fff;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 5px 20px;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .footer p {
    margin-bottom: 5px;
    text-align: center;
    font-size: 0.9rem;
  }
  
  .social-icons {
    display: flex;
    gap: 15px;
  }
  
  .social-icons a img {
    width: 24px;
    height: 24px;
    transition: transform 0.3s;
  }
  
  .social-icons a:hover img {
    transform: scale(1.1);
  }
  
  /* Filtres pour recolorer les icônes */
  .social-icons a.fb-icon img {
    filter: brightness(0) saturate(100%) invert(39%) sepia(97%) saturate(1797%) hue-rotate(200deg) brightness(92%) contrast(101%);
  }
  
  .social-icons a.mail-icon img {
    filter: brightness(0) saturate(100%) invert(19%) sepia(98%) saturate(7486%) hue-rotate(354deg) brightness(96%) contrast(107%);
  }
  
  .social-icons a.wp-icon img {
    filter: brightness(0) saturate(100%) invert(66%) sepia(48%) saturate(442%) hue-rotate(78deg) brightness(91%) contrast(88%);
  }
  
  /* --- Responsive --- */
  @media (max-width: 768px) {
    .menu-btn {
      display: block;
    }
    
    .nav-links {
      position: fixed;
      top: 50px;
      left: 0;
      width: 100%;
      background: rgba(28, 28, 28, 0.8);
      flex-direction: column;
      align-items: center;
      display: none;
    }
    
    .nav-links li {
      margin: 10px 0;
    }
    
    .nav-links.active {
      display: flex;
      animation: slideDown 0.5s ease;
    }
    
    @keyframes slideDown {
      from { opacity: 0; transform: translateY(-10px); }
      to { opacity: 1; transform: translateY(0); }
    }
    
    .login-container {
      width: 90%;
      padding: 20px;
    }
  }
  