body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
}

header img {
  width: 100%;
  height: auto;
}

h1 {
  margin: 20px 0;
  font-size: 2em;
}

.search-bar {
  margin-bottom: 40px;
}

.search-bar input[type="text"] {
  padding: 10px;
  width: 250px;
  font-size: 1em;
}

.search-bar button {
  padding: 10px;
  font-size: 1em;
  cursor: pointer;
}

.banner-container {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 250px;
}

.banner-container img {
  width: 100%;
  height: auto;
  max-height: 350px;
  object-fit: cover;
}

.banner-text {
  position: absolute;
  top: 50%;
  left: 20%;
  color: red;
  font-family: "Libre Franklin", "Helvetica Neue", helvetica, arial, sans-serif;
  font-weight: 300;
  letter-spacing: 0.1em;
  line-height: 1.6;
}

.banner-text h1 {
  font-size: 3rem;
  margin: 0;
}

.banner-text p {
  font-size: 1.4rem;
  margin-top: 10px;
}

footer {
  background-color: #e0e0e0;
  text-align: center;
  font-weight: bold;
  margin-top: 100px;
}

.footer-icons img {
  width: 60px;
  height: auto;
  margin: 0 10px;
  transition: transform 0.3s;
}

.footer-icons a:hover img {
  transform: scale(1.2);
}

.custom-navbar {
  background-color: #e0e0e0;
  border-radius: 15px;
  padding: 10px 30px;
  margin: 20px auto;
  max-width: 70%;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 15px;
}

.navbar .nav-link {
  text-decoration: none;
  color: #333;
  font-weight: bold;
  font-size: 1.2em;
  padding: 8px 12px;
  transition: color 0.2s;
}

.navbar .nav-link:hover {
  color: #ff4c4c;
}

.navbar-brand i.fa-house {
  font-size: 1.5em;
  color: #333;
  transition: color 0.2s;
}

.navbar-brand i.fa-house:hover {
  color: #ff4c4c;
}

.nav-right {
  font-size: 1.1em;
}

.nav-right a {
  margin: 0 4px;
  color: #333;
  text-decoration: none;
}

.nav-right a:hover {
  color: #ff4c4c;
}

.page-item.active .page-link {
    color: black;
    background-color: #e0e0e0;
    border-color: #e0e0e0;
}

.page-item.active .page-link:hover {
    background-color: #aeaeae;
    border-color: #aeaeae;
    color: white;
}

.btn {
    color: black;
    background-color: #e0e0e0;
    border-color: #e0e0e0;
}

.btn:hover {
    background-color: #aeaeae;
    border-color: #aeaeae;
    color: white;
}

.filter-select {
  min-width: 220px;
  padding: 6px 10px;
  font-size: 1em;
  border: 1px solid #ccc;
  border-radius: 5px;
  background-color: white;
}

.filter-bloc {
    display: inline-block;
    margin-right: 20px;
    vertical-align: top;
}

.filter-label {
    display: block;
    margin-bottom: 5px;
}

.accordion-button {
    background-color: #e0e0e0;
    border: 1px solid #aeaeae;
    box-shadow: none;
}

.accordion-button:not(.collapsed) {
  background-color: #aeaeae;
  color: black;
  box-shadow: none;
}

.accordion-button:focus {
  box-shadow: none;
  border-color: #aeaeae;
}

.accordion-button::after,
.accordion-button:not(.collapsed)::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23333'%3e%3cpath d='M5.5 8.5a1 1 0 0 1 1.4 0L12 13.1l5.1-4.6a1 1 0 1 1 1.4 1.4l-5.8 5.3a1 1 0 0 1-1.4 0L5.5 9.9a1 1 0 0 1 0-1.4z'/%3e%3c/svg%3e");
  background-size: 2rem 1.6rem;
  background-repeat: no-repeat;
  background-position: center;
  content: "";
}

.accordion-button:not(.collapsed)::after {
  transform: rotate(-180deg);
}

.sheet-info{
    padding-top: 50px;
}

.custom-card {
  border-radius: 20px;
  padding: 20px;
  color: #000;
  transition: transform 0.3s ease;
  border: none;
}

.custom-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.custom-card .card-title {
  font-weight: bold;
  font-size: 1.3em;
}

.bg-construction {
  background-color: #ad1457;
  opacity: 0.85;
}

.bg-expression {
  background-color: #f8c7c7;
}

.bg-function {
  background-color: #e1ddde;
}

.bg-guide {
  background-color: #9c8f94;
  opacity: 0.85;
}

.btn-outline-secondary {
  color: #333;
  background-color: #f8f9fa;
}

.btn-outline-secondary:hover {
  background-color: #ddd;
  color: #000;
}

.dropdown-menu {
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.dropdown-item:hover {
  background-color: #ffefef;
  color: black;
}

.hidden {
  display: none;
}

.voir-plus-link {
  color: #7488a2;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  font-weight: bold;
  margin-top: 0.3em;
  margin-bottom: 1em;
  padding-left: 20px;
  cursor: pointer;
  transition: color 0.3s ease, transform 0.3s ease;
}

.voir-plus-text {
  margin-right: 8px;
}

.voir-plus-icon {
  font-size: 1.2em;
  transition: transform 0.3s ease;
}

.voir-plus-link:hover {
  color: #0056b3;
  transform: translateX(3px);
}

.voir-plus-link:hover .voir-plus-icon {
  transform: rotate(45deg);
}

.accordion-function-style{
    background-color: #f9f9f9;
    border: none;
}

  .badge-toggle {
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 1rem;
    padding: 0.5em 1em;
    display: inline-block;
    margin-bottom: 0.5em;
    transition: all 0.2s ease;
  }

  .badge-toggle.selected {
    border-color: #0d6efd;
    background-color: #e7f1ff;
  }

  .badge-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5em;
  }

  .hidden-checkbox {
    position: absolute;
    opacity: 0;
    pointer-events: none;
  }

  .badge-toggle {
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
  }

  .badge-toggle:hover {
    background-color: #b6d4fe;
  }

  .badge-toggle.selected:hover {
    filter: brightness(0.95);
  }

.bar-container {
    position: relative;
    width: 100%;
    max-width: 400px;
    height: 24px;
    left: 10px;
    background: linear-gradient(to right, #fde0e0, #e74c3c, #7b1e1e);
    border-radius: 12px;
    margin: 1em 0;
    }

.cursor {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    background-color: #333;
    border: 2px solid white;
    border-radius: 50%;
    z-index: 2;
    }

.cursor-label {
    position: absolute;
    transform: translate(-50%, 150%);
    background: #333;
    color: white;
    padding: 2px 6px;
    font-size: 0.75rem;
    border-radius: 4px;
    white-space: nowrap;
    z-index: 3;
    }

.info-container {
  position: relative;
  display: inline-block;
}

.info-icon {
  margin-left: 8px;
  cursor: help;
  font-weight: bold;
  color: #007bff;
  user-select: none;
}

.tooltip-text {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  top: 50%;
  left: 130%;
  transform: translateY(-50%);
  background-color: #f0f0f0;
  color: #333;
  padding: 8px;
  border-radius: 6px;
  border: 1px solid #ccc;
  width: 250px;
  z-index: 1000;
  box-shadow: 0px 2px 6px rgba(0,0,0,0.2);
  transition: opacity 0.3s ease;
}

.info-container:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}