/* ============================================================
   PORTAIL MEMBRE - DESIGN MODERNE 2026
   Styles additionnels pour amélioration UX/UI
   ============================================================ */

/* ============================================================
   1. PAGE DE CONNEXION MODERNE
   ============================================================ */
.am-login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5a8a 50%, #0ea5e9 100%);
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.am-login-page::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='50' cy='50' r='40' fill='none' stroke='rgba(255,255,255,0.05)' stroke-width='0.5'/%3E%3C/svg%3E") repeat;
    background-size: 100px 100px;
    animation: am-float 20s linear infinite;
    pointer-events: none;
}

@keyframes am-float {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(-50px, -50px) rotate(360deg); }
}

.am-login-container {
    display: flex;
    width: 100%;
    max-width: 1000px;
    min-height: 600px;
    background: var(--am-white);
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    position: relative;
    z-index: 1;
}

/* Côté gauche - Branding */
.am-login-branding {
    flex: 1;
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5a8a 100%);
    padding: 48px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.am-login-branding::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cpath d='M100 0c55.228 0 100 44.772 100 100s-44.772 100-100 100S0 155.228 0 100 44.772 0 100 0zm0 20c-44.183 0-80 35.817-80 80s35.817 80 80 80 80-35.817 80-80-35.817-80-80-80z' fill='rgba(255,255,255,0.03)'/%3E%3C/svg%3E");
    background-size: 300px;
    background-position: center;
}

.am-login-branding-content {
    position: relative;
    z-index: 1;
}

.am-login-logo {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    font-size: 2rem;
    color: white;
    backdrop-filter: blur(10px);
}

.am-login-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    margin: 0 0 16px 0;
    letter-spacing: -0.02em;
}

.am-login-tagline {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin: 0 0 40px 0;
}

.am-login-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.am-login-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
}

.am-login-feature i {
    color: #38bdf8;
    font-size: 1.1rem;
}

.am-login-branding-footer {
    position: relative;
    z-index: 1;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
}

/* Côté droit - Formulaire */
.am-login-form-wrapper {
    flex: 1;
    padding: 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.am-login-form-content {
    max-width: 380px;
    margin: 0 auto;
    width: 100%;
}

.am-login-header {
    text-align: center;
    margin-bottom: 32px;
}

.am-login-avatar {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 1.75rem;
    color: #0284c7;
}

.am-login-form-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 8px 0;
}

.am-login-form-subtitle {
    color: #64748b;
    margin: 0;
    font-size: 1rem;
}

/* Formulaire moderne avec labels flottants */
.am-login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.am-form-floating {
    position: relative;
}

.am-input-wrapper {
    position: relative;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    transition: all 0.3s ease;
    background: #f8fafc;
}

.am-input-wrapper:hover {
    border-color: #cbd5e1;
}

.am-input-wrapper.am-focused {
    border-color: #0ea5e9;
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.1);
    background: white;
}

.am-input-wrapper.am-has-value {
    background: white;
}

.am-input-icon-left {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 1rem;
    z-index: 1;
    transition: color 0.3s ease;
}

.am-input-wrapper.am-focused .am-input-icon-left {
    color: #0ea5e9;
}

.am-form-control-modern {
    width: 100%;
    padding: 18px 16px 18px 48px;
    font-size: 1rem;
    border: none;
    background: transparent;
    outline: none;
    color: #1e293b;
}

.am-form-control-modern::placeholder {
    color: transparent;
}

.am-form-floating label {
    position: absolute;
    left: 48px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 1rem;
    pointer-events: none;
    transition: all 0.3s ease;
    background: transparent;
    padding: 0 4px;
}

.am-form-control-modern:focus ~ label,
.am-form-control-modern:not(:placeholder-shown) ~ label {
    top: 0;
    left: 12px;
    font-size: 0.75rem;
    color: #0ea5e9;
    background: white;
}

.am-input-wrapper.am-has-value label,
.am-input-wrapper.am-focused label {
    top: 0;
    left: 12px;
    font-size: 0.75rem;
    color: #0ea5e9;
    background: white;
}

/* Bouton de connexion moderne */
.am-btn-login {
    width: 100%;
    padding: 16px 24px;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5a8a 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin-top: 8px;
}

.am-btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(30, 58, 95, 0.4);
}

.am-btn-login:active {
    transform: translateY(0);
}

