:root {
  --primary-green: #2d5016;
  --secondary-green: #4caf50;
  --accent-green: #81c784;
  --light-green: #e8f5e8;
  --gradient-primary: linear-gradient(135deg, #2d5016 0%, #4caf50 100%);
  --gradient-secondary: linear-gradient(135deg, #81c784 0%, #a5d6a7 100%);
  --text-dark: #1a1a1a;
  --text-light: #666;
  --white: #ffffff;
  --glass-bg: rgba(255, 255, 255, 0.15);
  --glass-border: rgba(255, 255, 255, 0.2);
  --shadow-soft: 0 8px 32px rgba(0, 0, 0, 0.1);
  --shadow-strong: 0 20px 60px rgba(0, 0, 0, 0.15);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  background: var(--gradient-primary);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Animations de fond avec particules */
.background-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

.leaf-particle {
  position: absolute;
  opacity: 0.1;
  animation: float 15s infinite ease-in-out;
}

.leaf-particle:nth-child(1) {
  left: 10%;
  animation-delay: 0s;
  animation-duration: 12s;
}

.leaf-particle:nth-child(2) {
  left: 20%;
  animation-delay: 2s;
  animation-duration: 18s;
}

.leaf-particle:nth-child(3) {
  left: 70%;
  animation-delay: 4s;
  animation-duration: 14s;
}

.leaf-particle:nth-child(4) {
  left: 80%;
  animation-delay: 6s;
  animation-duration: 16s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.1;
  }
  90% {
    opacity: 0.1;
  }
  50% {
    transform: translateY(-10vh) rotate(180deg);
    opacity: 0.1;
  }
}

/* Conteneur principal */
.login-container {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

/* Carte de connexion avec glassmorphism */
.login-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 40px 35px;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow-strong);
  position: relative;
  overflow: hidden;
  animation: slideUp 0.8s ease-out;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Effet de brillance sur la carte */
.login-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  animation: shine 3s infinite;
}

@keyframes shine {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

/* Header de la carte */
.login-header {
  text-align: center;
  margin-bottom: 35px;
}

.logo {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-soft);
  animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }
}

.logo i {
  font-size: 32px;
  color: var(--primary-green);
}

