body {
      font-family: 'Segoe UI', Roboto, sans-serif;
      margin: 0;
      padding: 20px;
      background: #f9f9f9;
      color: #333;
    }
    h1 {
      text-align: center;
      color: #2c3e50;
    }
    h3 {
      text-align: center;
      color: #2c3e50 !important;
      text-decoration: underline !important;
      margin-top: 10px;
      margin-bottom: 10px;
    }
    h4 {
        text-align: center;
        margin-bottom: 5px;
        margin-top: 5px;
    }
    #q {
      display: block;
      margin: 20px auto;
      padding: 10px 15px;
      width: 80%;
      max-width: 400px;
      border: 1px solid #ccc;
      border-radius: 8px;
      font-size: 16px;
    }
    #container {
      display: grid;
      grid-template-columns: 1fr 2fr;
      gap: 20px;
      margin-top: 20px;
    }
    #list {
      list-style: none;
      padding: 0;
      margin: 0;
      max-height: 70vh;
      overflow-y: auto;
      border: 1px solid #ddd;
      border-radius: 8px;
      background: #fff;
    }
    #list li {
      padding: 10px 15px;
      border-bottom: 1px solid #eee;
      cursor: pointer;
      transition: background 0.2s;
    }
    #list li:hover {
      background: #f0f0f0;
    }
    #details {
      padding: 20px;
      background: #fff;
      border-radius: 8px;
      border: 1px solid #ddd;
      min-height: 200px;
      box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    }
    #details h2 {
      margin-top: 0;
      color: #2980b9;
    }
    #details p {
      background: #f8f8f8;
      padding: 10px;
      border-radius: 6px;
      border: 1px solid #e0e0e0;
    }
    #alpha-filter {
  display: flex;
  flex-wrap: wrap;       /* retour à la ligne si trop de boutons */
  justify-content: center;
  margin: 15px 0;
  gap: 6px;
  }
  #alpha-filter button {
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s, color 0.2s;
  }

    #alpha-filter button:hover {
      background: #2980b9 !important;
      color: white;
      border-color: black;
      font-weight: bold;
    }
    /*bloc des filtres*/
    #container {
      display: grid;
      grid-template-columns: 1fr 2fr; /* par défaut : liste + détails */
      gap: 20px;
      margin-top: 20px;
      align-items: start;
    }
    #container.with-filters {
      grid-template-columns: 1fr 2fr 1fr; /* quand filtres visibles */
    }
    #filters {
      display: none; /* masqué par défaut */
      padding: 20px;
      background: #fff;
      border-radius: 8px;
      border: 1px solid #ddd;
      box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    }
    #filters label {
      display: block;
      margin: 10px 0 5px;
      font-weight: bold;
    }
    #filters select {
      width: 100%;
      padding: 6px;
      border-radius: 6px;
      border: 1px solid #ccc;
    }
    #toggle-filters {
      margin: 10px 0;
      padding: 8px 12px;
      border: 1px solid #ccc;
      border-radius: 6px;
      background: #2980b9;
      color: white;
      cursor: pointer;
      font-size: 14px;
    }
    #toggle-filters:hover {
      background: #1f5d82;
    }
    /*style pour la frise date*/
    #date-slider-container {
      display: flex;
      align-items: center;
      gap: 10px;
      margin: 10px 0;
    }
    #filter-date {
      flex: 1;
      -webkit-appearance: none;
      height: 6px;
      border-radius: 3px;
      background: #ddd;
      outline: none;
    }
    #filter-date::-webkit-slider-thumb {
      -webkit-appearance: none;
      appearance: none;
      width: 14px;
      height: 14px;
      border-radius: 50%;
      background: #2980b9;
      cursor: pointer;
    }
    #filter-date::-moz-range-thumb {
      width: 14px;
      height: 14px;
      border-radius: 50%;
      background: #2980b9;
      cursor: pointer;
    }
    #date-value {
      min-width: 50px;
      text-align: center;
      font-weight: bold;
    }
    #reset-filters {
      margin-top: 15px;
      padding: 8px 12px;
      border: 1px solid #ccc;
      border-radius: 6px;
      background: #e74c3c;
      color: white;
      cursor: pointer;
      font-size: 14px;
    }
    #reset-filters:hover {
      background: #c0392b;
    }