.am-btn-login .am-btn-icon {
    transition: transform 0.3s ease;
}

.am-btn-login:hover .am-btn-icon {
    transform: translateX(4px);
}

.am-btn-login.am-loading {
    pointer-events: none;
    opacity: 0.8;
}

/* Footer du formulaire */
.am-login-footer {
    margin-top: 24px;
    text-align: center;
}

.am-login-link {
    color: #64748b;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.am-login-link:hover {
    color: #0ea5e9;
}

.am-login-security {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #e2e8f0;
    color: #94a3b8;
    font-size: 0.875rem;
}

.am-login-security i {
    color: #22c55e;
}

/* Divider "ou" */
.am-login-divider {
    display: flex;
    align-items: center;
    margin: 24px 0;
}

.am-login-divider::before,
.am-login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

.am-login-divider span {
    padding: 0 16px;
    color: #94a3b8;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Section inscription */
.am-login-register {
    text-align: center;
}

.am-login-register p {
    color: #64748b;
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.am-btn-register {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.am-btn-register:hover {
    background: linear-gradient(135deg, #219a52 0%, #27ae60 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(39, 174, 96, 0.3);
    color: white;
}

.am-login-back {
    margin-top: auto;
    padding-top: 24px;
    text-align: center;
}

.am-login-back a {
    color: #64748b;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.am-login-back a:hover {
    color: #1e3a5f;
}

/* ============================================================
   2. PAGE PIN OUBLIÉ
   ============================================================ */
.am-forgot-page {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%);
}

.am-forgot-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.am-forgot-card {
    width: 100%;
    max-width: 440px;
    background: white;
    border-radius: 24px;
    padding: 48px 40px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    position: relative;
    z-index: 1;
}

.am-forgot-header {
    text-align: center;
    margin-bottom: 32px;
}

.am-forgot-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: #d97706;
}

.am-forgot-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 8px 0;
}

.am-forgot-header p {
    color: #64748b;
    margin: 0;
    font-size: 1rem;
}

.am-forgot-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.am-btn-forgot {
    width: 100%;
    padding: 16px 24px;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.am-btn-forgot:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(217, 119, 6, 0.4);
}

.am-forgot-footer {
    margin-top: 24px;
    text-align: center;
}

.am-back-link {
    color: #64748b;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.am-back-link:hover {
    color: #d97706;
}

.am-forgot-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #e2e8f0;
    color: #94a3b8;
    font-size: 0.875rem;
}

/* ============================================================
   3. TABLEAU DE BORD MODERNE
   ============================================================ */
.am-dashboard-container {
    padding-top: 24px;
    padding-bottom: 40px;
}

/* Bannière d'alerte pour arriérés */
.am-payment-alert-banner {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    border-radius: 16px;
    padding: 20px 24px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    color: white;
    flex-wrap: wrap;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
}

.am-alert-content {
    display: flex;
    align-items: center;
    gap: 16px;
}