.welcome-title {
  font-family: "Poppins", sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.welcome-subtitle {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 400;
}

/* Messages d'alerte */
.alert {
  background: rgba(244, 67, 54, 0.15);
  border: 1px solid rgba(244, 67, 54, 0.3);
  color: #fff;
  padding: 15px;
  border-radius: 12px;
  margin-bottom: 25px;
  backdrop-filter: blur(10px);
  font-size: 14px;
  animation: alertSlide 0.5s ease-out;
}

@keyframes alertSlide {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Formulaire */
.form-group {
  position: relative;
  margin-bottom: 25px;
}

.form-input {
  width: 100%;
  padding: 18px 50px 18px 20px;
  font-size: 16px;
  font-weight: 500;
  color: var(--text-dark);
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid transparent;
  border-radius: 16px;
  outline: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
}

.form-input:focus {
  background: var(--white);
  border-color: var(--secondary-green);
  box-shadow: 0 0 0 4px rgba(76, 175, 80, 0.1);
  transform: translateY(-2px);
}

.form-input::placeholder {
  color: var(--text-light);
  font-weight: 400;
}

/* Icônes dans les inputs */
.input-icon {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  font-size: 18px;
  transition: all 0.3s ease;
}

.form-group:focus-within .input-icon {
  color: var(--secondary-green);
}

/* Toggle mot de passe */
.password-toggle {
  cursor: pointer;
  user-select: none;
}

.password-toggle:hover {
  color: var(--primary-green);
}

/* Options de connexion */
.login-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.remember-me {
  display: flex;
  align-items: center;
  gap: 8px;
}

.custom-checkbox {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 4px;
  position: relative;
  cursor: pointer;
  transition: all 0.3s ease;
}

.custom-checkbox input {
  opacity: 0;
  position: absolute;
}

.custom-checkbox input:checked + .checkmark {
  background: var(--secondary-green);
  border-color: var(--secondary-green);
}

.custom-checkbox .checkmark {
  width: 100%;
  height: 100%;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.custom-checkbox input:checked + .checkmark::after {
  content: "✓";
  color: white;
  font-weight: bold;
  font-size: 12px;
}

.remember-label {
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  cursor: pointer;
  user-select: none;
}

.forgot-password {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.forgot-password:hover {
  color: var(--white);
  text-shadow: 0 2px 10px rgba(255, 255, 255, 0.3);
}

/* Bouton de connexion */
.login-btn {
  width: 100%;
  padding: 18px;
  font-size: 16px;
  font-weight: 600;
  color: var(--white);
  background: var(--gradient-secondary);
  border: none;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  margin-bottom: 25px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.login-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s;
}

.login-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(76, 175, 80, 0.4);
}

.login-btn:hover::before {
  left: 100%;
}

.login-btn:active {
  transform: translateY(-1px);
}

/* Footer */
.login-footer {
  text-align: center;
  margin-top: 30px;
}

.signup-link {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
}

.signup-link a {
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.signup-link a:hover {
  text-shadow: 0 2px 10px rgba(255, 255, 255, 0.5);
  text-decoration: underline;
}

/* Loading animation */
.loading {
  pointer-events: none;
}

.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid transparent;
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Responsive design */
@media (max-width: 480px) {
  .login-card {
    padding: 30px 25px;
    margin: 10px;
    border-radius: 20px;
  }

  .welcome-title {
    font-size: 24px;
  }

  .form-input {
    padding: 16px 45px 16px 18px;
    font-size: 15px;
  }

  .login-btn {
    padding: 16px;
    font-size: 15px;
  }
}

/* Animation d'entrée pour les éléments du formulaire */
.form-group {
  animation: fadeInUp 0.6s ease-out forwards;
  opacity: 0;
}

.form-group:nth-child(1) {
  animation-delay: 0.1s;
}
.form-group:nth-child(2) {
  animation-delay: 0.2s;
}
.form-group:nth-child(3) {
  animation-delay: 0.3s;
}
.login-options {
  animation: fadeInUp 0.6s ease-out 0.4s forwards;
  opacity: 0;
}
.login-btn {
  animation: fadeInUp 0.6s ease-out 0.5s forwards;
  opacity: 0;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Effet hover sur la carte */
.login-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.2);
}

/* Back button styling */
.back-button {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 3;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
}

.back-button:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateX(-3px);
}

/* ========== AJOUTS POUR LA PAGE INSCRIPTION ========== */

/* Carte d'inscription plus large */
.signup-card {
  max-width: 500px;
  padding: 45px 40px;
}

/* Indicateurs de progression d'étapes */
.progress-steps {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 30px 0;
  gap: 20px;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: relative;
  z-index: 2;
}

.step-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.6);
  transition: all 0.3s ease;
  font-size: 18px;
}

.step span {
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.step.active .step-icon {
  background: var(--secondary-green);
  border-color: var(--secondary-green);
  color: white;
  box-shadow: 0 0 20px rgba(76, 175, 80, 0.4);
  transform: scale(1.1);
}

.step.active span {
  color: white;
}

.step.completed .step-icon {
  background: var(--accent-green);
  border-color: var(--accent-green);
  color: white;
}

.step.completed span {
  color: rgba(255, 255, 255, 0.9);
}

/* Ligne de connexion entre les étapes */
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 25px;
  left: 45px;
  /* left: 75px; */
  width: 50px;
  /* width: 40px; */
  height: 2px;
  background: rgba(255, 255, 255, 0.2);
  z-index: 1;
}

.step.completed:not(:last-child)::after {
  background: var(--accent-green);
}

/* Formulaire multi-étapes */
.form-step {
  display: none;
  animation: fadeInSlide 0.5s ease-out forwards;
}

.form-step.active {
  display: block;
}

