
    body {
      font-family: Arial, sans-serif;
      background-color: #f8f9fa;
      margin: 40px;
      color: #333;
    }

    h1 {
      text-align: center;
      color: #444;
    }

    table {
      border-collapse: collapse;
      width: 100%;
      margin: 0 auto;
      background-color: #fff;
      box-shadow: 0 2px 10px rgba(0,0,0,0.1);
      border-radius: 10px;
      overflow: hidden;
    }

    thead {
      background-color: #007BFF;
      color: white;
    }

    th, td {
      padding: 12px 16px;
      text-align: left;
	  width: 5%;
    }
  
  td:nth-child(1) { /* Titre */
	  width: 10%;
  }
  
  td:nth-child(2) { /* Année */
	  width: 5%;
  }
  
  td:nth-child(3) { /* Objet */
	  width: 30%;
  }
  
  td:nth-child(4) { /* OS */
	  width: 5%;
  }
  
  td:nth-child(5) { /* Commentaire */
	  width: 25%;
  }
  
  td:nth-child(6) { /* Crosslud */
	  width: 5%;
  }
  
  td:nth-child(7) { /* img 1 */
	  width: 10%;
  }
  
  td:nth-child(8) { /* img 2 */
	  width: 10%;
  }

    th {
      user-select: none;
    }

    th:nth-child(-n+3):hover {
      background-color: #0056b3;
    }

    tbody tr:nth-child(even) {
      background-color: #f2f2f2;
    }

    tbody tr:hover {
      background-color: #e9f3ff;
    }

    .miniature img {
      width: 200px;
    }

    #zoomPreview {
      position: fixed;
      display: none;
      max-width: 600px;
      max-height: 80vh;
      border: 2px solid #ccc;
      background: white;
      box-shadow: 0 0 10px rgba(0,0,0,0.4);
      z-index: 9999;
      pointer-events: none;
    }

    nav {
      text-align: center;
      margin-bottom: 20px;
    }

    nav a {
      margin: 0 10px;
      text-decoration: none;
      color: #007BFF;
      font-weight: bold;
    }

    nav a:hover {
      text-decoration: underline;
    }
	nav a.active {
  color: #fff;              /* Texte blanc */
  background-color: #007BFF; /* Fond bleu */
  font-weight: bold;         /* Texte en gras */
  padding: 5px 10px;
  border-radius: 4px;
  text-decoration: none;    /* Supprimer le soulignement */
}

/* Optionnel : ajouter un effet au survol pour les liens non actifs */
nav a:not(.active):hover {
  color: #007BFF;
  text-decoration: underline;
  cursor: pointer;
}
#backToTop {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background-color: #007BFF;
  color: white;
  font-size: 24px;
  text-align: center;
  line-height: 50px;
  border-radius: 50%;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  cursor: pointer;
  display: none; /* caché au départ */
  z-index: 1000;
  transition: background-color 0.3s ease;
}

#backToTop:hover {
  background-color: #0056b3;
}

#nbLignes {
	margin-left: 20px; 
	font-size: 16px;
}

  ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

a {
  color: #007BFF;
  text-decoration: none;
}

a:hover,
a:focus {
  text-decoration: underline;
}

@media (max-width: 768px) {
  body {
    margin: 10px;
    font-size: 14px;
  }
  
	#nbLignes {
		font-size: 14px;
	}

  h1 {
    font-size: 20px;
    margin-bottom: 20px;
  }

  nav a {
    display: inline-block;
    margin: 5px 5px;
    padding: 6px 8px;
    font-size: 14px;
  }

  #recherche {
    width: 100%;
    max-width: 100%;
    font-size: 14px;
  }

  table {
    width: 100%;
    border: none;
  }

  thead {
    display: table;
    width: 100%;
    background-color: #007BFF;
    color: white;
    font-size: 14px;
    position: sticky;
    top: 0;
    z-index: 2;
  }

  th {
    padding: 10px;
    cursor: pointer;
    text-align: left;
  }

  tbody,
  tr,
  td {
    display: block;
    width: 100%;
  }

  tr {
    border: 1px solid #ddd;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.05);
  }
  
  th:nth-child(4) {
    display: none;
  }
  th:nth-child(5) {
    display: none;
  }
  th:nth-child(6) {
    display: none;
  }

  td {
    padding: 0;
  }

  td:first-child {
    font-weight: bold;
    padding-left: 10px;
  }

  td:nth-child(2) {
    font-style: italic;
    padding-left: 10px;
  }

  td:nth-child(3) {
    font-size: 12px;
    color: #666;
    padding: 0px 0px 10px 10px;
  }

  td:nth-child(4) {
    padding: 0px 0px 0px 10px;
  }

  td:nth-child(5) {
    display: none;
  }

  td:nth-child(6) {
    display: none;
  }

  .miniature img {
    width: 100%;
    height: auto;
    max-width: 300px;
    display: block;
    margin: 10px auto;
  }

  #zoomPreview {
    max-width: 90%;
    max-height: 70vh;
  }

  #backToTop {
    width: 40px;
    height: 40px;
    font-size: 20px;
    line-height: 40px;
  }

}