/* Variables de couleur ACTL */
:root {
    --actl-primary: #FF4757;
    --actl-primary-dark: #e63946;
    --actl-primary-light: #ff6b7a;
    --actl-primary-lighter: #ff8c9d;
    --actl-secondary: #ff8c9d;
    --actl-gradient: linear-gradient(135deg, #FF4757 0%, #ff8c9d 100%);
    --actl-gradient-reverse: linear-gradient(135deg, #ff8c9d 0%, #FF4757 100%);
    --actl-text: #2c3e50;
    --actl-text-light: #7f8c8d;
    --actl-bg-light: #fff5f6;
    --actl-bg-lighter: #ffeef0;
    --actl-border: #ffe0e3;
    --actl-success: #00b894;
    --actl-warning: #fdcb6e;
    --actl-error: #d63031;
    --actl-white: #ffffff;
    --actl-gray-light: #ecf0f1;
    --actl-gray: #bdc3c7;
}

/* Styles de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--actl-text);
    line-height: 1.6;
    background: linear-gradient(135deg, #fff5f6 0%, #ffffff 100%);
    min-height: 100vh;
}

/* Container */
.actl-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header ACTL */
.actl-header {
    background: var(--actl-white);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(255, 71, 87, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    border: 1px solid var(--actl-border);
}

.actl-logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.actl-logo-icon {
    width: 60px;
    height: 60px;
    background: var(--actl-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--actl-white);
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(255, 71, 87, 0.3);
}

.actl-logo-text h1 {
    font-size: 24px;
    color: var(--actl-text);
    margin: 0;
    font-weight: 700;
}

.actl-logo-text p {
    color: var(--actl-text-light);
    font-size: 14px;
    margin: 0;
}

/* Sélecteur de langue */
.actl-lang-switcher {
    display: flex;
    gap: 10px;
}

.actl-lang-btn {
    padding: 8px 20px;
    border: 2px solid var(--actl-primary);
    background: var(--actl-white);
    color: var(--actl-primary);
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.actl-lang-btn:hover {
    background: var(--actl-bg-light);
}

.actl-lang-btn.active {
    background: var(--actl-gradient);
    color: var(--actl-white);
    border-color: transparent;
    box-shadow: 0 5px 15px rgba(255, 71, 87, 0.3);
}

/* Onglets */
.actl-tabs {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.actl-tab-btn {
    background: var(--actl-white);
    border: none;
    padding: 15px 30px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: var(--actl-text-light);
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: 1px solid var(--actl-border);
}

.actl-tab-btn:hover {
    background: var(--actl-bg-light);
    color: var(--actl-primary);
}

.actl-tab-btn.active {
    background: var(--actl-gradient);
    color: var(--actl-white);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 71, 87, 0.4);
    border-color: transparent;
}

/* Grille des campagnes */
.actl-campaigns-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
}

/* Carte de campagne */
.actl-campaign-card {
    background: var(--actl-white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(255, 71, 87, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid var(--actl-border);
}

.actl-campaign-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(255, 71, 87, 0.2);
}

.actl-campaign-image {
    width: 100%;
    height: 200px;
    background: var(--actl-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    color: var(--actl-white);
    position: relative;
}

.actl-campaign-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 71, 87, 0.9) 0%, rgba(255, 140, 157, 0.9) 100%);
}

.actl-campaign-image i {
    position: relative;
    z-index: 1;
}

.actl-campaign-content {
    padding: 25px;
}

.actl-campaign-title {
    font-size: 22px;
    color: var(--actl-text);
    margin-bottom: 10px;
    font-weight: 700;
}

.actl-campaign-description {
    color: var(--actl-text-light);
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Barre de progression */
.actl-progress-section {
    margin-bottom: 20px;
}

.actl-progress-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
}

.actl-progress-bar-container {
    width: 100%;
    height: 12px;
    background: var(--actl-border);
    border-radius: 10px;
    overflow: hidden;
}

.actl-progress-bar {
    height: 100%;
    background: var(--actl-gradient);
    border-radius: 10px;
    transition: width 0.5s ease;
}

/* Statistiques */
.actl-campaign-stats {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--actl-border);
    font-size: 14px;
    color: var(--actl-text-light);
}

.actl-stat {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Stats des dons permanents */
.actl-permanent-stats {
    background: var(--actl-bg-light);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 15px;
    text-align: center;
    border: 1px solid var(--actl-border);
}

.actl-permanent-stats p {
    color: var(--actl-text-light);
    font-size: 14px;
    margin: 0;
}

.actl-permanent-stats strong {
    color: var(--actl-primary);
    font-size: 24px;
    display: block;
    margin-bottom: 5px;
}

/* Derniers donateurs */
.actl-recent-donors {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--actl-border);
}

.actl-recent-donors h4 {
    font-size: 14px;
    color: var(--actl-text);
    margin-bottom: 10px;
}

.actl-donor-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 13px;
    color: var(--actl-text-light);
}

