
/* =========================================
   ACCORDÉON 
========================================= */

/* Accordéon */
.acc {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.acc__summary {
  cursor: pointer;
  list-style: none;
  position: relative;
  padding: 1rem 3.5rem 1rem 0; /* 16px 56px 16px 20px */
  font: var(--h4-font);
  color: var(--color-text);
}
.acc__summary::-webkit-details-marker {
  display: none;
}
.acc__summary::after {
  content: "+";
  position: absolute;
  right: 1.125rem;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 1.75rem; /* 5px / 28px */
  border-radius: 0.375rem;
  display: grid;
  place-items: center;
  background: #f5f1e8;
  color: #004c66;
  font: 2rem;
}
.acc__item[open] .acc__summary::after {
  content: "–";
}
/* Important : acc__item ne doit pas bloquer la hauteur */
.acc__item {
  background: transparent;
  border: none;
  overflow: visible; /* nécessaire pour animation */
}

/* Panel : état fermé */
.acc__panel {
  overflow: hidden;
  height: 0;
  padding: 0;
  margin-left: 0;
  transition: height 0.45s cubic-bezier(0.4, 0, 0.2, 1), padding 0.35s ease;
  font: var(--body);
}

.acc__item[open] .acc__panel {
  padding-bottom: 2rem; /* ajoute l'espace après l'ouverture */
}

div.acc .borderline {
  border-bottom: 1px solid #ddd;
  margin-left: 1.25rem;
}
