/* ------------------------------
   STYLE GLOBAL
--------------------------------*/
body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, sans-serif;
  background-color: #eef2f7;
  color: #333;
}

/* Wrapper pour gérer le footer + filigrane */
.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
}

.page-wrapper::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("qcm.jpg");
  background-size: cover;
  background-position: center;
  opacity: 0.10;
  background-color: rgba(255,255,255,0.35);
  background-blend-mode: lighten;
  z-index: -1;
}

@media (min-width: 769px) {
  .page-wrapper::before {
    opacity: 0.12;
  }
}

/* ------------------------------
   MAIN GLOBAL
--------------------------------*/
main {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0;
}

/* ------------------------------
   PAGE DE CONNEXION (nouvelle version)
--------------------------------*/
.login-container {
  max-width: 420px;
  margin: 60px auto;
  background: white;
  padding: 30px;
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.login-container h2 {
  text-align: center;
  color: #003366;
  font-size: 24px;
  margin-bottom: 20px;
}

.login-container label {
  font-weight: 600;
  color: #003366;
}

.login-container input {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 16px;
  margin-bottom: 18px;
}

.login-container button {
  width: 100%;
  padding: 14px;
  border-radius: 8px;
  border: none;
  background: #003366;
  color: white;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.25s ease;
}

.login-container button:hover {
  background: #0055a5;
}

.login-container .forgot {
  display: block;
  margin-top: 12px;
  text-align: left;
  color: #003366;
  font-size: 14px;
  text-decoration: none;
}

.login-container .forgot:hover {
  text-decoration: underline;
}


/* ------------------------------
   HEADER
--------------------------------*/
header {
  background: #003366;
  color: white;
  padding: 45px 20px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

header h1 {
  margin: 0;
  font-size: 34px;
  font-weight: 600;
}

header p {
  margin-top: 12px;
  font-size: 18px;
  opacity: 0.9;
}

/* ------------------------------
   MENU HORIZONTAL
--------------------------------*/
.menu-horizontal {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  background: #003366;
  height: 55px;
  padding: 0 20px;
}

.menu-item {
  position: relative;
  white-space: nowrap;
  height: 55px;
  display: flex;
  align-items: center;
}

.menu-item > span {
  color: white;
  font-size: 18px;
  cursor: pointer;
  padding: 0 4px;
}

.menu-item > span:hover {
  text-decoration: underline;
}

/* ------------------------------
   SOUS-MENU
--------------------------------*/
.submenu {
  display: none;
  position: absolute;
  top: 55px;
  left: 0;
  background: white;
  padding: 10px 0;
  min-width: 220px;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 100;
}

.menu-item.open .submenu {
  display: block;
}

.submenu a,
.submenu span {
  display: block;
  padding: 10px 15px;
  font-size: 15px;
  color: #003366;
  text-decoration: none;
}

.submenu a:hover {
  background: #e8eef7;
}

/* ------------------------------
   FOOTER
--------------------------------*/
footer {
  text-align: center;
  padding: 15px;
  background: #003366;
  color: white;
  margin-top: auto;
}

/* ------------------------------
   CROIX DE FERMETURE
--------------------------------*/
.close-wrapper {
  max-width: 1100px;
  margin: 20px auto 0 auto;
  display: flex;
  justify-content: flex-end;
}

.close-btn {
  font-size: 28px;
  color: #003366;
  text-decoration: none;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.2s ease;
}

.close-btn:hover {
  color: #0055a5;
}

/* ------------------------------
   CARTE LARGE TRANSPARENTE
--------------------------------*/
.card-large {
  max-width: 1100px;
  margin: 20px auto;
  background: transparent;
  padding: 25px;
  border-radius: 12px;
  box-sizing: border-box;
  border: 1px solid rgba(0,0,0,0.15);
}

.card-large h2 {
  font-size: 26px;
  margin-bottom: 20px;
  color: #003366;
}

.card-large form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.card-large label {
  font-size: 16px;
  font-weight: 600;
  color: #003366;
}

.card-large input,
.card-large select {
  padding: 10px;
  font-size: 16px;
  border-radius: 6px;
  border: 1px solid #ccc;
  background: white;
  width: 100%;
  box-sizing: border-box;
}

.card-large button {
  padding: 12px 24px;
  font-size: 16px;
  background: #003366;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.card-large button:hover {
  background: #0055a5;
}

/* ------------------------------
   RESPONSIVE MOBILE
--------------------------------*/
@media (max-width: 768px) {

  main {
    max-width: 95%;
  }

  .close-wrapper {
    max-width: 95%;
  }

  .card-large {
    padding: 20px;
  }

  .close-btn {
    font-size: 24px;
  }

  .menu-horizontal {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 10px;
    height: auto;
  }

  .menu-item {
    height: auto;
    display: block;
  }

  .menu-item > span {
    background: #003366;
    padding: 12px;
    border-radius: 6px;
    display: block;
    width: 100%;
  }

  .submenu {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    box-shadow: none;
    margin-top: 0;
    padding: 10px 0;
  }

  .submenu a,
  .submenu span {
    padding: 10px 12px;
    font-size: 15px;
    display: block;
    width: 100%;
  }
}
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.card-header h2 {
  margin: 0;
  font-size: 26px;
  color: #003366;
}

.close-btn {
  font-size: 28px;
  color: #003366;
  text-decoration: none;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.2s ease;
}

.close-btn:hover {
  color: #0055a5;
}
/* ------------------------------
   PAGE DE CONNEXION (fix)
--------------------------------*/
main {
  max-width: 450px;
  margin: 40px auto;
  background: white;
  padding: 30px;
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

main h2 {
  color: #003366;
  font-size: 24px;
  margin-bottom: 20px;
  text-align: center;
}

main label {
  font-weight: 600;
  color: #003366;
  display: block;
  margin-bottom: 10px;
}

main input {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 16px;
  margin-bottom: 18px;
}

main button {
  width: 100%;
  padding: 14px;
  border-radius: 8px;
  border: none;
  background: #003366;
  color: white;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.25s ease;
}

main button:hover {
  background: #0055a5;
}

main a {
  color: #003366;
  font-size: 14px;
  text-decoration: none;
}

main a:hover {
  text-decoration: underline;
}
/* Correction œil mot de passe – version robuste */
.password-container {
  position: relative;
  width: 100%;
}

.password-container input {
  width: 100%;
  padding-right: 42px !important; /* espace réservé pour l’œil */
  box-sizing: border-box;
}

.toggle-eye {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 20px;
  color: #003366;
  line-height: 1;
  user-select: none;
}