@keyframes fadeInSlide {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Sélection du type d'utilisateur */
.user-type-selection {
  display: flex;
  gap: 20px;
  margin: 20px 0;
}

.type-card {
  flex: 1;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 25px 15px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.type-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  transition: left 0.5s;
}

.type-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.type-card:hover::before {
  left: 100%;
}

.type-card.selected {
  background: rgba(76, 175, 80, 0.2);
  border-color: var(--secondary-green);
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(76, 175, 80, 0.3);
}

.type-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 15px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: rgba(255, 255, 255, 0.8);
  transition: all 0.3s ease;
}

.type-card.selected .type-icon {
  background: var(--secondary-green);
  color: white;
  transform: scale(1.1);
}

.type-card h3 {
  color: white;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.type-card p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  line-height: 1.4;
}

.check-mark {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 25px;
  height: 25px;
  background: var(--secondary-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 12px;
  opacity: 0;
  transform: scale(0);
  transition: all 0.3s ease;
}

.type-card.selected .check-mark {
  opacity: 1;
  transform: scale(1);
}

/* Navigation des boutons */
.form-navigation {
  display: flex;
  gap: 15px;
  margin-top: 30px;
}

.nav-btn {
  flex: 1;
  padding: 15px 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.nav-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

.nav-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.next-btn {
  background: var(--gradient-secondary);
  border-color: transparent;
}

.next-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(76, 175, 80, 0.3);
}

.next-btn:disabled {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
}

.next-btn.enabled {
  background: var(--gradient-secondary);
  border-color: transparent;
}

/* Bouton de soumission avec loader */
.submit-btn {
  position: relative;
  overflow: hidden;
}

.btn-loader {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  /* Continuation du fichier stylenew.css - À ajouter à la fin */

  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* Indicateur de force du mot de passe */
.password-strength {
  margin: 15px 0;
}

.strength-meter {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 8px;
}

.strength-fill {
  height: 100%;
  width: 0%;
  border-radius: 3px;
  transition: all 0.3s ease;
  background: #ff4757;
}

.strength-text {
  color: rgba(255, 255, 255, 0.8);
  font-size: 12px;
  font-weight: 500;
}

/* Message de correspondance des mots de passe */
.match-message {
  margin: 10px 0;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  animation: fadeIn 0.3s ease forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

.match-message.success {
  color: #2ed573;
}

.match-message.error {
  color: #ff4757;
}

/* Conditions d'utilisation */
.terms-conditions {
  margin: 20px 0;
}

.checkbox-container {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.5;
}

.checkbox-container input[type="checkbox"] {
  opacity: 0;
  position: absolute;
}

.checkmark {
  width: 20px;
  height: 20px;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  position: relative;
  transition: all 0.3s ease;
  flex-shrink: 0;
  /* margin-top: 2px; */
}

.checkbox-container input:checked ~ .checkmark {
  background: var(--secondary-green);
  border-color: var(--secondary-green);
}

.checkmark::after {
  content: "";
  position: absolute;
  display: none;
}

.checkbox-container input:checked ~ .checkmark::after {
  display: block;
  left: 6px;
  top: 2px;
  width: 6px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.terms-link {
  color: var(--accent-green);
  text-decoration: none;
  transition: all 0.3s ease;
}

.terms-link:hover {
  color: white;
  text-shadow: 0 2px 10px rgba(255, 255, 255, 0.3);
}

/* Validation d'erreur pour les inputs */
.form-input.error {
  border-color: #ff4757;
  background: rgba(255, 71, 87, 0.1);
  animation: shake 0.5s ease-in-out;
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-5px);
  }
  75% {
    transform: translateX(5px);
  }
}

/* États focused pour les groupes de formulaire */
.form-group.focused .form-input {
  background: var(--white);
  border-color: var(--secondary-green);
  box-shadow: 0 0 0 4px rgba(76, 175, 80, 0.1);
  transform: translateY(-2px);
}

/* Animation pour les champs qui apparaissent */
#particulier_fields,
#organisation_fields {
  animation: slideInUp 0.5s ease-out forwards;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Effets hover sur les boutons de navigation */
.prev-btn i {
  transition: transform 0.3s ease;
}

.next-btn i {
  transition: transform 0.3s ease;
}

.prev-btn:hover i {
  transform: translateX(-3px);
}

.next-btn:hover i {
  transform: translateX(3px);
}

/* Messages d'alerte spéciaux pour l'inscription */
.alert-success {
  background: rgba(46, 213, 115, 0.15);
  border-color: rgba(46, 213, 115, 0.3);
  color: #2ed573;
}

.alert-success i {
  color: #2ed573;
}

/* Responsive pour l'inscription */
@media (max-width: 768px) {
  .signup-card {
    max-width: 100%;
    padding: 35px 25px;
  }

  .user-type-selection {
    flex-direction: column;
    gap: 15px;
  }

  .type-card {
    padding: 20px 15px;
  }

  .progress-steps {
    gap: 15px;
    margin: 25px 0;
  }

  .step:not(:last-child)::after {
    width: 30px;
    left: 65px;
  }

  .form-navigation {
    flex-direction: column;
  }

  .nav-btn {
    padding: 16px;
  }
}

@media (max-width: 480px) {
  .signup-card {
    padding: 25px 20px;
  }

  .progress-steps {
    gap: 10px;
  }

  .step-icon {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  .step span {
    font-size: 11px;
  }

  .step:not(:last-child)::after {
    width: 45px;
    /* width: 25px; */
    /* left: 55px; */
    left: 35px;
    top: 20px;
  }

  .type-card {
    padding: 18px 12px;
  }

  .type-icon {
    width: 50px;
    height: 50px;
    font-size: 20px;
  }

  .type-card h3 {
    font-size: 16px;
  }

  .type-card p {
    font-size: 13px;
  }
}

/* Animation d'entrée pour les éléments de l'inscription */
.progress-steps {
  animation: fadeInUp 0.6s ease-out 0.3s forwards;
  opacity: 0;
}

.user-type-selection .type-card:nth-child(1) {
  animation: fadeInUp 0.6s ease-out 0.4s forwards;
  opacity: 0;
}

.user-type-selection .type-card:nth-child(2) {
  animation: fadeInUp 0.6s ease-out 0.5s forwards;
  opacity: 0;
}

.form-navigation {
  animation: fadeInUp 0.6s ease-out 0.6s forwards;
  opacity: 0;
}

/* Effet de pulsation sur l'étape active */
.step.active .step-icon {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(76, 175, 80, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(76, 175, 80, 0);
  }
}

/* Effet de brillance sur les cartes de type sélectionnées */
.type-card.selected::before {
  left: 100%;
}

/* Amélioration de l'accessibilité */
.form-input:focus,
.nav-btn:focus,
.type-card:focus {
  outline: 2px solid var(--secondary-green);
  outline-offset: 2px;
}

/* Transition douce pour le changement d'étapes */
.form-step {
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-step:not(.active) {
  pointer-events: none;
}

/* ========== AJOUTS POUR LA PAGE D'ACCUEIL (INDEX.PHP) ========== */

/* Layout principal */
.sidebar-menu {
  position: fixed;
  top: 0;
  left: -300px; /* Caché par défaut */
  width: 280px;
  height: 100vh;
  background: var(--glass-bg);
  backdrop-filter: blur(25px);
  border-right: 1px solid var(--glass-border);
  z-index: 1000;
  transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}
.sidebar-menu.active {
  left: 0;
}

.main-content {
  position: relative;
  z-index: 2;
  margin-left: 0;
  width: 100%;
  padding: 20px;
  transition: margin-left 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (min-width: 992px) {
  .sidebar-menu {
    left: 0;
  }
  .main-content {
    margin-left: 280px;
    width: calc(100% - 280px);
  }
  .sidebar-menu.active {
    left: -300px;
  }
  .main-content.sidebar-active {
    margin-left: 0;
    width: 100%;
  }
}

/* Header */
.main-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 25px;
  background: var(--glass-bg);
  backdrop-filter: blur(15px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  margin-bottom: 30px;
  position: sticky;
  top: 20px;
  z-index: 500;
}
.header-left,
.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}
.menu-toggle {
  background: none;
  border: none;
  color: var(--white);
  font-size: 20px;
  cursor: pointer;
}
.header-title {
  font-family: "Poppins", sans-serif;
  color: white;
  font-size: 22px;
  font-weight: 600;
}
.header-icon {
  color: white;
  font-size: 20px;
  position: relative;
}
.notification-dot {
  position: absolute;
  top: -2px;
  right: -4px;
  width: 8px;
  height: 8px;
  background-color: #ff4757;
  border-radius: 50%;
  border: 1.5px solid var(--primary-green);
}
.user-profile img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--glass-border);
}

/* Welcome Banner */
.welcome-banner {
  padding: 30px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  margin-bottom: 30px;
  color: white;
}
.welcome-banner h2 {
  font-family: "Poppins", sans-serif;
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 5px;
}
.welcome-banner p {
  font-size: 16px;
  opacity: 0.8;
}

/* Stat Cards */
.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}
.stat-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 25px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  transition: all 0.3s ease;
}
.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-soft);
  border-color: rgba(255, 255, 255, 0.4);
}
.stat-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}
.stat-icon.green {
  background: rgba(76, 175, 80, 0.2);
  color: #81c784;
}
.stat-icon.blue {
  background: rgba(33, 150, 243, 0.2);
  color: #90caf9;
}
.stat-icon.orange {
  background: rgba(255, 152, 0, 0.2);
  color: #ffcc80;
}

