/* 
 * NAVBAR CSS AMÉLIORÉ
 * Version optimisée pour une meilleure responsivité et un design moderne
 * Avec adaptation spéciale pour mobile : éléments du dropdown affichés directement
 */

/* Styles généraux du body */
body {
  margin: 0;
  padding: 0;
  font-family: 'Aptos Narrow', sans-serif;
  background-image: linear-gradient(to bottom right, #198754, #145c2a);
}

a {
  text-decoration: none;
}

/* NAVBAR - Design moderne avec transitions fluides */
nav.navbar {
  background: linear-gradient(90deg, #198754, #145c2a);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
  padding: 0.7rem 1.2rem;
  transition: all 0.3s ease;
}

.navbar-brand {
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff !important;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
  letter-spacing: 0.5px;
  transition: transform 0.2s ease;
}

.navbar-brand:hover {
  transform: scale(1.02);
}

/* Amélioration du bouton hamburger */
.navbar-toggler {
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 4px;
  padding: 0.4rem 0.6rem;
  transition: all 0.2s ease;
  outline: none !important;
}

.navbar-toggler:hover, 
.navbar-toggler:focus {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: #fff;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Liens de navigation avec effets de transition */
.nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
  padding: 0.6rem 1.2rem;
  margin: 0 0.2rem;
  border-radius: 6px;
  font-weight: 500;
  position: relative;
  transition: all 0.3s ease;
}

.nav-link:hover {
  color: #fff !important;
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.nav-link.active {
  background-color: rgba(255, 255, 255, 0.15);
  color: #fff !important;
  font-weight: 600;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Menu déroulant amélioré */
.dropdown-menu {
  background-color: #ffffff;
  border: none;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  padding: 0.5rem;
  margin-top: 0.5rem;
  animation: fadeIn 0.2s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.dropdown-item {
  color: #198754;
  padding: 0.7rem 1.2rem;
  border-radius: 5px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.dropdown-item:hover {
  background-color: rgba(25, 135, 84, 0.1);
  color: #198754;
  transform: translateX(3px);
}

.dropdown-item.text-danger {
  color: #dc3545 !important;
}

.dropdown-item.text-danger:hover {
  background-color: rgba(220, 53, 69, 0.1);
  color: #dc3545 !important;
}

/* Espacement des éléments de navigation */
.navbar-nav .nav-item {
  margin: 0 0.2rem;
}

/* Amélioration pour les écrans mobiles et tablettes */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background-color: rgba(20, 92, 42, 0.97);
    border-radius: 0 0 12px 12px;
    padding: 1rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    max-height: 80vh;
    overflow-y: auto;
    margin-top: 0.5rem;
  }

  .navbar-nav {
    padding: 0.5rem 0;
  }

  .navbar-nav .nav-item {
    margin: 0.3rem 0;
  }

  .nav-link {
    padding: 0.8rem 1rem;
    text-align: left;
    border-radius: 8px;
  }

  /* Masquer le dropdown et afficher directement ses éléments */
  .nav-item.dropdown > a.dropdown-toggle {
    display: none !important;
  }
  
  /* Afficher les éléments du dropdown directement dans la navigation */
  .nav-item.dropdown .dropdown-menu {
    display: block !important;
    position: static;
    float: none;
    width: 100%;
    background-color: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    margin: 0;
    animation: none;
  }
  
  /* Style des éléments du dropdown affichés directement */
  .nav-item.dropdown .dropdown-item {
    color: rgba(255, 255, 255, 0.9) !important;
    padding: 0.8rem 1rem;
    margin: 0.3rem 0;
    border-radius: 8px;
    background-color: rgba(15, 64, 33, 0.4);
  }
  
  .nav-item.dropdown .dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff !important;
    transform: translateY(-2px);
  }

  .dropdown-item.text-danger {
    color: #ff8d85 !important;
    background-color: rgba(153, 15, 29, 0.596) !important;
  }

  .dropdown-item.text-danger:hover {
    background-color: rgba(220, 53, 53, 0.503) !important;
  }
}

/* Optimisations pour très petits écrans */
@media (max-width: 575.98px) {
  .navbar-brand {
    font-size: 1.4rem;
    max-width: 70%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  nav.navbar {
    padding: 0.6rem 1rem;
  }
}

/* Animation du menu déroulant utilisateur (desktop uniquement) */
@media (min-width: 992px) {
  .dropdown-toggle::after {
    transition: transform 0.2s ease;
  }

  .dropdown-toggle[aria-expanded="true"]::after {
    transform: rotate(180deg);
  }
}

/* Effet de focus pour l'accessibilité */
.nav-link:focus,
.dropdown-item:focus,
.navbar-toggler:focus {
  outline: 2px solid rgba(255, 255, 255, 0.5);
  outline-offset: 2px;
}

/* Amélioration de l'accessibilité pour le contraste */
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}

/* STYLES POUR LES PAGES SHARE ET SHORE CODE */

/* Styles pour la page de partage de code */
#main-content-share-code {
  background-color: #000;
  padding-top: 1em;
  padding-left: 8px;
  font-family: 'DM Sans', sans-serif;
  position: relative;
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
  margin-bottom: 2rem;
}

#code { 
  width: 100%;
  min-height: 400px;
  border: none;
  outline: 0;
  color: white;
  resize: none;
  font-size: 14px;
  overflow: hidden;
  background-color: #000;
  padding: 1rem;
  font-family: 'Fira Code', monospace, Consolas, Monaco, 'Andale Mono', monospace;
}

/* Styles pour la page d'affichage de code */
#main-content-show-code {
  background-color: #d1d1d1;
  padding: 2rem;
  font-family: 'Fira Code', monospace;
  position: relative;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  margin-bottom: 2rem;
}