.actl-donor-name {
    font-weight: 600;
    color: var(--actl-text);
}

.actl-donor-amount {
    color: var(--actl-primary);
    font-weight: 600;
}

/* Bouton de don */
.actl-donate-btn {
    width: 100%;
    padding: 15px;
    background: var(--actl-gradient);
    color: var(--actl-white);
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.actl-donate-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.actl-donate-btn:hover::before {
    left: 100%;
}

.actl-donate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 71, 87, 0.4);
}

/* Badges */
.actl-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 10px;
}

.actl-badge-urgent {
    background: var(--actl-primary);
    color: var(--actl-white);
}

.actl-badge-permanent {
    background: var(--actl-secondary);
    color: var(--actl-white);
}

/* Modal */
.actl-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 71, 87, 0.1);
    backdrop-filter: blur(5px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.actl-modal.active {
    display: flex;
}

.actl-modal-content {
    background: var(--actl-white);
    border-radius: 20px;
    padding: 40px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(255, 71, 87, 0.2);
    border: 1px solid var(--actl-border);
}

.actl-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 30px;
    cursor: pointer;
    color: var(--actl-text-light);
    background: none;
    border: none;
    transition: color 0.3s;
}

.actl-modal-close:hover {
    color: var(--actl-primary);
}

.actl-modal-title {
    font-size: 28px;
    margin-bottom: 25px;
    color: var(--actl-text);
    font-weight: 700;
}

/* Étapes */
.actl-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    position: relative;
}

.actl-steps::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--actl-border);
    z-index: 1;
}

.actl-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    width: 25%;
}

.actl-step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--actl-white);
    border: 2px solid var(--actl-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-bottom: 10px;
    transition: all 0.3s;
    color: var(--actl-text-light);
}

.actl-step.active .actl-step-number {
    background: var(--actl-gradient);
    color: var(--actl-white);
    border-color: transparent;
    box-shadow: 0 5px 15px rgba(255, 71, 87, 0.3);
}

.actl-step.completed .actl-step-number {
    background: var(--actl-gradient);
    color: var(--actl-white);
    border-color: transparent;
}

.actl-step.completed .actl-step-number::after {
    content: '✓';
}

.actl-step-label {
    font-size: 14px;
    color: var(--actl-text-light);
    text-align: center;
}

.actl-step.active .actl-step-label {
    color: var(--actl-primary);
    font-weight: 600;
}

/* Contenu des étapes */
.actl-step-content {
    display: none;
}

.actl-step-content.active {
    display: block;
}

/* Formulaire */
.actl-form-group {
    margin-bottom: 20px;
}

.actl-form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--actl-text);
    font-weight: 600;
}

.actl-form-group input,
.actl-form-group select,
.actl-form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--actl-border);
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s;
    font-family: 'Montserrat', sans-serif;
    background: var(--actl-white);
}

.actl-form-group input:focus,
.actl-form-group select:focus,
.actl-form-group textarea:focus {
    outline: none;
    border-color: var(--actl-primary);
    box-shadow: 0 0 0 3px rgba(255, 71, 87, 0.1);
}

/* Boutons de montant */
.actl-amount-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 15px;
}

.actl-amount-btn {
    padding: 15px;
    border: 2px solid var(--actl-border);
    background: var(--actl-white);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    color: var(--actl-text);
}

.actl-amount-btn:hover {
    border-color: var(--actl-primary);
    background: var(--actl-bg-light);
    color: var(--actl-primary);
}

.actl-amount-btn.selected {
    border-color: var(--actl-primary);
    background: var(--actl-gradient);
    color: var(--actl-white);
    box-shadow: 0 5px 15px rgba(255, 71, 87, 0.3);
}

/* Cases à cocher */
.actl-checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.actl-checkbox-group input[type="checkbox"] {
    width: auto;
    accent-color: var(--actl-primary);
}

.actl-checkbox-group input[type="checkbox"]:checked {
    background: var(--actl-primary);
}

/* Section total */
.actl-total-section {
    background: var(--actl-bg-light);
    padding: 20px;
    border-radius: 10px;
    margin: 25px 0;
    border: 1px solid var(--actl-border);
}

.actl-total-amount {
    font-size: 32px;
    color: var(--actl-primary);
    font-weight: 700;
    text-align: center;
}

/* Boutons de navigation */
.actl-navigation-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.actl-nav-btn {
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
}

.actl-prev-btn {
    background: var(--actl-gray-light);
    color: var(--actl-text-light);
}

.actl-prev-btn:hover {
    background: var(--actl-gray);
    color: var(--actl-text);
}

.actl-next-btn {
    background: var(--actl-gradient);
    color: var(--actl-white);
}

.actl-next-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 71, 87, 0.4);
}

