/* =========================================================
   OLDCHAINSAW — INDEX DES EXPOSITIONS
   ========================================================= */


/* =========================================================
   BASE
   ========================================================= */

.oc-expos-index {
    width: 100%;

    background: #E8DFC9;
    color: #233127;
}

.oc-expos-index *,
.oc-expos-index *::before,
.oc-expos-index *::after {
    box-sizing: border-box;
}


/* =========================================================
   HERO
   ========================================================= */

.oc-expos-index__hero {
    padding:
        clamp(80px, 9vw, 130px)
        0
        clamp(70px, 8vw, 110px);

    background: #11110f;
    color: #E8DFC9;
}

.oc-expos-index__hero-inner {
    width: min(1180px, 88%);
    margin: 0 auto;
}

.oc-expos-index__hero-content {
    max-width: 820px;
}

.oc-expos-index__hero h1 {
    margin: 0 0 28px;

    color: #F5ECD9;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size:
        clamp(3.8rem, 7vw, 7rem);

    font-weight: 400;

    line-height: .88;
    letter-spacing: -.045em;
}

.oc-expos-index__hero-lead {
    max-width: 700px;

    margin: 0 0 16px;

    color: #F5ECD9;

    font-size:
        clamp(1.15rem, 1.8vw, 1.45rem);

    line-height: 1.6;
}

.oc-expos-index__hero-content > p:last-child {
    max-width: 680px;

    margin-bottom: 0;

    color: rgba(232,223,201,.72);

    line-height: 1.75;
}


/* =========================================================
   LISTING
   ========================================================= */

.oc-expos-index__listing {
    padding:
        clamp(70px, 8vw, 115px)
        0
        clamp(85px, 9vw, 135px);

    background: #E8DFC9;
}

.oc-expos-index__listing-inner {
    width: min(1180px, 88%);
    margin: 0 auto;
}


/* =========================================================
   BARRE SUPÉRIEURE
   ========================================================= */

.oc-expos-index__toolbar {
    display: flex;
    justify-content: space-between;
    align-items: end;

    margin-bottom:
        clamp(38px, 5vw, 60px);

    padding-bottom: 22px;

    border-bottom:
        1px solid
        rgba(35,49,39,.18);
}

.oc-expos-index__count {
    display: flex;
    align-items: baseline;

    gap: 12px;
}

.oc-expos-index__count strong {
    color: #233127;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 2.5rem;
    font-weight: 400;

    line-height: 1;
}

.oc-expos-index__count span {
    color: #D96A1B;

    font-size: .72rem;
    font-weight: 700;

    letter-spacing: .16em;

    text-transform: uppercase;
}


/* =========================================================
   GRILLE
   ========================================================= */

.oc-expos-index__grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap:
        clamp(24px, 3vw, 34px);
}


/* =========================================================
   CARTE
   ========================================================= */

.oc-expo-index-card {
    min-width: 0;

    display: flex;
    flex-direction: column;

    background: #F5ECD9;

    border:
        1px solid
        rgba(35,49,39,.14);

    transition:
        transform .25s ease,
        box-shadow .25s ease,
        border-color .25s ease;
}

.oc-expo-index-card:hover {
    transform: translateY(-4px);

    border-color:
        rgba(217,106,27,.42);

    box-shadow:
        0 18px 34px
        rgba(44,38,28,.10);
}


/* =========================================================
   VISUEL
   ========================================================= */

.oc-expo-index-card__visual {
    position: relative;

    display: block;

    width: 100%;
    aspect-ratio: 4 / 3;

    overflow: hidden;

    background: #151713;
}

.oc-expo-index-card__visual img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform .4s ease;
}

.oc-expo-index-card:hover
.oc-expo-index-card__visual img {
    transform: scale(1.025);
}

.oc-expo-index-card__placeholder {
    width: 100%;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    color:
        rgba(232,223,201,.55);

    font-size: .75rem;
    font-weight: 700;

    letter-spacing: .14em;

    text-transform: uppercase;
}


