@import url('https://fonts.googleapis.com/css2?family=Albert+Sans:ital,wght@0,100..900;1,100..900&display=swap');

body {
  font-family: 'Albert Sans', sans-serif;
  margin: 0;
  padding: 0;
  background: #f2f2f2;
}

header {
  background: linear-gradient(to right, #005DFF, #00AEFF);
  color: white;
  padding: 10px 0;
  width: 100%;
  position: relative;
  z-index: 1000;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  gap: 1rem;
}

.logo {
  height: 30px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  font-size: 14px;
}

.user-container {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 100px;
  padding: 6px 10px;
  gap: 10px;
  cursor: pointer;
  position: relative;
  transition: box-shadow 0.3s ease-in-out;
}

.user-container:hover {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.user-photo {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
}

.user-container span {
  font-weight: 600;
  font-size: 14px;
  text-transform: capitalize;
}

.user-container i {
  font-size: 12px;
  color: #fff;
  margin-right: 5px;
}

.dropdown {
  display: none;
  position: absolute;
  top: 60px;
  right: 0;
  background: white;
  border-radius: 5px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  z-index: 1001;
  width: 160px;
}

.user-container.dropdown-active .dropdown {
  display: block;
}

.dropdown a {
  display: block;
  padding: 10px 20px;
  text-decoration: none;
  color: #333;
}

.dropdown a:hover {
  background: #f0f0f0;
}

.burger {
  display: none;
  font-size: 22px;
  color: white;
  background: none;
  border: none;
  cursor: pointer;
}

/* Responsive pour le header */
@media (max-width: 797px) {
  .burger {
    display: block;
  }

  .nav {
    display: none;
    position: absolute;
    top: 60px;
    background: #005DFF;
    flex-direction: column;
    padding: 1rem;
    z-index: 999;
    border-radius: 8px;
    left: 0;
    right: 0;
  }

  .nav.active {
    display: flex;
  }

  .logo-container {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }

  .user-container span {
    display: none;
  }
}

/* Container principal */
.container {
  width: 550px;
  margin: 30px auto;
  padding: 20px;
  background: transparent;
}

/* Titres */
h2 {
  font-weight: 900;
  margin-top: 50px;
}

/* Formulaires */
.form-group {
  margin-bottom: 15px;
}

label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

input[type="email"],
input[type="text"],
input[type="password"],
input[type="date"],
input[type="file"],
select {
  font-family: 'Albert Sans', sans-serif;
  width: 100%;
  padding: 10px;
  box-sizing: border-box;
  border: none;
  border-radius: 8px;
  font-size: 16px;
}

/* Boutons de soumission */
button.submit-btn {
  font-family: 'Albert Sans', sans-serif;
  font-weight: 700;
  padding: 10px 15px;
  background: #005DFF;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  cursor: pointer;
}

button.submit-btn:hover {
  background: #00AEFF;
}

.back-btn-form {
  background-color: #e0e0e0;
  color: #333;
}

.back-btn-form:hover {
  background-color: #cccccc;
}

.form-navigation-bottom {
  position: fixed;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  display: flex;
  justify-content: center;
  z-index: 999;
}

.nav-buttons {
  display: flex;
  gap: 10px;
}

/* Alertes */
.error, .success {
  position: fixed;
  top: 50px;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px 20px;
  border-radius: 100px;
  color: #fff;
  font-weight: bold;
  z-index: 1000;
  opacity: 1;
  transition: opacity 1s ease;
}

.error {
  background: red;
}

.success {
  background: green;
}

/* Scrollbar */
body::-webkit-scrollbar {
  width: 12px;
}

body::-webkit-scrollbar-track {
  background: transparent;
}

body::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 6px;
  border: 3px solid transparent;
  background-clip: padding-box;
  z-index: 9999;
}

body::-webkit-scrollbar-thumb:hover {
  background-color: rgba(0, 0, 0, 0.5);
}

html {
  overflow-y: scroll;
  scroll-behavior: smooth;
}

@media (max-width: 1000px) {
  .container {
    width: 350px;
  }
}
