@font-face {
    font-family: 'Antique Legacy';
    src: url(../font/Antique-Legacy-Regular.woff) format(woff), url(../font/Antique-Legacy-Regular.woff2) format(woff2);
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Antique Legacy';
    src: url(../font/Antique-Legacy-Bold.woff) format(woff), url(../font/Antique-Legacy-Bold.woff2) format(woff2);
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Theinhardt Compact';
    src: url(../font/Theinhardt-Compact-Regular.woff) format(woff), url(../font/Theinhardt-Compact-Regular.woff2) format(woff2);
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Theinhardt Compact';
    src: url(../font/Theinhardt-Compact-Bold.woff) format(woff), url(../font/Theinhardt-Compact-Bold.woff2) format(woff2);
    font-weight: 700;
    font-style: normal;
}

/* General */

:root{
    --my-color: #ff2233;
    --purple: #ad7df9;
    --light-green: #9ae779;
    --yellow: #ffd72e;
    --red-orange: #ee4036;
    --tangerine: #f7941f;
    --denim: #0f76bd;
    --forest-green: #0B9444;
    --pink: #f39ec5;
    --night: #222223;
    --day: #f1ece6;
}

    /* Color classes */
.denim{color: var(--denim);} .purple{color: var(--purple);} .light-green{color: var(--light-green);} .yellow{color: var(--yellow);} .forest-green{color: var(--forest-green);} .purple{color: var(--purple);} .tangerine{color: var(--tangerine);} .pink{color: var(--pink);} .night{color: var(--night);} .day{color: var(--day);}

body{
    font-family: 'Antique Legacy', sans-serif;
    background-color: var(--day);
    color: var(--night);
    font-size: 16px;
    line-height: 140%;
    overflow-x: hidden !important;
}


a:link, a:visited{
    text-decoration: none;
    color: var();
}

a:hover, a:active{
    color: var();
}

h1{
    font-family: 'Theinhardt Compact', condensed;
    font-weight: 700;
    font-size: 6em;
    line-height: 90%;
    text-transform: uppercase;
    padding-top: 10px;
}

h2{
    font-family: 'Theinhardt Compact', condensed;
    font-weight: 700;
    font-size: 5em;
    text-transform: uppercase;
    padding-top: 10px;
}

h5{
    font-family: 'Theinhardt Compact', condensed;
    font-weight: 700;
    font-size: 4em;
    text-transform: uppercase;
    line-height: 80%;
    padding-top: 10px;
}

img{
    display: block;
}

.italic{
    font-style: italic;
}

.tag{
    width: fit-content;
    padding: 5px 10px;
}

.container{
    position: relative;
    z-index: 3;
}

#events-container{
    margin-bottom: 90px;
}

.content{
    background-color: rgba(34, 34, 35, 0.5);
}

header{
    width: 100%;
    position: sticky;
}

header img{
    width: 140px;
    margin: auto;
    padding: 20px;
}

 /* Styles selon catégories */
.theatre{
    background-color: var(--denim);
    color: var(--day);
}

#cutout.theatre{
    mask-image: url(/img/masks/clapper.svg);
}

#cutout{
    mask-size: 80%;
    mask-position: center;
    mask-repeat: no-repeat;
    height: 100vh;
    width: 100vw;
    position: fixed;
    z-index: 0;
    background-position: center;
    background-size: cover;
    background-repeat: none;
}

/* Cartes */
div.card, .card-img-top, .card-body{
    border-radius:0;
    border: none;
}

.card {
  cursor: pointer;
}

div.quick-info{
    display: flex;
    column-gap: 10px;
}

/* Système de tri */

div#sort-toggle, #map-toggle{
    display: flex;
    width: 100%;
    background-color: #b6ada3;
    cursor: pointer;
    margin-bottom: 20px;
}

div#sort-toggle *, #map-toggle *{
    width: 50%;
    text-align: center;
    padding: 10px;
}

div.selection #selection, div.prochainement #prochainement{
    background-color: var(--night);
    color: var(--day);
}