.am-alert-icon-pulse {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    animation: am-pulse 2s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes am-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.am-alert-text h4 {
    margin: 0 0 4px 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.am-alert-text p {
    margin: 0;
    font-size: 0.95rem;
    opacity: 0.9;
}

.am-btn-pay-now {
    background: white;
    color: #dc2626;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.am-btn-pay-now:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Header du dashboard */
.am-dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.am-member-welcome {
    display: flex;
    align-items: center;
    gap: 16px;
}

.am-member-avatar-large {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5a8a 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.am-member-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.am-welcome-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.am-member-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.am-member-ref,
.am-member-since {
    font-size: 0.875rem;
    color: #64748b;
    display: flex;
    align-items: center;
}

/* Badge de statut */
.am-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
}

.am-status-pill i {
    font-size: 1rem;
}

.am-status-success {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
}

.am-status-warning {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
}

.am-status-info {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1e40af;
}

/* Statistiques modernes */
.am-stats-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.am-stat-modern {
    background: white;
    border-radius: 16px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    position: relative;
}

.am-stat-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.am-stat-modern-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.am-stat-danger .am-stat-modern-icon {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #dc2626;
}

.am-stat-success .am-stat-modern-icon {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #059669;
}

.am-stat-primary .am-stat-modern-icon {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1e3a5f;
}

.am-stat-info .am-stat-modern-icon {
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
    color: #6366f1;
}

.am-stat-modern-info {
    position: absolute;
    right: 16px;
    top: 16px;
    color: #94a3b8;
    font-size: 0.875rem;
    cursor: help;
}

.am-stat-modern-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.am-stat-modern-value {
    font-size: 1.35rem;
    font-weight: 700;
    color: #1e293b;
}

.am-stat-modern-label {
    font-size: 0.875rem;
    color: #64748b;
}

.am-stat-modern-action {
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    color: #0ea5e9;
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.am-stat-modern-action:hover {
    color: #1e3a5f;
}

/* Actions rapides */
.am-quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.am-quick-action {
    background: white;
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    text-align: center;
}

.am-quick-action:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.am-quick-action-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: white;
}

.am-quick-action-icon.am-bg-primary {
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5a8a 100%);
}

.am-quick-action-icon.am-bg-success {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.am-quick-action-icon.am-bg-info {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
}

.am-quick-action-icon.am-bg-warning {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
}

.am-quick-action-icon.am-bg-secondary {
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
}

.am-quick-action span {
    font-size: 0.875rem;
    font-weight: 500;
    color: #475569;
}

/* ============================================================
   4. ANIMATIONS
   ============================================================ */
@keyframes am-shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.am-animate-shake {
    animation: am-shake 0.6s ease-in-out;
}

@keyframes am-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.am-animate-bounce {
    animation: am-bounce 0.5s ease-in-out;
}

@keyframes am-slideDown {
    from { 
        opacity: 0; 
        transform: translateY(-20px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

.am-animate-slideDown {
    animation: am-slideDown 0.4s ease-out forwards;
}

/* ============================================================
   5. RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
    .am-login-container {
        flex-direction: column;
        max-width: 440px;
    }
    
    .am-login-branding {
        padding: 32px 24px;
        min-height: auto;
    }
    
    .am-login-features {
        display: none;
    }
    
    .am-login-form-wrapper {
        padding: 32px 24px;
    }
    
    .am-forgot-card {
        padding: 32px 24px;
    }
    
    .am-payment-alert-banner {
        flex-direction: column;
        text-align: center;
    }
    
    .am-alert-content {
        flex-direction: column;
        text-align: center;
    }
    
    .am-dashboard-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .am-welcome-title {
        font-size: 1.25rem;
    }
    
    .am-stats-modern {
        grid-template-columns: 1fr;
    }
    
    .am-quick-actions {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .am-login-branding {
        display: none;
    }
    
    .am-login-container {
        border-radius: 16px;
    }
    
    .am-member-welcome {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .am-quick-actions {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    
    .am-quick-action {
        padding: 16px 12px;
    }
    
    .am-quick-action span {
        font-size: 0.8rem;
    }
}

/* ============================================================
   6. AMÉLIORATIONS SUPPLÉMENTAIRES
   ============================================================ */

/* Input PIN stylé */
.am-pin-input {
    letter-spacing: 0.5em;
    text-transform: uppercase;
    font-weight: 600;
    text-align: center;
}

/* Cards améliorées pour les cotisations */
.am-fee-card-modern {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

.am-fee-card-modern .am-card-header {
    padding: 16px 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.am-fee-card-modern.am-header-warning .am-card-header {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
}

.am-fee-card-modern.am-header-success .am-card-header {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
}

/* Items de la liste des cotisations */
.am-fee-item-modern {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #f1f5f9;
    cursor: pointer;
    transition: all 0.2s ease;
}

.am-fee-item-modern:last-child {
    border-bottom: none;
}

.am-fee-item-modern:hover {
    background: #f8fafc;
}

.am-fee-item-modern .am-fee-period {
    font-weight: 600;
    color: #1e293b;
}

.am-fee-item-modern .am-fee-ref {
    font-size: 0.8rem;
    color: #94a3b8;
    margin-top: 2px;
}

.am-fee-price {
    font-weight: 700;
    font-size: 1rem;
}

.am-fee-price.am-unpaid {
    color: #dc2626;
}

.am-fee-price.am-paid {
    color: #059669;
}

/* Bouton Wave prominent */
.am-wave-btn {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
}

.am-wave-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(34, 197, 94, 0.4);
}

.am-wave-btn i {
    font-size: 1.3rem;
}

/* ============================================================
   7. PAGE DE PAIEMENT MODERNE
   ============================================================ */
.am-pay-container {
    padding-top: 24px;
    padding-bottom: 48px;
}

.am-pay-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.am-pay-header-content {
    display: flex;
    align-items: center;
    gap: 16px;
}

.am-pay-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5a8a 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.am-pay-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.am-pay-subtitle {
    color: #64748b;
    margin: 4px 0 0 0;
    font-size: 0.95rem;
}

.am-btn-outline-modern {
    padding: 12px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #1e3a5f;
    background: white;
    border: 2px solid #1e3a5f;
    border-radius: 10px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
}

.am-btn-outline-modern:hover {
    background: #1e3a5f;
    color: white;
}

/* Carte moderne */
.am-card-modern {
    background: white;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.am-card-modern-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.am-card-modern-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: #1e293b;
}

.am-card-modern-title i {
    color: #0ea5e9;
}

.am-select-all-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: #64748b;
    cursor: pointer;
}

/* Checkbox moderne */
.am-checkbox-modern {
    width: 20px;
    height: 20px;
    accent-color: #1e3a5f;
    cursor: pointer;
}

.am-fee-checkbox-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    margin-right: 16px;
}

.am-checkbox-custom {
    width: 22px;
    height: 22px;
    border: 2px solid #cbd5e1;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.am-checkbox-modern:checked + .am-checkbox-custom {
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5a8a 100%);
    border-color: #1e3a5f;
}

.am-checkbox-modern:checked + .am-checkbox-custom::after {
    content: '✓';
    position: absolute;
    color: white;
    font-size: 14px;
    font-weight: bold;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.am-checkbox-modern {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

/* Liste des cotisations moderne */
.am-fee-list-modern {
    max-height: 400px;
    overflow-y: auto;
}

.am-fee-item-modern {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #f1f5f9;
    cursor: pointer;
    transition: all 0.2s ease;
}

.am-fee-item-modern:last-child {
    border-bottom: none;
}

.am-fee-item-modern:hover {
    background: #f8fafc;
}

.am-fee-item-modern.am-selected {
    background: linear-gradient(135deg, rgba(30, 58, 95, 0.05) 0%, rgba(14, 165, 233, 0.05) 100%);
    border-left: 3px solid #1e3a5f;
}

.am-fee-content {
    flex: 1;
}

.am-fee-period-modern {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.am-fee-month {
    font-weight: 600;
    color: #1e293b;
    font-size: 1rem;
}

.am-fee-year {
    color: #64748b;
    font-size: 0.9rem;
}

.am-fee-ref-modern {
    font-size: 0.8rem;
    color: #94a3b8;
    margin-top: 2px;
}

.am-fee-amount-modern {
    text-align: right;
}

.am-fee-price-modern {
    font-weight: 700;
    font-size: 1.1rem;
    color: #dc2626;
}

.am-fee-price-modern span {
    font-size: 0.8rem;
    color: #94a3b8;
    font-weight: 500;
}

.am-fee-partial-badge {
    font-size: 0.75rem;
    color: #d97706;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
    justify-content: flex-end;
}

/* Résumé moderne */
.am-summary-modern {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.am-summary-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5a8a 100%);
    color: white;
    font-weight: 600;
}

.am-summary-body {
    padding: 20px;
}

.am-summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    color: #64748b;
    font-size: 0.95rem;
}

.am-count-badge {
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
    color: #0284c7;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.am-summary-total-modern {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    margin: 0 -20px;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.am-summary-total-modern span {
    font-weight: 500;
    color: #64748b;
}

.am-total-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
}

/* Section paiement */
.am-payment-section {
    margin-top: 20px;
}

.am-section-label {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 12px;
    display: block;
    font-size: 0.9rem;
}

.am-payment-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.am-payment-option {
    display: block;
    cursor: pointer;
}

.am-payment-option input {
    position: absolute;
    opacity: 0;
}

.am-payment-option-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 14px 10px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    transition: all 0.2s ease;
    background: #f8fafc;
}

.am-payment-option:hover .am-payment-option-content {
    border-color: #cbd5e1;
}

.am-payment-option.am-selected .am-payment-option-content {
    border-color: #1e3a5f;
    background: linear-gradient(135deg, rgba(30, 58, 95, 0.05) 0%, rgba(14, 165, 233, 0.05) 100%);
}

.am-payment-option-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.am-payment-option-icon.am-wave {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
}

.am-payment-option-icon.am-mobile {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}

.am-payment-option-icon.am-bank {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
}

.am-payment-option-icon.am-cash {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
}

.am-payment-option span {
    font-size: 0.8rem;
    font-weight: 500;
    color: #475569;
}

/* Footer du résumé */
.am-summary-footer {
    padding: 20px;
    border-top: 1px solid #e2e8f0;
}

.am-btn-pay {
    width: 100%;
    padding: 16px 24px;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    opacity: 0.5;
}

.am-btn-pay:disabled {
    cursor: not-allowed;
}

.am-btn-pay.am-active,
.am-btn-pay:not(:disabled) {
    opacity: 1;
}

.am-btn-pay:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(34, 197, 94, 0.4);
}

.am-secure-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
    color: #94a3b8;
    font-size: 0.8rem;
}

.am-secure-badge i {
    color: #22c55e;
}

/* État vide moderne */
.am-empty-modern {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 24px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.am-empty-modern-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 3rem;
    color: #059669;
}

.am-empty-modern-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 8px 0;
}

