/* --- BODY / BASE --- */
body {
  margin: 0;
  font-family: "Parkinsans", Arial, sans-serif;
  background-color: #f9f9f9;
  color: #222;
}

/* --- MAIN CONTENT FADE --- */
#main-content.fade-out {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

#main-content {
  opacity: 1;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* --- HEADER --- */
.site-header {
  background-color: #1c1c1c;
  color: white;
  padding: 10px 20px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1100px;
  margin: auto;
}

.logo img {
  max-width: 80%;
  height: auto;
  display: block;
}

/* Navigation principale */
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
  flex-wrap: wrap; /* responsive */
}

.main-nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  white-space: nowrap; /* une seule ligne */
}

.main-nav ul li a:hover {
  color: #ffda4d;
}

/* --- MENU MOBILE --- */
@media (max-width: 700px) {
  .header-container {
    flex-direction: column;
    align-items: center;
  }
  .main-nav ul {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
  .logo img {
    margin-bottom: 10px;
  }
}

/* --- MESSAGES D'ERREUR --- */
.error {
  color: red;
  background-color: #fdd;
  padding: 8px 12px;
  border-radius: 4px;
  margin-bottom: 10px;
}

/* --- FOOTER --- */
.site-footer {
  background-color: #1c1c1c;
  color: white;
  padding: 20px;
  text-align: center;
}

/* --- TABLES DÉPÔTS --- */
.table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

.table th,
.table td {
  border: 1px solid #ccc;
  padding: 8px;
  text-align: left;
}

.status-en-cours {
  color: orange;
  font-weight: bold;
}

.status-termine {
  color: green;
  font-weight: bold;
}

.status-annule {
  color: red;
  font-weight: bold;
}

/* --- LOGO PAGE D'ACCUEIL --- */
.logo-img {
  max-width: 80%;
  display: block;
  margin: 40px auto;
}

/* Page login */
.login-page {
  position: relative;
  width: 100%;
  min-height: 80vh;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  background-color: #f9f9f9;
}

.login-background {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 300px; /* largeur du logo */
  opacity: 0.1;
  z-index: 1;
}

.login-background img {
  width: 100%;
  height: auto;
}

.login-form-container {
  position: relative;
  z-index: 2;
  background-color: rgba(255,255,255,0.95);
  padding: 30px 40px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  text-align: center;
  width: 100%;
  max-width: 400px;
}

.login-form-container h2 {
  margin-bottom: 20px;
  color: #222;
}

.login-form label {
  display: block;
  text-align: left;
  margin-bottom: 15px;
  font-weight: 500;
}

.login-form input {
  width: 100%;
  padding: 10px 12px;
  margin-top: 5px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
}

.login-form button {
  width: 100%;
  padding: 12px;
  background-color: #1c1c1c;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  margin-top: 10px;
  transition: background-color 0.3s ease;
}

.login-form button:hover {
  background-color: #ffda4d;
  color: #1c1c1c;
}

.login-errors {
  margin-bottom: 15px;
}

.login-errors .error {
  color: red;
  font-weight: 500;
  text-align: left;
  margin: 3px 0;
}

/* Container principal */
.login-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
  position: relative;
  text-align: center;
}

/* Logo en fond */
.login-background {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.login-background .login-logo {
  max-width: 300px;
  height: auto;
}

/* Formulaire */
.login-form-container {
  position: relative;
  z-index: 1;
  background-color: rgba(255,255,255,0.95);
  padding: 30px 40px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  max-width: 400px;
  width: 90%;
}

.login-form-container h2 {
  margin-bottom: 20px;
  color: #222;
  font-size: 24px;
}

/* Champs du formulaire */
.login-form .form-group {
  margin-bottom: 15px;
  text-align: left;
}

.login-form label {
  display: block;
  font-weight: 500;
  margin-bottom: 5px;
  color: #333;
}

.login-form input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 14px;
}

.login-form input:focus {
  border-color: #ffda4d;
  outline: none;
}

/* Bouton */
.login-form button {
  width: 100%;
  padding: 12px;
  background-color: #1c1c1c;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.login-form button:hover {
  background-color: #ffda4d;
  color: #222;
}

/* Messages d'erreur */
.form-errors {
  margin-top: 15px;
  color: red;
  font-weight: 500;
  text-align: left;
}

/* Responsive */
@media (max-width: 500px) {
  .login-form-container {
    padding: 20px;
  }
  .login-background .login-logo {
    max-width: 200px;
  }
}
