/* ============================================================
   eco-badges.css — Badges écologiques (7 pages racines)
   ============================================================ */

.eco-badges-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5rem;
}

.eco-badge-wrapper {
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(254, 193, 7, 0.2);
    transition: all 0.3s ease;
    animation: fadeInUp 0.8s ease-out;
}

.eco-badge-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(254, 193, 7, 0.3);
    border-color: rgba(254, 193, 7, 0.5);
}

.carbon-badge {
    font-family: 'Lato', sans-serif;
    color: #fff;
    text-align: center;
}

.carbon-badge__inner {
    margin-bottom: 0.5rem;
}

.carbon-badge__result {
    font-size: 1.25rem;
    font-weight: bold;
    color: #FEC107;
    margin-bottom: 0.5rem;
}

.carbon-badge__link {
    color: #88A787;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.carbon-badge__link:hover {
    color: #FEC107;
}

.carbon-badge__clean {
    display: block;
    color: #d1d5db;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

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

.ecoindex-badge-link {
    display: inline-block;
    transition: transform 0.3s ease;
}

.ecoindex-badge-link:hover {
    transform: scale(1.05);
}

.ecoindex-badge-link img {
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: box-shadow 0.3s ease;
}

.ecoindex-badge-link:hover img {
    box-shadow: 0 6px 20px rgba(254, 193, 7, 0.4);
}

@media (min-width: 1024px) {
    .eco-badges-container {
        align-items: stretch;
    }

    .eco-badge-wrapper {
        flex: 1;
        max-width: 300px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .carbon-badge {
        display: flex;
        flex-direction: column;
        justify-content: center;
        width: 100%;
    }

    .carbon-badge__inner {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        margin-bottom: 0.5rem;
    }

    .carbon-badge__result {
        font-size: 1rem;
        margin-bottom: 0;
    }

    .carbon-badge__link {
        font-size: 0.8rem;
        white-space: nowrap;
    }

    .carbon-badge__clean {
        font-size: 0.75rem;
        text-align: center;
    }
}
