/* ==========================================================================
   Page Histoire
   ========================================================================== */

/* ── Variables locales ────────────────────────────────────────────────────── */

.histoire-main {
    border-bottom: 4px solid white;
}

/* ── Hero ─────────────────────────────────────────────────────────────────── */

.histoire-hero {
    position: relative;
    height: 80svh;
    min-height: 480px;
    max-height: 760px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
}

.histoire-hero__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
}

.histoire-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        transparent 30%,
        rgba(0, 0, 0, 0.45) 100%
    );
}

.histoire-hero__content {
    position: relative;
    z-index: 1;
    padding: 5rem 6rem;
    color: white;
}

.histoire-hero__eyebrow {
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    opacity: 0.8;
}

.histoire-hero__title {
    font-size: clamp(4rem, 7vw, 7.5rem);
    font-weight: 800;
    text-transform: uppercase;
    line-height: 0.95;
    margin: 0;
}

/* ── Titres de section ────────────────────────────────────────────────────── */

.histoire-section-title {
	font-size: 13rem;
	font-weight: 800;
	text-transform: uppercase;
	margin: 0 0 3rem;
	color: var(--black);
    position: relative;
    left: -3px;
    line-height: 1.1;
}

.histoire-section-subtitle {
	margin-bottom: 3rem;
	text-transform: uppercase;
	font-size: 8rem;
	font-weight: 800;
}

.histoire-section-subtitle::before {
	margin-right: 0.8rem;
}

.histoire-section-subtitle::after {
	margin-left: 0.8rem;
}


/* ── Grid principal ───────────────────────────────────────────────────────── */

.histoire-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    background-color: white;
    border-left: 4px solid white;
    border-right: 4px solid white;
}

.histoire-cell {
    background-color: var(--light-pink);
    min-height: 0;
    max-height: 100rem;
}

.histoire-cell--span2 {
    grid-column: span 2;
}

.histoire-cell--title {
    display: flex;
    align-items: flex-end;
    padding: 10rem;
    --cross: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3E%3Crect x='0' y='12.5' width='30' height='5' fill='%23146da8'/%3E%3Crect x='12.5' y='0' width='5' height='30' fill='%23146da8'/%3E%3C/svg%3E");
    background-image: var(--cross), var(--cross), var(--cross), var(--cross);
    background-repeat: no-repeat;
    background-position:
        top 16px left 16px,
        top 16px right 16px,
        bottom 16px left 16px,
        bottom 16px right 16px;
}

.histoire-cell--text {
    padding: 10rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    --cross: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3E%3Crect x='0' y='12.5' width='30' height='5' fill='%23146da8'/%3E%3Crect x='12.5' y='0' width='5' height='30' fill='%23146da8'/%3E%3C/svg%3E");
    background-image: var(--cross), var(--cross), var(--cross), var(--cross);
    background-repeat: no-repeat;
    background-position:
        top 16px left 16px,
        top 16px right 16px,
        bottom 16px left 16px,
        bottom 16px right 16px;
}

.histoire-cell--text p {
    font-size: 1.6rem;
    line-height: 1.75;
    margin-bottom: 1.6rem;
    text-transform: uppercase;
}

.histoire-cell--text p:last-child {
    margin-bottom: 0;
}

.histoire-cell--img {
    overflow: hidden;
    min-height: 40rem;
}

.histoire-cell__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    aspect-ratio: 4 / 5;
}



/* ── Responsive ───────────────────────────────────────────────────────────── */

@media ( max-width: 900px ) {
    .histoire-hero__content {
        padding: 4rem 3rem;
    }

    .histoire-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .histoire-cell--title {
        grid-column: 1 / -1;
    }

    .histoire-cell--text,
    .histoire-cell--title {
        padding: 4rem 3.5rem;
    }
}

@media ( max-width: 600px ) {
    .histoire-hero {
        height: 65svh;
    }

    .histoire-hero__content {
        padding: 3rem 2.4rem;
    }

    .histoire-grid {
        grid-template-columns: 1fr;
        border-left: none;
        border-right: none;
    }

    .histoire-cell--span2 {
        grid-column: span 1;
    }

    .histoire-cell--title {
        grid-column: auto;
    }

    .histoire-cell--text,
    .histoire-cell--title {
        padding: 3.5rem 2.4rem;
    }

    .histoire-cell--img {
        min-height: 30rem;
    }
}
