h2{
    text-align: left;
    text-transform: uppercase;
}

h3{
    margin: 0;
    padding: 1rem;
}

.main-filter,.range, #main-form, .filtre, #form, .icons, .access-heckboxes div, .cards, .events-container, .search-delete-container, .horaire, .lieu, .date{
    display: flex;
}

#form{
    gap: .5rem;
}

.cards{
    flex-direction: column;
    gap: 2rem;
}

.card{
    display: grid;
    grid-template-columns: 30% 1fr;
    background-color: var(--lightgrey);
    border-radius: 1rem;
    box-shadow: 4px 4px 4px rgba(0,0,0, 0.2);
    text-decoration: none;
    color: black;
    transition: all .2s ease-in-out;
    overflow: hidden;
}

.card a{
    text-decoration: none;
    font-weight: bold;
    color: black;
    padding-top: 1rem;
    max-width: 50%;
}

.card:hover{
    box-shadow: 4px 4px 4px rgba(0, 0, 0, 0.5);
    scale: 1.01;
}

.card-container{
    display: grid;
    grid-template-rows: auto auto 1fr;
}

.content{
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1rem;
    width: 100%;
    flex-direction: column;
}

.affiche-container img:not(.no-image){
    height: 100%;
    width: 100%;
    object-fit: contain;
    background-color: var(--darkgrey);
}

.horaire, .lieu, .date{
    gap: 1rem;
}

.horaire img, .lieu img, .date img{
    height: 2rem;
    fill: var(--red);
}

.content p:not(.content p:first-child){
    font-size: 1.4rem;
}

.event-results{
    font-weight: bold;
    margin-bottom: 3rem;
    font-size: 2rem;
}

.event-type{
    background-color: black;
    color: white;
    border-radius: 0 0 0 1rem;
    font-size: 1.2rem;
    text-align: center;
    font-weight: 600;
    padding: 1rem 2rem;
}

.title-container{
    position: relative;
    grid-area: 1/1/1/3;
    display: grid;
    grid-template-columns: 1fr 25%;
    gap: 1rem;
    align-items: start;
}

.icons{
    /* justify-content: space-between;
    gap: 1rem; */
    justify-content: space-between;
    gap: 1rem;
    display: flex;
    align-items: flex-start;
}
.icons div{
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.icon{
    border-radius: 50%;
    aspect-ratio: 1/1;
    height: 3rem;
    width: 3rem;
    border: 1px solid var(--red);
}

.container{
    display: grid;
    grid-template-columns: 40% 1fr;
    gap: 3rem;
}
.access-checkboxes, .public-checkboxes, .film-checkboxes {
    width: 100%;
    display: none;
    position: absolute;
    z-index: 2;
    background-color: white;
    width: inherit;
    top: 4rem;
    padding-bottom: 0.5rem;
    border: 1px solid #AFAFAF;
    padding: 1rem;
    border-radius: 0.5rem;
    box-shadow: 3px 3px 3px rgba(0,0,0, 0.1);
}

.access-checkboxes label, .public-checkboxes label, .film-checkboxes label{
  display: block;
  position: relative;
}

.access-checkboxes div, .public-checkboxes div, .film-checkboxes div{
    display: flex;
    gap: .5rem;
    padding-right: 1rem;
}

.access-multiselect, .public-multiselect, .film-multiselect {
  width: 100%;
}

.selectbox {
  position: relative;
  cursor: pointer;
}

.selectbox select {
  width: 100%;
}

.overselect {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
}

.filtre{
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    grid-template-columns:1fr 1fr 1fr auto;
    justify-items: stretch;
}

.filtres-bottom{
    grid-template-columns: auto 20% 20% 20% minmax(5vw, 15vw);
}

#main-form{
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
    position: relative;
    margin-bottom: 3rem;
    width: 100%;
}

#main-form button{
    grid-area : 1/4
}

#filter-form{
    align-items: center;
    gap: 1rem;
}

.range{
    gap: 3rem;
    align-items: flex-start;

}

.select-open{
    position: relative;
}

input:not(input[type='range'], input[type='checkbox']), .selectbox p, #event-type, #public-type, #film-type{
    border: 1px solid #AFAFAF;
    padding: 0.5rem 1rem;
    border-radius: .5rem;
    width: 100%;
    background-color: white;
}

.button{
    height: 100%;
    line-height: normal;
    border-radius: .5rem;
    width: fit-content;
}

#carte{
    position: relative;
    z-index: 0;
    margin-bottom: 3rem;
    border-radius: 1rem;
}

input[type='range']{
    accent-color: var(--red);
    width: 80%;
}

.rayon-value{
    font-size: 1.4rem;
    font-style: italic;
}

.distance-value{
    width: 50%;
    text-align: right;
}



