@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Inter:wght@300;400;500;600&display=swap');

:root{
    --blue-night:#17263B;
    --blue:#243B5A;
    --gold:#D7B77A;
    --ivory:#F7F3EA;
    --text:#455367;
}

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    font-family:"Inter",sans-serif;
    background:var(--ivory);
    color:var(--text);
    line-height:1.8;
    overflow-x:hidden;
}

img{
    display:block;
    max-width:100%;
    height:auto;
}

.container{
    width:min(1100px,92%);
    margin:auto;
}

#programme-page{
    padding:125px 0 60px;
}

/* HEADER */

.page-header{
    text-align:center;
    margin-bottom:45px;
}

.page-header h1{
    margin:22px 0;
    font-family:"Cormorant Garamond",serif;
    font-size:clamp(2.5rem,5vw,4rem);
    font-weight:600;
    color:var(--blue-night);
    line-height:1.1;
}

.title-divider{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:16px;
}

.title-divider span:first-child,
.title-divider span:last-child{
    width:90px;
    height:1px;
    background:rgba(215,183,122,.45);
}

.ornament{
    color:var(--gold);
    font-size:.85rem;
}

/* BOUTON */

.programme-download{
    display:flex;
    justify-content:center;
    margin-bottom:70px;
}

.btn-programme{
    position:relative;
    display:inline-flex;
    align-items:center;
    gap:14px;
    padding:15px 34px;
    border-radius:999px;
    text-decoration:none;
    color:var(--blue-night);
    font-weight:600;
    border:1px solid rgba(215,183,122,.55);
    transition:.35s;
}

.btn-programme::before{
    content:"";
    position:absolute;
    inset:6px;
    border-radius:999px;
    border:1px solid rgba(215,183,122,.25);
    transition:.35s;
}

.btn-programme:hover{
    color:var(--blue);
    border-color:var(--gold);
    transform:translateY(-3px);
}

.btn-programme:hover::before{
    inset:3px;
}

.btn-icon{
    color:var(--gold);
    font-size:1.1rem;
    transition:.35s;
}

.btn-programme:hover .btn-icon{
    transform:translateY(3px);
}

/* LISTE DES PROGRAMMES */

.programme-item{
    padding:70px 0;
}

.programme-item:not(:last-child){
    border-bottom:1px solid rgba(215,183,122,.2);
}

/* LAYOUT */

.presentation-layout{
    display:grid;
    grid-template-columns:380px minmax(0,1fr);
    gap:70px;
    align-items:center;
}

.programme-item.reverse .presentation-layout{
    grid-template-columns:minmax(0,1fr) 380px;
}

.programme-item.reverse .presentation-image{
    grid-column:2;
    grid-row:1;
}

.programme-item.reverse .presentation-content{
    grid-column:1;
    grid-row:1;
}

/* IMAGE */

.presentation-image{
    position:relative;
    width:100%;
    overflow:hidden;
}

.presentation-image::before{
    content:"";
    position:absolute;
    inset:12px 0 0 12px;
    border:1px solid rgba(215,183,122,.45);
    border-radius:18px;
    pointer-events:none;
}

.programme-gallery{
    position:relative;
    z-index:2;
}

.programme-gallery-main{
    width:100%;
    aspect-ratio:4/5;
    object-fit:cover;
    border-radius:18px;
    box-shadow:0 20px 45px rgba(0,0,0,.15);
    transition:.35s;
}

.programme-placeholder{
    width:100%;
    aspect-ratio:4/5;
    display:flex;
    justify-content:center;
    align-items:center;
    border-radius:18px;
    background:#e8e1d4;
    color:var(--blue-night);
    text-transform:uppercase;
    letter-spacing:.08em;
    font-weight:600;
    box-shadow:0 20px 45px rgba(0,0,0,.15);
}

/* MINIATURES */

.programme-thumbs{
    margin-top:20px;
    display:flex;
    flex-wrap:wrap;
    gap:12px;
}

.programme-thumb{
    width:65px;
    aspect-ratio:4/3;
    border:none;
    padding:0;
    cursor:pointer;
    overflow:hidden;
    border-radius:10px;
    background:none;
    opacity:.75;
    transition:.3s;
}

.programme-thumb img{
    width:100%;
    height:100%;
    object-fit:cover;
}

.programme-thumb:hover{
    transform:translateY(-3px);
    opacity:1;
}

.programme-thumb.is-active{
    outline:2px solid var(--gold);
    outline-offset:2px;
    opacity:1;
}

/* CONTENU */

.presentation-content{
    width:100%;
    min-width:0;
}

