/* Styles réservés à la page Réalisations. */

.realisations {
    padding: 30px 0 34px;
    background: var(--cream);
}

.realisations > .container {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 22px;
    row-gap: 36px;
}

.realisations-intro {
    grid-column: 1 / -1;
    margin-bottom: 26px;
}

.realisations-kicker {
    display: block;
    margin-bottom: 10px;
    color: var(--wood);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .18em;
}

.realisations h1 {
    margin: 0 0 10px;
    font-family: Georgia, serif;
    font-size: clamp(40px, 4vw, 58px);
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: -.035em;
}

.realisations-subtitle {
    margin: 0 0 8px;
    font-size: clamp(17px, 1.7vw, 21px);
}

.realisations-intro-copy {
    max-width: 760px;
    margin: 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.5;
}

.realisations-project {
    min-width: 0;
    margin: 0;
}

.realisations-project + .realisations-project {
    margin-top: 0;
}

.realisations-project-inner,
.realisations-project:nth-of-type(even) .realisations-project-inner {
    display: flex;
    flex-direction: column;
    gap: 0;
    color: inherit;
    text-decoration: none;
}

.realisations-project img,
.realisations-project:first-of-type img {
    display: block;
    width: 100%;
    height: clamp(210px, 21vw, 300px);
    aspect-ratio: auto;
    object-fit: cover;
    object-position: center;
    transition: transform .3s ease, opacity .3s ease;
}

.realisations-project:first-of-type img {
    object-position: center 35%;
}

.realisations-project h2,
.realisations-project:nth-of-type(even) h2 {
    min-width: 0;
    max-width: none;
    margin: 14px 0 0;
    font-family: Georgia, serif;
    font-size: clamp(22px, 1.9vw, 28px);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -.025em;
    grid-column: auto;
    grid-row: auto;
}

.realisations-project:nth-of-type(even) img {
    grid-column: auto;
    grid-row: auto;
}

@media (hover: hover) {
    .realisations-project-inner:hover img {
        transform: scale(1.012);
        opacity: .94;
    }
}

@media (max-width: 900px) {
    .realisations > .container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 30px 18px;
    }

    .realisations-intro {
        grid-column: 1 / -1;
        margin-bottom: 0;
    }

    .realisations-project img,
    .realisations-project:first-of-type img {
        height: 280px;
    }
}

@media (max-width: 600px) {
    .realisations {
        padding: 28px 0 32px;
    }

    .realisations > .container {
        display: block;
    }

    .realisations-intro {
        margin-bottom: 26px;
    }

    .realisations-project {
        margin-bottom: 30px;
    }

    .realisations-project img,
    .realisations-project:first-of-type img {
        width: 100%;
        height: auto;
        aspect-ratio: 4 / 3;
    }

    .realisations-project h2,
    .realisations-project:nth-of-type(even) h2 {
        margin-top: 13px;
        font-size: 27px;
    }
}

/* Centrage éditorial de la page d'entrée Réalisations */
.realisations-intro {
    text-align: center;
}

.realisations-kicker {
    text-align: left;
}

.realisations-intro-copy {
    margin-left: auto;
    margin-right: auto;
}

.realisations-project h2,
.realisations-project:nth-of-type(even) h2 {
    text-align: center;
}
