﻿/* ===== SUBSCRIPTION PLANS STYLES - VERSION COMPLETE AVEC RADIO BUTTONS ===== */

.subscription-plans {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

    /* ===== CONTENEUR PRINCIPAL ===== */
    .subscription-plans .container-fluid {
        max-width: 1400px;
        margin: 0 auto;
        padding: 0 15px;
    }

/* ===== ESPACEMENT OPTIMISÉ ===== */
.row.mb-4 {
    margin-bottom: 1.5rem !important;
}

.row.mb-3 {
    margin-bottom: 1rem !important;
}

.row.mb-2 {
    margin-bottom: 0.75rem !important;
}

.row.mt-4 {
    margin-top: 1.5rem !important;
}

.row.mt-3 {
    margin-top: 1rem !important;
}

.row.mt-2 {
    margin-top: 0.75rem !important;
}

/* ===== HEADER COMPACT ===== */
.card.bg-gradient-primary .card-body {
    padding: 1.5rem 1rem !important;
}

.card.bg-gradient-primary .card-title {
    margin-bottom: 0.5rem !important;
    font-size: 1.6rem;
}

.card.bg-gradient-primary .card-text {
    margin-bottom: 1rem !important;
    font-size: 0.95rem;
}

/* ===== USER TYPE SELECTOR - RADIO BUTTONS ===== */
.user-type-selector {
    margin-bottom: 2rem;
}

.user-type-radio-group {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

.user-type-radio {
    position: relative;
}

    .user-type-radio input[type="radio"] {
        position: absolute;
        opacity: 0;
        width: 0;
        height: 0;
    }

.user-type-radio-label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(13, 110, 253, 0.2);
    border-radius: 16px;
    color: #64748b;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    min-width: 140px;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(10px);
}

    .user-type-radio-label i {
        font-size: 1.1rem;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

/* État hover */
.user-type-radio:hover .user-type-radio-label {
    border-color: rgba(13, 110, 253, 0.4);
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    color: #475569;
}

    .user-type-radio:hover .user-type-radio-label i {
        transform: scale(1.1);
    }

/* État checked */
.user-type-radio input[type="radio"]:checked + .user-type-radio-label {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border-color: #1d4ed8;
    color: white;
    font-weight: 600;
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(59, 130, 246, 0.4);
}

    .user-type-radio input[type="radio"]:checked + .user-type-radio-label i {
        transform: scale(1.15);
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    }

/* Description toujours visible */
.user-type-description {
    margin-top: 1rem;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

    .user-type-description span {
        font-size: 0.9rem;
        color: #64748b;
        line-height: 1.5;
        max-width: 500px;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

        .user-type-description span:not(.d-none) {
            opacity: 1;
            font-weight: 500;
            color: #475569;
        }

        .user-type-description span.d-none {
            opacity: 0.4;
            font-size: 0.85rem;
        }

/* ===== BILLING TOGGLE - RADIO BUTTONS ===== */
.billing-toggle {
    background: rgba(255, 255, 255, 0.15) !important;
    border-radius: 50px !important;
    padding: 4px !important;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 0.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), inset 0 1px 2px rgba(255, 255, 255, 0.1);
    width: fit-content;
    max-width: 280px;
    display: flex;
}

.billing-radio {
    flex: 1;
    position: relative;
}

    .billing-radio input[type="radio"] {
        position: absolute;
        opacity: 0;
        width: 0;
        height: 0;
    }

.billing-radio-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 16px;
    /*color: rgba(255, 255, 255, 0.7);*/
    background: transparent;
    border: none;
    border-radius: 46px;
    font-weight: 500;
    font-size: 0.85rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    white-space: nowrap;
    text-align: center;
}

.billing-radio:hover .billing-radio-label {
    color: rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.05);
}

.billing-radio input[type="radio"]:checked + .billing-radio-label {
    color: #1e293b;
    background: yellowgreen; /*rgb(215, 221, 234, 0,95)*/
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.25), 0 2px 8px rgba(0, 0, 0, 0.30);
}

/* Badge du bouton annuel */
.billing-radio-label .badge {
    font-size: 0.65rem !important;
    font-weight: 700 !important;
    padding: 1px 4px !important;
    border-radius: 8px !important;
    margin-left: 2px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    white-space: nowrap;
}

