/* ASB Instagram — grille des dernières publications, à la charte du thème « asb » (valeurs de secours si le thème change). */
.asb-insta { margin: var(--wp--preset--spacing--50, 3rem) auto 0; max-width: var(--wp--style--global--wide-size, 1400px); }
.asb-insta__tete { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; margin-bottom: 1.5rem; }
.asb-insta__surtitre { display: flex; align-items: center; gap: .45rem; margin: 0 0 .35rem; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--asb-gris, #6b6b6b); }
.asb-insta__surtitre svg { width: 18px; height: 18px; color: var(--asb-noir, #0b0b0b); }
.asb-insta__titre { margin: 0 !important; }
.asb-insta__suivre { display: inline-flex; align-items: center; min-height: 46px; padding: 0 1.3rem; border-radius: 10px; text-decoration: none !important; }
.asb-insta__suivre::after { content: "→"; margin-left: .55rem; transition: transform .2s; }
.asb-insta__suivre:hover::after { transform: translateX(3px); }

.asb-insta__grille { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; margin: 0; padding: 0; list-style: none; }
.asb-insta__grille li { margin: 0; }
.asb-insta__post { position: relative; display: block; aspect-ratio: 1; overflow: hidden; border-radius: 16px; background: var(--asb-tuile, #f4f4f2); color: #fff; text-decoration: none !important; }
.asb-insta__post img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1), filter .4s; }
.asb-insta__type { position: absolute; top: .75rem; right: .75rem; z-index: 2; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: rgba(11, 11, 11, .55); }
.asb-insta__type svg { width: 15px; height: 15px; }
/* Survol : voile noir sur toute la photo, texte complet de la publication */
.asb-insta__survol {
	position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; gap: .6rem; padding: clamp(1.1rem, 2.5vw, 2rem);
	background: rgba(11, 11, 11, .82); opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s;
}
.asb-insta__date { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--asb-or, #cdb65f); }
.asb-insta__legende { flex: 1; min-height: 0; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 14; -webkit-box-orient: vertical; font-size: clamp(.95rem, 1.2vw, 1.1rem); line-height: 1.55; white-space: pre-line; color: rgba(255, 255, 255, .92); }
.asb-insta__voir { font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #fff; }
.asb-insta__post:hover img, .asb-insta__post:focus-visible img { transform: scale(1.04); filter: blur(2px); }
.asb-insta__post:hover .asb-insta__survol, .asb-insta__post:focus-visible .asb-insta__survol { opacity: 1; transform: none; }
.asb-insta__post:focus-visible { outline: 3px solid var(--asb-noir, #0b0b0b); outline-offset: 3px; }
.asb-insta__vide { padding: 1rem 1.25rem; border: 1px dashed currentColor; border-radius: 10px; font-size: .9rem; }

@media (max-width: 900px) { .asb-insta__legende { -webkit-line-clamp: 8; } }
@media (max-width: 600px) {
	.asb-insta__grille { grid-template-columns: 1fr; gap: .9rem; }
	.asb-insta__post { border-radius: 14px; }
	.asb-insta__suivre { width: 100%; justify-content: center; }
}
@media (hover: none) { .asb-insta__survol { display: none; } }
@media (prefers-reduced-motion: reduce) { .asb-insta__post img { transition: none; } }
