:root {
  --primary-color: #0a2e5a;
  /* Bleu MNS */
  --secondary-color: #00a3e0;
  /* Bleu clair MNS */
  --accent-color: #ff6b35;
  /* Orange MNS */
  --success-color: #2ecc71;
  --warning-color: #f39c12;
  --purple-color: #8e44ad;
  --card-bg: #ffffff;
  --text-color: #1a1a2e;
  --text-light: #7f8c8d;
  --hover-color: #083064;
  --background-gradient: linear-gradient(135deg, #0a2e5a 0%, #00a3e0 100%);
  --card-gradient: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
  --shadow-color: rgba(10, 46, 90, 0.15);
  --glow-color: rgba(0, 163, 224, 0.3);
  --delegue-gradient: linear-gradient(135deg, #ff6b35 0%, #f39c12 100%);
}

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

body {
  font-family: "Poppins", sans-serif;
  background: var(--background-gradient);
  color: var(--text-color);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-x: hidden;
  position: relative;
}

/* Effet de particules animées en arrière-plan */
.particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.particle {
  position: absolute;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  animation: float 15s infinite linear;
}

@keyframes float {
  0% {
    transform: translateY(0) translateX(0);
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  90% {
    opacity: 1;
  }

  100% {
    transform: translateY(-100vh) translateX(100px);
    opacity: 0;
  }
}

/* Header amélioré MNS */
header {
  width: 100%;
  padding: 100px 20px 80px;
  background: linear-gradient(
    135deg,
    rgba(10, 46, 90, 0.9) 0%,
    rgba(0, 163, 224, 0.8) 100%
  );
  backdrop-filter: blur(15px);
  color: white;
  text-align: center;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
  position: relative;
  overflow: hidden;
  margin-bottom: 50px;
  border-bottom: 3px solid var(--accent-color);
}

header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.3;
}

.mns-logo {
  position: absolute;
  top: 25px;
  left: 30px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  padding: 10px 20px;
  border-radius: 50px;
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.mns-logo i {
  color: var(--accent-color);
}

header h1 {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  font-size: 4rem;
  font-weight: 800;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  animation: fadeInDown 1s ease-out;
  letter-spacing: 1.5px;
  background: linear-gradient(135deg, #fff 0%, #e3f2fd 100%);
  -webkit-background-clip: text;

  background-clip: text;
  margin-bottom: 15px;
  color: #d96d47;
}

header p {
  font-size: 1.4rem;
  margin-top: 10px;
  opacity: 0.95;
  animation: fadeIn 1.5s ease-out;
  font-weight: 400;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  max-width: 800px;
  margin: 0 auto;
}

.promo-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 25px;
  background: rgba(255, 255, 255, 0.15);
  padding: 10px 25px;
  border-radius: 50px;
  font-weight: 600;
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.2);
  animation: fadeIn 2s ease-out;
}

.promo-badge i {
  color: var(--accent-color);
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-40px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 0.95;
  }
}

.container {
  width: 90%;
  max-width: 1400px;
  margin: 0 auto 80px;
  animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Section Délégué Mise en avant */
.delegue-section {
  margin-bottom: 60px;
}

.section-title {
  font-family: "Montserrat", sans-serif;
  font-size: 2.2rem;
  color: white;
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  gap: 15px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.section-title i {
  color: var(--accent-color);
}

/* Grille des étudiants */
ul {
  list-style-type: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  width: 100%;
}

li {
  background: var(--card-gradient);
  border-radius: 20px;
  padding: 0;
  text-align: center;
  box-shadow: 0 15px 35px var(--shadow-color);
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}

li::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: linear-gradient(
    to right,
    var(--primary-color),
    var(--secondary-color),
    var(--accent-color)
  );
  z-index: 2;
}

li.delegue-card::before {
  background: var(--delegue-gradient);
}

li::after {
  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.8s;
}

li:hover::after {
  left: 100%;
}

li:hover {
  transform: translateY(-12px) scale(1.03);
  box-shadow: 0 25px 50px var(--glow-color);
}

.user-card {
  padding: 40px 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

/* Avatar avec système de secours */
.user-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
  color: white;
  font-size: 2.5rem;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(10, 46, 90, 0.3);
  transition: all 0.4s ease;
  overflow: hidden;
  border: 5px solid white;
  position: relative;
}

.user-avatar.female {
  background: linear-gradient(135deg, var(--purple-color), var(--accent-color));
}

.user-avatar.delegue {
  background: var(--delegue-gradient);
}

.user-avatar::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color),
    var(--accent-color)
  );
  border-radius: 50%;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.user-avatar.delegue::before {
  background: var(--delegue-gradient);
}

.user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.avatar-initial {
  font-size: 3rem;
  font-weight: 700;
}

li:hover .user-avatar {
  transform: scale(1.15) rotate(8deg);
  box-shadow: 0 15px 40px rgba(0, 163, 224, 0.4);
}

li:hover .user-avatar::before {
  opacity: 1;
}

li:hover .user-avatar img {
  transform: scale(1.1);
}

.user-name {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-color);
  position: relative;
  padding-bottom: 10px;
  font-family: "Montserrat", sans-serif;
}

.user-name::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background: linear-gradient(
    to right,
    var(--primary-color),
    var(--accent-color)
  );
  border-radius: 2px;
}

