* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.body-acceuil {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, #0061ff, #60efff);
}

.login-container {
  width: 400px;
  background-color: rgba(255, 255, 255, 0.95);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  padding: 40px;
  text-align: center;
}

.logo {
  width: 80px;
  height: 80px;
  background-color: #0061ff;
  border-radius: 50%;
  margin: 0 auto 25px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo-icon {
  color: white;
  font-size: 40px;
  font-weight: bold;
}

h1 {
  color: #333;
  margin-bottom: 30px;
  font-size: 24px;
}

.input-group {
  margin-bottom: 20px;
}

.input-group label {
  display: block;
  text-align: left;
  margin-bottom: 8px;
  color: #555;
  font-weight: 500;
}

.input-group input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 16px;
  transition: border-color 0.3s;
}

.input-group input:focus {
  border-color: #0061ff;
  outline: none;
  box-shadow: 0 0 0 2px rgba(0, 97, 255, 0.2);
}

.btn-login {
  width: 100%;
  background-color: #0061ff;
  color: white;
  border: none;
  padding: 14px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s;
}

.btn-login:hover {
  background-color: #0052d6;
}

.forgot-password {
  display: block;
  margin-top: 15px;
  color: #0061ff;
  text-decoration: none;
  font-size: 14px;
}

.register {
  margin-top: 25px;
  font-size: 14px;
  color: #666;
}

.register a {
  color: #0061ff;
  text-decoration: none;
  font-weight: 500;
}

.error-message {
  color: #e74c3c;
  margin-top: 5px;
  font-size: 14px;
  text-align: left;
  display: none;
}

.shake {
  animation: shake 0.5s;
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  10%,
  30%,
  50%,
  70%,
  90% {
    transform: translateX(-5px);
  }
  20%,
  40%,
  60%,
  80% {
    transform: translateX(5px);
  }
}

.body-mandat {
  padding: 20px;
  background-color: #f0f8ff;
  color: #333;
}

.header {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 30px;
  padding: 10px 20px;
  background-color: #1a4f8a;
  color: white;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.login-info {
  justify-content: end;
  margin-right: 15px;
  font-size: 14px;
}

.logout-button {
  background-color: #3a7bd5;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
  font-weight: 500;
}

.logout-button:hover {
  background-color: #2c5ea3;
}

.main-content {
  display: flex;
  gap: 25px;
  min-height: 500px;
}

.sidebar {
  width: 180px;
  background-color: white;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.mandat-item {
  padding: 10px 15px;
  margin-bottom: 5px;
  cursor: pointer;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.mandat-item:hover {
  background-color: #e6f0ff;
  color: #1a4f8a;
}

.content-area {
  flex-grow: 1;
  background-color: white;
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.title-section {
  display: flex;
  gap: 15px;
  margin-bottom: 25px;
  align-items: center;
}

.title-label {
  width: 120px;
  background-color: #e6f0ff;
  color: #1a4f8a;
  padding: 12px;
  text-align: center;
  border-radius: 4px;
  font-weight: 500;
}

.title-input {
  flex-grow: 1;
  border: 1px solid #cce0ff;
  border-radius: 4px;
  padding: 12px;
  outline: none;
  transition: border-color 0.3s;
}

.title-input:focus {
  border-color: #3a7bd5;
  box-shadow: 0 0 0 2px rgba(58, 123, 213, 0.2);
}

.description-section {
  display: flex;
  gap: 15px;
  margin-bottom: 25px;
}

.description-label {
  width: 120px;
  height: 200px;
  background-color: #e6f0ff;
  color: #1a4f8a;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  font-weight: 500;
}

.description-input {
  flex-grow: 1;
  height: 200px;
  border: 1px solid #cce0ff;
  border-radius: 4px;
  padding: 12px;
  resize: none;
  outline: none;
  transition: border-color 0.3s;
}

.description-input:focus {
  border-color: #3a7bd5;
  box-shadow: 0 0 0 2px rgba(58, 123, 213, 0.2);
}

.enterprise-section {
  display: flex;
  gap: 15px;
  margin-bottom: 30px;
  align-items: center;
}

.enterprise-label {
  width: 120px;
  background-color: #e6f0ff;
  color: #1a4f8a;
  padding: 12px;
  text-align: center;
  border-radius: 4px;
  font-weight: 500;
}

.enterprise-dropdown {
  flex-grow: 1;
  border: 1px solid #cce0ff;
  border-radius: 4px;
  padding: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  background-color: white;
  transition: border-color 0.3s;
}

.enterprise-dropdown:hover {
  border-color: #3a7bd5;
}

.dropdown-arrow {
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid #3a7bd5;
}

.add-button {
  width: 150px;
  margin: 10px auto;
  display: block;
  background-color: #3a7bd5;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 4px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.add-button:hover {
  background-color: #2c5ea3;
}