/* =========================================================
   ANNÉE
   ========================================================= */

.oc-expo-index-card__year {
    position: absolute;

    top: 16px;
    left: 16px;

    min-width: 68px;

    padding:
        9px 13px;

    background:
        rgba(17,17,15,.92);

    color: #F5ECD9;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 1.3rem;

    line-height: 1;

    text-align: center;

    border-top:
        2px solid
        #D96A1B;
}


/* =========================================================
   CONTENU
   ========================================================= */

.oc-expo-index-card__content {
    flex: 1;

    display: flex;
    flex-direction: column;

    padding:
        28px
        28px
        30px;
}

/* =========================================================
   CODE ARCHIVE
   ========================================================= */

.oc-expo-index-card__code {
    margin:
        0 0
        18px;

    min-height: 1em;

    color: #D96A1B;

    font-size: .66rem;
    font-weight: 700;

    letter-spacing: .15em;

    text-transform: uppercase;
}


/* =========================================================
   TITRE
   ========================================================= */

.oc-expo-index-card__title {
    margin:
        0 0
        16px;

    min-height: 2.15em;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size:
        clamp(1.65rem, 2.4vw, 2.2rem);

    font-weight: 400;

    line-height: 1.05;

    letter-spacing: -.025em;
}

.oc-expo-index-card__title a {
    color: #233127;

    text-decoration: none;
}

.oc-expo-index-card__title a:hover {
    color: #D96A1B;
}


/* =========================================================
   LIEU
   ========================================================= */

.oc-expo-index-card__location {
    margin:
        0 0
        20px;

    min-height: 2.7em;

    color: #5d675f;

    font-size: .86rem;
    font-weight: 600;

    line-height: 1.55;
}


.oc-expo-index-card__dot {
    margin:
        0 5px;

    color: #D96A1B;
}


/* =========================================================
   MÉTADONNÉES
   ========================================================= */

.oc-expo-index-card__meta {
    display: flex;
    flex-wrap: wrap;

    gap:
        7px 15px;

    margin-top: auto;
    margin-bottom: 24px;

    min-height: 40px;

    padding-top: 18px;

    border-top:
        1px solid
        rgba(35,49,39,.12);

    color: #6e746e;

    font-size: .78rem;
}

.oc-expo-index-card__meta span {
    position: relative;
}

.oc-expo-index-card__meta span + span::before {
    content: "·";

    margin-right: 15px;

    color: #D96A1B;
}


/* =========================================================
   LIEN
   ========================================================= */

.oc-expo-index-card__link {
    display: inline-flex;
    align-items: center;

    align-self: flex-start;

    color: #D96A1B;

    font-size: .78rem;
    font-weight: 700;

    letter-spacing: .06em;

    text-decoration: none;

    transition:
        color .2s ease,
        transform .2s ease;
}

.oc-expo-index-card__link:hover {
    color: #233127;

    transform:
        translateX(4px);
}


/* =========================================================
   CTA FINAL
   ========================================================= */

.oc-expos-index__cta {
    padding:
        clamp(75px, 8vw, 115px)
        0;

    background: #123D2F;
    color: #E8DFC9;
}

.oc-expos-index__cta-inner {
    width: min(1180px, 88%);
    margin: 0 auto;

    display: grid;

    grid-template-columns:
        minmax(0, .9fr)
        minmax(0, 1.1fr);

    gap:
        clamp(55px, 8vw, 120px);

    align-items: start;
}

.oc-expos-index__cta h2 {
    margin: 0;

    color: #F5ECD9;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size:
        clamp(2.8rem, 5vw, 5rem);

    font-weight: 400;

    line-height: .95;

    letter-spacing: -.035em;
}

.oc-expos-index__cta-text {
    max-width: 620px;

    color:
        rgba(232,223,201,.80);

    line-height: 1.75;
}

.oc-expos-index__cta-text p {
    margin:
        0 0
        26px;
}


/* =========================================================
   TABLETTE
   ========================================================= */

