.form-group {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 6px;
}

.form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ff-texte);
  letter-spacing: 0.2px;
}

.form-input {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--ff-bordure);
  border-radius: var(--ff-rayon);
  font-size: 0.92rem;
  font-family: "Inter", sans-serif;
  color: var(--ff-texte);
  background: var(--ff-blanc);
  transition: all 0.2s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--ff-bleu);
  box-shadow: 0 0 0 3px rgba(0, 85, 160, 0.08);
}

.form-input::placeholder {
  color: var(--ff-texte-h);
}

/* BOUTONS */
.btn {
  text-decoration: none;
  padding: 12px 20px;
  border: none;
  border-radius: var(--ff-rayon);
  font-size: 0.95rem;
  font-weight: 700;
  font-family: "Inter", sans-serif;
  cursor: pointer;
  transition: all 0.2s ease;
  letter-spacing: 0.3px;
  text-align: center;
}

.btn-primary {
  background: var(--ff-bleu);
  color: var(--ff-blanc);
  box-shadow: 0 2px 8px rgba(0, 85, 160, 0.2);
}

.btn-primary:hover {
  background: var(--ff-bleu-h);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 85, 160, 0.3);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: var(--ff-blanc);
  color: var(--ff-bleu);
  border: 1.5px solid var(--ff-bordure);
}

.btn-secondary:hover {
  border-color: var(--ff-bleu);
  background: var(--ff-bleu-l);
}

.btn-danger {
  background: var(--ff-rouge);
  color: var(--ff-blanc);
}

.btn-danger:hover {
  background: #a82824;
  transform: translateY(-1px);
}

.btn-docs {
  background: var(--ff-jaune);
  color: var(--ff-bleu);
}

.btn-docs:hover {
  background: var(--ff-jaune-h);
  transform: translateY(-1px);
}

/* MESSAGES */
.message {
  padding: 12px 16px;
  border-radius: var(--ff-rayon);
  font-size: 0.88rem;
  position: absolute;
  bottom: 1rem;
  left: 50%;
  z-index: 1000;
  transform: translateX(-50%);
  font-weight: 500;
  display: none;
  align-items: center;
  gap: 10px;
}

.message.show {
  display: flex;
}

.message-error {
  background: var(--ff-rouge-l);
  color: var(--ff-rouge);
  border: 1px solid rgba(201, 48, 44, 0.3);
}

.message-success {
  background: var(--ff-vert-l);
  color: var(--ff-vert);
  border: 1px solid rgba(30, 122, 74, 0.3);
}

.message::before {
  content: "";
  font-size: 1.1rem;
  font-weight: 700;
}

.message-error::before {
  content: "⚠";
}

.message-success::before {
  content: "✓";
}

/* LIENS */
.auth-link {
  text-align: center;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--ff-bordure-l);
  color: var(--ff-texte-s);
  font-size: 0.9rem;
}

.auth-link a {
  color: var(--ff-bleu);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.auth-link a:hover {
  color: var(--ff-bleu-h);
  text-decoration: underline;
}

/* LOADING */
.loading {
  text-align: center;
  color: var(--ff-bleu);
  font-size: 1rem;
  font-weight: 600;
  padding: 20px;
}

.loading::after {
  content: "...";
  animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
  0%,
  20% {
    content: ".";
  }
  40% {
    content: "..";
  }
  60%,
  100% {
    content: "...";
  }
}

/* PROFIL */
.profile-info {
  display: none;
  flex-direction: column;
  gap: 16px;
}

.profile-info.show {
  display: flex;
}

.info-group {
  padding: 16px;
  background: var(--ff-surface);
  border: 1px solid var(--ff-bordure-l);
  border-radius: var(--ff-rayon);
}

.info-label {
  font-size: 0.72rem;
  color: var(--ff-texte-s);
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}

.info-value {
  font-size: 1rem;
  color: var(--ff-texte);
  font-weight: 600;
}

/* BADGES */
.status-badge {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.status-active {
  background: var(--ff-vert-l);
  color: var(--ff-vert);
}

.status-inactive {
  background: var(--ff-rouge-l);
  color: var(--ff-rouge);
}

/* ACTIONS */
.actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--ff-bordure-l);
}

.actions .btn {
  flex: 1;
}

.form-section h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ff-bleu);
}

/* RESPONSIVE */
@media (max-width: 480px) {
  body {
    padding: 10px;
  }

  .actions {
    flex-direction: column;
  }

  .actions .btn {
    width: 100%;
  }
}

.app-links {
  flex-direction: column;
  display: flex;
  color: var(--ff-texte-s);
  gap: 0.5rem;
}
.app-links a {
  color: var(--ff-bleu);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}
.app-links a:hover {
  color: var(--ff-bleu-h);
  text-decoration: underline;
}
/* region LoginPage */
.login-body {
  display: flex !important;
  height: 100% !important;
  width: 100% !important;
  position: relative;
  align-items: center !important;
  justify-content: space-between !important;
  max-width: 100% !important;
  padding: 0% !important;
}