/* Gestion de l'autoComplete */
.autoComplete_wrapper>input{
    width: 100%;
    margin: 0;
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    text-overflow: ellipsis;
    color: black;
    outline: 0;
    border-radius: 10rem;
    border: 0.05rem solid rgba(255,122,122,.5);
    background-size: 1.4rem;
    background-position: left 1.05rem top 0.8rem;
    background-repeat: no-repeat;
    background-origin: border-box;
    background-color: #fff;
    transition: all .4s ease;
    -webkit-transition: all -webkit-transform .4s ease;
} */

.autoComplete_wrapper {
    display: inline-block;
}

.autoComplete_wrapper{
    grid-template-columns: 1fr auto;
    position: relative;
    width: 100%;
    display: grid;
}

.autoComplete_wrapper>ul:empty, .autoComplete_wrapper>ul[hidden] {
    display: block;
    opacity: 0;
    transform: scale(0);
}

.autoComplete_wrapper>ul {
    position: absolute;
    width: inherit;
    height: 15rem;
    overflow-y: scroll;
    box-sizing: border-box;
    top: 4rem;
    left: 0;
    right: 0;
    margin: 0.5rem 0 0 0;
    padding: 0;
    z-index: 1;
    list-style: none;
    border-radius: 0.6rem;
    background-color: #fff;
    border: 1px solid rgba(33,33,33,.07);
    box-shadow: 0 3px 6px rgba(149,157,165,.15);
    outline: 0;
    transition: opacity .15s ease-in-out;
    -moz-transition: opacity .15s ease-in-out;
    -webkit-transition: opacity .15s ease-in-out;
}

.autoComplete_wrapper>ul>li {
    margin: 0.3rem;
    padding: 0.3rem 0.5rem;
    text-align: left;
    /* font-size: 1rem; */
    color: #212121;
    border-radius: 0.35rem;
    background-color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: all .2s ease;
}

.li-city, .li-cinema{
    cursor: pointer;
}

.li-city:hover, .li-cinema:hover{
    background-color: var(--red);
    color: white;
}


.autoComplete_cinema>input{
    width: 100%;
    margin: 0;
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    text-overflow: ellipsis;
    color: black;
    outline: 0;
    border-radius: 10rem;
    border: 0.05rem solid rgba(255,122,122,.5);
    background-size: 1.4rem;
    background-position: left 1.05rem top 0.8rem;
    background-repeat: no-repeat;
    background-origin: border-box;
    background-color: #fff;
    transition: all .4s ease;
    -webkit-transition: all -webkit-transform .4s ease;
} */

.autoComplete_cinema {
    display: inline-block;
}

.autoComplete_cinema{
    position: relative;
    width: 100%;
    display: flex;
}

.autoComplete_cinema>ul:empty, .autoComplete_cinema>ul[hidden] {
    display: block;
    opacity: 0;
    transform: scale(0);
}

.autoComplete_cinema>ul {
    position: absolute;
    width: inherit;
    height: 15rem;
    overflow-y: scroll;
    box-sizing: border-box;
    top: 4rem;
    left: 0;
    right: 0;
    margin: 0.5rem 0 0 0;
    padding: 0;
    z-index: 1;
    list-style: none;
    border-radius: 0.6rem;
    background-color: #fff;
    border: 1px solid rgba(33,33,33,.07);
    box-shadow: 0 3px 6px rgba(149,157,165,.15);
    outline: 0;
    transition: opacity .15s ease-in-out;
    -moz-transition: opacity .15s ease-in-out;
    -webkit-transition: opacity .15s ease-in-out;
}

.autoComplete_cinema>ul>li {
    margin: 0.3rem;
    padding: 0.3rem 0.5rem;
    text-align: left;
    /* font-size: 1rem; */
    color: #212121;
    border-radius: 0.35rem;
    background-color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: all .2s ease;
}


.test{
    background-color: red;
    border-radius: 50%;
}

.leaflet-popup-content{
    text-align: center;
}

.main-filter{
    flex-direction: column;
    align-items: flex-start;
}

.events-container, .search-delete-container{
    gap: 1rem;
}

.search-delete-container{
    justify-content: space-between;
}

.number-events{
    margin-bottom: 2rem;
    font-weight: bold;
    color: var(--red)
}

.text-events{
    margin-bottom: 2rem;
    color: #8F8F8F;
}

.results{
    margin-bottom: 2rem;
    font-weight: bold;
}

.delete-filters, .carte-france{
    background-color: grey;
    border: grey;
}
.delete-filters:hover, .carte-france:hover{
    background-color: black;
    color: white;
}

.carte-france{
    padding: .5rem 1rem;
    border-radius: .5rem;
    color: white;
    width: fit-content;
    border: none;
    box-shadow: var(--shadow);
    text-decoration: none;
    transition: all .3s ease-in-out;
    margin-bottom: 5rem;
}