.am-empty-modern-text {
    color: #64748b;
    margin: 0 0 32px 0;
    font-size: 1.1rem;
}

.am-empty-modern-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.am-btn-primary-modern {
    padding: 14px 24px;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5a8a 100%);
    border: none;
    border-radius: 12px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
}

.am-btn-primary-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(30, 58, 95, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .am-pay-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .am-payment-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .am-empty-modern-actions {
        flex-direction: column;
    }
}


/* ============================================================
   PAGE D'AIDE / GUIDE D'UTILISATION
   ============================================================ */

.am-help-container {
    padding: 2rem 0 4rem;
    max-width: 900px;
    margin: 0 auto;
}

.am-help-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5a8a 100%);
    border-radius: 20px;
    color: white;
}

.am-help-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
}

.am-help-header h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.am-help-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Sommaire */
.am-help-toc {
    background: white;
    border-radius: 16px;
    padding: 1.5rem 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.am-help-toc h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 1rem;
}

.am-help-toc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem;
}

.am-help-toc-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: #f8fafc;
    border-radius: 10px;
    text-decoration: none;
    color: #334155;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.am-help-toc-item:hover {
    background: #1e3a5f;
    color: white;
    transform: translateY(-2px);
}

.am-help-toc-item i {
    font-size: 1rem;
    color: #1e3a5f;
    transition: color 0.2s;
}