@media (max-width: 980px) {

    .oc-expos-index__grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .oc-expos-index__cta-inner {
        grid-template-columns: 1fr;
        gap: 34px;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 650px) {

    .oc-expos-index__hero-inner,
    .oc-expos-index__listing-inner,
    .oc-expos-index__cta-inner {
        width: 100%;

        padding-left: 22px;
        padding-right: 22px;
    }

    .oc-expos-index__hero {
        padding:
            65px
            0;
    }

    .oc-expos-index__hero h1 {
        font-size:
            clamp(3rem, 15vw, 4.8rem);
    }

    .oc-expos-index__listing {
        padding:
            60px
            0
            75px;
    }

    .oc-expos-index__grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .oc-expo-index-card__content {
        padding:
            24px
            22px
            26px;
    }

    .oc-expos-index__toolbar {
        margin-bottom: 30px;
    }

    .oc-expos-index__cta {
        padding:
            65px
            0;
    }
}

/* =====================================================
   INTRODUCTION DE L'INDEX
   ===================================================== */

.oc-expos-index__intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
    gap: 80px;

    padding: 0px 0 55px;
    margin-bottom: 55px;

    border-bottom: 1px solid rgba(35, 49, 39, 0.18);
}

.oc-expos-index__intro-heading h2 {
    margin: 8px 0 0;

    max-width: 650px;

    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(3rem, 5vw, 5rem);
    font-weight: 400;
    line-height: 0.95;
    letter-spacing: -0.035em;

    color: #233127;
}

.oc-expos-index__intro-meta {
    align-self: end;

    max-width: 520px;
}

.oc-expos-index__intro-meta > p {
    margin: 0 0 32px;

    font-size: 1.05rem;
    line-height: 1.75;

    color: rgba(35, 49, 39, 0.78);
}

.oc-expos-index__count {
    display: flex;
    align-items: baseline;
    gap: 14px;
}

.oc-expos-index__count strong {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 3rem;
    font-weight: 400;
    line-height: 1;

    color: #233127;
}

.oc-expos-index__count span {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;

    color: #e66a13;
}


/* =====================================================
   INTRO INDEX — RESPONSIVE
   ===================================================== */

@media (max-width: 800px) {

    .oc-expos-index__intro {
        grid-template-columns: 1fr;
        gap: 30px;

        padding: 55px 0 40px;
        margin-bottom: 40px;
    }

    .oc-expos-index__intro-heading h2 {
        font-size: clamp(2.7rem, 11vw, 4rem);
    }

    .oc-expos-index__intro-meta {
        max-width: none;
    }
}

/* =========================================================
   BADGE À VENIR
   ========================================================= */

.oc-expo-index-card__status {
    position: absolute;

    top: 16px;
    right: 16px;

    padding: 9px 13px;

    background: #D96A1B;
    color: #F5ECD9;

    font-size: .68rem;
    font-weight: 700;

    letter-spacing: .14em;
    text-transform: uppercase;

    line-height: 1;
}

/* =========================================================
   TABLETTE
   ========================================================= */

@media (max-width: 980px) {

    .oc-expos-index__grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 28px;
    }

    .oc-expo-index-card__content {
        padding:
            24px
            24px
            28px;
    }

    .oc-expo-index-card__title {
        font-size:
            clamp(1.55rem, 3vw, 2rem);
    }

    .oc-expo-index-card__location {
        min-height: auto;
    }
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 650px) {

    .oc-expos-index__grid {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .oc-expo-index-card {
        max-width: 520px;
        margin: 0 auto;
    }

    .oc-expo-index-card__content {
        padding:
            24px
            22px
            26px;
    }

    .oc-expo-index-card__title {
        min-height: 0;

        font-size:
            clamp(1.7rem, 8vw, 2.25rem);
    }

    .oc-expo-index-card__location {
        min-height: 0;
    }

    .oc-expo-index-card__meta {
        min-height: 0;
    }

    .oc-expo-index-card__year {
        top: 14px;
        left: 14px;
    }

    .oc-expo-index-card__status {
        top: 14px;
        right: 14px;
    }
}