#main-content-show-code .btn-group {
  margin-top: 1rem;
}

pre#show {
  background-color: transparent;
  font-size: 0.95rem;
  line-height: 1.5;
  overflow-x: auto;
  white-space: pre;
  padding: 1rem;
  border: none;
  border-radius: 5px;
  min-height: 400px;
  color: #333;
}

pre.prettyprint {
  border-left: 3px solid #198754;
}

/* Styles communs pour les boutons de navigation dans les pages de code */
.btn-group.nav {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 10;
}

/* Correction pour éviter les conflits avec la classe .nav utilisée dans les boutons */
.btn-group.nav {
  display: flex;
  flex-direction: row;
  padding-left: 0;
  margin-bottom: 0;
  list-style: none;
  background-color: transparent;
}

.btn-group.nav .btn {
  margin-left: 5px;
  border-radius: 4px;
  font-weight: 500;
  padding: 0.5rem 1rem;
  transition: all 0.2s ease;
}

/* Styles pour les formulaires */
.custom-input {
  background-color: #f8f9fa;
  border: 1px solid #ced4da;
  border-radius: 0.5rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.custom-input:focus {
  border-color: #198754;
  box-shadow: 0 0 0 0.2rem rgba(25, 135, 84, 0.25);
  background-color: #fff;
}

.form-control:focus,
.form-select:focus {
  border-color: #198754;
  box-shadow: 0 0 0 0.2rem rgba(25, 135, 84, 0.25);
}

/* Styles pour les images */
.img-fluid {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Styles pour Parsley validation */
input.parsley-success,
select.parsley-success,
textarea.parsley-success {
  color: #468847;
  background-color: #DFF0D8;
  border: 1px solid #D6E9C6;
}

input.parsley-error,
select.parsley-error,
textarea.parsley-error {
  color: #B94A48;
  background-color: #F2DEDE;
  border: 1px solid #EED3D7;
}

.parsley-errors-list {
  margin: 2px 0 3px;
  padding: 0;
  list-style-type: none;
  font-size: 0.9em;
  line-height: 0.9em;
  opacity: 0;
  color: #B94A48;
  transition: all .3s ease-in;
  -o-transition: all .3s ease-in;
  -moz-transition: all .3s ease-in;
  -webkit-transition: all .3s ease-in;
}

.parsley-errors-list.filled {
  opacity: 1;
}

/* Styles pour l'en-tête principale */
.main-header {
  min-height: 80vh;
  text-shadow: 1px 1px 2px #00000088;
}

.main-header h1 {
  font-size: 3rem;
}

.main-header p {
  font-size: 1.5rem;
  max-width: 600px;
}
/*liste des utilisateurs*/
/* ===== LISTE DES UTILISATEURS - CSS AMÉLIORÉ ===== */

/* Variables CSS pour une meilleure maintenabilité */
:root {
  --primary-color: #198754;
  --primary-hover: #157347;
  --bg-light: #f8f9fa;
  --bg-white: #ffffff;
  --border-color: #dee2e6;
  --text-dark: #212529;
  --text-muted: #6c757d;
  --shadow-light: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.15);
  --border-radius: 16px;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Container principal pour la liste des utilisateurs */
.users-container {
  padding: 2rem 0;
}

.users-container h1 {
  color: var(--text-dark);
  font-weight: 700;
  margin-bottom: 2.5rem;
  text-align: center;
  position: relative;
}

.users-container h1::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--primary-hover));
  border-radius: 2px;
}