/* Résumé du don */
.actl-donation-summary {
    background: var(--actl-bg-light);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 1px solid var(--actl-border);
}

.actl-summary-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--actl-text);
}

.actl-summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--actl-border);
}

.actl-summary-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
    font-weight: 700;
    font-size: 18px;
    color: var(--actl-primary);
}

/* Méthodes de paiement */
.actl-payment-methods {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.actl-payment-method {
    border: 2px solid var(--actl-border);
    border-radius: 10px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--actl-white);
}

.actl-payment-method:hover {
    border-color: var(--actl-primary);
    background: var(--actl-bg-light);
}

.actl-payment-method.selected {
    border-color: var(--actl-primary);
    background: var(--actl-bg-light);
    box-shadow: 0 5px 15px rgba(255, 71, 87, 0.2);
}

.actl-payment-method i {
    font-size: 24px;
    color: var(--actl-primary);
}

.actl-payment-method-name {
    font-weight: 600;
    color: var(--actl-text);
}

/* Message de remerciement */
.actl-thank-you-message {
    display: none;
    text-align: center;
    padding: 40px;
    background: var(--actl-white);
    border-radius: 20px;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: 0 20px 60px rgba(255, 71, 87, 0.1);
    border: 1px solid var(--actl-border);
}

.actl-thank-you-message.active {
    display: block;
}

.actl-thank-you-icon {
    font-size: 80px;
    color: var(--actl-primary);
    margin-bottom: 20px;
}

.actl-thank-you-title {
    font-size: 32px;
    color: var(--actl-text);
    margin-bottom: 20px;
    font-weight: 700;
}

.actl-thank-you-text {
    font-size: 18px;
    color: var(--actl-text-light);
    line-height: 1.6;
    margin-bottom: 30px;
}

.actl-download-receipt-btn {
    padding: 15px 30px;
    background: var(--actl-gradient);
    color: var(--actl-white);
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    margin-right: 15px;
}

.actl-download-receipt-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 71, 87, 0.4);
}

.actl-back-home-btn {
    padding: 15px 30px;
    background: var(--actl-white);
    color: var(--actl-primary);
    border: 2px solid var(--actl-primary);
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.actl-back-home-btn:hover {
    background: var(--actl-bg-light);
}

/* Tab Content */
.actl-tab-content {
    display: none;
}

.actl-tab-content.active {
    display: block;
}

/* Responsive */
@media (max-width: 768px) {
    .actl-campaigns-grid {
        grid-template-columns: 1fr;
    }
    
    .actl-header {
        flex-direction: column;
        gap: 20px;
    }
    
    .actl-amount-buttons {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .actl-payment-methods {
        grid-template-columns: 1fr;
    }
    
    .actl-steps {
        flex-direction: column;
        gap: 20px;
    }
    
    .actl-steps::before {
        display: none;
    }
    
    .actl-step {
        width: 100%;
        flex-direction: row;
        justify-content: flex-start;
        gap: 15px;
    }
    
    .actl-navigation-buttons {
        flex-direction: column;
        gap: 10px;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.actl-fade-in {
    animation: fadeIn 0.5s ease-out;
}

/* Loading spinner */
.actl-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Messages d'alerte */
.actl-alert {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.actl-alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.actl-alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.actl-alert-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

/* Effets de survol supplémentaires */
.actl-campaign-card:hover .actl-campaign-image::after {
    background: linear-gradient(135deg, rgba(230, 57, 70, 0.9) 0%, rgba(255, 107, 122, 0.9) 100%);
}

/* Focus states pour l'accessibilité */
.actl-btn:focus,
.actl-donate-btn:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid var(--actl-primary);
    outline-offset: 2px;
}

/* Scrollbar personnalisée */
.actl-modal-content::-webkit-scrollbar {
    width: 8px;
}

.actl-modal-content::-webkit-scrollbar-track {
    background: var(--actl-bg-light);
    border-radius: 10px;
}

.actl-modal-content::-webkit-scrollbar-thumb {
    background: var(--actl-primary);
    border-radius: 10px;
}

.actl-modal-content::-webkit-scrollbar-thumb:hover {
    background: var(--actl-primary-dark);
}

/* Widget styles */
.actl-widget {
    background: var(--actl-white);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.actl-widget-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--actl-text);
    margin-bottom: 15px;
    text-align: center;
}

.actl-widget-campaign {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--actl-border);
}

.actl-widget-campaign:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.actl-widget-campaign-title {
    font-weight: 600;
    color: var(--actl-text);
    margin-bottom: 5px;
}

.actl-widget-campaign-amount {
    color: var(--actl-primary);
    font-weight: 700;
}

.actl-widget-donate-btn {
    width: 100%;
    padding: 10px;
    background: var(--actl-gradient);
    color: var(--actl-white);
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
}

.actl-widget-donate-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(255, 71, 87, 0.3);
}