/* =========================================================
   PROGRAMME GRID
========================================================= */

.programme-items-wrap {
    margin-top: 4rem;
}

.programme-item-row {
    position: relative;
    height: 100%;
    margin-bottom: 0 !important;
}


/* =========================================================
   IMAGE
========================================================= */

.programme-img-card {
    position: relative;
    width: 100%;
    height: 560px;
    overflow: hidden;
    border-radius: 18px;
    background: #eee;
    box-shadow: 0 18px 40px rgba(37, 25, 13, .16);
}

.programme-img-card::before {
    position: absolute;
    z-index: 1;
    inset: 0;
    background:
        linear-gradient(to top,
            rgba(20, 10, 12, .95) 0%,
            rgba(20, 10, 12, .78) 22%,
            rgba(20, 10, 12, .35) 48%,
            transparent 72%);
    content: '';
    pointer-events: none;
}

.programme-img-card::after {
    position: absolute;
    z-index: 1;
    inset: 0;
    background:
        linear-gradient(120deg,
            rgba(255, 255, 255, .12),
            transparent 35%,
            rgba(33, 20, 23, .15));
    content: '';
    pointer-events: none;
}


/* =========================================================
   IMAGE
========================================================= */

.programme-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;

    transition:
        transform .8s cubic-bezier(.2, .75, .25, 1);
}

.programme-img-card:hover .programme-img {
    transform: scale(1.06);
}


/* =========================================================
   NUMÉRO
========================================================= */

.programme-number {
    position: absolute;
    z-index: 5;
    top: 1.2rem;
    left: 1.2rem;

    display: flex;
    align-items: center;

    color: rgba(255, 255, 255, .9);

    font-size: .7rem;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.programme-number span {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 38px;
    height: 38px;

    margin-right: .5rem;

    border: 1px solid rgba(255, 255, 255, .45);
    border-radius: 50%;

    background: rgba(0, 0, 0, .25);

    backdrop-filter: blur(6px);

    font-size: .75rem;
}


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

.programme-item-content {
    position: absolute;
    z-index: 3;

    right: 0;
    bottom: 0;
    left: 0;

    padding: 1.8rem;
}


/* =========================================================
   TYPE
========================================================= */

.programme-item-type {
    display: inline-block;

    margin-bottom: .55rem;
    padding: .35rem .7rem;

    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 50px;

    background: rgba(0, 0, 0, .22);

    color: #fff;

    font-size: .72rem;
    font-weight: 700;
    letter-spacing: 1px;
    line-height: 1.3;

    text-transform: uppercase;

    backdrop-filter: blur(5px);
}


/* =========================================================
   ARTISTE
========================================================= */

.programme-item-artist {
    margin-bottom: .3rem;

    color: rgba(255, 255, 255, .9);

    font-size: .9rem;
    font-weight: 500;
}

.programme-item-artist strong {
    color: #fff;
    font-weight: 800;
}


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

.programme-item-title {
    margin-bottom: .7rem !important;

    color: #fff;

    font-size: clamp(1.45rem, 2.2vw, 2rem);
    font-weight: 800;
    line-height: 1.1;

    text-shadow: 0 3px 12px rgba(0, 0, 0, .3);
}


/* =========================================================
   SÉPARATEUR
========================================================= */

.programme-item-divider {
    width: 55px;
    height: 2px;

    margin: .7rem 0 .8rem;

    background: var(--theme-color);
}


/* =========================================================
   DESCRIPTION
========================================================= */

.programme-item-desc {
    max-width: 100%;

    margin: 0;

    color: rgba(255, 255, 255, .85);

    font-size: .88rem;
    line-height: 1.55;

    text-align: left;

    text-shadow: 0 2px 8px rgba(0, 0, 0, .3);

    /* Limite la hauteur pour garder des cartes propres 
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;*/
}


/* =========================================================
   ANIMATION
========================================================= */

.programme-reveal {
    opacity: 0;
    transform: translateY(35px) scale(.98);

    transition:
        opacity .65s ease,
        transform .75s cubic-bezier(.22, .78, .24, 1);

    transition-delay: var(--reveal-delay, 0ms);
}

.programme-reveal.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}


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

@media (max-width: 991px) {

    .programme-items-wrap {
        margin-top: 3rem;
    }

    .programme-img-card {
        height: 500px;
    }

    .programme-item-content {
        padding: 1.6rem;
    }

    .programme-item-title {
        font-size: 1.7rem;
    }

}


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

@media (max-width: 575px) {

    .programme-page-section {
        padding-top: 2rem !important;
        padding-bottom: 3rem !important;
    }

    .programme-items-wrap {
        margin-top: 2.5rem;
    }

    .programme-img-card {
        height: 500px;
        border-radius: 15px;
    }

    .programme-item-content {
        padding: 1.4rem;
    }

    .programme-item-type {
        font-size: .68rem;
    }

    .programme-item-artist {
        font-size: .85rem;
    }

    .programme-item-title {
        font-size: 1.65rem;
    }

    .programme-item-desc {
        font-size: .84rem;
        -webkit-line-clamp: 5;
    }

}


/* =========================================================
   ACCESSIBILITÉ
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .programme-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .programme-img {
        transition: none;
    }

}