/* =========================================================
   bwa-zp — Zone Projects
   Source: Besancon.tsx lines 246-279
   BEM scoped, no global resets
   ========================================================= */

/* --- Animations --- */

.bwa-zp [data-anim] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.bwa-zp.is-inview [data-anim] {
    opacity: 1;
    transform: none;
}

/* --- Root --- */
/* section-padding bg-secondary/30 */

.bwa-zp {
    background-color: hsl(215 40% 94% / 0.5);
    padding: 4rem 0;
}

@media (min-width: 768px)  { .bwa-zp { padding: 6rem 0; } }
@media (min-width: 1024px) { .bwa-zp { padding: 8rem 0; } }

/* --- Container --- */

.bwa-zp__container {
    width: 100%;
    max-width: 85rem;
    margin: 0 auto;
}

/* --- Header --- */
/* text-center mb-12 */

.bwa-zp__header {
    text-align: center;
    margin-bottom: 3rem;
}

/* section-title text-foreground */

.bwa-zp__title {
    font-size: 1.875rem;
    font-weight: 700;
    line-height: 1.2;
    color: hsl(215 35% 15%);
    margin: 0 0 1rem !important;
}

@media (min-width: 768px)  { .bwa-zp__title { font-size: 2.25rem; } }
@media (min-width: 1024px) { .bwa-zp__title { font-size: 3rem; } }

/* text-lg text-muted-foreground max-w-2xl mx-auto mt-4 */

.bwa-zp__subtitle {
    font-size: 1.125rem;
    color: hsl(215 20% 45%);
    max-width: 42rem;
    margin: 0 auto !important;
    line-height: 1.6;
}

/* --- Grille --- */
/* grid md:grid-cols-3 gap-6 */

.bwa-zp__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .bwa-zp__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* --- Card --- */
/* flex flex-row bg-card rounded-xl border border-border overflow-hidden */

.bwa-zp__card {
    display: flex;
    flex-direction: row;
    background-color: #ffffff;
    border-radius: 0.75rem;
    border: 1px solid hsl(215 25% 88%);
    overflow: hidden;
}

/* --- Image --- */
/* w-32 md:w-40 shrink-0 */

.bwa-zp__card-img-wrap {
    width: 8rem;
    flex-shrink: 0;
    position: relative;
}

@media (min-width: 768px) {
    .bwa-zp__card-img-wrap { width: 10rem; }
}

.bwa-zp__card-img {
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    display: block;
    position: absolute;
    inset: 0;
}

/* --- Body --- */
/* p-4 md:p-5 flex flex-col justify-center */

.bwa-zp__card-body {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

@media (min-width: 768px) {
    .bwa-zp__card-body { padding: 1.25rem; }
}

/* --- Localisation --- */
/* flex items-center gap-2 text-sm text-accent font-medium mb-2 */

.bwa-zp__card-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: hsl(15 90% 55%);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.bwa-zp__card-location-icon {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
    filter: invert(45%) sepia(90%) saturate(500%) hue-rotate(340deg) brightness(100%);
}

/* --- Titre card --- */
/* text-base font-semibold text-foreground mb-2 */

.bwa-zp__card-title {
    font-size: 1rem;
    font-weight: 600;
    color: hsl(215 35% 15%);
    margin: 0 0 0.5rem !important;
}

/* --- Desc card --- */
/* text-muted-foreground text-sm */

.bwa-zp__card-desc {
    font-size: 0.875rem;
    color: hsl(215 20% 45%);
    line-height: 1.5;
    margin: 0 !important;
}

/* --- Responsive padding --- */

@media (max-width: 767px) {
    .bwa-zp__container { padding-inline: 1.25rem; }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .bwa-zp__container { padding-inline: 2rem; }
}

@media (min-width: 1024px) and (max-width: 1439px) {
    .bwa-zp__container { padding-inline: 2rem; }
}