.am-help-toc-item:hover i {
    color: white;
}

/* Sections */
.am-help-section {
    background: white;
    border-radius: 16px;
    margin-bottom: 1.5rem;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.am-help-section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 2rem;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.am-help-section-number {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5a8a 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
}

.am-help-section-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

.am-help-content {
    padding: 2rem;
}

.am-help-intro {
    font-size: 1rem;
    color: #64748b;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Étapes */
.am-help-steps {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.am-help-step {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.am-step-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.am-step-content h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.am-step-content p {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.5;
    margin: 0;
}

/* Tips */
.am-help-tip {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: #fef3c7;
    border-radius: 10px;
    margin-top: 1rem;
}

.am-help-tip i {
    color: #d97706;
    font-size: 1.1rem;
    margin-top: 0.1rem;
}

.am-help-tip span {
    font-size: 0.9rem;
    color: #92400e;
    line-height: 1.5;
}

/* Features */
.am-help-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.am-help-feature {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 12px;
}

.am-feature-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
}

.am-feature-icon.am-bg-danger {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
}

.am-feature-icon.am-bg-success {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.am-feature-icon.am-bg-primary {
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5a8a 100%);
}

.am-feature-content h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.25rem;
}

.am-feature-content p {
    font-size: 0.9rem;
    color: #64748b;
    margin: 0;
}

/* Alerts dans aide */
.am-help-alert {
    display: flex;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-radius: 10px;
    align-items: flex-start;
}

.am-help-alert i {
    font-size: 1.1rem;
    margin-top: 0.15rem;
}

.am-help-alert p {
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.5;
}

.am-help-alert.am-alert-info {
    background: #dbeafe;
    color: #1e40af;
}

.am-help-alert.am-alert-warning {
    background: #fef3c7;
    color: #92400e;
}

/* Badges dans aide */
.am-help-badges {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin: 1rem 0 1.5rem;
}

.am-help-badge-item {
    text-align: center;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 10px;
}

.am-help-badge-item .am-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.am-help-badge-item .am-badge-success {
    background: #059669;
    color: white;
}

.am-help-badge-item .am-badge-warning {
    background: #d97706;
    color: white;
}

.am-help-badge-item .am-badge-secondary {
    background: #64748b;
    color: white;
}

.am-help-badge-item .am-badge-info {
    background: #0284c7;
    color: white;
}

.am-help-badge-item p {
    font-size: 0.85rem;
    color: #64748b;
    margin: 0;
}

/* Liste */
.am-help-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.am-help-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    font-size: 0.95rem;
    color: #475569;
}

.am-help-list li i {
    width: 20px;
    text-align: center;
}

/* FAQ */
.am-help-faq {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.am-faq-item {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.am-faq-item:hover {
    border-color: #cbd5e1;
}

.am-faq-question {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    cursor: pointer;
    background: #f8fafc;
    font-weight: 500;
    color: #334155;
    transition: all 0.2s ease;
}

.am-faq-question:hover {
    background: #f1f5f9;
}

.am-faq-question i {
    font-size: 0.75rem;
    color: #94a3b8;
    transition: transform 0.2s ease;
}

.am-faq-item.open .am-faq-question i {
    transform: rotate(90deg);
    color: #1e3a5f;
}

.am-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.am-faq-item.open .am-faq-answer {
    max-height: 200px;
}

.am-faq-answer p {
    padding: 1rem 1.25rem 1.25rem;
    margin: 0;
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.6;
    border-top: 1px solid #e2e8f0;
}

/* Support */
.am-help-support {
    margin-top: 3rem;
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5a8a 100%);
    border-radius: 20px;
    padding: 2.5rem;
    color: white;
}

.am-support-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.am-support-icon {
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
}

.am-support-text {
    flex: 1;
    min-width: 200px;
}

.am-support-text h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.am-support-text p {
    font-size: 0.95rem;
    opacity: 0.85;
    margin: 0;
}

.am-btn-outline-light {
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 10px;
    color: white;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.2s ease;
}

.am-btn-outline-light:hover {
    background: white;
    color: #1e3a5f;
    border-color: white;
}

/* Responsive aide */
@media (max-width: 768px) {
    .am-help-container {
        padding: 1rem;
    }
    
    .am-help-header {
        padding: 2rem 1.5rem;
    }
    
    .am-help-header h1 {
        font-size: 1.5rem;
    }
    
    .am-help-toc-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .am-help-section-header {
        padding: 1rem 1.25rem;
    }
    
    .am-help-content {
        padding: 1.25rem;
    }
    
    .am-help-step {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .am-support-content {
        flex-direction: column;
        text-align: center;
    }
    
    .am-support-text {
        text-align: center;
    }
}

/* ============================================================
   8. SECTION ACTIVITÉS EN COURS - DASHBOARD MEMBRE
   ============================================================ */

/* Container de la section */
.am-activities-highlight-section {
    background: linear-gradient(135deg, #fef7f0 0%, #fff5f5 50%, #fef7f0 100%);
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 24px;
    border: 1px solid #fce7e0;
    box-shadow: 0 4px 20px rgba(231, 76, 60, 0.08);
}

/* Header de la section */
.am-section-header-highlight {
    margin-bottom: 20px;
}

.am-section-title-highlight {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.am-section-subtitle {
    font-size: 0.95rem;
    margin-top: 4px;
}

/* Animation du coeur */
.am-heart-pulse {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    border-radius: 50%;
    color: white;
    font-size: 1.1rem;
    animation: am-heart-beat 1.5s ease-in-out infinite;
}

@keyframes am-heart-beat {
    0%, 100% { transform: scale(1); }
    14% { transform: scale(1.15); }
    28% { transform: scale(1); }
    42% { transform: scale(1.15); }
    70% { transform: scale(1); }
}

/* Bouton outline primary */
.am-btn-outline-primary {
    border: 2px solid #3b82f6;
    color: #3b82f6;
    background: transparent;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.am-btn-outline-primary:hover {
    background: #3b82f6;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Cartes d'activités mise en avant */
.am-activity-highlight-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    position: relative;
}

.am-activity-highlight-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    border-color: #3b82f6;
}

/* Ruban d'état */
.am-activity-status-ribbon {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
}

.am-ribbon {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.am-ribbon-active {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    animation: am-pulse-glow 2s ease-in-out infinite;
}

.am-ribbon-planned {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
}

@keyframes am-pulse-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
    50% { box-shadow: 0 0 15px 5px rgba(16, 185, 129, 0.2); }
}

/* Corps de la carte */
.am-activity-card-body {
    padding: 20px;
}

/* Tags de type */
.am-activity-type-tag {
    display: flex;
}

.am-tag {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.am-tag-event {
    background: #dbeafe;
    color: #1d4ed8;
}

.am-tag-charity {
    background: #dcfce7;
    color: #15803d;
}

.am-tag-formation {
    background: #fef3c7;
    color: #b45309;
}

.am-tag-sport {
    background: #fce7f3;
    color: #be185d;
}

.am-tag-cultural {
    background: #f3e8ff;
    color: #7c3aed;
}

.am-tag-other {
    background: #f1f5f9;
    color: #475569;
}

/* Titre de l'activité */
.am-activity-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    margin: 8px 0;
    line-height: 1.3;
}

/* Métadonnées */
.am-activity-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
}

.am-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: #64748b;
}

.am-meta-item i {
    color: #94a3b8;
}

/* Section progression du financement */
.am-funding-progress {
    background: #f8fafc;
    padding: 12px;
    border-radius: 12px;
}

.am-progress-header {
    margin-bottom: 8px;
}

.am-amount-collected {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.am-amount-value {
    font-size: 1.25rem;
    font-weight: 700;
}

.am-amount-currency {
    font-size: 0.8rem;
    color: #64748b;
}

.am-progress-percent {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
}

.am-percent-value {
    display: inline;
}

/* Barre de progression stylée */
.am-progress-bar-container {
    width: 100%;
}

.am-progress-bar-bg {
    height: 10px;
    background: #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
}

.am-progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981 0%, #34d399 50%, #10b981 100%);
    background-size: 200% 100%;
    border-radius: 10px;
    transition: width 0.5s ease;
}

.am-animate-progress {
    animation: am-progress-shine 2s ease-in-out infinite;
}

@keyframes am-progress-shine {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.am-progress-footer {
    font-size: 0.8rem;
}

.am-target-text, .am-contributors-count {
    color: #64748b;
}

/* Info si pas d'objectif */
.am-no-target-info {
    background: #f8fafc;
    padding: 12px;
    border-radius: 12px;
}

/* Bouton Contribuer stylé */
.am-btn-contribute {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.am-btn-contribute:hover {
    background: linear-gradient(135deg, #c0392b 0%, #a93226 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(231, 76, 60, 0.35);
    color: white;
}

.am-btn-contribute i {
    transition: transform 0.3s ease;
}

.am-btn-contribute:hover i:first-child {
    animation: am-heart-pop 0.5s ease;
}

@keyframes am-heart-pop {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3); }
}

.am-btn-contribute:hover i:last-child {
    transform: translateX(4px);
}

/* Card "Aucune activité" */
.am-no-activities-card {
    background: white;
    border-radius: 16px;
    padding: 40px 24px;
    border: 2px dashed #e2e8f0;
}

.am-no-activities-content h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1e293b;
    margin: 16px 0 8px;
}

.am-no-activities-content p {
    color: #64748b;
    max-width: 400px;
    margin: 0 auto;
}

.am-no-activities-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.am-no-activities-icon i {
    font-size: 2rem;
    color: #94a3b8;
}

/* ============================================================
   RESPONSIVE - Section Activités
   ============================================================ */
@media (max-width: 991px) {
    .am-activities-highlight-section {
        padding: 20px 16px;
    }
    
    .am-section-header-highlight .d-flex {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start !important;
    }
    
    .am-section-title-highlight {
        font-size: 1.2rem;
    }
}

@media (max-width: 767px) {
    .am-activities-highlight-section {
        padding: 16px 12px;
        border-radius: 16px;
    }
    
    .am-section-title-highlight {
        font-size: 1.1rem;
        flex-wrap: wrap;
    }
    
    .am-heart-pulse {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
    
    .am-activity-highlight-card {
        border-radius: 12px;
    }
    
    .am-activity-card-body {
        padding: 16px;
    }
    
    .am-activity-card-title {
        font-size: 1rem;
    }
    
    .am-btn-contribute {
        padding: 12px 16px;
        font-size: 0.95rem;
    }
    
    .am-funding-progress {
        padding: 10px;
    }
    
    .am-amount-value {
        font-size: 1.1rem;
    }
}