

:root{
    --nb_of_cards: 3; 
}

#collectifs{
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#carrousel-collectifs{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding-block: var(--block_space);
}

#slider-collectifs{
    overflow: auto;
    white-space: nowrap;
    padding-block: var(--block_space);
    width: 90%;
    font-size: 0;
    scrollbar-width: none;
}

.collectifs-card{
    display: inline-block;
    margin-inline: 2vw;
    width: calc(100%/var(--nb_of_cards) - 2*2vw);
    cursor: pointer;
    justify-items: center;
    transition: 300ms;
}

.collectifs-card:hover{
    transform: scale(1.03);
    transition: 300ms;
}

.collectifs-card img{
    width: 100%;
    object-fit: cover;
    aspect-ratio: 1/1;
}


@media screen and (min-height: 1000px) {
    #collectifs{
        min-height: 1000px;
    }
}
@media screen and (min-width: 1024px) {
    .collectifs-card{
        margin-inline: 20px;
        width: calc(100%/var(--nb_of_cards) - 2*20px);
    }
}

@media screen and (max-width: 768px) {
    :root{
        --nb_of_cards: 2; 
    }
    #slider-collectifs{
        margin-inline: 4vw;
    }
}

@media screen and (max-width: 480px) {
    :root{
        --nb_of_cards: 1; 
    }
    #slider-collectifs{
        margin-inline: 5vw;
    }
}





#carrousel-left, #carrousel-right{
    position: relative;
    width: var(--btn_height);
    height: var(--btn_height);
    padding-top: var(--btn_height);
    margin-bottom: calc(1.5*var(--btn_height));
    transition: 300ms;
    cursor: pointer;
}
#carrousel-left:hover, #carrousel-right:hover{
    transform: scale(1.1);
    transition: 300ms;
}

.l-btn-line, .r-btn-line{
    position: absolute;
    height: 10%;
    width: 100%;
    border-radius: 100vw;
    background-color: var(--primary_color_blue);
    transform-origin: 10%;
}

.r-btn-line{
    transform-origin: 90%;
}

.l-btn-line:first-child, .r-btn-line:last-child{
    transform: rotate(-45deg);
}
.l-btn-line:last-child, .r-btn-line:first-child{
    transform: rotate(45deg);
}



/************ PAGE DEDIEE COLLECTIF ************/ 
/************ PAGE DEDIEE COLLECTIF ************/ 
/************ PAGE DEDIEE COLLECTIF ************/ 
/************ PAGE DEDIEE COLLECTIF ************/


:root {
    --collapsable-closed-height: 6vw; 
    --collapsable-open-height: 20vw; /*replaced with js*/
    --collapse_btn_size : var(--collapsable-closed-height);
}
.collapsable-event{
    width: 100%;
    margin-inline: auto;
    height: var(--collapsable-closed-height);
    overflow: hidden;
    padding-top: var(--nav_bar_height);
    transform: translateY(calc(-1*var(--nav_bar_height)));
    background-color: var(--secondary_color_yellow);
    border-radius: 0 0 var(--corner_radius) var(--corner_radius);
    transition: height 300ms ease;
    color: var(--primary_color_blue);
}
#collapse-head{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    padding-inline: var(--inline_space);
    transition: 300ms;
}

.collapsed{
    height: var(--collapsable-open-height);
    transition: height 300ms ease;
}   
#event-features{
    margin-inline: var(--inline_space);
    margin-top: var(--block_space);
    height: fit-content;
}
#event-features span{
    font-weight: 500;
}
#event-features a{
    margin-block: var(--block_space);
}

#collapse-checkbox{
    display: none;
}

#event-collapse-btn{
    position: relative;
    width: var(--collapse_btn_size);
    height: var(--collapse_btn_size);
    cursor: pointer;
}

.collapse-btn-line{
    position: absolute;
    width: calc(0.45*var(--collapse_btn_size));
    height: calc(0.1*var(--collapse_btn_size)); 
    background: var(--primary_color_blue);
    border-radius: calc(0.35*var(--collapse_btn_size));
    left: calc(0.2*var(--collapse_btn_size));
    transform: translateY(var(--inline_space));
    transition: 500ms;
}

.collapse-btn-line:first-child{
    top : calc(0.5*var(--collapse_btn_size));
    transform: translateX(calc(-0.05*var(--collapse_btn_size))) rotate(45deg) ;
}

.collapse-btn-line:last-child{
    top : calc(0.5*var(--collapse_btn_size));
    transform: translateX(calc(0.2*var(--collapse_btn_size))) rotate(-45deg);
}

#collapse-checkbox:checked ~ #event-collapse-btn .collapse-btn-line:first-child{
    transform: translateX(calc(-0.05*var(--collapse_btn_size))) rotate(-45deg) ;
}
#collapse-checkbox:checked ~ #event-collapse-btn .collapse-btn-line:last-child{
    transform: translateX(calc(0.2*var(--collapse_btn_size))) rotate(45deg);
}

#collapse-checkbox:checked  #collapse-head{
    padding-top: var(--block_space);
}


@media screen and (min-width: 1024px) {
    :root {
        --collapsable-closed-height: 40px; 
    }
    .collapsable-event{
        width: 976px;
    }
    #collapse-head > h3{
        font-size: 22px;
        line-height: var(--collapsable-closed-height);
    }
}
@media screen and (max-width: 768px) {
    
}
@media screen and (max-width: 480px) {
    :root {
        --collapsable-closed-height: 20vw; 
        --collapse_btn_size : 15vw;
    }
    #collapse-head > h3{
        margin-top: 1vw;
    }
}


#artist-bio{
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 3vw;
}

#artist-bio div:first-child{
    width: 28%;
}
#artist-bio div:last-child{
    width: 72%;
}

#artist-bio div:first-child img{
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
}


@media screen and (min-width: 1024px) {
    #artist-bio{
        gap: 30px;
    }
}
@media screen and (max-width: 768px) {
    #artist-bio{
        flex-direction: column;
        align-items: start;
        gap: 0;
    }
    #artist-bio div:first-child{
        width: 50%;
    }
    #artist-bio div:last-child{
        width: 100%;
    }
}
@media screen and (max-width: 480px) {
    #artist-bio{
        align-items: center;
    }
    #artist-bio div:first-child{
        width: 100%;
    }
    #artist-bio div:last-child{
        width: 100%;
    }
}