/* =========================================================
   bwa-zi — Zone Intro (image + texte)
   Source: Besancon.tsx lines 169-208
   BEM scoped, no global resets
   ========================================================= */

/* --- Animations --- */

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

.bwa-zi [data-anim="left"]  { transform: translate3d(-32px, 0, 0); }
.bwa-zi [data-anim="right"] { transform: translate3d(32px,  0, 0); }

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

/* --- Root --- */
/* section-padding bg-background */

.bwa-zi {
    background-color: hsl(210 20% 98%);
    padding: 4rem 0;
    overflow: hidden;
}

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

/* --- Container --- */

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

/* --- Grid : [400px 1fr] sur lg --- */
/* grid lg:grid-cols-[400px_1fr] gap-8 items-stretch */

.bwa-zi__grid {
    display: grid;
    gap: 2rem;
    align-items: stretch;
}

@media (min-width: 1024px) {
    .bwa-zi__grid {
        grid-template-columns: 400px 1fr;
        gap: 2rem;
    }
}

/* --- Image --- */
/* relative rounded-xl overflow-hidden h-full min-h-[300px] */

.bwa-zi__image-wrap {
    position: relative;
    border-radius: 0.75rem;
    overflow: hidden;
    min-height: 300px;
}

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

/* --- Contenu texte --- */
/* flex flex-col */

.bwa-zi__content {
    display: flex;
    flex-direction: column;
}

/* section-title text-foreground mb-6 */

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

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

/* prose prose-lg text-muted-foreground */

.bwa-zi__description {
    color: hsl(215 20% 45%);
    line-height: 1.7;
    font-size: 1rem;
}

.bwa-zi__description p {
    margin-bottom: 1.5rem;
}

.bwa-zi__description p:last-child {
    margin-bottom: 0;
}

.bwa-zi__description p.text-lg {
    font-size: 1.125rem;
}

.bwa-zi__description strong {
    color: hsl(215 35% 15%);
    font-weight: 600;
}

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

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

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

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