/* Participation Citoyenne Section - Figma Design */

.participation-section {
    padding: 4rem 0;
    background-color: #f8f9fa;
}

.participation-section__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.participation-section__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

/* Card Styles - Figma Design with background images */
.participation-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.participation-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    text-decoration: none;
}

/* Background Image */
.participation-card__image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

/* Dark Overlay */
.participation-card__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.6) 100%);
    z-index: 2;
}

/* Flag Corner Decorations - Top Left */
.participation-card__flag-top-left {
    position: absolute;
    top: 0;
    left: 0;
    width: 100px;
    height: 100px;
    z-index: 4;
    pointer-events: none;
}

.participation-card__flag-top-left::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 60px;
    height: 8px;
    background-color: #FFFFFF;
    border-radius: 0 0 4px 0;
}

.participation-card__flag-top-left::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 0;
    width: 45px;
    height: 8px;
    background-color: #ED2024;
    border-radius: 0 0 4px 0;
}

.participation-card__flag-top-left .flag-green {
    position: absolute;
    top: 16px;
    left: 0;
    width: 30px;
    height: 8px;
    background-color: #0E8040;
    border-radius: 0 0 4px 0;
}

/* Flag Corner Decorations - Bottom Right */
.participation-card__flag-bottom-right {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100px;
    height: 100px;
    z-index: 4;
    pointer-events: none;
}

.participation-card__flag-bottom-right::before {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 60px;
    height: 8px;
    background-color: #FFFFFF;
    border-radius: 4px 0 0 0;
}

.participation-card__flag-bottom-right::after {
    content: '';
    position: absolute;
    bottom: 8px;
    right: 0;
    width: 45px;
    height: 8px;
    background-color: #ED2024;
    border-radius: 4px 0 0 0;
}

.participation-card__flag-bottom-right .flag-green {
    position: absolute;
    bottom: 16px;
    right: 0;
    width: 30px;
    height: 8px;
    background-color: #0E8040;
    border-radius: 4px 0 0 0;
}

/* Content */
.participation-card__content {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
}

/* Icon */
.participation-card__icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.participation-card__icon svg,
.participation-card__icon i {
    color: #FFFFFF;
    font-size: 3rem;
}

.participation-card__icon svg {
    width: 60px;
    height: 60px;
    fill: #FFFFFF;
}

/* Title */
.participation-card__title {
    font-family: 'Lato', 'Roboto', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0 0 1.5rem 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Button */
.participation-card__btn {
    display: inline-block;
    background-color: #FFFFFF;
    color: #333333;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-family: 'Lato', 'Roboto', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.participation-card__btn:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    text-decoration: none;
    color: #333333;
}

/* Disabled state for coming soon */
.participation-card--disabled {
    pointer-events: none;
}

.participation-card--disabled .participation-card__overlay {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.7) 100%);
}

.participation-card--disabled .participation-card__btn {
    background-color: rgba(255, 255, 255, 0.7);
    color: #666666;
    cursor: not-allowed;
}

/* Responsive */
@media (max-width: 992px) {
    .participation-section__grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .participation-card {
        min-height: 250px;
    }
}

@media (max-width: 576px) {
    .participation-section {
        padding: 2.5rem 0;
    }

    .participation-card {
        min-height: 220px;
        border-radius: 15px;
    }

    .participation-card__title {
        font-size: 1.4rem;
    }

    .participation-card__icon svg,
    .participation-card__icon i {
        font-size: 2.5rem;
    }

    .participation-card__icon svg {
        width: 45px;
        height: 45px;
    }

    .participation-card__btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }

    .participation-card__flag-top-left::before,
    .participation-card__flag-bottom-right::before {
        width: 45px;
        height: 6px;
    }

    .participation-card__flag-top-left::after,
    .participation-card__flag-bottom-right::after {
        width: 35px;
        height: 6px;
    }

    .participation-card__flag-top-left .flag-green,
    .participation-card__flag-bottom-right .flag-green {
        width: 25px;
        height: 6px;
    }

    .participation-card__flag-top-left::after {
        top: 6px;
    }

    .participation-card__flag-top-left .flag-green {
        top: 12px;
    }

    .participation-card__flag-bottom-right::after {
        bottom: 6px;
    }

    .participation-card__flag-bottom-right .flag-green {
        bottom: 12px;
    }
}