/* ==========================================================================
   INSTAGRAM — bloc "Fuel en action" (feed Instagram Elfsight), affiché en
   permanence juste au-dessus du footer, sur toutes les pages.
   ========================================================================== */

.ig-sec {
    position: relative;
    overflow: hidden;
    background: var(--blanc)
}

.ig-sec .eyb {
    color: #161616
}

.ig-sec h2.disp {
    color: #0a0a0a
}

.ig-sec .lead {
    color: #4d4d4a
}

.ig-scroller {
    position: relative;
    margin-top: 38px
}

.ig-grid {
    position: relative;
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #c9c9c0 #eeeee8;
    padding-bottom: 4px
}

.ig-grid::-webkit-scrollbar {
    height: 6px
}

.ig-grid::-webkit-scrollbar-track {
    background: #eeeee8;
    border-radius: 3px
}

.ig-grid::-webkit-scrollbar-thumb {
    background: #c9c9c0;
    border-radius: 3px
}

.ig-card {
    position: relative;
    flex: 0 0 calc((100% - 5*10px)/6);
    aspect-ratio: 1/1;
    scroll-snap-align: start;
    border-radius: 8px;
    overflow: hidden;
    background: #f0f0ea;
    isolation: isolate
}

.ig-card a {
    display: block;
    width: 100%;
    height: 100%
}

.ig-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .45s ease
}

.ig-card:hover img {
    transform: scale(1.055)
}

.ig-arrow {
    position: absolute;
    top: 50%;
    right: -6px;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #dcdcd4;
    color: #161616;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 3;
    transition: .2s;
    padding: 0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .08)
}

.ig-arrow svg {
    width: 20px;
    height: 20px
}

.ig-arrow:hover {
    background: #161616;
    color: #fff;
    border-color: #161616
}

.ig-community {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-top: 44px;
    color: #161616;
    font-size: 16px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .05em
}

.ig-community:before,
.ig-community:after {
    content: "";
    height: 1px;
    flex: 1;
    max-width: 260px;
    background: linear-gradient(90deg, transparent, #161616)
}

.ig-community:after {
    background: linear-gradient(90deg, #161616, transparent)
}

.ig-handle {
    text-align: center;
    margin-top: 12px;
    color: #8a8a84;
    letter-spacing: .16em;
    font-size: 12.5px;
    text-transform: uppercase
}

@media(max-width:900px) {
    .ig-scroller {
        margin-top: 24px
    }

    .ig-grid {
        gap: 8px
    }

    .ig-card {
        flex: 0 0 calc((100% - 8px)/2);
        border-radius: 7px
    }

    .ig-arrow {
        width: 38px;
        height: 38px;
        right: -2px
    }

    .ig-arrow svg {
        width: 16px;
        height: 16px
    }

    .ig-community {
        font-size: 13px;
        gap: 10px;
        margin-top: 32px;
        text-align: center
    }

    .ig-community:before,
    .ig-community:after {
        max-width: 50px
    }

    .ig-handle {
        font-size: 11px;
        letter-spacing: .1em
    }

    /* mobile garde le thème sombre/jaune d'origine (fond blanc = desktop uniquement) */
    .ig-sec {
        background: var(--noir)
    }

    .ig-sec:before {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(circle at 20% 8%, rgba(229, 248, 44, .12), transparent 30%);
        pointer-events: none
    }

    .ig-sec .eyb {
        color: var(--lime)
    }

    .ig-sec h2.disp {
        color: var(--blanc)
    }

    .ig-sec .lead {
        color: #c2c2be
    }

    .ig-grid {
        scrollbar-color: var(--lime) var(--card)
    }

    .ig-grid::-webkit-scrollbar-track {
        background: var(--card)
    }

    .ig-grid::-webkit-scrollbar-thumb {
        background: var(--lime)
    }

    .ig-card {
        border: 1px solid rgba(229, 248, 44, .32);
        background: var(--card)
    }

    .ig-card:after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, .6)), radial-gradient(circle at 80% 20%, rgba(229, 248, 44, .14), transparent 35%);
        z-index: 1
    }

    .ig-card img {
        filter: contrast(1.1) saturate(1.05) brightness(.9)
    }

    .ig-arrow {
        background: rgba(0, 0, 0, .7);
        border: 1px solid rgba(229, 248, 44, .45);
        color: var(--lime);
        box-shadow: none
    }

    .ig-arrow:hover {
        background: var(--lime);
        color: #000;
        border-color: var(--lime)
    }

    .ig-community {
        color: var(--lime)
    }

    .ig-community:before,
    .ig-community:after {
        background: linear-gradient(90deg, transparent, var(--lime))
    }

    .ig-community:after {
        background: linear-gradient(90deg, var(--lime), transparent)
    }

    .ig-handle {
        color: var(--gris)
    }
}