/* Grille responsive pour les utilisateurs */
.users.row {
  margin-bottom: 2rem;
}

/* Bloc utilisateur principal */
.user-block {
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 2rem 1.5rem;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-light);
  height: 100%;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

/* Effet de survol amélioré */
.user-block:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-hover);
  background: var(--bg-white);
  border-color: var(--primary-color);
}

/* Effet de focus pour l'accessibilité */
.user-block:focus-within {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Animation de l'arrière-plan au survol */
.user-block::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(25, 135, 84, 0.05), transparent);
  transition: left 0.6s ease;
  z-index: 1;
}

.user-block:hover::before {
  left: 100%;
}

/* Contenu du bloc utilisateur */
.user-block > * {
  position: relative;
  z-index: 2;
}

/* Conteneur de l'avatar */
.user-avatar-container {
  position: relative;
  display: inline-block;
  margin-bottom: 1.5rem;
}

/* Image avatar améliorée */
.user-block img {
  border: 4px solid var(--primary-color);
  padding: 4px;
  background: var(--bg-white);
  transition: var(--transition-smooth);
  box-shadow: 0 4px 12px rgba(25, 135, 84, 0.2);
}

.user-block:hover img {
  border-color: var(--primary-hover);
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(25, 135, 84, 0.3);
}

/* Effet de halo autour de l'avatar */
.user-avatar-container::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 120px;
  border: 2px solid var(--primary-color);
  border-radius: 50%;
  opacity: 0;
  transition: var(--transition-smooth);
  animation: pulse 2s infinite;
}

.user-block:hover .user-avatar-container::after {
  opacity: 0.3;
  transform: translate(-50%, -50%) scale(1.2);
}

@keyframes pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.3; }
  50% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.1; }
}

/* Nom d'utilisateur stylisé */
/* ===== LISTE DES UTILISATEURS - CSS CORRIGÉ ===== */

/* Variables CSS pour une meilleure maintenabilité */
:root {
  --primary-color: #198754;
  --primary-hover: #157347;
  --bg-light: #f8f9fa;
  --bg-white: #ffffff;
  --border-color: #dee2e6;
  --text-dark: #212529;
  --text-muted: #6c757d;
  --shadow-light: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.15);
  --border-radius: 16px;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Container principal pour la liste des utilisateurs */
.users-container {
  padding: 2rem 0;
}

.users-container h1 {
  color: var(--text-dark);
  font-weight: 700;
  margin-bottom: 2.5rem;
  text-align: center;
  position: relative;
}

.users-container h1::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--primary-hover));
  border-radius: 2px;
}

/* Grille responsive pour les utilisateurs */
.users.row {
  margin-bottom: 2rem;
}

/* Bloc utilisateur principal */
.user-block {
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 2rem 1.5rem;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-light);
  height: 100%;
  position: relative;
  overflow: hidden;
  /* CORRECTION : Retirer cursor: pointer car les liens gèrent déjà cela */
}

/* Effet de survol amélioré */
.user-block:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-hover);
  background: var(--bg-white);
  border-color: var(--primary-color);
}

/* Effet de focus pour l'accessibilité */
.user-block:focus-within {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* CORRECTION : Animation de l'arrière-plan au survol - pointer-events: none pour éviter l'interférence */
.user-block::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(25, 135, 84, 0.05), transparent);
  transition: left 0.6s ease;
  z-index: 0; /* CORRECTION : z-index réduit */
  pointer-events: none; /* CORRECTION : Empêche l'interférence avec les clics */
}

.user-block:hover::before {
  left: 100%;
}

/* CORRECTION : Contenu du bloc utilisateur avec z-index plus élevé */
.user-block > * {
  position: relative;
  z-index: 10; /* CORRECTION : z-index plus élevé pour garantir la priorité */
}

