/* Couleurs distinctes pour chaque statut temporel */
h3 {
    border-radius: 5px;
    color: white;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}
h3.upcoming {
    background-color: #b6e388; /* Vert clair */
}
h3.ongoing {
    background-color:rgb(233, 202, 101); /* Jaune/orange */
}
h3.past {
    background-color:rgb(241, 92, 92); /* Rouge */
}

/* Style pour les titres de période */
h4.period-title {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
    color: #374151; /* Gris foncé */
    border-left: 5px solid #3b82f6;
    padding-left: 0.5rem;
}

/* Style pour le lien toggle des activités passées */
.past-activities-toggle {
    color: #6b7280;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    transition: color 0.2s;
}

.past-activities-toggle:hover {
    color: #374151;
}

.past-activities-toggle i {
    transition: transform 0.3s;
}

.past-activities-toggle[aria-expanded="true"] i {
    transform: rotate(90deg);
}

/* Animation pour le collapse */
#pastActivities {
    transition: all 0.3s ease-in-out;
}

/* Styles pour les cartes d'activité allongées */
.activity-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
    transition: box-shadow 0.2s;
}

.activity-card:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Sur desktop - affichage horizontal */
@media (min-width: 992px) {
    .activity-card-content {
        display: flex;
        align-items: center;
        gap: 2rem;
    }

    .activity-info {
        flex: 1;
        min-width: 0; /* Permet au text-overflow de fonctionner */
    }

    .activity-title {
        font-size: 1.125rem;
        font-weight: 600;
        margin-bottom: 0.25rem;
        color: #111827;
    }

    .activity-description {
        font-size: 0.875rem;
        color: #6b7280;
    }

    .activity-dates,
    .activity-age,
    .activity-price,
    .activity-capacity {
        display: flex;
        flex-direction: column;
        align-items: center;
        min-width: 120px;
        padding: 0 0.5rem;
        border-left: 1px solid #e5e7eb;
    }

    .activity-label {
        font-size: 0.75rem;
        color: #9ca3af;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        margin-bottom: 0.25rem;
    }

    .activity-value {
        font-size: 1rem;
        font-weight: 500;
        color: #374151;
        text-align: center;
    }

    .activity-action {
        min-width: 150px;
    }

    .capacity-warning {
        color: #dc2626;
        font-weight: 600;
    }

    .capacity-limited {
        color: #f59e0b;
        font-weight: 600;
    }

    .capacity-available {
        color: #10b981;
    }
}

/* Sur tablette et mobile - affichage vertical/grille */
@media (max-width: 991px) {
    .activity-card-content {
        display: block;
    }

    .activity-info {
        margin-bottom: 1rem;
    }

    .activity-title {
        font-size: 1rem;
        font-weight: 600;
        margin-bottom: 0.5rem;
        color: #111827;
    }

    .activity-description {
        font-size: 0.875rem;
        color: #6b7280;
        margin-bottom: 1rem;
    }

    .activity-details {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
        margin-bottom: 1rem;
    }

    .activity-detail-item {
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .activity-detail-item i {
        color: #9ca3af;
        width: 20px;
    }

    .activity-detail-text {
        font-size: 0.875rem;
        color: #374151;
    }

    .activity-capacity {
        grid-column: span 2;
        padding: 0.5rem;
        background-color: #f9fafb;
        border-radius: 0.375rem;
        text-align: center;
    }

    .activity-action {
        display: block;
    }

    .capacity-warning {
        color: #dc2626;
        font-weight: 600;
    }

    .capacity-limited {
        color: #f59e0b;
        font-weight: 600;
    }

    .capacity-available {
        color: #10b981;
    }
}

/* Badges pour les activités passées */
.past-activity .activity-card {
    opacity: 0.8;
}

.past-activity .btn-primary,
.past-activity .btn-secondary {
    background-color: #6b7280;
    border-color: #6b7280;
}

/* Styles pour les nouveaux boutons */
.activity-action .d-grid {
    gap: 0.5rem;
}

.activity-action .btn {
    font-weight: 500;
    transition: all 0.2s ease;
}

.activity-action .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}


/* Responsive pour les boutons sur mobile */
@media (max-width: 991px) {
    .activity-action .d-grid {
        gap: 0.75rem;
    }
}

/* Hero Section */
.activity-hero {
    background: var(--cemome-bg-secondary, #f8f8f8);
    color: var(--cemome-text-primary, #1a1a1a);
    padding: 2rem 0;
    margin-bottom: 2rem;
}

.activity-hero h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--cemome-text-primary, #1a1a1a);
}

.activity-hero .subtitle {
    font-size: 1.125rem;
    color: var(--cemome-text-secondary, #6b7280);
}

/* Info Cards */
.info-card {
    background: white;
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    border: 1px solid #e5e7eb;
}

.info-card h3 {
    color: #374151;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0;
}

.info-card h3 i {
    color: #667eea;
    font-size: 1.1rem;
}

/* Key Info Grid */
.key-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.key-info-item {
    background: #f9fafb;
    border-radius: 0.5rem;
    padding: 1rem;
    text-align: center;
    border: 1px solid #e5e7eb;
}

.key-info-item i {
    font-size: 1.5rem;
    color: #667eea;
    margin-bottom: 0.5rem;
}

.key-info-label {
    font-size: 0.875rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.key-info-value {
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
}

/* Price Display */
.price-display {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 0.75rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

.price-amount {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.price-label {
    font-size: 1rem;
    opacity: 0.9;
}

/* Capacity Indicator */
.capacity-bar {
    background: #e5e7eb;
    height: 2rem;
    border-radius: 1rem;
    overflow: hidden;
    position: relative;
    margin-bottom: 0.5rem;
}

.capacity-filled {
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    height: 100%;
    transition: width 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
}

.capacity-text {
    text-align: center;
    font-size: 0.875rem;
    color: #6b7280;
}

.capacity-warning {
    color: #dc2626;
    font-weight: 600;
}

.capacity-limited {
    color: #f59e0b;
    font-weight: 600;
}

.capacity-available {
    color: #10b981;
    font-weight: 600;
}


/* Location Card */
.location-map {
    border-radius: 0.5rem;
    overflow: hidden;
    margin-top: 1rem;
    height: 250px;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
}

/* CTA Section */
.cta-section {
    background: #f9fafb;
    border-radius: 0.75rem;
    padding: 2rem;
    text-align: center;
    margin-top: 2rem;
    border: 2px solid #e5e7eb;
}

.cta-section h3 {
    color: #111827;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    margin-top: 0;
}

.btn-register {
    background: var(--bs-primary);
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
    font-size: 1.125rem;
}

.btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.4);
    color: white;
}

.btn-waiting-list {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.btn-disabled {
    background: #9ca3af;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Alert Boxes */
.custom-alert {
    border-radius: 0.5rem;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: start;
    gap: 0.75rem;
}

.custom-alert i {
    font-size: 1.25rem;
    margin-top: 0.125rem;
}

.alert-info {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e40af;
}

.alert-warning {
    background: #fef3c7;
    border: 1px solid #fde68a;
    color: #92400e;
}

.alert-danger {
    background: #fee2e2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.alert-success {
    background: #d1fae5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}

/* Countdown Timer */
.countdown-timer {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: white;
    padding: 1rem;
    border-radius: 0.5rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

.countdown-label {
    font-size: 0.875rem;
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.countdown-time {
    font-size: 1.5rem;
    font-weight: 700;
}

/* Responsive */
@media (max-width: 768px) {
    .activity-hero h1 {
        font-size: 1.75rem;
    }

    .key-info-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
    }

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