.services-prices ul {
    padding: 0;
    margin: 0;
}
.services-prices li {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.services-prices-list {  
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 2rem;
}

.services-prices-list > li {
    flex: 1 1 calc(25% - 2rem);
}

.services-prices-list > li {
    display: flex;
    flex-direction: column;
    margin-bottom: 2rem;
}

.service-header {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-weight: bold;
    font-size: 1.2em;
    min-height: 270px;

    background-color:rgba(58, 79, 105, 0.95);
    border-radius: 10px 10px 0 0;
    padding: 0.5em 1rem;
}

.service-header > p {
    position: relative;
    margin: 1rem 0;
}

.service-header > p::after {
    content: '';
    position: absolute;
    bottom: -16px;
    left: 50%;
    transform: translateX(-50%);
    width: 85px;
    height: 5px;
    background-color: var(--orange);
}

.service-price {
  margin-top: 1rem;
}

.service-price .prefix {
    font-size: 0.5em; 
}

.service-price .promo-percent {
    background-color: var(--orange);
    color: white;
    padding: 0.2em 0.5em;
    border-radius: 5px;
    font-size: 0.8em;
    font-weight: bold;
    margin: 0.5rem;
}

.service-price div {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.price-when-promo {
    text-decoration: line-through;
    font-size: 0.8em;
    margin: 0;
}

.current-price {
    font-size: 1.9em;
    margin: 0;
    font-weight: bold;
}

.service-info {
    border: 2px solid rgba(58, 79, 105, 0.95);
    border-radius: 0 0 8px 8px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.service-info > div {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

#service-details li {
    padding: 1rem 2rem;
}

#service-details li:nth-child(even) {
    background-color: rgba(58, 79, 105, 0.5);
}

.estimated-duration {
    font-style: italic;
    text-align: center;
    padding: 1rem 2rem;
    border-top: 2px solid rgba(58, 79, 105, 0.5);
}

.category-switch-container {
    display: flex;
    width: 100%;
    justify-content: center;
    margin: 1rem 0;
}

.category-switch {
    position: relative;
    display: inline-flex;
    background-color: rgba(58, 79, 105, 0.95);
    color: white;
    border-radius: 12px;
    padding: 6px;
    gap: 0;
    width:100%;
    max-width: 600px;
}

.category-switch::before {
    content: "";
    position: absolute;
    top: 6px;
    bottom: 6px;
    width: calc((100% - 12px) / 3);
    background: var(--orange);
    border-radius: 8px;
    z-index: 1;
    transition: transform 0.3s ease;
}

.category-switch[data-active="design"]::before {
    transform: translateX(0%);
}

.category-switch[data-active="site web"]::before {
    transform: translateX(100%);
}

.category-switch[data-active="autre"]::before {
    transform: translateX(200%);
}

.switch-btn {
    position: relative;
    z-index: 2;
    display:flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 10px 18px;
    border-radius: 8px;
    text-decoration: none;
    color: white;
    width: calc(100%/ 3);
}

[data-theme='light'] {
    .service-header {
        background-color: var(--gris-moyen);
    }

    .service-info {
        border: 2px solid  var(--gris-moyen);
    }

    .category-switch {
        background-color: var(--gris-moyen);
    }

    .switch-btn {
        color:var(--bleu-fonce);
    }
    .switch-btn.active {
        color: white;
    }

    #service-details li:nth-child(even) {
        background-color: var(--gris-moyen);
    }
}

@media (max-width: 1330px) {
    .service-header {
        min-height: 235px;
    }

    .current-price {
        font-size: 1.5em;
    }
}

@media (max-width: 1024px) {
    .service-header {
        min-height: auto;
    }

    .current-price {
        font-size: 2em;
    }

    .services-prices-list {  
        display: flex;
        flex-direction: column;
    }

    .service-price{
        flex-direction: row;
        gap: 1em;
        align-items: center;
    }
}

@media (max-width: 768px) {
    .service-price{
        flex-direction: column;
        gap: 0.5em;
        align-items: flex-end;
    }
}

@media (max-width: 480px) {
    .service-price{
        margin-top: 2rem;
        min-width: auto;
    }

    .service-header {
        flex-direction: column;
        justify-content: space-between;
        font-weight: bold;
        font-size: 1.2em;

        background-color:rgba(58, 79, 105, 0.95);
        border-radius: 10px 10px 0 0;
        padding: 0.5em 1rem;
    }
    .service-header > p {
        text-align: center;
    }

    .service-info > div{
        flex-direction: column;
    }

    .estimated-duration {
        margin-top: 2em;
    }
}
