/* ===== PAGE DE PRICING ===== */
.pricing-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.pricing-hero {
    text-align: center;
    margin-bottom: 2.5rem;
}

.pricing-hero h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 0.5rem;
}

.pricing-hero h1 i { color: #f39c12; }

.pricing-hero p {
    font-size: 1.05rem;
    color: #666;
}

.pricing-alert {
    padding: 1rem 1.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.pricing-alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.pricing-alert-success a { color: #0d6e3a; font-weight: 600; }

/* Cartes de prix */
.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.pricing-card {
    background: white;
    border: 2px solid #e8e8e8;
    border-radius: 16px;
    padding: 2rem;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    border-color: #3498db;
    box-shadow: 0 8px 24px rgba(52,152,219,0.12);
}

.pricing-card.featured {
    border-color: #3498db;
    box-shadow: 0 8px 30px rgba(52,152,219,0.18);
    transform: scale(1.03);
}

.card-badge {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    padding: 0.4rem 1.2rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}

.annual-badge {
    background: linear-gradient(135deg, #27ae60, #219a52) !important;
}

.card-header {
    text-align: center;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
    margin-bottom: 1.5rem;
}

.card-header h2 {
    font-size: 1.3rem;
    color: #1a1a2e;
    margin-bottom: 0.75rem;
}

.price { display: flex; align-items: baseline; justify-content: center; gap: 2px; }
.price .currency { font-size: 1rem; color: #666; font-weight: 500; }
.price .amount { font-size: 2.8rem; font-weight: 800; color: #1a1a2e; }
.price .period { font-size: 1rem; color: #888; }
.price-sub { font-size: 0.85rem; color: #999; margin-top: 0.25rem; }

/* Liste des fonctionnalités */
.features {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
}

.features li {
    padding: 0.6rem 0;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.92rem;
    color: #444;
}

.features li.included i { color: #27ae60; width: 18px; text-align: center; }
.features li.excluded { color: #bbb; }
.features li.excluded i { color: #ccc; width: 18px; text-align: center; }
.features li.highlight { color: #1a1a2e; font-weight: 500; }
.features li.highlight i { color: #f39c12; }

/* Boutons */
.card-footer {
    margin-top: 1.5rem;
    text-align: center;
}

.btn-subscribe {
    display: inline-block;
    width: 100%;
    padding: 0.85rem 2rem;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    text-align: center;
}

.btn-subscribe:hover {
    background: linear-gradient(135deg, #2980b9, #2471a3);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(52,152,219,0.3);
}

.btn-annual {
    background: linear-gradient(135deg, #27ae60, #219a52);
}

.btn-annual:hover {
    background: linear-gradient(135deg, #219a52, #1e8449);
    box-shadow: 0 4px 12px rgba(39,174,96,0.3);
}

.btn-current {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: #f1f1f1;
    color: #888;
    border-radius: 10px;
    font-weight: 500;
}

/* Section Voucher */
.voucher-section {
    background: #f8f9fa;
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    border: 1px solid #eee;
}

.voucher-section h3 { color: #1a1a2e; margin-bottom: 0.5rem; }
.voucher-section h3 i { color: #9b59b6; }
.voucher-section > p { color: #666; font-size: 0.9rem; margin-bottom: 1rem; }

.voucher-form {
    display: flex;
    gap: 0.75rem;
    max-width: 400px;
    margin: 0 auto;
}

.voucher-form input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
}

.voucher-form input:focus {
    border-color: #9b59b6;
    outline: none;
}

.btn-voucher {
    padding: 0.75rem 1.5rem;
    background: #9b59b6;
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-voucher:hover { background: #8e44ad; }

.voucher-message {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-weight: 500;
}

.voucher-success { background: #d4edda; color: #155724; }
.voucher-error { background: #f8d7da; color: #721c24; }

/* ===== PAGE SUCCÈS ===== */
.success-page {
    max-width: 600px;
    margin: 3rem auto;
    text-align: center;
    padding: 0 1rem;
}

.success-card {
    background: white;
    border-radius: 16px;
    padding: 3rem 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #f39c12, #e67e22);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
}

.success-card h1 { font-size: 1.6rem; color: #1a1a2e; margin-bottom: 0.75rem; }
.success-card > p { color: #666; margin-bottom: 2rem; }

.success-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.feature-item {
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.feature-item i { color: #27ae60; }

.success-actions { display: flex; flex-direction: column; gap: 0.75rem; }

.btn-primary-action {
    display: inline-block;
    padding: 0.85rem 2rem;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-primary-action:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(52,152,219,0.3); }

.btn-secondary-action {
    display: inline-block;
    padding: 0.75rem 2rem;
    color: #666;
    text-decoration: none;
    font-weight: 500;
}

.btn-secondary-action:hover { color: #333; }

/* ===== PAGE MANAGE ===== */
.manage-page {
    max-width: 700px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.manage-page h1 {
    font-size: 1.5rem;
    color: #1a1a2e;
    margin-bottom: 1.5rem;
}

.subscription-status-card, .subscription-details-card, .billing-section {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    margin-bottom: 1rem;
}

.status-premium { background: #fff3cd; color: #856404; }
.status-free { background: #f1f1f1; color: #666; }

.btn-upgrade {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 0.5rem;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.detail-row:last-child { border-bottom: none; }
.detail-label { color: #666; }
.detail-value { font-weight: 500; }

.badge-active { background: #d4edda; color: #155724; padding: 0.25rem 0.75rem; border-radius: 12px; font-size: 0.85rem; }
.badge-canceled { background: #f8d7da; color: #721c24; padding: 0.25rem 0.75rem; border-radius: 12px; font-size: 0.85rem; }
.badge-pastdue { background: #fff3cd; color: #856404; padding: 0.25rem 0.75rem; border-radius: 12px; font-size: 0.85rem; }
.badge-free { background: #e9ecef; color: #666; padding: 0.25rem 0.75rem; border-radius: 12px; font-size: 0.85rem; }

.btn-portal {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    background: #6c757d;
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    margin-top: 0.5rem;
}

.btn-portal:hover { background: #5a6268; }

/* ===== PAGES ADMIN ===== */
.admin-page {
    max-width: 1000px;
    margin: 0 auto;
    padding: 1.5rem 1rem;
}

.admin-header h1 {
    font-size: 1.5rem;
    color: #1a1a2e;
    margin-bottom: 1rem;
}

.admin-nav {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid #eee;
    padding-bottom: 0;
}

.admin-tab {
    padding: 0.75rem 1.25rem;
    color: #666;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
}

.admin-tab:hover { color: #3498db; }
.admin-tab.active { color: #3498db; border-bottom-color: #3498db; }

/* Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.stat-number { font-size: 1.5rem; font-weight: 700; color: #1a1a2e; display: block; }
.stat-label { font-size: 0.8rem; color: #888; }

/* Tables admin */
.admin-section {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.admin-section h2 {
    font-size: 1.15rem;
    color: #1a1a2e;
    margin-bottom: 1rem;
}

.section-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th {
    background: #f8f9fa;
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.85rem;
    color: #555;
    border-bottom: 2px solid #eee;
}

.admin-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.9rem;
}

.admin-table tr:hover { background: #fafafa; }

.voucher-code {
    background: #f0f0f0;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

/* Formulaire de création de bon */
.create-form {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid #eee;
}

.create-form h3 { margin-bottom: 1rem; color: #1a1a2e; }

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: #555;
    margin-bottom: 0.3rem;
}

.form-group input, .form-group select {
    width: 100%;
    padding: 0.6rem 0.75rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.9rem;
}

.form-actions { display: flex; gap: 0.75rem; }

.btn-create {
    padding: 0.6rem 1.5rem;
    background: #27ae60;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}

.btn-create:hover { background: #219a52; }

.btn-cancel {
    padding: 0.6rem 1.5rem;
    background: #e9ecef;
    color: #666;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.btn-toggle {
    background: none;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    color: #3498db;
}

.btn-danger-sm {
    padding: 0.35rem 0.75rem;
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
}

.btn-danger-sm:hover { background: #c0392b; }

.btn-success-sm {
    padding: 0.35rem 0.75rem;
    background: #27ae60;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
}

.btn-success-sm:hover { background: #219a52; }

.admin-empty {
    text-align: center;
    padding: 3rem;
    color: #999;
}

.admin-empty i { font-size: 2.5rem; margin-bottom: 1rem; display: block; }

/* ===== BADGES PREMIUM DANS LA NAVBAR ===== */
.premium-nav-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
    padding: 0.15rem 0.5rem;
    border-radius: 10px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-left: 0.3rem;
}

.nav-lock {
    color: #e74c3c;
    font-size: 0.7rem;
    margin-left: 0.3rem;
    opacity: 0.7;
}

/* Responsive */
@media (max-width: 768px) {
    .pricing-cards { grid-template-columns: 1fr; }
    .pricing-card.featured { transform: none; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .form-grid { grid-template-columns: 1fr; }
    .admin-table { font-size: 0.8rem; }
    .admin-table th, .admin-table td { padding: 0.5rem; }
}
