:root {
  --body-bg-color: #1C1F29;
  --body-text-color: #D1D5DB;
  --header-bg-color: #222634;
  --header-border-color: #3A4056;
  --logo-color: #D1D5DB;
  --logo-color-hover: #4C8BF5;
  --menu-color: #D1D5DB;
  --menu-color-hover: #4C8BF5;
  --card-bg-color: #2B3245;
  --card-border-color: #3A4056;
  --card-info-tile-color: #FFFFFF;
  --card-info-label-color: #A1AAB7;
  --card-info-item-color: #D1D5DB;
  --card-info-item-border-color: #3A4056;
  --card-info-item-focus-color: #4C8BF5;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Inter', sans-serif;
  background-color: var(--body-bg-color);
  color: var(--body-text-color);
  font-size: 13px;
}
header {
  position: sticky;
  top: 0;
  background-color: var(--header-bg-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 40px;
  border-bottom: 1px solid var(--header-border-color);
  z-index: 1000;
}
.logo {
  font-size: 22px;
  font-weight: 600;
  text-decoration: none;
  color: var(--logo-color);
  transition: color 0.3s;
}
.logo:hover {
  color: var(--logo-color-hover);
}
.menu {
  display: flex;
  gap: 30px;
}
.menu a {
  text-decoration: none;
  color: var(--menu-color);
  font-weight: 500;
  transition: color 0.3s;
}
.menu a:hover {
  color: var(--menu-color-hover);
}
main {
  padding: 0px 40px 40px 40px;
}
@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  header nav {
    margin-top: 5px;
    flex-direction: column;
    gap: 10px;
  }
  .menu {
    display: flex;
    flex-direction: initial;
    position: absolute;
    right: 35px;
    top: 10px;
  }
}
.tooltip {
  position: relative;
}
.tooltip-bottom::after {
  top: 120%;
  bottom: auto !important;
}
.tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 120%;
  left: 50%;
  transform: translateX(-50%);
  background-color: #4C8BF5;
  color: white;
  padding: 4px 8px;
  font-size: 0.75rem;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 10;
}
.tooltip:hover::after {
  opacity: 1;
}
#search-container {
  display: flex;
}
#searchForm {
  position: relative;
  width: 100%;
}
#searchInput {
  width: 100%;
  padding: 0.5rem 5rem 0.5rem 0.75rem;
  /* de l'espace à droite pour les icônes */
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
}
/* Bouton de recherche (loupe) */
.search-button {
  position: absolute;
  top: 50%;
  right: 2.5rem;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.search-icon {
  fill: #D1D5DB;
  transition: fill 0.2s ease;
}
.search-button:hover .search-icon {
  fill: #4C8BF5;
}
/* Bouton de reset (croix) */
.clear-button {
  position: absolute;
  top: 50%;
  right: 0.5rem;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.clear-icon {
  fill: #FCA5A5;
  transition: fill 0.2s ease;
}
.clear-button:hover .clear-icon {
  fill: #EF4444;
}