#loader-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(255, 255, 255, 0.5);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
}

#loader-logo {
  width: 100px;
  height: 100px;
  animation: spin 1.2s linear infinite;
}

@keyframes spin {
  100% {
    transform: rotate(360deg);
  }
}

body.loading {
  overflow: hidden;
}

body.loading {
  overflow: hidden;
}

body {
  font-family: "Roboto", sans-serif;
  margin: 0;
  background: #f7f7f7;
  color: #333;
}

header {
  background: #247b5b;
  color: white;
  padding: 10px 15px;
  text-align: center;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

header img {
  height: 100px;
}

/* BARRE DE RECHERCHE */
.search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-input-wrapper {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
}

.search-input-wrapper input[type="text"] {
  padding: 10px;
  width: 100%;
  font-size: 16px;
  border-radius: 15px;
  border: 1px solid #ccc;
  background: #fff;
  box-sizing: border-box;
  padding-right: 12px;
}

.clear-search {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 18px;
  color: #aaa;
  background: #fff;
  border-radius: 50%;
  padding: 2px 4px;
  z-index: 2;
  user-select: none;
  transition: color 0.2s, background 0.2s;
  display: none;
}

.clear-search:hover {
  color: #333;
  background: #eee;
}

.search-bar button {
  padding: 10px 20px;
  border-radius: 25px;
  border: none;
  background: #e2f0eb;
  color: black;
  font-weight: bold;
  cursor: pointer;
}

@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: center;
    padding: 15px;
    text-align: center;
  }

  header h1 {
    font-size: 20px;
    margin: 10px 0;
  }

  .search-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .search-bar button {
    width: 100%;
    margin-left: 0;
    margin-top: 10px;
  }
}

.expand-all-btn {
  padding: 10px 20px;
  background-color: #e2f0eb;
  color: black;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  font-weight: bold;
  margin-left: 10px;
  transition: background-color 0.3s;
}

.expand-all-btn:hover {
  background-color: #004488;
}

.container {
  padding: 40px 30px;
}

.plans-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.plan-icon {
  width: 20px;
  margin-right: 10px;
}

.plan-card {
  border-radius: 5px;
  cursor: pointer;
}

.plan-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  background-color: rgb(199, 212, 207);
}

.plan-card img {
  height: 30px;
  margin-right: 20px;
  margin-top: 5px;
}

.plan-details {
  flex: 1;
}

.plan-title {
  font-size: 15px;
  color: rgb(0, 94, 255);
  margin-bottom: 5px;
  text-decoration: none;
}

/* Arborescence boutons */
.toggle-btn_1 {
  cursor: pointer;
  font-size: 30px;
  color: red;
  margin-top: 10px;
  display: block;
}

.toggle-btn_2 {
  cursor: pointer;
  font-size: 25px;
  color: #247b5b;
  margin-top: 10px;
  display: block;
}

.toggle-btn_3 {
  cursor: pointer;
  font-size: 23px;
  color: black;
  margin-top: 10px;
  font-weight: bold;
  display: block;
}

.toggle-btn_4 {
  cursor: pointer;
  font-size: 20px;
  color: black;
  margin-top: 10px;
  font-weight: bold;
  display: block;
}

.toggle-btn_5 {
  cursor: pointer;
  font-size: 18px;
  color: blue;
  margin-top: 10px;
  display: block;
}

.toggle-btn_6 {
  cursor: pointer;
  font-size: 16px;
  color: blue;
  margin-top: 10px;
  display: block;
}

.toggle-btn_7 {
  cursor: pointer;
  font-size: 14px;
  color: blue;
  margin-top: 10px;
  display: block;
}

.toggle-btn_8 {
  cursor: pointer;
  font-size: 12px;
  color: blue;
  margin-top: 10px;
  display: block;
}

/* Fin Arborescence boutons */

.nested {
  display: none;
  margin-left: 20px;
}

.nested.open {
  display: block;
}

/* LIENS */
a {
  text-decoration: none;
  color: inherit;
  margin-bottom: 10px;
}

.icon-link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  margin-right: 10px;
}

.icon-link i {
  margin-right: 8px;
  font-size: 16px;
}

.icon-link:hover {
  color: rgb(255, 0, 0);
  transform: scale(1.1);
  transition: transform 0.2s, color 0.2s;
}

/* Animation de sélection */
@keyframes bounceHighlight {
  0% {
    transform: translateY(0);
  }

  20% {
    transform: translateY(-10px);
  }

  40% {
    transform: translateY(0);
  }

  60% {
    transform: translateY(-5px);
  }

  80% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(0);
  }
}

.highlighted {
  background-color: rgba(17, 55, 222, 0.36);
  border-radius: 10px;
  transition: background-color 20s ease;
  animation: bounceHighlight 1s cubic-bezier(0.1, -0.6, 0.2, 0);
  display: inline-flex;
  color: #f7f7f7;
}

.group-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
}

/*  Bouton > Section */

.expand-all-btn_2 {
  background-color: #e2f0eb;
  color: black;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s;
}

.expand-all-btn_2:hover {
  background-color: #004488;
}