.left-section {
  width: 100%;
  height: 100%;
  position: relative;
  flex: 60%;
}
.left-section.admin-page {
  flex: 30%;
}
.login-pattern {
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: url("/auth/static/login-pattern.svg");
  background-color: var(--ff-bleu);
  opacity: 65%;
  background-repeat: no-repeat;
  background-size: contain;
}
.login-image {
  height: 100%;
  background-image: url("/auth/static/login-bg.png");
  background-color: var(--ff-bleu);
  background-repeat: no-repeat;
  background-size: cover;
}

.main-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #fcfcfc;
  justify-content: center;
  gap: 1rem;
  width: 100%;
  height: 100%;
  flex: 1;
}
.content-section {
  padding-inline: 1rem;
  padding-bottom: 1rem;
  flex: 1;
  width: 100%;
  overflow: auto;
}

.right-section {
  position: relative;
  background-color: #ffffff;
  padding: 4rem;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  flex: 40%;
}
.right-section.admin-page {
  flex: 70%;
}

.right-section form {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.login-link {
  margin: 0;
  color: var(--ff-texte-s);
  font-size: 14px;
}

.login-link a,
.login-link button {
  color: var(--ff-bleu);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}
.login-link button.btn-link {
  background: none;
  border: none;
  padding: 0;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.login-link a:hover,
.login-link button:hover {
  color: var(--ff-bleu-h);
  text-decoration: underline;
}
.login-links-container {
  display: flex;
  justify-content: space-between;
  width: 100%;
}
.login-header {
  display: flex;
  flex-direction: column;
}

.login-title {
  margin: 0;
  color: var(--ff-bleu);
  font-size: 1.5rem;
  font-weight: 700;
}

.login-subtitle {
  margin: 0;
  color: var(--ff-texte-s);
  font-size: 0.9rem;
  font-weight: 500;
}
.login-logo {
  bottom: 4rem;
  width: 108px;
  height: auto;
}
.login-white-logo {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  width: 257px;
  height: auto;
}
@media (max-width: 768px) {
  .login-body {
    flex-direction: column;
    justify-content: center;
  }

  .left-section,
  .right-section {
    flex: none;
    width: 100%;
    height: auto;
  }

  .right-section {
    padding: 2rem;
  }

  .login-logo {
    position: static;
    margin-top: 2rem;
    width: 120px;
  }

  .login-white-logo {
    display: none;
  }
}
/* endregion LoginPage */

/* region ForgotPasswordModal */
.forgot-password-modal {
  display: none;
}
.forgot-password-modal.show {
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
}
.forgot-password-modal .modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.forgot-password-modal .modal-content {
  background-color: var(--ff-blanc);
  padding: 2rem;
  border-radius: var(--ff-rayon);
  width: 100%;
  max-width: 400px;
  box-shadow: var(--ff-ombre-m);
}
.forgot-password-modal .modal-content h2 {
  margin: 0;
  color: var(--ff-bleu);
  font-size: 1.25rem;
  font-weight: 700;
}
.forgot-password-modal .modal-content p {
  margin: 1rem 0;
  color: var(--ff-texte-s);
  font-size: 0.9rem;
}
.forgot-password-modal .modal-content form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.forgot-password-modal .close-button {
  display: flex;
  justify-content: center;
  align-items: center;
  background: none;
  border: none;
  padding: 6px;
  border-radius: 100%;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.forgot-password-modal .close-button:hover {
  opacity: 0.8;
  background-color: rgba(0, 0, 0, 0.1);
}
/* endregion ForgotPasswordModal */

/* Site menu */
.site-menu {
  align-self: flex-start;
  width: 100%;
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between; /* liens à droite */
  margin-bottom: 0;
}
/* Dans auth.css */
.profile-menu {
  display: none;
}
.profile-dropdown {
  position: relative;
  display: flex;
  width: fit-content;
}
.profile-menu.open {
  border-radius: var(--ff-rayon);
  display: flex;
  flex-direction: column;
  transform: translateY(50%);
  position: fixed;
}
.profile-button {
  background: none;
  border: none;
  padding: 0;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.dropdown-item {
  text-decoration: none;
  background: var(--ff-blanc);
  border: 1px solid var(--ff-bordure);
  padding: 8px 12px;
  font-size: 0.9rem;
  max-width: 150px;
  line-height: normal;
  color: var(--ff-texte);
  text-align: left;
}
.dropdown-item:hover {
  background: var(--ff-surface);
  border-color: var(--ff-bleu);
  color: var(--ff-bleu);
}

.apps-container {
  min-height: 300px;
  display: flex;
  gap: 12px;
}
.app-link {
  display: inline-block;
  padding: 10px 16px;
  background: var(--ff-blanc);
  border: 1px solid var(--ff-bordure);
  border-radius: var(--ff-rayon);
  color: var(--ff-bleu);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.2s ease;
  flex: 1;
  flex-basis: 32%;
  height: fit-content;
}
.app-link:hover {
  background: var(--ff-surface);
  border-color: var(--ff-bleu);
  color: var(--ff-bleu);
}
.apps-list {
  width: 100%;
  flex-wrap: wrap;
}
.apps-section-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ff-bleu);
}
.password-input-container {
  position: relative;
  width: 100%;
}
.password-toggle {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
}
#calculator-details {
  display: flex;
  flex-direction: column;
  gap: 12px;

  background: var(--ff-surface);
  border: 1px solid var(--ff-bordure);
  border-radius: var(--ff-rayon);
  padding: 16px;
}