.section-title{
    margin-bottom:35px;
}

.separator{
    display:block;
    width:55px;
    height:2px;
    margin-bottom:20px;
    background:var(--gold);
}

.section-title h2{
    font-family:"Cormorant Garamond",serif;
    font-size:2.2rem;
    font-weight:600;
    color:var(--blue-night);
    line-height:1.15;
}

/* TEXTE */

.presentation-text{
    position:relative;
    padding-left:30px;
}

.presentation-text::before{
    content:"";
    position:absolute;
    left:0;
    top:5px;
    bottom:5px;
    width:2px;
    background:linear-gradient(var(--gold),transparent);
}

.presentation-text p{
    margin-top:22px;
    font-size:.95rem;
    line-height:1.9;
    color:var(--text);
}

.presentation-text .lieu{
    color:var(--blue);
    font-weight:600;
}

/* METADONNEES */

.programme-meta{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    margin-bottom:10px;
    font-size:.92rem;
    align-items:center;
}

.programme-date{
    color:var(--gold);
    font-weight:700;
}

.programme-time{
    color:var(--gold);
    font-weight:700;
}

.programme-separator{
    color:var(--gold);
}

.programme-period{
    width:100%;
    color:var(--blue);
    font-style:italic;
    margin-top:6px;
}

/* ETAT VIDE */

.programme-empty{
    padding:50px;
    text-align:center;
    border-radius:18px;
    background:rgba(255,255,255,.55);
    border:1px solid rgba(215,183,122,.25);
    color:var(--blue-night);
}

/* ANIMATIONS */

.page-header,
.presentation-layout{
    animation:fadeUp .8s ease both;
}

.programme-item:nth-child(2) .presentation-layout{
    animation-delay:.1s;
}

.programme-item:nth-child(3) .presentation-layout{
    animation-delay:.2s;
}

.programme-item:nth-child(4) .presentation-layout{
    animation-delay:.3s;
}

@keyframes fadeUp{

    from{
        opacity:0;
        transform:translateY(35px);
    }

    to{
        opacity:1;
        transform:none;
    }

}

/* RESPONSIVE */

@media (max-width:950px){

    #programme-page{
        padding:110px 0 70px;
    }

    .programme-item{
        padding:60px 0;
    }

    .presentation-layout,
    .programme-item.reverse .presentation-layout{
        grid-template-columns:1fr;
        gap:45px;
    }

    .programme-item.reverse .presentation-image,
    .programme-item.reverse .presentation-content{
        grid-column:auto;
        grid-row:auto;
    }

    .presentation-image{
        max-width:650px;
        width:100%;
        margin:auto;
    }

    .presentation-image::before{
        inset:10px 0 0 10px;
    }

    .presentation-content{
        width:100%;
    }

    .presentation-text{
        padding-left:0;
    }

    .presentation-text::before{
        display:none;
    }

}

@media (max-width:768px){

    .page-header{
        margin-bottom:40px;
    }

    .page-header h1{
        font-size:2.4rem;
    }

    .programme-download{
        justify-content:center;
    }
    
    .section-title{
        margin-bottom:28px;
    }

    .section-title h2{
        font-size:1.9rem;
    }

    .presentation-layout{
        gap:35px;
    }

    .programme-gallery-main,
    .programme-placeholder{
        aspect-ratio:16/10;
    }

    .programme-thumb{
        width:60px;
    }

    .presentation-text p{
        font-size:.94rem;
        line-height:1.8;
    }

}

@media (max-width:540px){

    #programme-page{
        padding:95px 0 55px;
    }

    .container{
        width:94%;
    }

    .programme-item{
        padding:45px 0;
    }

    .page-header h1{
        font-size:2rem;
    }

    .section-title h2{
        font-size:1.65rem;
    }

    .programme-gallery-main,
    .programme-placeholder{
        aspect-ratio:4/3;
        border-radius:14px;
    }

    .presentation-image::before{
        display:none;
    }

    .programme-thumbs{
        justify-content:center;
        gap:10px;
    }

    .programme-thumb{
        width:55px;
        border-radius:8px;
    }

    .btn-programme{
        width:auto;
        padding:12px 22px;
        font-size:.9rem;
    }

}

@media (max-width:380px){

    .page-header h1{
        font-size:1.75rem;
    }

    .section-title h2{
        font-size:1.45rem;
    }

    .programme-gallery-main,
    .programme-placeholder{
        aspect-ratio:1/1;
    }

    .programme-thumb{
        width:48px;
    }

    .presentation-text p{
        font-size:.9rem;
    }

}