/* ============================================================
   Origine & Fabrication — page-origine-fabrication.php
   assets/css/components/story.css
   ============================================================ */

/* ── Wrapper ────────────────────────────────────────────── */
.bcc-story {
    background: var(--bcc-background, #F9F8F5);
    position: relative;
    overflow: hidden;
    padding-bottom: 5rem;
}

.bcc-story__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-size: cover;
    background-position: center top;
    background-attachment: fixed;
    opacity: 0.1;
}

.bcc-story__container {
    position: relative;
    z-index: 1;
    max-width: 1152px;
    margin: 0 auto;
    padding: 5rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 6rem;
}

/* ── Story block (grid 2 col texto + imagen) ────────────── */
.bcc-story-block {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .bcc-story-block {
        grid-template-columns: 1fr 1fr;
        gap: 5rem;
    }

    /* Imagen a la derecha = texto primero */
    .bcc-story-block--right .bcc-story-block__text  { order: 1; }
    .bcc-story-block--right .bcc-story-block__image-wrap { order: 2; }

    /* Imagen a la izquierda = imagen primero */
    .bcc-story-block--left .bcc-story-block__image-wrap { order: 1; }
    .bcc-story-block--left .bcc-story-block__text  { order: 2; }
}

/* Texto */
.bcc-story-block__title {
    font-family: var(--bcc-font-serif, 'Playfair Display', serif);
    font-size: clamp(1.375rem, 2.5vw, 1.875rem);
    font-weight: 700;
    color: #1F2E26;
    margin: 0 0 0.75rem;
    line-height: 1.25;
}

.bcc-story-block__subtitle {
    font-family: var(--bcc-font-sans, 'DM Sans', sans-serif);
    font-size: 1.125rem; /* Lovable: text-lg */
    font-weight: 500;    /* Lovable: font-medium */
    color: var(--bcc-brand-teal-light, #8DC8C7); /* Lovable: text-primary */
    margin: 1rem 0 0; /* Lovable: mt-4 */
}

.bcc-story-block__content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    font-family: var(--bcc-font-sans, 'DM Sans', sans-serif);
    font-size: 1rem; /* Lovable: 16px */
    color: var(--bcc-muted-foreground, #677E73); /* Lovable: text-muted-foreground */
    line-height: 1.75; /* Lovable: leading-relaxed */
}

.bcc-story-block__content p { margin: 0; }
.bcc-story-block__content strong { color: #677E72; }

.bcc-story-block__highlight {
    font-family: var(--bcc-font-sans, 'DM Sans', sans-serif);
    font-size: 1.125rem; /* Lovable: text-lg */
    font-weight: 600;
    color: var(--bcc-foreground, #1E2D26);
    text-align: center;
}

.bcc-story-block__quote {
    border-left: 3px solid rgba(141,200,199,0.3);
    padding-left: 1rem;
    font-style: italic;
    font-size: 0.875rem; /* Lovable: text-sm */
    color: var(--bcc-muted-foreground, #677E73);
    margin: 0.5rem 0 0;
}

/* Bullets ➤ */
.bcc-story-bullets {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.bcc-story-bullets p {
    display: flex;
    gap: 0.625rem;
    align-items: flex-start;
}

.bcc-story-bullet {
    color: var(--bcc-brand-teal-light, #8DC8C7); /* Lovable: text-primary */
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

/* ── Image avec forme drop ──────────────────────────────── */
.bcc-story-block__image-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
}

.bcc-story-drop {
    position: relative;
    width: 280px;
    height: 320px;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .bcc-story-drop {
        width: 340px;
        height: 380px;
    }
}

.bcc-story-drop--sm {
    width: 200px;
    height: 230px;
}

.bcc-story-drop__glow {
    position: absolute;
    inset: 0;
    transform: scale(1.05);
    background: linear-gradient(135deg, rgba(24,138,129,0.25), rgba(141,202,201,0.15));
    clip-path: polygon(50% 0%, 85% 15%, 100% 50%, 85% 85%, 50% 100%, 15% 85%, 0% 50%, 15% 15%);
}

.bcc-story-drop__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    clip-path: polygon(50% 0%, 85% 15%, 100% 50%, 85% 85%, 50% 100%, 15% 85%, 0% 50%, 15% 15%);
    transition: transform 0.4s ease;
}

.bcc-story-drop:hover .bcc-story-drop__img {
    transform: scale(1.04);
}

/* ── Bloc animaux (3 colonnes) ──────────────────────────── */
.bcc-story-animals {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    text-align: center;
}

@media (max-width: 480px) {
    .bcc-story-animals { grid-template-columns: 1fr; max-width: 200px; margin: 0 auto; }
}

.bcc-story-animals__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.bcc-story-animals__label {
    font-family: var(--bcc-font-serif, 'Playfair Display', serif);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--bcc-foreground, #1E2D26);
}