/* VARIABLES
*************************************************************************/
:root {
    --couleur-principale: #4834bc;
    --content-width:90vw;
    --border-radius: 4px
}

/* GENERAL
*************************************************************************/
body {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 22px;
}


/* EN-TETE
*************************************************************************/
header {
    border: 1px dotted red;
    display: flex;
    justify-content: space-between;
    padding: 20px;
    width: var(--content-width);
    margin: 0 auto;
}

#logo {
    background-color: var(--couleur-principale);
    border-radius: 200px;
    border: 1px dotted red;
    width: 120px;
    height: 120px;
    background-image: url(../img/logo_blanc.svg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 80%;
}

#logo h1, #logo h2 {
    display: none;
}

nav {
    display: flex;
    flex-direction: row;
    align-self: center;


}

nav a {
    margin: 0 0 0 1em;
    font-size: 1.8vw;
}

header > div {
    display: flex;
    flex-direction: column;

}

#lang {
   align-self: flex-end;
    font-size: 1.4vw;
}

/* ACCUEIL
*************************************************************************/
#carrousel-wrapper {
    width: 100vw;
    aspect-ratio: 2/1;
    border: 1px dotted green;
}

.carrousel-item {
    height: 100%;
    aspect-ratio: 16/9;
    background-color: #f0f0f0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 10px;
}

.carrousel-item .dates, .carrousel-item .titre, .carrousel-item .sous-titre {
    padding: 10px;
    background-color: var(--couleur-principale);
    color:white;
}

.carrousel-item .dates {
    align-self: flex-end;
}

.carrousel-item .titre, .carrousel-item .sous-titre {
    align-self:flex-start;
    width: fit-content;
}

.titre {
    font-family: "TriviaGroteskN6", sans-serif;
    font-size: 250%;
}
.sous-titre {
    font-family: "TriviaGroteskR2", sans-serif;
    font-size: 200%;
}

.dates {
    font-family: "TriviaGroteskR2", sans-serif;
font-size: 200%;
}

#home-buttons-wrapper {
    width: var(--content-width);
    margin: 5vh auto;
    display: flex;
    justify-content: space-between;
}

.home-button {
    background-color: var(--couleur-principale);
    color:white;
    width: 20vw;
    aspect-ratio: 16/9;
    border-radius: var(--border-radius);
}

/* PAGES
*************************************************************************/
.page-titre {
    font-family: "TriviaGroteskN6", sans-serif;
    font-size: 400%;
    text-align: center;
    margin: 5vh 0;
    }

/* PPROGRAMME
*************************************************************************/

/* Filtre */
#filters-wrapper {
    display: flex;
    justify-content: space-between;
    margin: 5vh auto;
    width: var(--content-width);
    }

#filters-wrapper > div {
    flex: 0 0 30%;
    }

#filters-wrapper .center {
    display: flex;
    justify-content: center;
    }

#filters-wrapper .right {
    display: flex;
    justify-content: flex-end;
    }

.filter {
    border: 1px dotted red;
    display: flex;
    flex-direction: row;
    width: auto;
    }

.filterItem {
    padding: .2em .5em;
    border: 1px solid black;
    }

.filterItem:first-child {
    border-top-left-radius: 100px;
    border-bottom-left-radius: 100px;
    }

.filterItem:last-child {
    border-top-right-radius: 100px;
    border-bottom-right-radius: 100px;
    }

.filterItem.selected {
    font-weight: 700;
    background-color: var(--couleur-principale);
    color:white;
    }

#programme-wrapper {
    display: flex;
    width: var(--content-width);
    margin: 5vh auto;
    }

#programme-wrapper {
    flex-direction: column;
    }

.evenement.item .titre {
    font-family: "TriviaGroteskN6", sans-serif;
    font-size: 180%;
    }

.evenement.item .sous-titre , .evenement.item .dates{
    font-family: "TriviaGroteskR2", sans-serif;
    font-size: 100%;
    }
    
    /* Liste */

.day {
    font-size: 125%;
    color:var(--couleur-principale);
    border-bottom: 1px solid var(--couleur-principale);
    background: white;
    position: sticky;
    top: 0;
    text-align: center;
    padding: 4px;
    margin-top: 1em;
    }

.liste .evenement.item {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin-bottom: 2em;
    }

.liste .evenement.item .date-wrapper {
    order: 1;
    flex: 0 0 20%;
    }

.liste .evenement.item .info-wrapper {
    order: 0;
    flex: 1 1 70%;
    }

.liste .evenement.item .actions-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    order: 2;
    flex: 0 0 10%;
    }

.liste .evenement.item .actions-wrapper a {
    color:var(--couleur-principale);
    }

/* Grille */

#programme-wrapper.grille {
    flex-wrap: wrap;
    flex-direction: row;
    }

.grille .evenement.item {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    aspect-ratio: 4/3;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 44%;
    margin: 3%;
    }

.grille .actions-wrapper {
    display: none;
    }

.grille .dates, .grille .titre, .grille .sous-titre {
    padding: 2px;
    background-color: var(--couleur-principale);
    color:white;
    width: fit-content;
    }

.grille .dates {
    text-align: right;
    }

.grille  .evenement.item .dates, .grille .evenement.item .sous-titre {
    font-size: 80%;
    }

.grille  .evenement.item .date-wrapper{
    display: flex;
    justify-content: flex-end;
    }

.grille .evenement.item .titre {
    font-size: 120%;
    }
    
    /* PIED DE PAGE
		*************************************************************************/
footer {
    margin-top: 5vh;
    background-color: var(--couleur-principale);
    color:white;
    padding:20px
}