@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);}

.bg-night{
    background-color: var(--night);
    color: var(--day);
}

.bg-night a:link, .bg-night a:visited, .bg-night a:hover, .bg-night a:active{
    color: var(--day);
}

.bg-day{
    background-color: var(--day) !important;
    color: var(--night);
}

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;
    line-height: 90%;
}

h3{
    text-transform: capitalize;
}

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, #locations-container{
    margin-bottom: 70px;
}

.ouvert{
    text-decoration: underline;
}

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

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);}
.exposition, .hall-dexposition{background-color: var(--pink); color: var(--day);}
.musee{background-color: var(--red-orange); color: var(--day);}
.festival{background-color: var(--forest-green); color: var(--day);}
.danse{background-color: var(--yellow); color: var(--night);}
.salle-de-concert, .concert{background-color: var(--light-green); color: var(--night);}
.cirque{background-color: var(--tangerine); color: var(--day);}
.cinema{background-color: var(--purple); color: var(--day);}
.onboarding{background-color: var(--night); color: var(--day);}

#cutout.theatre{
    mask-image: url(/img/masks/theatre.svg);
}
#cutout.cinema{
    mask-image: url(/img/masks/cinema.svg);
}
#cutout.cirque{
    mask-image: url(/img/masks/cirque.svg);
}
#cutout.concert, #cutout.salle-de-concert{
    mask-image: url(/img/masks/concert.svg);
}
#cutout.danse{
    mask-image: url(/img/masks/danse.svg);
}
#cutout.exposition, #cutout.hall-dexposition{
    mask-image: url(/img/masks/exposition.svg);
}
#cutout.festival{
    mask-image: url(/img/masks/festival.svg);
}
#cutout.musee{
    mask-image: url(/img/masks/musee.svg);
}
#cutout.pass{
    mask-image: url(/img/masks/pass.svg);
    mask-size: 50%;
    background-color: var(--day);
}



#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-img-top{
    aspect-ratio: calc(4/3);
    object-fit: cover;
}

.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);
}

/* Carte */
div.liste #liste, div.carte #carte {
    background-color: var(--night);
    color: var(--day);
}

#map-view{
    max-height: 70vh;
    border: 1px solid var(--night);
    overflow: scroll;
}

#map-view > div{
    position: relative;
}

#map-view a {
    position: absolute;
    display: block;
    width: 40px;
    height: 40px;
    top: 310px;
    left: 1700px;
    z-index: 3;
}

#carte-img{
    width: 500vw;
    display: block;
    position: relative;
    top: 0;
    left: 0;
    z-index: 2;
    margin: 0;
}

.location-pin{
    width: 40px;
    height: 40px;
    z-index: 3;
    position: absolute;
    content: '';
    display: inline-block;
    mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
    -webkit-mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    vertical-align: middle;
    margin-right: 7px;
    -webkit-mask-image: url(/img/icons/location.svg);
    mask-image: url(/img/icons/location.svg);
}

#location-1  { top: 120px;  left: 210px;  }
#location-2  { top: 340px;  left: 480px;  }
#location-3  { top: 85px;   left: 720px;  }
#location-4  { top: 510px;  left: 390px;  }
#location-5  { top: 200px;  left: 1050px; }
#location-6  { top: 440px;  left: 1280px; }
#location-7  { top: 75px;   left: 1490px; }
#location-8  { top: 310px;  left: 1700px; }
#location-9  { top: 560px;  left: 1870px; }
#location-10 { top: 180px;  left: 950px;  }
#location-11 { top: 720px;  left: 140px;  }
#location-12 { top: 890px;  left: 560px;  }
#location-13 { top: 1050px; left: 310px;  }
#location-14 { top: 780px;  left: 1100px; }
#location-15 { top: 1200px; left: 800px;  }
#location-16 { top: 950px;  left: 1450px; }
#location-17 { top: 1380px; left: 620px;  }
#location-18 { top: 1550px; left: 1200px; }
#location-19 { top: 1750px; left: 430px;  }
#location-20 { top: 1680px; left: 1700px; }

/* Navigation */
div.nav{
    position: fixed;
    z-index: 5;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: end;
    gap: 10px;
    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;
}

@media (min-width:576px){
    .menu.opened{
        width: 50vw;
    }
}
@media (min-width:776px){
    .menu.opened{
        width: 40vw;
    }
}

