/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background-color: #c5d9ee; /* Bleu principal */
    padding: 15px 0;
    color: #fff;
}

.logo img {
    height: 50px;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    position: relative;
}

.menu {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.menu li {
    position: relative;
}

.menu a {
    color: #020e83;
    text-decoration: none;
    padding: 8px 15px;
    display: block;
}

.menu .submenu {
    display: none;
    position: absolute;
    background-color: #c7d9ee;
    top: 100%;
    left: 0;
    min-width: 180px;
    z-index: 100;
}

.menu li:hover .submenu {
    display: block;
}

.btn-login {
    background-color: #f33434;
    color: #fff;
    padding: 8px 12px;
    border-radius: 4px;
}
.btn-ins {
    background-color: #13ff13;
    color: #007BFF;
    padding: 8px 12px;
    border-radius: 4px;
}

/* Mobile menu button */
.menu-icon {
    display: none;
    font-size: 30px;
    cursor: pointer;
    color: #020e83;
    user-select: none;
}

#menu-toggle {
    display: none;
}

/* Responsive */
@media (max-width: 768px) {
    .menu {
        flex-direction: column;
        width: 100%;
        background-color: #007BFF;
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        z-index: 99;
    }

    .menu li {
        text-align: center;
    }

    .navbar {
        flex-direction: row;
        align-items: center;
    }

    #menu-toggle:checked ~ .menu {
        display: flex;
    }

    .menu-icon {
        display: block;
    }
}


/* Footer */
.footer {
    background: #0081ef;
    color: 05ed01;
    padding: 5rem 0;
    margin-top: 50px;
    text-align: center;
    justify-content: center;
}
.footer a {
    color: #f5f5f5; 
    text-decoration: none; }
.footer a:hover {
    text-decoration: underline; }

/* Section inscription */
.section-inscription {
    background: linear-gradient(to right, #007BFF, #00c6ff);
    padding: 60px 20px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-box {
    background: #fff;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 0 15px rgba(0,0,0,0.2);
    width: 100%;
    max-width: 500px;
}

.form-box h2 {
    text-align: center;
    margin-bottom: 25px;
    color: #007BFF;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
}

.btn-submit {
    width: 100%;
    background-color: #007BFF;
    border: none;
    color: white;
    padding: 12px;
    border-radius: 6px;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-submit:hover {
    background-color: #0056b3;
}

.link-connexion {
    text-align: center;
    margin-top: 15px;
    font-size: 15px;
}

.link-connexion a {
    color: #007BFF;
    text-decoration: none;
}

.link-connexion a:hover {
    text-decoration: underline;
}
/* Section Demandes */
.section-demandes {
    padding: 60px 20px;
    background: #f2f7ff;
  }
  
  .container-demandes {
    max-width: 1000px;
    margin: 0 auto;
    background: #fff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 74, 173, 0.2);
  }
  
  h2, h3 {
    color: #004aad;
    margin-bottom: 20px;
  }
  
  .instructions {
    margin-bottom: 40px;
    font-size: 1.1em;
    color: #555;
  }
  
  .form-demande {
    margin-bottom: 50px;
  }
  
  .form-group {
    margin-bottom: 20px;
  }
  
  .form-group label {
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
    color: #004aad;
  }
  
  .form-group input,
  .form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #c8d6e5;
    border-radius: 8px;
    font-size: 1em;
  }
  
  .btn-demander {
    width: 100%;
    background-color: #004aad;
    color: white;
    border: none;
    padding: 15px;
    border-radius: 8px;
    font-size: 1.2em;
    cursor: pointer;
    transition: background-color 0.3s;
  }
  
  .btn-demander:hover {
    background-color: #0066ff;
  }
  
  .table-demandes {
    width: 100%;
    border-collapse: collapse;
  }
  
  .table-demandes th, .table-demandes td {
    padding: 12px;
    border: 1px solid #ddd;
    text-align: center;
  }
  
  .statut-en_attente .status {
    color: orange;
    font-weight: bold;
  }
  
  .statut-accepte .status {
    color: green;
    font-weight: bold;
  }
  
  .statut-refuse .status {
    color: red;
    font-weight: bold;
  }
/* Container */
.profile-container {
    max-width: 800px;
    margin: 40px auto;
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,74,173,0.2);
    font-family: 'Segoe UI', sans-serif;
  }
  /* Onglets */
  .tabs {
    display: flex;
    border-bottom: 2px solid #ddd;
    margin-bottom: 30px;
  }
  .tab {
    flex: 1;
    text-align: center;
    padding: 12px;
    cursor: pointer;
    font-weight: 600;
    color: #555;
    transition: background 0.3s;
  }
  .tab.active {
    background: #e6f0ff;
    color: #004aad;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
  }
  /* Sections */
  .tab-content {
    display: none;
  }
  .tab-content.active {
    display: block;
  }
  /* Form groups */
  .form-group {
    margin-bottom: 20px;
  }
  .form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: #004aad;
  }
  .form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #c8d6e5;
    border-radius: 8px;
    font-size: 1em;
  }
  .btn-action {
    background: #004aad;
    color: #fff;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    cursor: pointer;
    transition: background 0.3s;
  }
  .btn-action:hover {
    background: #0066ff;
  }
  /* Password visibility */
  .password-wrapper { position: relative; }
  .toggle-password {
    position: absolute;
    right: 12px;
    top: 38px;
    cursor: pointer;
    font-size: 18px;
    color: #888;
  }
  .message {
    padding: 10px;
    margin-bottom: 20px;
    border-radius: 6px;
  }
  .message.success { background: #e0ffe0; color: #1a7f1a; }
  .message.error   { background: #ffe0e0; color: #a10b0b; } 
     /* Bouton flottant */
    #chatBtn {
      position: fixed;
      bottom: 20px;
      right: 20px;
      background-color: #0d6efd;
      color: white;
      border: none;
      border-radius: 50%;
      width: 60px;
      height: 60px;
      font-size: 30px;
      cursor: pointer;
      box-shadow: 0 4px 12px rgba(0,0,0,0.2);
      z-index: 1000;
    }

    /* Fenï¿½tre de chat */
    #chatWindow {
      position: fixed;
      bottom: 90px;
      right: 20px;
      width: 320px;
      max-height: 450px;
      background: #fff;
      border-radius: 10px;
      display: none;
      flex-direction: column;
      box-shadow: 0 4px 15px rgba(0,0,0,0.3);
      overflow: hidden;
      z-index: 1000;
      font-family: Arial, sans-serif;
    }

    #chatHeader {
      background: #0d6efd;
      color: white;
      padding: 10px;
      font-weight: bold;
      text-align: center;
    }

    #chatMessages {
      flex: 1;
      padding: 10px;
      overflow-y: auto;
      background: #f9f9f9;
    }

    .message {
      display: flex;
      align-items: flex-start;
      margin-bottom: 10px;
    }

    .avatar {
      width: 30px;
      height: 30px;
      border-radius: 50%;
      margin-right: 8px;
    }

    .msg-content {
      background: #e1f0ff;
      padding: 8px 12px;
      border-radius: 12px;
      max-width: 220px;
      font-size: 14px;
    }

    .msg-bot .msg-content {
      background: #eafbe6;
    }

    #chatForm {
      display: flex;
      border-top: 1px solid #ddd;
    }

    #chatInput {
      flex: 1;
      border: none;
      padding: 10px;
    }

    #sendBtn {
      background: #0d6efd;
      color: white;
      border: none;
      padding: 10px;
      cursor: pointer;
    }
  
