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

/**
 * CONTENTS..............You’re reading it!
 * ACCORDÉONS .............................
*/

/* ------------------------------------ *\
  ==ACCORDÉONS
\* ------------------------------------ */
.projets {
  max-width: var(--max);
  margin: clamp(40px, 6vw, 70px) auto 0;
  padding-inline: var(--pad);
}

.projets-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(28px, 4vw, 56px);
}

.acc {
  border-top: 1px solid rgb(17 17 17 / 20%);
}

.acc:last-child,
.acc:nth-last-child(2) {
  border-bottom: 1px solid rgb(17 17 17 / 20%);
}

.acc-btn {
  width: 100%;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 0;
  font-family: var(--font-titre);
  font-weight: 500;
  font-size: clamp(1.15rem, 1.9vw, 1.5rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--noir);
  transition: color 0.25s ease;
}

.acc-btn:hover {
  color: var(--bleu-roi);
}

.acc-plus {
  position: relative;
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  margin-top: 4px;
}

.acc-plus::before,
.acc-plus::after {
  content: '';
  position: absolute;
  inset: 0;
  margin: auto;
  background: currentcolor;
  transition:
    transform 0.4s var(--ease),
    opacity 0.3s ease;
}

.acc-plus::before {
  width: 26px;
  height: 2px;
}

.acc-plus::after {
  width: 2px;
  height: 26px;
}

.acc-btn[aria-expanded='true'] .acc-plus::after {
  transform: rotate(90deg);
  opacity: 0;
}

.acc-panneau {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s var(--ease);
}

.acc-panneau > div {
  overflow: hidden;
  visibility: hidden;
  transition: visibility 0s 0.45s;
}

.acc.is-open .acc-panneau {
  grid-template-rows: 1fr;
}

.acc.is-open .acc-panneau > div {
  visibility: visible;
  transition: visibility 0s;
}

.acc-corps {
  padding: 0 0 30px;
  max-width: 56ch;
}

.acc-corps p {
  margin: 0 0 14px;
}

.acc-corps ul {
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

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

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

@media (max-width: 760px) {
  .projets-grid {
    grid-template-columns: 1fr;
  }

  .acc:nth-last-child(2) {
    border-bottom: 0;
  }
}