.stat-info {
  display: flex;
  flex-direction: column;
}
.stat-value {
  font-family: "Poppins", sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: white;
}
.stat-label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

/* Demandes Section */
.demandes-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 25px;
}
.demandes-header h2 {
  font-family: "Poppins", sans-serif;
  color: white;
  font-size: 22px;
}
.search-filter-container {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.search-wrapper {
  position: relative;
}
.search-wrapper .form-input {
  padding-left: 45px;
  min-width: 300px;
}
.search-wrapper i {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
}
.filter-buttons {
  display: flex;
  gap: 10px;
  background: var(--glass-bg);
  border-radius: 14px;
  padding: 5px;
}
.filter-btn {
  padding: 10px 20px;
  border-radius: 10px;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}
.filter-btn:hover,
.filter-btn.active {
  background: var(--white);
  color: var(--primary-green);
  box-shadow: var(--shadow-soft);
}

/* Demande Cards List */
.demandes-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 25px;
  position: relative;
}
.demandes-list.loading-results::after {
  content: "";
  position: absolute;
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  border: 4px solid rgba(255, 255, 255, 0.2);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
.demande-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 25px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: all 0.3s ease;
}
.demande-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-strong);
  border-color: rgba(255, 255, 255, 0.5);
}
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 15px;
}
.card-title h3 {
  font-family: "Poppins", sans-serif;
  color: white;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 4px;
  line-height: 1.3;
}
.card-title span {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
}
.card-status {
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  color: white;
  white-space: nowrap;
}
.status-success {
  background-color: rgba(76, 175, 80, 0.3);
}
.status-warning {
  background-color: rgba(255, 152, 0, 0.3);
}
.status-danger {
  background-color: rgba(244, 67, 54, 0.3);
}
.status-info {
  background-color: rgba(33, 150, 243, 0.3);
}

