/* SignalNids - fonds de départements v1.2.0
   Limité aux cinq cartes de la section « Près de chez vous ».
   Fond photographique adouci avec voile clair pour la lisibilité. */
.sn-dept-photo[data-sn-dept] {
    background-color: #f8fbf8 !important;
    background-image:
        linear-gradient(103deg, rgba(255,255,255,.965) 0%, rgba(255,255,255,.915) 54%, rgba(255,255,255,.765) 100%),
        var(--sn-dept-photo) !important;
    background-size: cover, cover !important;
    background-repeat: no-repeat, no-repeat !important;
    background-position: center, var(--sn-dept-position, center center) !important;
    /* Les tailles, bordures, espaces et liens de la carte existante restent inchangés. */
    transition: box-shadow .2s ease, transform .2s ease, background-image .2s ease;
}
.sn-dept-photo[data-sn-dept]:hover {
    background-image:
        linear-gradient(103deg, rgba(255,255,255,.94) 0%, rgba(255,255,255,.865) 54%, rgba(255,255,255,.705) 100%),
        var(--sn-dept-photo) !important;
}
/* Icônes / codes plus lisibles devant la photographie. */
.sn-dept-photo[data-sn-dept] :is(.department-code, .dept-code, .code-departement) {
    background: rgba(238,247,242,.9);
}
.sn-dept-credits {
    margin: 10px 0 0;
    padding: 0 3px;
    color: #657b70;
    font-size: 11px;
    line-height: 1.55;
}
.sn-dept-credits summary {
    display: inline-block;
    cursor: pointer;
    text-decoration: underline;
    text-decoration-color: rgba(20,86,63,.3);
    text-underline-offset: 3px;
}
.sn-dept-credits summary:focus-visible { outline: 2px solid #00684e; outline-offset: 3px; }
.sn-dept-credits ul { margin: 6px 0 2px; padding-left: 18px; }
.sn-dept-credits li { margin: 3px 0; }
.sn-dept-credits a { color: #145c48; text-decoration: underline; }
@media (max-width: 767px) {
    .sn-dept-photo[data-sn-dept] {
        background-image:
            linear-gradient(95deg, rgba(255,255,255,.96) 0%, rgba(255,255,255,.91) 55%, rgba(255,255,255,.77) 100%),
            var(--sn-dept-photo) !important;
        background-size: cover, cover !important;
        background-position: center, var(--sn-dept-position, center center) !important;
    }
}
@media (prefers-reduced-motion: reduce) {
    .sn-dept-photo[data-sn-dept] { transition: none; }
}