/* CORRECTION : S'assurer que tous les liens sont cliquables */
.user-block a {
  position: relative;
  z-index: 15; /* CORRECTION : z-index encore plus élevé pour les liens */
  pointer-events: auto; /* CORRECTION : Garantir que les liens sont cliquables */
}

/* Conteneur de l'avatar */
.user-avatar-container {
  position: relative;
  display: inline-block;
  margin-bottom: 1.5rem;
  z-index: 10;
}

/* Image avatar améliorée */
.user-block img {
  border: 4px solid var(--primary-color);
  padding: 4px;
  background: var(--bg-white);
  transition: var(--transition-smooth);
  box-shadow: 0 4px 12px rgba(25, 135, 84, 0.2);
  position: relative;
  z-index: 15; /* CORRECTION : z-index pour les images */
}

.user-block:hover img {
  border-color: var(--primary-hover);
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(25, 135, 84, 0.3);
}

/* CORRECTION : Effet de halo autour de l'avatar - pointer-events: none */
.user-avatar-container::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 120px;
  border: 2px solid var(--primary-color);
  border-radius: 50%;
  opacity: 0;
  transition: var(--transition-smooth);
  animation: pulse 2s infinite;
  z-index: 5;
  pointer-events: none; /* CORRECTION : Empêche l'interférence */
}

.user-block:hover .user-avatar-container::after {
  opacity: 0.3;
  transform: translate(-50%, -50%) scale(1.2);
}

@keyframes pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.3; }
  50% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.1; }
}

/* Nom d'utilisateur stylisé */
.user-block-username {
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 10;
}

.user-block-username a {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-dark);
  text-decoration: none;
  transition: var(--transition-smooth);
  position: relative;
  display: inline-block;
  z-index: 15; /* CORRECTION : z-index élevé pour les liens */
}

.user-block-username a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-color), var(--primary-hover));
  transition: width 0.3s ease;
  z-index: 16;
}

.user-block-username a:hover {
  color: var(--primary-color);
  transform: translateY(-2px);
}

.user-block-username a:hover::after {
  width: 100%;
}

/* Badge de statut (optionnel) */
.user-status-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 12px;
  height: 12px;
  background: var(--primary-color);
  border: 2px solid var(--bg-white);
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  z-index: 10;
  pointer-events: none; /* CORRECTION : Empêche l'interférence */
}

/* Responsive Design */
@media (max-width: 1200px) {
  .user-block {
    padding: 1.5rem 1rem;
  }
}

@media (max-width: 768px) {
  .users-container {
    padding: 1rem 0;
  }
  
  .users-container h1 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
  }
  
  .user-block {
    padding: 1.5rem;
    margin-bottom: 1rem;
  }
  
  .user-block img {
    width: 80px;
    height: 80px;
  }
  
  .user-avatar-container::after {
    width: 100px;
    height: 100px;
  }
  
  .user-block-username a {
    font-size: 1.1rem;
  }
}

@media (max-width: 576px) {
  .user-block {
    padding: 1rem;
  }
  
  .user-block img {
    width: 70px;
    height: 70px;
  }
  
  .user-avatar-container::after {
    width: 90px;
    height: 90px;
  }
  
  .user-block-username a {
    font-size: 1rem;
  }
}

/* Animation d'apparition des blocs */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.user-block {
  animation: fadeInUp 0.6s ease forwards;
}

/* Délai d'animation pour chaque bloc */
.user-block:nth-child(1) { animation-delay: 0.1s; }
.user-block:nth-child(2) { animation-delay: 0.2s; }
.user-block:nth-child(3) { animation-delay: 0.3s; }
.user-block:nth-child(4) { animation-delay: 0.4s; }

/* Mode sombre (optionnel) */
@media (prefers-color-scheme: dark) {
  :root {
    --bg-light: #2d3748;
    --bg-white: #1a202c;
    --border-color: #4a5568;
    --text-dark: #f7fafc;
    --text-muted: #a0aec0;
  }
  
  .user-block {
    background: var(--bg-light);
    border-color: var(--border-color);
  }
  
  .user-block:hover {
    background: var(--bg-white);
  }
}

/* Accessibilité améliorée */
@media (prefers-reduced-motion: reduce) {
  .user-block,
  .user-block img,
  .user-block-username a {
    transition: none;
    animation: none;
  }
  
  .user-block:hover {
    transform: none;
  }
}

/* CORRECTION : Focus visible pour la navigation au clavier */
.user-block a:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
  border-radius: 4px;
  z-index: 20; /* CORRECTION : z-index très élevé pour le focus */
}