.card-body {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.progress-info {
  flex-grow: 1;
}
.progress-text {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
}
.progress-bar {
  width: 100%;
  height: 8px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: var(--gradient-secondary);
  border-radius: 4px;
  transition: width 0.5s ease;
}
.planted-info {
  text-align: right;
  color: white;
}
.planted-info strong {
  font-size: 20px;
  font-weight: 700;
}
.planted-info span {
  font-size: 13px;
  display: block;
  color: rgba(255, 255, 255, 0.7);
}

.card-footer {
  border-top: 1px solid var(--glass-border);
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}
.info-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.15);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.9);
}
.info-item i {
  color: rgba(255, 255, 255, 0.6);
}
.tag-forestier {
  background: rgba(76, 175, 80, 0.2);
}
.tag-fruitier {
  background: rgba(255, 152, 0, 0.2);
}
.tag-challenge {
  background: rgba(251, 197, 49, 0.25);
}
.tag-challenge i {
  color: #fbc531;
}

/* Card for no results */
.no-results-card {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 30px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  color: white;
}
.no-results-card i {
  font-size: 48px;
  margin-bottom: 20px;
  color: var(--accent-green);
  opacity: 0.8;
}
.no-results-card h3 {
  font-family: "Poppins", sans-serif;
  font-size: 22px;
  margin-bottom: 10px;
}
.no-results-card p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 25px;
}
.btn-lancer {
  padding: 12px 25px;
  font-weight: 600;
  color: var(--white);
  background: var(--gradient-secondary);
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s ease;
}
.btn-lancer:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(76, 175, 80, 0.3);
}

