.qrise-plans-block-wrapper {
    padding: 2rem;
    width: 95%;
    margin: 0 auto;
}

.qrise-plans-block {
    position: relative;
    padding: 4rem 2rem;
    width: 70%;
    margin: 0 auto;
    border-radius: 30px;
}

.qrise-plans-header {
    position: relative;
    max-width: 800px;
    margin: 0 auto 3rem;
    text-align: center;
    z-index: 1;
}

.qrise-plans-title {
    font-size: 32px;
    margin-bottom: 1rem;
    font-weight: 600;
    color: #333;
}

.qrise-plans-subtitle {
    font-size: 16px;
    color: #666;
    line-height: 1.5;
    max-width: 600px;
    margin: 0 auto;
}

.qrise-plans-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

.qrise-plans-grid > * {
    flex: 1 1 300px; /* Flex-grow, flex-shrink, flex-basis */
    max-width: calc(33.333% - 2rem);
}

/* 1 item */
.qrise-plans-grid > :first-child:nth-last-child(1) {
    max-width: 100%;
}

/* 2 items */
.qrise-plans-grid > :first-child:nth-last-child(2),
.qrise-plans-grid > :first-child:nth-last-child(2) ~ * {
    max-width: calc(50% - 1rem);
}

/* 4 items, last one on new line */
.qrise-plans-grid > :first-child:nth-last-child(4) ~ :nth-child(4) {
    max-width: 100%;
    flex-basis: 100%;
}

.qrise-plan-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    z-index: 1;
    perspective: 1000px;
    transform-style: preserve-3d;
    opacity: 0;
    transform: rotateY(-90deg);
    transition: transform 0.8s ease-out, opacity 0.4s ease-out;
}

.qrise-plan-card.animate {
    opacity: 1;
    transform: rotateY(0deg);
}

/* Ensure content stays readable during flip */
.qrise-plan-card > * {
    backface-visibility: hidden;
}

.qrise-plan-tag {
    display: inline-block;
    background: #FFE4E1;
    color: #FF5733;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 14px;
    margin-bottom: 1rem;
    width: fit-content; /* Ajout de cette ligne */
    align-self: flex-start; /* Ajout de cette ligne */
}

.qrise-plan-price {
    font-size: 36px;
    font-weight: 600;
    margin: 0.5rem 0;
}

.qrise-plan-dimension {
    color: #666;
    font-size: 14px;
    margin-bottom: 1rem;
}

.qrise-plan-description {
    text-align: center;
    margin-bottom: 1.5rem;
}

.qrise-plan-features {
    flex-grow: 1;
}

.qrise-plan-features li {
    padding: 0.5rem 0;
    color: #666;
}

.qrise-plan-features li::before {
    content: "✓";
    color: #28a745;
    margin-right: 0.5rem;
}

.qrise-plan-redirect-box {
    background: #F5F5F5;
    border-radius: 24px;
    padding: 1rem;
    margin: 1rem 0;
    color: #666;
    font-size: 14px;
    line-height: 1.4;
}

.qrise-plan-options {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.qrise-plan-options li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    color: #333;
}

.qrise-plan-options li svg {
    width: 20px;
    height: 20px;
    color: #6666FF;
}

.qrise-plan-cta {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    width: 100%; /* Modification ici */
    box-sizing: border-box; /* Ajout de cette ligne */
    font-size: 16px;
    color: white;
    background: linear-gradient(to right, #FF5733, #FF2E63);
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.qrise-plan-cta:hover {
    transform: translateY(-2px);
    color: white;
    text-decoration: none;
}

.qrise-plan-cta svg {
    transition: transform 0.3s ease;
}

.qrise-plan-cta:hover svg {
    transform: translateX(5px);
}

@media (max-width: 992px) {
    .qrise-plans-block {
        width: 95%; /* Augmentation de la largeur pour tablette */
        padding: 3rem 1.5rem;
    }

    .qrise-plans-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem; /* Réduction de l'espacement entre les cartes */
    }

    .qrise-plan-card {
        padding: 1.5rem; /* Réduction du padding des cartes */
    }

    .qrise-plans-block-wrapper {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .qrise-plans-block {
        width: 95%;
        padding: 2rem 1rem;
    }

    .qrise-plans-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .qrise-plans-grid > * {
        max-width: 100%;
    }

    .qrise-plan-card {
        padding: 1.5rem;
    }

    .qrise-plan-cta {
        padding: 0.75rem 1.25rem; /* Réduire légèrement le padding sur mobile */
    }
}

@media (max-width: 1224px) {
    .qrise-plans-block {
        width: auto;
    }
}