.button-search, .delete-filters{
    padding: .5rem 1rem;
}

.button-search:active{
    background-color: var(--red);
}

.delete-filters:active, .carte-france:active{
    background-color: var(--lightgrey);
}

.geoloc-button{
    cursor: pointer;
    margin: 0;
    padding: 1rem;
    border: 1px solid var(--red);
    border-radius: 1rem;
    margin-left: 1rem;
    transition: all .3s ease-in-out;
    height:4rem;
    width: 4rem;
    background-image: url("/src/img/geoloc-icon.svg");
    background-repeat: no-repeat;
    background-position: center;
    position: relative;
}


.geoloc-button:hover{
    cursor: pointer;
    margin: 0;
    padding: 1rem;
    border: 1px solid var(--red);
    background-image: url("/src/img/geoloc-white-icon.svg");
    background-color: var(--red);
    border-radius: 1rem;
    margin-left: 1rem;
}


.geoloc-msg{
    display: none;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--red);
    padding-left: 1rem;
    padding-top: .5rem;
}

.modal-geoloc{
    display: none;
    position: absolute;
    top: -5rem;
    right: -12%;
    z-index: 3;
    background-color: white;
    border-radius: 1rem;
    padding: 1rem;
    box-shadow: 2px 2px 2px rgba(0,0,0,0.1);
    border: 1px solid var(--red);
    color: var(--red);
}

input[type="checkbox"] {
    appearance: none;
    display: grid;
    background-color: #fff;
    font: inherit;
    color: currentColor;
    width: 1.15em;
    height: 1.15em;
    border: 0.15em solid currentColor;
    border-radius: 0.15em;
    transform: translateY(-0.075em);
}

input[type="checkbox"]::before {
    content: "";
    width: 1.2rem;
    height: 1.2rem;
    transform: scale(0);
    transition: 120ms transform ease-in-out;
    box-shadow: inset 1em 1em var(--red);
    transform-origin: bottom left;
    clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
    position: absolute;
    left: 1px;
    top: 1px;
}
  
input[type="checkbox"]:checked::before {
    transform: scale(1);
}

input[type="checkbox"]:focus {
    outline: max(1px, 0.15em) solid var(--red);
    outline-offset: max(2px, 0.15em);
}

input:focus, select:focus {
    outline: max(1px, 0.15em) solid var(--red);
    outline-offset: max(2px, 0.15em);
}


.close-accessCheckboxes, .close-publicCheckboxes, .close-filmCheckboxes{
    cursor: pointer;
    position: absolute;
    top: 0;
    right: 0;
    border: none;
    background-color: var(--red);
    color: white;
    border-radius: 0.4rem;
    display: flex;
    font-size: 1.5rem;
    padding: 0.5rem 1rem;
    height: 3rem;
    width: 3rem;
    align-items: center;
    justify-content: center;
}

.option-checked{
    color: var(--red);
    font-weight: 600;
}

.public-icon{
    padding: .5rem 1rem;
    border-radius:.5rem;
    font-size: 1.2rem;
}

.tous-publics{
    background-color: rgb(12, 85, 21);
    color: white;
}
.quinze{
    background-color: rgb(20, 20, 94);
    color: white;
}
.public-averti{
    background-color: var(--red);
    color: white;
}
.jeune-public{
    background-color: rgb(15, 171, 179);
}

.no-image{
    aspect-ratio: 4/6;
    background-color: var(--darkgrey);
    padding: 5rem;
}
.type-films{
    display: flex;
    gap: 1rem;
}

.film{
    font-size: 1.2rem;
    background-color: var(--darkgrey);
    padding: .5rem 1rem;
    border-radius: .5rem;
}

@media screen and (min-width:2560px){
    main{
        max-width: 60vw;
    }
    .card{
        grid-template-columns: 20% 1fr;
    }
}

@media screen and (min-width: 1440px){
    main {
        width: 70vw;
    }
}

@media screen and (min-width:426px) and (max-width:990px){
    .container{
        display: block;
    }
    #main-form{
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        width: 100%;
    }
    .keyword-input{
        grid-area: 1/1/1/3;
    }
    .filter-input{
        grid-area: 2/1/2/3;
    }
}

@media screen and (max-width:425px){
    .container{
        display: block;
    }
    #main-form{
        grid-template-columns: 1fr;
    }
    .search-delete-container{
        justify-content: space-between;
    }
    .card{
        display: flex;
        flex-direction: column;
    }
    .date{
        border-radius: 0 0 1rem 1rem;
    }
}

@media screen and (max-width:350px) {
    .search-delete-container{
        flex-direction: column;
        
    }
    .search-delete-container button{
        width: 100%;
    }
}