/* Sidebar Styles */
.sidebar-header {
  padding: 25px;
  border-bottom: 1px solid var(--glass-border);
}
.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 15px;
  text-decoration: none;
}
.sidebar-logo img {
  width: 40px;
}
.sidebar-logo span {
  font-family: "Poppins", sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: white;
}
.sidebar-user {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 25px;
  background: rgba(0, 0, 0, 0.1);
}
.sidebar-user img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
}
.user-info .user-name {
  color: white;
  font-weight: 600;
  display: block;
}
.user-info .user-role {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
}
.sidebar-nav {
  flex-grow: 1;
  padding: 20px 0;
}
.sidebar-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.sidebar-nav li a {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 15px 25px;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}
.sidebar-nav li a:hover,
.sidebar-nav li.active a {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}
.sidebar-nav li.active a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 4px;
  background: var(--secondary-green);
  border-radius: 0 4px 4px 0;
}
.sidebar-nav li a i {
  font-size: 18px;
  width: 20px;
  text-align: center;
}
.sidebar-footer {
  padding: 25px;
  border-top: 1px solid var(--glass-border);
}
.logout-btn {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 12px 20px;
  border-radius: 12px;
  background: rgba(255, 71, 87, 0.15);
  color: #ff4757;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}
.logout-btn:hover {
  background: rgba(255, 71, 87, 0.3);
  color: white;
}

    /* Style pour le bouton de déclaration spontanée */                                                                               
  .or-divider {                                                                                                                       
        text-align: center;                                                                                                             
        margin: 20px 0;                                                                                                                 
        color: #aaa;                                                                                                                   
        display: flex;                                                                                                                  
        align-items: center;                                                                                                            
    }                                                                                                                                   
                                                                                                                                         
  .or-divider::before, .or-divider::after {                                                                                          
content: '';                                                                                                                    
 flex: 1;                                                                                                                        
border-bottom: 1px solid #eee;                                                                                              
}                                                                                                                              
                                                                                                                                        
    .or-divider span {                                                                                                                  
        padding: 0 15px;                                                                                                                
    }                                                                                                                                   
                                                                                                                                        
    .spontaneous-declaration-btn {
         display: flex;
         align-items: center;
         justify-content: center;
         width: 100%;
         padding: 20px;
         border-radius: 12px;
         background-color: #ffc300; /* Vert très clair */
         color: #2b670f; /* Vert foncé */
         text-decoration: none;
         font-weight: 500;
         font-size: 1rem;
         border: 1px solid #ffffff;
         transition: all 0.3s ease;
    }                                                                                                                                   
    .spontaneous-declaration-btn:hover {                                                                                                
        background-color: #d1e7dd;                                                                                                    
        transform: translateY(-2px);                                                                                                    
        box-shadow: 0 4px 15px rgba(40, 167, 69, 0.1);                                                                                  
   }                                                                                                                                   
                                                                                                                                        
    .spontaneous-declaration-btn i {                                                                                                    
         margin-right: 10px;                                                                                                             
     } 
