/* ------------------------------------ *\
  CONTENTS
\* ------------------------------------ */

/**
 * CONTENTS..............You’re reading it!
 * ONGLETS ................................
*/

/* ------------------------------------ *\
  ==ONGLETS
\* ------------------------------------ */
.onglets {
  max-width: var(--max);
  margin: clamp(28px, 4vw, 48px) auto 0;
  padding-inline: var(--pad);
}

.onglets-barre {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-bottom: 1px solid rgb(17 17 17 / 25%);
}

.onglet-btn {
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 16px 22px;
  font-family: var(--font-titre);
  font-weight: 500;
  font-size: clamp(0.98rem, 1.4vw, 1.15rem);
  color: rgb(17 17 17 / 55%);
  position: relative;
  transition: color 0.25s ease;
  text-align: left;
}

.onglet-btn::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  background: var(--bleu);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}

.onglet-btn[aria-selected='true'] {
  color: var(--noir);
}

.onglet-btn[aria-selected='true']::after {
  transform: scaleX(1);
}

.onglet-panneau {
  padding: clamp(24px, 3vw, 36px) 0 0;
  max-width: 80ch;
}

.onglet-panneau[hidden] {
  display: none;
}

.onglet-panneau h3 {
  font-family: var(--font-titre);
  font-weight: 500;
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  line-height: 1.1;
  margin: 0 0 18px;
}

.onglet-panneau p {
  margin: 0 0 14px;
}

.onglet-panneau ul {
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.onglet-panneau li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
}

.onglet-panneau li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.58em;
  width: 7px;
  height: 7px;
  background: var(--bleu);
}
