.badge-selection-title {
    color: white;
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.badge-selection-subtitle {
    color: white;
    font-size: 1.2rem;
    text-align: center;
    margin: 1rem auto 3rem auto;
    max-width: 80%;

}

.badge-grid {
    display: grid;
    gap: 1.5rem;
    justify-content: center;
    margin: 0 auto;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    /* Single badge */
    .badge-grid:has(.badge-item:only-child) {
        grid-template-columns: minmax(250px, 300px);
    }

    /* Two badges */
    .badge-grid:has(.badge-item:first-child:nth-last-child(2)) {
        grid-template-columns: repeat(2, minmax(250px, 300px));
        max-width: 800px;
    }

    /* Three badges */
    .badge-grid:has(.badge-item:first-child:nth-last-child(3)) {
        grid-template-columns: repeat(3, minmax(250px, 300px));
        max-width: 1000px;
    }

    /* Four or more badges */
    .badge-grid:has(.badge-item:first-child:nth-last-child(n+4)) {
        grid-template-columns: repeat(4, 1fr);
    }
}

.badge-item {
    /* background: rgba(76, 0, 130, 0.6); */
    border: 2px solid #ffbd59;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding-bottom: 1rem;
}

.badge-top {
    display: flex;
    flex-direction: column;
}

.badge-badge {
    /* background-color: #4B0082; */
    color: #ffbd59;
    font-size: 1rem;
    font-weight: bold;
    padding: 0.75rem;
}

.badge-header {
    background-color: #ffbd59;
    color: #4B0082;
    font-size: 1.2rem;
    font-weight: bold;
    padding: 1rem 0.75rem;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 4rem; /* Fixed height for all headers */
    text-align: center;
    line-height: 1.2;
}

.badge-header::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid #ffbd59;
}

.badge-price {
    color: white;
    font-size: 2rem;
    font-weight: bold;
    margin: 2rem 0 1rem; /* Increased top margin */
}

.badge-separator {
    border-top: 1px dashed #ffbd59;
    margin: 1rem; /* Increased margin */
}

.badge-description {
    color: white;
    font-size: 0.9rem;
    padding: 1rem 1.5rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
    flex-grow: 1;
    text-align: left;
}

.description-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.description-item:last-child {
    margin-bottom: 0;
}

.description-item .bullet {
    flex-shrink: 0;
    margin-right: 0.5rem;
    font-size: 1.2em;
    line-height: 1;
}

.description-item .text {
    flex-grow: 1;
}


.badge-select-button {
    background-color: #ffbd59;
    color: #4B0082;
    text-decoration: none;
    font-weight: bold;
    padding: 0.75rem;
    display: block;
    margin: 0 1rem 1rem;
}

.badge-select-button:hover {
    background-color: #FFB52E;
}

@media (max-width: 768px) {
    .badge-selection-title {
        font-size: 1.3rem;
    }

    .badge-selection-subtitle {
        font-size: 0.9rem;
    }
}

.highlight-gratuite {
    color: #ffbd59;
}

.badge-select-button-disabled {
    background-color: #666;
    color: #ccc;
    cursor: not-allowed;
    border: none;
    font-weight: bold;
    padding: 0.75rem;
    display: block;
    margin: 0 1rem 1rem;
    width: calc(100% - 2rem);
}

.badge-select-button-disabled:hover {
    background-color: #666;
}