div.filters{
    margin-bottom: 20px;
}

div.filter-container{
    width: 100%;
    display: flex;
    gap: 5px;
    overflow-x: scroll;
}

.filter-container div{
    padding: 5px;
}

.filter-container div.active-filter {
    background-color: var(--night);
    color: var(--day);
}

/* Navigation */
div.nav{
    position: relative;
    z-index: 5;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    gap: 10px;
    position: fixed;
    bottom: 20px;
    color: var(--day);
    width: 100%;
}

div.menu{
    background-color:var(--night);
    color: var(--day);
    width: 59px;
    height: 59px;
    transition:height 0.5s ease, width 0.5s ease;
}

.menu.opened{
    width: 94%; 
    height: 80vh;
}

.menu.opened .menu-contents, .menu.closed .menu-button{
    visibility: visible;
    opacity: 1;
    transition:opacity 0.4s ease;
}

.menu.closed .menu-contents, .menu.opened .menu-button{
    visibility: hidden;
    opacity: 0;
    height: 0;
}

.menu a:link, .menu a:visited{
    color: var(--day);
    text-decoration: none;
}
.menu a:hover, .menu a:active{
    color: var(--denim);
}

.menu.closed .menu-button{
    width: 100%;
    height: 100%;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-button p{
    margin: 0;
}

.menu-contents{
    display: flex;
    flex-direction: column;
    height: inherit;
    padding: 10px;
}

.menu-contents ul{
    width: 100%;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    list-style-type: none;
    padding-inline-start: 0;
    padding: 100px 0px;    
}

li.big{
    font-family:'Theinhardt Compact', condensed;
    font-weight: 700;
    font-size: 5em;
}

li.small{
    font-size: 1.2em;
}

div.nav-wide{
    height: 59px;
    width: fit-content;
    background-color: var(--night);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px;
}

/* Reviews display */
#reviews{
    max-height: 70%;
    overflow-y: scroll;
}

/* Icônes génériques */
.lieu::before, .adresse::before {
    content: '';             
    display: inline-block;
    width: 16px;
    height: 16px;
    background-image: url(/img/icons/location.png);
    background-size: contain;
    background-repeat: no-repeat;
    vertical-align: middle;
    margin-right: 7px;
}

.duree::before {
    content: '';             
    display: inline-block;
    width: 16px;
    height: 16px;
    background-image: url(/img/icons/duration.png);
    background-size: contain;
    background-repeat: no-repeat;
    vertical-align: middle;
    margin-right: 7px;
}

#wheelchair::before {
    content: '';             
    display: inline-block;
    width: 16px;
    height: 16px;
    background-image: url(/img/icons/wheelchair.jpg);
    background-size: contain;
    background-repeat: no-repeat;
    vertical-align: middle;
    margin-right: 7px;
}

.horaire::before, .ouvert::before{
    content: '';             
    display: inline-block;
    width: 16px;
    height: 16px;
    background-image: url(/img/icons/clock.png);
    background-size: contain;
    background-repeat: no-repeat;
    vertical-align: middle;
    margin-right: 7px;
}

/* Interface de recherche */
#search, #search-close{
    cursor: pointer;
}

.search-overlay{
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    padding: 10px;
    overflow-x: hidden !important;
}

.search-overlay.opened{
    width: 100vw;
    height: 100vh;
}

.search-overlay.closed{
    width: 0;
    height: 0;
    visibility: hidden;
    pointer-events: none;
}

.search-overlay .row{
    display: flex;
    align-items: center;
    height: fit-content;
    width: 100%;
}

input{
    width: 100%;
}

#start-search{
    width: auto;
    height: 100%;
    border-style: none;
    background-color: var(--day);
    color: var(--night);
    height: 100%;
    width: fit-content;
    margin: auto;
}

.search-close{
    font-weight: 700;
    color: var(--day);
    line-height: 200%;
    padding: 10px;
    font-size: 1.5em;
}