/* ============================================
   ABONNEMENT - Gestion des abonnements
   ============================================ */

/* Page Header */
.page-header {
    text-align: center;
    padding: 2rem 0;
}

.page-header h1,
.page-header h2,
.page-header h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.page-header .lead {
    font-size: 1.1rem;
}

/* Abonnement actuel */
.current-subscription {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.current-subscription h1,
.current-subscription h2,
.current-subscription h3,
.current-subscription h4 {
    color: white;
}

.current-subscription .text-muted {
    color: rgba(255, 255, 255, 0.9) !important;
}

.subscription-details {
    padding: 1rem 0;
}

.subscription-dates .badge {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
}

/* Plans d'abonnement */
.subscription-plans {
    padding: 2rem 0;
}

.subscription-card {
    height: 100%;
    transition: all 0.3s ease;
    position: relative;
    border: 2px solid #e8e8e8;
    overflow: visible;
}

.subscription-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.subscription-card.is-premium {
    border-color: #ffd700;
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.3);
}

.subscription-card.is-premium:hover {
    box-shadow: 0 15px 40px rgba(255, 215, 0, 0.5);
}

.subscription-card.is-current {
    border-color: #48c774;
    background: linear-gradient(to bottom, #f0fff4 0%, #ffffff 100%);
}

.subscription-card.is-current .card-body {
    border-top: 4px solid #48c774;
}

/* Ribbon pour les plans populaires */
.card-ribbon {
    position: absolute;
    top: 15px;
    right: -5px;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #2c3e50;
    padding: 0.5rem 1.5rem;
    font-weight: bold;
    font-size: 0.85rem;
    box-shadow: 0 3px 10px rgba(255, 215, 0, 0.5);
    z-index: 10;
    transform: translateX(0);
}

.card-ribbon::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0;
    height: 0;
    border-left: 5px solid #d4af37;
    border-bottom: 5px solid transparent;
}

.card-ribbon i {
    margin-right: 0.3rem;
}

/* Plan Header */
.plan-header {
    padding: 1.5rem 0;
    border-bottom: 2px solid #f5f5f5;
}

.plan-header h3,
.plan-header h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.plan-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.3rem;
}

.price-amount {
    font-size: 3rem;
    font-weight: bold;
    color: #3273dc;
}

.price-currency {
    font-size: 1.5rem;
    font-weight: bold;
    color: #3273dc;
}

.price-period {
    font-size: 1rem;
    color: #7a7a7a;
}

.price-free {
    font-size: 2rem;
    font-weight: bold;
    color: #48c774;
}

/* Plan Description */
.plan-description {
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.plan-description p {
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Plan Features */
.plan-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.plan-features li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #f5f5f5;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
}

.plan-features li:last-child {
    border-bottom: none;
}

.plan-features i {
    font-size: 1rem;
    flex-shrink: 0;
}

/* Plan Action */
.plan-action {
    padding-top: 1rem;
}

.subscribe-btn {
    font-weight: 600;
    transition: all 0.3s ease;
}

.subscribe-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(50, 115, 220, 0.3);
}

/* Historique des souscriptions */
.subscription-history {
    margin-top: 3rem;
}

.subscription-history h2,
.subscription-history h4 {
    color: #2c3e50;
}

.subscription-history .table {
    background: white;
}

.subscription-history .table thead {
    background: #f5f5f5;
}

.subscription-history .table thead th {
    color: #363636;
    font-weight: 600;
    border-bottom: 2px solid #dbdbdb;
}

.subscription-history .table tbody tr:hover {
    background-color: #f9f9f9;
}

/* Modal */
#subscriptionModal .modal-dialog {
    max-width: 500px;
}

#subscriptionModal .modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

#subscriptionModal .modal-title {
    color: white;
}

#subscriptionModal .card {
    text-align: center;
    padding: 1.5rem;
}

#modalPlanName {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

#modalPlanPrice {
    margin-top: 0.5rem;
}

/* Responsive */
@media screen and (max-width: 1024px) {
    .subscription-card {
        margin-bottom: 2rem;
    }
}

@media screen and (max-width: 768px) {
    .page-header h1,
    .page-header h2 {
        font-size: 1.75rem;
    }

    .page-header .lead {
        font-size: 1rem;
    }

    .current-subscription .row {
        flex-direction: column;
    }

    .current-subscription .col-auto {
        text-align: center;
        margin-top: 1rem;
    }

    .subscription-dates {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

    .subscription-dates .badge {
        display: block;
        margin: 0 !important;
    }

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

    .card-ribbon {
        font-size: 0.75rem;
        padding: 0.4rem 1rem;
    }

    .subscription-history .table-responsive {
        overflow-x: auto;
    }

    .subscription-history .table {
        font-size: 0.85rem;
    }
}

@media screen and (max-width: 480px) {
    .page-header h1,
    .page-header h2 {
        font-size: 1.5rem;
    }

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

    .plan-features li {
        font-size: 0.85rem;
        padding: 0.5rem 0;
    }
}

/* Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.subscription-card {
    animation: slideInUp 0.5s ease-out;
}

.subscription-card:nth-child(1) { animation-delay: 0.1s; }
.subscription-card:nth-child(2) { animation-delay: 0.2s; }
.subscription-card:nth-child(3) { animation-delay: 0.3s; }
.subscription-card:nth-child(4) { animation-delay: 0.4s; }
.subscription-card:nth-child(5) { animation-delay: 0.5s; }
