#pricelist {
    --font-family-title: 'Pinyon Script', cursive;
    background-color: var(--white);
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    font-size: var(--fs-16);
    padding-block: 30px;
    width: 100%;
}

#pricelist .head {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: calc(5vh + 5vw);
    font-family: var(--font-family-title);
    text-transform: capitalize;
    text-align: center;
    padding: 5%;
}

#pricelist .head hr {
    position: absolute;
    top: 50%;
    left: 50%;
    width: calc(100% - 30px);
    max-width: calc(1400px - 30px) ;
    border: none;
    border-top: 2px solid var(--beige); /* style du trait */
    transform: translateY(-50%) translateX(-50%);
    z-index: 0;
}

@media screen and (max-width: 767px) {
    #pricelist .head hr {
        display: none;
    }
}

#pricelist .head h2 {
    position: relative;
    font-size: var(--fs-48);
    background-color: var(--white);
    padding-inline: 15px;
    box-sizing: border-box;
}

#pricelist .column {
    flex: 1;
    max-width: 700px;
    min-width: 320px; /* NE PAS TOUCHER SINON SCROLL HORIZONTAL !!!!!!!!!! */
    display: flex;
    flex-direction: column;
}

@media screen and (max-width: 767px) {
    #pricelist .column .category {
        --padding: 10px;
        --margin: 10px;
    }
}


#pricelist .category {
    --padding: 20px;
    --margin: 15px;
    padding: var(--padding);
    margin: var(--margin);
    border: 2px solid var(--beige);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: fit-content;
}

#pricelist .column .top {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    justify-content: space-between;
    column-gap: 5px;
    margin-bottom: 1rem;
}

#pricelist .column .top h3 {
    font-family: var(--font-family-title);
    font-size: var(--fs-32);
    margin: 0;
    text-transform: capitalize;
}
#pricelist .column .top span { /* à droite du title possibilité de mettre du texte/img dans un span */
    font-size: var(--fs-12);
    font-style: italic;
    text-align: right;
}

#pricelist .category .list ul li .flipper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-width: fit-content;
}

#pricelist .category .list .left .time {
    letter-spacing: 1.5px;
    font-size: var(--fs-12);
    line-height: var(--fs-12);
    margin-bottom: var(--fs-12);
}

#pricelist .category .list .left .time::after {
    content: 'mn';
}

#pricelist .list .name {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

#pricelist .list .price {
    white-space: nowrap;
}
#pricelist .list .price::after {
    content: ' CHF';
    font-size: var(--fs-14);
}

#pricelist .list .name span:first-child {
    word-break: break-word;
}

#pricelist .list .left .name .question {
    --size: var(--fs-14);
    width: var(--size);
    height: var(--size);
    font-size: calc(var(--size) - 2px);
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border-radius: 100px;
    border: 2px solid var(--border-gray);
    font-weight: 600;
    margin-block: auto;
    color: var(--font-black-a);
    cursor: pointer;
    aspect-ratio: 1/1;
}

#pricelist .list .line {
    display: flex;
    min-width: 15px;
    flex: 1;
    margin-inline: 10px;
    height: 1px;
    border-top: 1px dotted var(--black);
}

/* Conteneur de chaque li qui va faire la rotation */
#pricelist .list ul li {
  perspective: 1000px; /* pour donner de la profondeur 3D */
  margin-bottom: 15px; /* espacement entre les li */
}

/* La carte qui tourne */
#pricelist .list ul li .flipper {
    z-index: 0;
  position: relative;
  width: 100%;
  transform-style: preserve-3d;
  transition: transform 0.6s ease;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Quand on applique la classe flipped, on tourne de 180deg */
#pricelist .list ul li .flipper.flipped {
  transform: rotateX(180deg);
}

/* Face avant */
#pricelist .list ul li .flipper .front,
#pricelist .list ul li .flipper .back {
  backface-visibility: hidden;
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  box-sizing: border-box;
}

/* Face avant : on garde le style de ton li existant */
#pricelist .list ul li .flipper .front {
  position: relative; /* pour superposer proprement le back */
  min-width: fit-content;
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* tu peux reprendre ici la mise en forme que tu veux */
}

/* Face arrière */
#pricelist .list ul li .flipper .back {
    background-color: var(--white);
    color: var(--font-black-a);
    top: 50%;
    transform: rotateX(180deg) translateY(50%);
    padding: 5px;
    font-size: var(--fs-12);
    line-height: 1.4;
    border: 1px solid var(--beige);
    min-width: fit-content;
    min-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#pricelist .list .flipper .back .description {
    flex: 1;
}

#pricelist .list .flipper .back .x_mark.close_question {
    flex-shrink: 1;
    cursor: pointer;
    font-size: var(--fs-24);
    height: 100%;
    margin-right: 5px;
}
#pricelist .list .flipper .back .x_mark.close_question svg {
    stroke-width: 2;
    stroke: var(--black);
}