/* Style global - à compléter 
:root{
  --brand:#00796b;
  --brand-200:#b2dfdb;
}
body{font-family:system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Arial,sans-serif;margin:0;background:#f6f7f9;color:#0f172a}
.nav_bar{background:var(--brand);color:#fff;display:flex;gap:20px;padding:14px 20px}
.nav_bar a{color:#fff;text-decoration:none;font-weight:600}
.container{max-width:1100px;margin:24px auto;padding:0 16px}
.card{background:#fff;border-radius:14px;box-shadow:0 6px 18px rgba(2,8,20,.06);padding:16px}
.btn{display:inline-block;padding:10px 14px;border-radius:10px;border:1px solid #e2e8f0}
.btn-primary{background:var(--brand);color:#fff;border-color:transparent}
.table{width:100%;border-collapse:separate;border-spacing:0 8px}
.table th,.table td{padding:10px 12px;background:#fff}
.table th{background:var(--brand-200)}
.badge{padding:4px 8px;border-radius:999px;background:#e2e8f0;font-size:12px}
.form-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}
label{font-size:14px;color:#334155;margin:6px 0 2px;display:block}
input,select,textarea{width:100%;padding:10px;border:1px solid #cbd5e1;border-radius:10px;background:#fff}
.notice{background:#ecfeff;border:1px solid #67e8f9;padding:12px;border-radius:10px}
*/

:root {
  --brand: #348cd3;
  --brand-200: #b2dfdb;
  --brand-dark: #004d40;
  --text-color: #0f172a;
  --bg-light: #f6f7f9;
  --white: #fff;
  --btnadmin: #aac5f2;
}

/* Reset + police */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Ubuntu", sans-serif;
}

html,
body {
  height: 100%;
  width: 100%;
  background: var(--bg-light);
  color: var(--text-color);
}

/* Fond principal avec image */
body {
  position: relative;
  overflow: hidden;
}

body::before {
  content: "";
  position: absolute;
  inset: 0;
  /*background: url('/DUERP/assets/img/pexels-jplenio-1103970.jpg') no-repeat center center fixed;
  background-size: cover;*/
  z-index: -1;
}

/* Conteneur principal */
#module-container {
  padding-bottom: 80px;
}

/* -------------------------- */
/* Dock flottant               */
/* -------------------------- */
#dock {
  background: /*rgba(255, 255, 255, 0.7)*/ var(--brand);
  backdrop-filter: blur(10px);
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  padding: 0.7rem 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.3);

  position: fixed;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2000;
  display: flex;
  gap: 12px;
}

.dock-btn {
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.5);
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition:
    background 0.25s,
    transform 0.2s;
}

.dock-btn:hover {
  background: var(--brand-200);
  transform: translateY(-2px);
}

/* -------------------------- */
/* Formulaires                 */
/* -------------------------- */
#main-log {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

#main-login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  background: #f4f7fb;
}

.login-hero {
  width: min(1100px, 100%);
  display: grid;
  grid-template-columns: 1.2fr 420px;
  align-items: center;
  gap: 64px;
}

.login-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.login-logo {
  width: min(520px, 100%);
  height: auto;
  display: block;
  margin-bottom: 24px;
}

.login-baseline {
  font-size: 1.35rem;
  font-weight: 700;
  color: #2d3748;
  margin: 0 0 12px;
}

.login-text {
  max-width: 520px;
  font-size: 1rem;
  line-height: 1.6;
  color: #64748b;
  margin: 0;
}

.container-inscription {
  width: 400px;
  padding: 2em;
  background: var(--white);
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

.connexion-form input,
.connexion-form select,
.inscription-form input,
.inscription-form select {
  width: 100%;
  margin-bottom: 15px;
  padding: 10px;
  font-size: 1rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  transition: border-color 0.2s;
}

.connexion-form input:focus,
.inscription-form input:focus {
  border-color: var(--brand);
  outline: none;
}

.btn-inscription {
  width: 100%;
  background-color: var(--brand);
  color: white;
  padding: 10px;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.25s;
}

.btn-inscription:hover {
  background-color: var(--brand-200);
}

.lien-inscription {
  display: block;
  margin-top: 10px;
  text-align: center;
  color: var(--brand);
  text-decoration: none;
}

.lien-inscription:hover {
  text-decoration: underline;
}

.container-inscription h1 {
  text-align: center;
  margin-bottom: 20px;
  color: var(--brand);
}

/* Loader */
.loader.hidden {
  display: none;
}
.loader {
  text-align: center;
  margin-top: 10px;
  font-size: 1.2em;
}

/* -------------------------- */
/* Saisie mot de passe         */
/* -------------------------- */
.password-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}
.password-wrapper input {
  flex: 1;
}
.password-wrapper button {
  margin-left: 0.5em;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.2em;
}

/* -------------------------- */
/* Notifications pop-up        */
/* -------------------------- */
.notif-popup {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: var(--brand);
  color: white;
  padding: 10px 15px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.3s,
    transform 0.3s;
  z-index: 9999;
  pointer-events: none;
}
.notif-popup.visible {
  opacity: 1;
  transform: translateY(0);
}

/* -------------------------- */
/* Modal logout                */
/* -------------------------- */
.modal-logout {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-confirm {
  background: var(--white);
  padding: 2rem;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.modal-confirm p {
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
}

.btn-choice {
  padding: 0.5rem 1rem;
  margin: 0 0.5rem;
  border: none;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
}

.btn-choice.confirm {
  background-color: var(--brand);
  color: white;
}

.btn-choice.confirm:hover {
  background-color: var(--brand-dark);
}

.btn-choice.annuler {
  background-color: #ccc;
  color: black;
}

.btn-choice.annuler:hover {
  background-color: #999;
}

/* ==============================
   AUTH - RESET / FORGOT PASSWORD
   ============================== */

.auth-page {
  min-height: 100vh;
  margin: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #eef4f8, #dfeaf0);
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

.auth-card {
  width: min(420px, calc(100% - 2rem));
  background: #fff;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

.auth-card h1 {
  margin: 0 0 1rem;
  font-size: 1.6rem;
  color: #1f2937;
}

.auth-help {
  margin: 0 0 1.5rem;
  color: #64748b;
  line-height: 1.5;
}

.auth-card form {
  display: grid;
  gap: 0.85rem;
}

.auth-card label {
  font-weight: 700;
  color: #334155;
}

.auth-card input {
  min-height: 42px;
  padding: 0.6rem 0.75rem;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font: inherit;
}

.auth-card input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.auth-card button {
  margin-top: 0.5rem;
  border: none;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  background: #2563eb;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.auth-card button:hover {
  background: #1d4ed8;
}

.auth-card button:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.auth-card a {
  display: inline-block;
  margin-top: 1rem;
  color: #2563eb;
  font-weight: 700;
  text-decoration: none;
}

.auth-card a:hover {
  text-decoration: underline;
}

.auth-message {
  min-height: 1.2rem;
  margin: 1rem 0 0;
  font-weight: 700;
}

.auth-message.success {
  color: #15803d;
}

.auth-message.error {
  color: #b91c1c;
}