.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-button{
    -webkit-mask-image: url(/img/icons/menu.svg);
    mask-image: url(/img/icons/menu.svg);
}

#close, #search-close{
    -webkit-mask-image: url(/img/icons/close.svg);
    mask-image: url(/img/icons/close.svg);
    width: 30px !important;
    height: 30px !important;
    margin-left: 10px;
}

.menu-contents{
    display: flex;
    flex-direction: column;
    height: 95%;
    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: 40px 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;
}

/* Icônes génériques */
.lieu::before, .adresse::before,
.duree::before,
#wheelchair::before,
.horaire::before, 
.ouvert::before, .menu-button, #close, 
#search-close, #search::before, #add::before, .add::before,
#rate::before, .chevron, .external::after{
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    background-color: currentColor;
    mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
    -webkit-mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    vertical-align: middle;
    margin-right: 7px;
}

.lieu::before, .adresse::before {
    -webkit-mask-image: url(/img/icons/location.svg);
    mask-image: url(/img/icons/location.svg);
}
.duree::before {
    -webkit-mask-image: url(/img/icons/duration.svg);
    mask-image: url(/img/icons/duration.svg);
}
#wheelchair::before {
    -webkit-mask-image: url(/img/icons/wheelchair.svg);
    mask-image: url(/img/icons/wheelchair.svg);
}
.horaire::before, .ouvert::before {
    -webkit-mask-image: url(/img/icons/clock.svg);
    mask-image: url(/img/icons/clock.svg);
}

#add::before, .add::before{
    -webkit-mask-image: url(/img/icons/agenda.svg);
    mask-image: url(/img/icons/agenda.svg);
}

#rate::before{
    -webkit-mask-image: url(/img/icons/star.svg);
    mask-image: url(/img/icons/star.svg);
}

.external::after{
    -webkit-mask-image: url(/img/icons/external.svg);
    mask-image: url(/img/icons/external.svg);
    margin-left: 7px;
}

.chevron{
    display: block;
    width: 35px;
    height: 35px;
    -webkit-mask-image: url(/img/icons/chevron.svg);
    mask-image: url(/img/icons/chevron.svg);
    margin: auto;
    margin-top: 10px;
}

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

#search::before{
    -webkit-mask-image: url(/img/icons/search.svg);
    mask-image: url(/img/icons/search.svg);
}

#search-close{
    margin-bottom: 20px;
}

.search-overlay{
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    padding: 10px;
    overflow-x: hidden !important;
    background-color: rgba(34, 34, 35, 0.8);
}

.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;
}

/* Pass */
#pass {
    background-color: var(--night);
    color: var(--day);
    padding: 10px;
}

#pass p{
    margin-bottom: 5px;
}

#pass-picture{
    width: 40%;
    height: 100%;
}

#pass-picture img{
    width: 100%;
    object-fit: cover;
    height: 100%;
}

#qr{
    width: 40%;
}

div.search-results h3{
    display: none;
}

/* marquee partenaires */

.marquee {
  overflow: hidden;       
  width: 100%;
  position:relative;
  padding: 7px 0;
}

.marquee::after {
  content: '';
  position: absolute;
  inset: 0;                
  box-shadow: inset 8px 0 8px -8px rgba(34,34,35,0.5),   
              inset -8px 0 8px -8px rgba(34,34,35,0.5);  
  pointer-events: none;    
}

.marquee-track {
  display: flex;         
  width: max-content;    
  animation: scroll-left 20s linear infinite;
}

.marquee-set {
  display: flex;
  align-items: center;
  gap: 40px;
  padding-right: 40px;    
}

.marquee-set img {
  height: 60px;
  width: auto;
  object-fit: contain;
}

@keyframes scroll-left {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }  
}


/* onboarding */

.medium-font{
    font-size: 1.2em;
}

.onboarding h2, .onboarding h1, .onboarding p{
    text-shadow: 0 0 10px var(--night);
}

.onboarding section{
    padding-bottom: 20px !important;
}

.underline{
    text-decoration: underline;
}

/* loading */

.loading{
    background-color: var(--night);
}

.loading-content{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 40vh;
}

.loading-content img{
    width: 300px;
}

.loading-content p{
    font-size: 1.5em;
    margin-top: 30px;
}

/* Rating */
input{
    min-width: 10px
}

form h3{
    text-transform: none;
}

textarea{
    width: 93vw;
    margin: auto;
}

/* login */
.fullheight{
    height: 98vh !important;
}