.billing-radio input[type="radio"]:checked + .billing-radio-label .badge {
    background: linear-gradient(135deg, #16a34a, #15803d) !important;
    color: white !important;
    box-shadow: 0 1px 4px rgba(22, 163, 74, 0.3);
}

.billing-radio input[type="radio"]:not(:checked) + .billing-radio-label .badge {
    background: rgba(34, 197, 94, 0.8) !important;
    color: white !important;
    opacity: 0.9;
}

/* ===== GRILLE OPTIMISÉE POUR 5 PLANS ===== */
.row.justify-content-center.g-3 {
    gap: 0.75rem;
    margin: 0 -0.375rem;
}

@media (min-width: 1400px) {
    .row.justify-content-center.g-3 > .col-xl-3 {
        flex: 0 0 auto;
        width: 19%;
        max-width: 280px;
    }
}

@media (min-width: 1200px) and (max-width: 1399.98px) {
    .row.justify-content-center.g-3 > .col-xl-3 {
        flex: 0 0 auto;
        width: 19.5%;
        max-width: 260px;
    }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    .row.justify-content-center.g-3 > .col-xl-3 {
        flex: 0 0 auto;
        width: 48%;
        max-width: none;
    }

        .row.justify-content-center.g-3 > .col-xl-3:nth-child(5) {
            width: 48%;
            margin: 0.75rem auto 0;
        }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .row.justify-content-center.g-3 > .col-xl-3 {
        flex: 0 0 auto;
        width: 48%;
        max-width: none;
    }

        .row.justify-content-center.g-3 > .col-xl-3:nth-child(5) {
            width: 48%;
            margin: 0.75rem auto 0;
        }
}

/* ===== PLAN CARDS ===== */
.plan-card {
    position: relative;
    margin-bottom: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateZ(0);
    height: 100%;
}

    .plan-card:hover {
        transform: translateY(-3px) translateZ(0);
    }

.plan-card-inner {
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Plan badges */
.plan-badge {
    position: absolute;
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #0d6efd, #0056b3);
    color: white;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    z-index: 3;
    white-space: nowrap;
    box-shadow: 0 1px 4px rgba(13, 110, 253, 0.25);
}

/* Header carte */
.plan-card-inner .card-header {
    padding: 0.75rem 0.5rem 0.25rem 0.5rem;
    flex-shrink: 0;
}

.plan-name {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
    font-weight: 600;
    line-height: 1.2;
}

#plan-title, #plan-subtitle {
    color: white;
}

.plan-description {
    font-size: 0.75rem;
    margin-bottom: 0.5rem !important;
    line-height: 1.2;
    color: #6c757d;
}

/* Pricing */
.plan-pricing {
    margin: 0.25rem 0 0.5rem 0;
    min-height: 55px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.price-amount {
    font-size: 1.6rem;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1;
}

.price-currency {
    font-size: 0.9rem;
    font-weight: 600;
    color: #6c757d;
    vertical-align: top;
}

.price-period {
    font-size: 0.75rem;
    color: #6c757d;
    font-weight: 500;
}

.price-note {
    margin-top: 2px;
    font-weight: 500;
    font-size: 0.7rem;
    line-height: 1.1;
}

/* Body carte */
.plan-card-inner .card-body {
    padding: 0.75rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* Limits & Features */
.plan-limits {
    background: linear-gradient(135deg, rgba(var(--bs-primary-rgb), 0.05) 0%, rgba(var(--bs-primary-rgb), 0.02) 100%);
    border: 1px solid rgba(var(--bs-primary-rgb), 0.08);
    border-radius: 6px;
    padding: 8px 10px;
    margin-bottom: 0.75rem;
    flex-shrink: 0;
}

.limit-item {
    display: flex;
    align-items: center;
    margin-bottom: 4px;
    font-weight: 500;
    color: #495057;
    font-size: 0.8rem;
    line-height: 1.2;
}

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

    .limit-item i {
        width: 16px;
        text-align: center;
        font-size: 0.85rem;
        flex-shrink: 0;
    }

.features-title {
    color: #2c3e50;
    font-weight: 600;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 4px;
    margin-bottom: 0.5rem !important;
    font-size: 0.9rem;
}

.features-list {
    margin: 0;
    font-size: 0.8rem;
    line-height: 1.3;
    flex-grow: 1;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    padding: 2px 0;
    margin-bottom: 4px !important;
}

.feature-name {
    font-weight: 500;
    color: #2c3e50;
    font-size: 0.8rem;
}

.feature-item i {
    font-size: 0.85rem;
    width: 14px;
    margin-top: 1px;
    flex-shrink: 0;
}

/* Footer carte */
.plan-card-inner .card-footer {
    padding: 0.75rem;
    flex-shrink: 0;
    margin-top: auto;
}

/* Buttons */
.select-plan-btn {
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.85rem;
    text-transform: none;
    letter-spacing: normal;
}

    .select-plan-btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
    }

.trial-info {
    margin-top: 6px;
    font-size: 0.75rem;
}

/* ===== FEATURE GUARANTEES ===== */
.feature-guarantee {
    padding: 10px 8px;
}

.feature-icon {
    width: 40px;
    height: 40px;
    margin: 0 auto 8px auto;
}

.feature-guarantee h6 {
    font-size: 0.9rem;
    margin-bottom: 2px;
    font-weight: 600;
}

.feature-guarantee small {
    font-size: 0.75rem;
}

/* ===== FAQ ===== */
.accordion-button {
    background: transparent;
    border: none;
    box-shadow: none;
    font-weight: 500;
    color: #2c3e50;
    padding: 0.5rem 0;
    font-size: 0.9rem;
}

.accordion-body {
    padding: 0 0 0.5rem 0;
    color: #6c757d;
    line-height: 1.4;
    font-size: 0.85rem;
}

/* ===== CORRECTION ALERTE BOUTONS ===== */
.alert-primary {
    padding: 1rem 1.25rem !important;
    position: relative;
}

    .alert-primary .btn-close {
        position: absolute;
        top: 0.75rem;
        right: 0.75rem;
        padding: 0.25rem;
        margin: 0;
    }

    .alert-primary .d-flex.align-items-center.justify-content-between {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 1rem;
        margin-right: 2rem;
    }

    .alert-primary .d-flex.align-items-center:not(.justify-content-between) {
        margin-bottom: 0;
    }

    .alert-primary .ms-3 {
        margin-left: 0 !important;
        margin-top: 0;
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
        align-items: stretch;
    }

    .alert-primary .btn {
        white-space: nowrap;
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
        border-radius: 8px;
        font-weight: 500;
        transition: all 0.2s ease;
    }

    .alert-primary .btn-outline-primary {
        background: rgba(13, 110, 253, 0.05);
        border: 1.5px solid rgba(13, 110, 253, 0.3);
        color: #0d6efd;
    }

        .alert-primary .btn-outline-primary:hover {
            background: rgba(13, 110, 253, 0.1);
            border-color: #0d6efd;
            transform: translateY(-1px);
        }

    .alert-primary .btn-primary {
        background: #0d6efd;
        border: 1.5px solid #0d6efd;
        box-shadow: 0 2px 8px rgba(13, 110, 253, 0.2);
    }

        .alert-primary .btn-primary:hover {
            background: #0b5ed7;
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
        }

/* ===== ANIMATIONS ===== */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.plan-card {
    animation: slideInUp 0.4s ease forwards;
}

    .plan-card:nth-child(1) {
        animation-delay: 0.05s;
    }

    .plan-card:nth-child(2) {
        animation-delay: 0.08s;
    }

    .plan-card:nth-child(3) {
        animation-delay: 0.11s;
    }

    .plan-card:nth-child(4) {
        animation-delay: 0.14s;
    }

    .plan-card:nth-child(5) {
        animation-delay: 0.17s;
    }

.user-type-selector {
    animation: fadeInUp 0.6s ease forwards;
}

.billing-toggle {
    animation: fadeInUp 0.6s ease forwards;
    animation-delay: 0.3s;
    opacity: 0;
    animation-fill-mode: forwards;
}

/* ===== RESPONSIVE ===== */

/* Boutons CTA mobiles pour visiteurs */
.mobile-cta-buttons {
    position: sticky;
    top: 80px;
    z-index: 100;
    background: white;
    padding: 0.75rem 0;
    margin-bottom: 0.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-radius: 8px;
}

    .mobile-cta-buttons .btn {
        font-weight: 600;
        padding: 10px 16px;
        border-radius: 8px;
        font-size: 0.9rem;
        white-space: nowrap;
    }

    .mobile-cta-buttons .btn-outline-primary {
        background: rgba(13, 110, 253, 0.05);
        border: 1.5px solid rgba(13, 110, 253, 0.4);
    }

    .mobile-cta-buttons .btn-primary {
        box-shadow: 0 2px 8px rgba(13, 110, 253, 0.25);
    }

@media (min-width: 768px) {
    .alert-primary .d-flex.align-items-center.justify-content-between {
        flex-direction: row !important;
        align-items: center !important;
        margin-right: 2rem;
    }

    .alert-primary .ms-3 {
        margin-left: 1rem !important;
        flex-direction: row;
        width: auto;
        align-items: center;
        flex-shrink: 0;
        gap: 0.75rem;
    }

    .alert-primary .btn {
        min-width: 110px;
    }

    .billing-toggle {
        max-width: 280px;
    }
}

@media (max-width: 767.98px) {
    /* Compacter l'ensemble de la page */
    .pagetitle {
        margin-bottom: 0.75rem !important;
    }

        .pagetitle h1 {
            font-size: 1.5rem !important;
        }

    .breadcrumb {
        font-size: 0.8rem !important;
        margin-bottom: 0.5rem !important;
    }

    /* Réduire les marges entre sections */
    .row.mb-3 {
        margin-bottom: 0.5rem !important;
    }

    .row.mb-2 {
        margin-bottom: 0.5rem !important;
    }

    /* User type selector plus compact */
    .user-type-selector {
        margin-bottom: 1rem !important;
    }

    .user-type-description {
        margin-top: 0.5rem !important;
        min-height: auto !important;
    }

        .user-type-description p.lead {
            font-size: 0.875rem !important;
            margin-bottom: 0.75rem !important;
            line-height: 1.3 !important;
        }

    /* Header plan très compact */
    .card.bg-gradient-primary .card-body {
        padding: 1rem 0.75rem !important;
    }

    .card.bg-gradient-primary .card-title {
        font-size: 1.25rem !important;
        margin-bottom: 0.5rem !important;
    }

    .card.bg-gradient-primary .card-text {
        font-size: 0.8rem !important;
        margin-bottom: 0.75rem !important;
    }

    /* Plan cards */
    .plan-card {
        margin-bottom: 15px;
    }

    .row.justify-content-center.g-3 > .col-xl-3 {
        width: 100%;
        max-width: 400px;
        margin: 0 auto 0.75rem auto;
    }

    .billing-toggle {
        margin-top: 0.75rem;
        padding: 3px !important;
        max-width: 240px;
    }

    .billing-radio-label {
        padding: 7px 12px;
        font-size: 0.8rem;
        gap: 3px;
    }

        .billing-radio-label .badge {
            font-size: 0.6rem !important;
            padding: 1px 3px !important;
            margin-left: 2px !important;
        }

    /* User type radio buttons en ligne compacte - 2 boutons côte à côte */
    .user-type-radio-group {
        flex-direction: row !important;
        gap: 0.375rem;
        justify-content: center;
    }

    .user-type-radio-label {
        min-width: 120px !important;
        max-width: 150px !important;
        padding: 10px 12px !important;
        font-size: 0.85rem !important;
        gap: 4px !important;
    }

        .user-type-radio-label i {
            font-size: 1rem !important;
        }

    /* Feature guarantees plus compact */
    .feature-guarantee {
        padding: 8px 6px !important;
    }

    .feature-icon {
        width: 36px !important;
        height: 36px !important;
        margin-bottom: 6px !important;
    }

    .feature-guarantee h6 {
        font-size: 0.85rem !important;
        margin-bottom: 2px !important;
    }

    .feature-guarantee small {
        font-size: 0.7rem !important;
    }
}

@media (max-width: 575.98px) {
    .plan-card-inner .card-header,
    .plan-card-inner .card-body,
    .plan-card-inner .card-footer {
        padding: 0.5rem;
    }

    .price-amount {
        font-size: 1.5rem;
    }

    .features-list,
    .limit-item {
        font-size: 0.75rem;
    }

    .select-plan-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }

    .billing-toggle {
        max-width: 200px;
    }

    .billing-radio-label {
        padding: 6px 10px;
        font-size: 0.75rem;
        gap: 2px;
    }

        .billing-radio-label .badge {
            font-size: 0.55rem !important;
            padding: 0px 2px !important;
            margin-left: 1px !important;
        }

    /* Header encore plus compact */
    .card.bg-gradient-primary .card-body {
        padding: 0.875rem 0.625rem !important;
    }

    .card.bg-gradient-primary .card-title {
        font-size: 1.125rem !important;
    }

    .card.bg-gradient-primary .card-text {
        font-size: 0.75rem !important;
    }

    .alert-primary {
        padding: 0.875rem 1rem !important;
    }

        .alert-primary .d-flex.align-items-center.justify-content-between {
            margin-right: 1.5rem;
        }

        .alert-primary .btn-close {
            top: 0.5rem;
            right: 0.5rem;
        }

        .alert-primary .btn {
            font-size: 0.875rem;
            padding: 0.5rem 0.875rem;
        }
}

/* ===== ACCESSIBILITY ===== */
.user-type-radio input[type="radio"]:focus-visible + .user-type-radio-label,
.billing-radio input[type="radio"]:focus-visible + .billing-radio-label {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .plan-card,
    .user-type-selector,
    .billing-toggle,
    .user-type-radio-label,
    .billing-radio-label,
    .select-plan-btn,
    .plan-card {
        animation: none;
        transition: none;
    }

        .select-plan-btn:hover,
        .plan-card:hover {
            transform: none;
        }
}