/* Amélioration pour les écrans haute résolution */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .user-block {
    border-width: 0.5px;
  }
}

/* CORRECTION : Styles spécifiques pour garantir la fonctionnalité des liens */
.user-block a:link,
.user-block a:visited,
.user-block a:hover,
.user-block a:active {
  pointer-events: auto !important;
  position: relative;
  z-index: 15 !important;
}



/* Responsive Design */
@media (max-width: 1200px) {
  .user-block {
    padding: 1.5rem 1rem;
  }
}

@media (max-width: 768px) {
  .users-container {
    padding: 1rem 0;
  }
  
  .users-container h1 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
  }
  
  .user-block {
    padding: 1.5rem;
    margin-bottom: 1rem;
  }
  
  .user-block img {
    width: 80px;
    height: 80px;
  }
  
  .user-avatar-container::after {
    width: 100px;
    height: 100px;
  }
  
  .user-block-username a {
    font-size: 1.1rem;
  }
}

@media (max-width: 576px) {
  .user-block {
    padding: 1rem;
  }
  
  .user-block img {
    width: 70px;
    height: 70px;
  }
  
  .user-avatar-container::after {
    width: 90px;
    height: 90px;
  }
  
  .user-block-username a {
    font-size: 1rem;
  }
}

/* Animation d'apparition des blocs */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.user-block {
  animation: fadeInUp 0.6s ease forwards;
}

/* Délai d'animation pour chaque bloc */
.user-block:nth-child(1) { animation-delay: 0.1s; }
.user-block:nth-child(2) { animation-delay: 0.2s; }
.user-block:nth-child(3) { animation-delay: 0.3s; }
.user-block:nth-child(4) { animation-delay: 0.4s; }

/* Mode sombre (optionnel) */
@media (prefers-color-scheme: dark) {
  :root {
    --bg-light: #2d3748;
    --bg-white: #1a202c;
    --border-color: #4a5568;
    --text-dark: #f7fafc;
    --text-muted: #a0aec0;
  }
  
  .user-block {
    background: var(--bg-light);
    border-color: var(--border-color);
  }
  
  .user-block:hover {
    background: var(--bg-white);
  }
}

/*pagination*/
/* Pagination stylisée */
.custom-pagination {
  justify-content: center;
  margin-top: 30px;
}

.custom-pagination .page-link {
  color: #145c2a;
  background-color: white;
  border: 1px solid #198754;
  margin: 0 4px;
  border-radius: 12px;
  padding: 8px 16px;
  font-weight: 500;
  transition: background-color 0.3s ease, color 0.3s ease;
}
.page-link{
  font-size: 25px;
}

.custom-pagination .page-link:hover {
  background-color: #198754;
  color: white;
  border-color: #145c2a;
}

.custom-pagination .page-item.active .page-link {
  background-color: #145c2a;
  border-color: #198754;
  color: white;
  font-weight: bold;
}

.custom-pagination .page-item.disabled .page-link {
  color: #ccc;
  pointer-events: none;
  background-color: #f5f5f5;
  border-color: #ddd;
}


/* Accessibilité améliorée */
@media (prefers-reduced-motion: reduce) {
  .user-block,
  .user-block img,
  .user-block-username a {
    transition: none;
    animation: none;
  }
  
  .user-block:hover {
    transform: none;
  }
}

/* Focus visible pour la navigation au clavier */
.user-block a:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Amélioration pour les écrans haute résolution */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .user-block {
    border-width: 0.5px;
  }
}



/* Pour mieux organiser la grille sur petits écrans */
@media (max-width: 768px) {
  .user-block {
    margin-bottom: 20px;
  }
}


/* Responsive pour les pages de code */
@media (max-width: 767.98px) {
  #main-content-share-code,
  #main-content-show-code {
    margin: 0 -15px;
    border-radius: 0;
  }
  
  .btn-group.nav {
    position: static;
    margin-top: 1rem;
    width: 100%;
    display: flex;
    justify-content: space-between;
  }
  
  .btn-group.nav .btn {
    flex: 1;
    margin: 0 5px;
  }
  
  pre#show {
    min-height: 300px;
  }
  
  #code {
    min-height: 300px;
  }
  @media (max-width: 767.98px) {
    .pagination {
        font-size: 0.9rem;
    }
}
}