.delegue-card .user-name::after {
  background: var(--delegue-gradient);
}

.user-role {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 25px;
  padding: 8px 20px;
  background: rgba(10, 46, 90, 0.08);
  border-radius: 25px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.user-role[data-role="Délégué"] {
  background: rgba(255, 107, 53, 0.15);
  color: var(--accent-color);
  font-weight: 700;
}

li:hover .user-role {
  background: var(--primary-color);
  color: white;
  transform: scale(1.05);
}

li:hover .user-role[data-role="Délégué"] {
  background: var(--accent-color);
  color: white;
}

a {
  text-decoration: none;
  color: var(--primary-color);
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.4s ease;
  display: inline-flex;
  align-items: center;
  padding: 14px 32px;
  border-radius: 50px;
  background: rgba(10, 46, 90, 0.1);
  border: 2px solid rgba(10, 46, 90, 0.2);
  position: relative;
  overflow: hidden;
  font-family: "Montserrat", sans-serif;
}

a::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.6s;
}

a:hover::before {
  left: 100%;
}

a i {
  margin-left: 10px;
  transition: all 0.4s ease;
}

a:hover {
  color: white;
  background: var(--primary-color);
  box-shadow: 0 10px 30px rgba(10, 46, 90, 0.4);
  border-color: var(--primary-color);
  transform: translateY(-3px);
}

a:hover i {
  transform: translateX(8px) scale(1.1);
}

.delegue-card a {
  background: rgba(255, 107, 53, 0.1);
  border-color: rgba(255, 107, 53, 0.3);
  color: var(--accent-color);
}

.delegue-card a:hover {
  background: var(--accent-color);
  border-color: var(--accent-color);
  box-shadow: 0 10px 30px rgba(255, 107, 53, 0.4);
}

/* Stats MNS */
.mns-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 25px;
  margin-bottom: 50px;
  padding: 30px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-item {
  text-align: center;
  color: white;
  padding: 20px;
}

.stat-number {
  font-family: "Montserrat", sans-serif;
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 10px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  background: linear-gradient(135deg, #fff 0%, #e3f2fd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 1.1rem;
  opacity: 0.9;
  font-weight: 500;
}

footer {
  width: 100%;
  padding: 40px 20px;
  text-align: center;
  color: white;
  font-size: 1rem;
  opacity: 0.9;
  margin-top: auto;
  padding-top: 60px;
  background: rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
  font-family: "Montserrat", sans-serif;
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 15px;
  background: linear-gradient(
    135deg,
    var(--secondary-color),
    var(--accent-color)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

footer p {
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  margin-bottom: 10px;
}

/* Animation de pulse subtile */
@keyframes subtlePulse {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.02);
  }
}

li {
  animation: subtlePulse 8s ease-in-out infinite;
}

li:nth-child(odd) {
  animation-delay: 0.5s;
}

li:nth-child(even) {
  animation-delay: 1s;
}

@media (max-width: 1024px) {
  header h1 {
    font-size: 3.2rem;
  }

  .mns-logo {
    position: static;
    display: inline-flex;
    margin-bottom: 20px;
  }

  ul {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  header h1 {
    font-size: 2.5rem;
  }

  header {
    padding: 80px 20px 60px;
  }

  header p {
    font-size: 1.2rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  ul {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
  }

  .user-card {
    padding: 30px 20px;
  }

  .user-avatar {
    width: 100px;
    height: 100px;
    font-size: 2rem;
  }

  .avatar-initial {
    font-size: 2.5rem;
  }

  .mns-stats {
    grid-template-columns: repeat(2, 1fr);
    padding: 20px;
  }
}

@media (max-width: 480px) {
  header h1 {
    font-size: 2rem;
  }

  header p {
    font-size: 1rem;
  }

  .promo-badge {
    font-size: 0.9rem;
    padding: 8px 16px;
  }

  ul {
    grid-template-columns: 1fr;
  }

  .user-avatar {
    width: 90px;
    height: 90px;
  }

  .avatar-initial {
    font-size: 2.2rem;
  }

  .mns-stats {
    grid-template-columns: 1fr;
  }

  .stat-number {
    font-size: 2.5rem;
  }

  .footer-logo {
    font-size: 1.5rem;
  }
}

.footer-primary {
  color: #ff6b35;
  font-size: xx-large;
  font-weight: 600;
}
/* Style pour le bouton des offres d'emploi */
.offres-button {
  position: absolute;
  top: 25px;
  right: 30px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.15);
  color: white;
  padding: 12px 25px;
  border-radius: 50px;
  text-decoration: none;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 1rem;
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.2);
  transition: all 0.4s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  z-index: 10;
}

.offres-button i {
  color: var(--accent-color, #ff6b35);
  font-size: 1.2rem;
}

.offres-button:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  border-color: var(--accent-color, #ff6b35);
}

.offres-button:hover i {
  transform: scale(1.1);
}

/* Responsive */
@media (max-width: 768px) {
  .offres-button {
    position: static;
    display: inline-flex;
    margin: 20px auto;
    padding: 10px 20px;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .offres-button span {
    display: none; /* Cache le texte sur très petits écrans */
  }

  .offres-button {
    padding: 12px 15px;
    font-size: 0.8rem;
  }

  .offres-button i {
    font-size: 1.1rem;
    margin-right: 0;
  }
}
