/* ===== CATÉGORIES MISES EN AVANT ===== */
.eco-cats { padding: 56px 0 64px; background: #fff; }

/* En-tête de section */
.eco-cats-head {
    display: flex; align-items: flex-end; justify-content: space-between;
    gap: 16px; margin-bottom: 28px;
}
.eco-cats-title {
    margin: 0 0 6px; font-size: 28px; font-weight: 800;
    color: var(--eco-text, #1d2327); position: relative; padding-left: 16px;
}
.eco-cats-title::before {
    content: ''; position: absolute; left: 0; top: 6px; bottom: 6px;
    width: 5px; border-radius: 3px; background: var(--eco-accent, #2b6cb0);
}
.eco-cats-subtitle { margin: 0; color: #6b7177; font-size: 15px; }
.eco-cats-all {
    display: inline-flex; align-items: center; gap: 6px;
    font-weight: 600; font-size: 15px; text-decoration: none;
    color: var(--eco-accent, #2b6cb0);
    transition: gap .25s ease;
}
.eco-cats-all svg { width: 18px; height: 18px; transition: transform .25s ease; }
.eco-cats-all:hover svg { transform: translateX(4px); }

/* Grille */
.eco-cats-grid {
    display: grid;
    grid-template-columns: repeat(var(--eco-cols, 4), 1fr);
    gap: 22px;
}

/* Carte */
.eco-cat-card {
    position: relative;
    display: block;
    aspect-ratio: 4 / 5;
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    background: #eceff3;
    box-shadow: 0 3px 12px rgba(0,0,0,.07);
    transition: transform .35s cubic-bezier(.2,.6,.2,1), box-shadow .35s ease;
}
.eco-cat-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(0,0,0,.16);
}

/* Image + zoom au survol */
.eco-cat-media { position: absolute; inset: 0; }
.eco-cat-media img {
    width: 100%; height: 100%; object-fit: cover; display: block;
    transition: transform .7s cubic-bezier(.2,.6,.2,1);
}
.eco-cat-card:hover .eco-cat-media img { transform: scale(1.08); }

/* Placeholder si pas d'image */
.eco-cat-placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--eco-accent, #2b6cb0), #1e4e8a);
}
.eco-cat-placeholder span {
    font-size: 56px; font-weight: 800; color: rgba(255,255,255,.85);
}

/* Voile + textes */
.eco-cat-overlay {
    position: absolute; inset: 0; z-index: 2;
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: 18px;
    background: linear-gradient(180deg, rgba(15,18,21,0) 45%, rgba(15,18,21,.78) 100%);
}
.eco-cat-name {
    margin: 0; color: #fff; font-size: 19px; font-weight: 700;
    text-shadow: 0 1px 6px rgba(0,0,0,.35);
    transition: transform .35s cubic-bezier(.2,.6,.2,1);
}
.eco-cat-count {
    font-size: 13px; color: rgba(255,255,255,.82); margin-top: 3px;
    transition: transform .35s cubic-bezier(.2,.6,.2,1);
    transition-delay: .04s;
}
.eco-cat-card:hover .eco-cat-name,
.eco-cat-card:hover .eco-cat-count { transform: translateY(-3px); }

/* Flèche circulaire : apparaît au survol */
.eco-cat-arrow {
    position: absolute; top: 14px; right: 14px; z-index: 3;
    width: 38px; height: 38px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: #fff; color: var(--eco-accent, #2b6cb0);
    box-shadow: 0 4px 10px rgba(0,0,0,.18);
    opacity: 0; transform: translateY(10px) scale(.7);
    transition: opacity .3s ease, transform .3s cubic-bezier(.34,1.56,.64,1); /* léger rebond */
}
.eco-cat-arrow svg { width: 18px; height: 18px; }
.eco-cat-card:hover .eco-cat-arrow { opacity: 1; transform: none; }

/* ===== ANIMATIONS AU SCROLL (réutilisable tout le site) ===== */
.eco-js .eco-reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .65s ease, transform .65s cubic-bezier(.2,.6,.2,1);
    transition-delay: var(--eco-delay, 0s);
}
.eco-js .eco-reveal.eco-in { opacity: 1; transform: none; }

/* Accessibilité : on désactive si l'utilisateur préfère réduire les animations */
@media (prefers-reduced-motion: reduce) {
    .eco-js .eco-reveal { opacity: 1; transform: none; transition: none; }
    .eco-cat-card, .eco-cat-media img { transition: none !important; }
}

/* Responsive */
@media (max-width: 1024px) {
    .eco-cats-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 782px) {
    .eco-cats { padding: 36px 0 44px; }
    .eco-cats-title { font-size: 22px; }
    .eco-cats-head { flex-direction: column; align-items: flex-start; }
    .eco-cats-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .eco-cat-card { border-radius: 10px; }
    .eco-cat-name { font-size: 15px; }
    .eco-cat-count { font-size: 12px; }
    .eco-cat-arrow { display: none; } /* pas de hover sur mobile */
}