
* {
  box-sizing: border-box;
  font-family: Avenir Next, Avenir, SegoeUI, sans-serif;
}

body {
  margin: 0;
  background-attachment: fixed;
  background-image: url("../images/arc-en-ciel.svg");
  background-color: white;
  background-position: bottom right;
  background-repeat: no-repeat;
  background-size: auto 50% ;
}

h1 {
  font-size: 4vw;
  line-height: 3vw;
}

.couleur0 { background: #8B00FF; }
.couleur1 { background: #FF0000; }
.couleur2 { background: #FF7F00; }
.couleur3 { background: #FFFF00; }
.couleur4 { background: #00FF00; }
.couleur5 { background: #0000FF; }
.couleur6 { background: #8B00FF; }


/* ---- isotope ---- */

.grid {
  border: 0px solid #333;
}

/* clear fix */
.grid:after {
  content: '';
  display: block;
  clear: both;
}

/* ---- .element-item ---- */

.element-item {
  position: relative;
  float: left;
  width: 105px;
  height: 150px;
  margin: 5px;
  padding: 10px;
  color: #262524;
  overflow: hidden;
  overflow-wrap: break-word;
}

.element-item > * {
  margin: 0;
  padding: 0;
}

.element-item .titre {
  position: absolute;
  left: 10px;
  top: 20px;
  text-transform: none;
  letter-spacing: 0;
  font-size: 20px;
  font-weight: bold;
  opacity: 1;
  line-height: .9em;
  overflow: hidden;
  text-overflow: ellipsis;
  /* white-space: nowrap; */
}

.element-item .genre {
  position: absolute;
  left: 10px;
  bottom: 20px;
  font-size: 12px;
  font-weight: normal;
  color: white;
}

.element-item .duree {
  position: absolute;
  left: 10px;
  bottom: 5px;
  font-size: 12px;
  font-weight: normal;
  color: white;
}

.element-item .annee {
  position: absolute;
  right: 8px;
  top: 5px;
  font-size: 12px;
  font-weight: normal;
  color: white;
}

.element-item .votes {
  position: absolute;
  left: 8px;
  top: 5px;
  font-size: 12px;
  font-weight: normal;
  color: white;
}

.element-item .culte {
  position: absolute;
  right: 8px;
  bottom: 5px;
  font-size: 24px;
  font-weight: normal;
  color: white;
}



.couleur3 .annee,
.couleur3 .votes,
.couleur3 .duree,
.couleur3 .genre,
.couleur4 .annee,
.couleur4 .votes,
.couleur4 .duree,
.couleur4 .genre
{ color: #888; }
.couleur0 .titre,
.couleur1 .titre,
.couleur5 .titre,
.couleur6 .titre
{ color: #FFF; }


.outer-div {
  display: table;
  position: fixed;
  height: 100%;
  width: 100%;
  margin:0;
  padding:0;
  background-color: rgba(255,255,255,0.9);
  /* pointer-events: none; */
}
.mid-div {
  display: table-cell;
  vertical-align: middle;
  margin:0;
  padding:0;
}
.center-div {
  margin: 0 auto;
  width: 100%;
  max-width: 800px;
  background-color: #fff;
  border-radius: 0px;
  padding: 5px 20px 20px 20px;
  box-shadow: 0px 0px 16px 0px rgba(0,0,0,0.5);
  pointer-events: initial;
}

.center-div h1 {
  font-size: 4vw;
  line-height: 4vw;
  margin: 0;
}

.embed-responsive {
  position: relative;
  display: block;
  height: 0;
  padding: 0;
  overflow: hidden;
  text-align: center;
}

.embed-responsive .embed-responsive-item, .embed-responsive iframe, .embed-responsive embed, .embed-responsive object {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  height: 100%;
  width: 100%;
  border: 0;
}

.embed-responsive.embed-responsive-16by9 {
  padding-bottom: 56.25%;
}

.embed-responsive.embed-responsive-4by3 {
  padding-bottom: 75%;
}

.header {
  text-align: center;
  padding: 20px;
}

.header h1 {
  margin-top: 0;
  padding-top: 20px;
  line-height: 1em;
}

.menu {
  top: 0;
  margin: 0;
  padding: 5px;
  width: 100%;
  position: -webkit-sticky;
  position: sticky;
  background: rgba(255, 255, 255, .5);
  text-align: center;
  z-index: 98;
  font-size:10px;
}

.container {
  margin-top: 20px;
  padding: 0 10px;
}

#infos {
  display: none;
  opacity: 0;
  transition: all 1s;
  z-index: 99;
}

#tris a {
	border-radius:42px;
	display:inline-block;
	cursor:pointer;
	color:#ffffff;
	font-family:Arial;
	font-size:10px;
	padding:4px 6px;
	text-decoration:none;
}

#filtres {
  width: 66%;
  display: block;
  margin: 0 auto;
}

#filtres a,#aleatoire,#suggestion {
	border-radius:42px;
	display:inline-block;
	cursor:pointer;
	color: #000;
	font-family:Arial;
	font-size:15px;
	padding: 4px 10px;
	text-decoration:none;
  background-color: #eee;
  margin-bottom: 5px;
}

a.couleur3, a.couleur4 { color: #000 !important; }

#infos p.details { color: grey; }
#infos p.infos { color: black; }

#infos .votes {
  position: relative;
  left: 8px;
  top: 5px;
  font-size: 12px;
  font-weight: normal;
  color: grey;
}

.fermer {
  position: relative;
  float: right;
  right: 0;
  top: 5px;
  font-size: 24px;
  font-weight: normal;
  color: grey;
  transition: all .5s;
}

.fermer:hover{
  color: red;
  transform: rotate(180deg);
}

/* Formulaire */


.centrer { text-align: center; }

form,#final {
  margin: 2em 0;
  width: 80%;
  max-width: 600px;
  position: relative;
  margin: auto;
}

.field {
  display: flex;
  flex-flow: column-reverse;
  margin-bottom: 1em;
}

label, input[type="text"], input[type="password"] {
  transition: all 0.2s;
  touch-action: manipulation;
}

input[type="text"], input[type="password"] {
  font-size: 1.5em;
  border: 0;
  border-bottom: 1px solid #ccc;
  font-family: inherit;
  -webkit-appearance: none;
  border-radius: 0;
  padding: 0;
  cursor: text;
}

input[type="text"]:focus,
input[type="password"]:focus {
  outline: 0;
  border-bottom: 1px solid #666;
}

input[type="text"]:placeholder-shown + label,
input[type="password"]:placeholder-shown + label
{
  cursor: text;
  max-width: 66.66%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transform-origin: left bottom;
  transform: translate(0, 2.125rem) scale(1.5);
  color:lightgray;
}

::-webkit-input-placeholder {
  opacity: 0;
  transition: inherit;
}

input[type="text"]:focus::-webkit-input-placeholder,
input[type="password"]:focus::-webkit-input-placeholder
{
  opacity: 1;
}

input[type="text"]:not(:placeholder-shown) + label,
input[type="text"]:focus + label,
input[type="password"]:not(:placeholder-shown) + label,
input[type="password"]:focus + label
{
  transform: translate(0, 0) scale(1);
  cursor: pointer;
  color:lightgray;
}

small {
  color:lightgray;
}

button {
  border:0;
  border-radius: 28px;
  font-family: Arial;
  color: #ffffff;
  font-size: 1.5em;
  background-color: #3498db;
  padding: 10px 20px;
  margin: 10px 10px;
  text-decoration: none;
}

button:hover {
  background-color: #3cb0fd;
  text-decoration: none;
}

button:active {
  outline: none;
  border: none;
}

button:focus {
  outline:0;
}

#infos .vote span {
  border:0;
  border-radius: 15px;
  font-family: Arial;
  color: #ffffff;
  font-size: 10px;
  padding: 8px 12px;
  margin-right: 5px;
  text-decoration: none;
  opacity:1;
}

#infos .vote abbr.score,
#infos .vote abbr.vues
{
  background-color: lightgrey;
  color: black;
}

#infos .vote span.vote,
#infos .vote span.deja
{
  background-color: lightgreen;
  color: black;
}

#identification {
  display: none;
  opacity: 0;
  transition: all 1s;
  z-index: 101;
}

#identification h1 {
  margin-top: 20px;
  padding-top: 20px;
}

#identification button {
  display: block;
  margin: 20px auto;
}

.erreur {
  color:red;
}

#infos .vote abbr {
  border:0;
  border-radius: 15px;
  font-family: Arial;
  color: #ffffff;
  font-size: 10px;
  padding: 8px 12px;
  margin-right: 5px;
  text-decoration: none;
  opacity:1;
}

#infos .vote abbr.score,
#infos .vote abbr.vues
{
  background-color: lightgrey;
  color: black;
}

#infos .vote span.vote,
#infos .vote span.deja
{
  background-color: lightgreen;
  color: black;
}

#infos .vote span.vote,
#infos .vote span.deja
{
  background-color: lightgreen;
  color: black;
}

#infos .vote span.note {
  padding: 0;
  margin-left: 10px;
}

#infos .vote span.note > span {
  font-size:2em;
  margin: 0;
  padding: 0 2px 0 0px;
  color: lightgrey;
}

#infos .vote span.note > span.pt
{
  color: gold;
}

.sautdeligne { display: none; }

@media only screen and (max-width: 600px) {
  body {
    background-image: none;
    background-color: white;
  }
  #filtres {
    width: 100%;
    margin-bottom: 30px;
  }
  .sautdeligne {
    display: block;
    margin-top:10px;
  }
  .search-box {
    margin-top:10px;
  }
  #infos h1 { padding-top:10px; font-size:21px; }
  .header h1 { font-size:36px; }
}

.onoffswitch {
  float: left;
  display: inline-block;
  margin-right: 10px;
  position: relative; width: 75px;
  -webkit-user-select:none; -moz-user-select:none; -ms-user-select: none;
}
.onoffswitch-checkbox {
    display: none;
}
.onoffswitch-label {
    display: block; overflow: hidden; cursor: pointer;
    border: 2px solid #999999; border-radius: 20px;
}
.onoffswitch-inner {
    display: block; width: 200%; margin-left: -100%;
    transition: margin 0.3s ease-in 0s;
}
.onoffswitch-inner:before, .onoffswitch-inner:after {
    display: block; float: left; width: 50%; height: 15px; padding: 0; line-height: 15px;
    font-size: 10px; color: white; font-family: Trebuchet, Arial, sans-serif; font-weight: bold;
    box-sizing: border-box;
}
.onoffswitch-inner:before {
    content: "FILM VU";
    padding-left: 8px;
    background-color: #34A7C1; color: #FFFFFF;
}
.onoffswitch-inner:after {
    content: "PAS VU";
    padding-right: 8px;
    background-color: #EEEEEE; color: #999999;
    text-align: right;
}
.onoffswitch-switch {
    display: block; width: 19px; margin: -2px;
    background: #FFFFFF;
    position: absolute; top: 0; bottom: 0;
    right: 56px;
    border: 2px solid #999999; border-radius: 20px;
    transition: all 0.3s ease-in 0s;
}
.onoffswitch-checkbox:checked + .onoffswitch-label .onoffswitch-inner {
    margin-left: 0;
}
.onoffswitch-checkbox:checked + .onoffswitch-label .onoffswitch-switch {
    right: 0px;
}

/* Petits écrans */
@media only screen and (max-width: 370px) {
  .element-item {
    position: relative;
    float: left;
    width: 90px;
    height: 128px;
    margin: 5px;
    padding: 5px;
  }
  .element-item .titre {
    left: 10px;
    top: 20px;
    font-size: 18px;
    line-height: .9em;
  }
}

/* Bulles d'aide */

x-abbr[data-description] {
  position: relative;
  z-index: 150;
  max-width: 300px;
  text-decoration: underline dotted;
}

x-abbr[data-description]:hover::after,
x-abbr[data-description]:focus::after {
  content: attr(data-description);

  /* position tooltip like the native one */
  position: absolute;
  left: 0;
  top: -30px;
  width: auto;

  /* style tooltip */
  background-color: #eee;
  color: #000;
  border-radius: 3px;
  box-shadow: 1px 1px 5px 0 rgba(0,0,0,0.4);
  font-size: 14px;
  padding: 3px 5px;

}

x-abbr[data-description]:hover abbr,
x-abbr[data-description]:hover ~ abbr,
x-abbr[data-description]:hover > abbr
 {
  z-index: 0;
}

/* Fin des Bulles d'aide */


#stats {
  text-align:center;
  opacity:1;
  z-index: 0;
}


.search-box {
  position: absolute;
  margin-left: 10px;
}

.search-box input[type="text"] {
  border: none;
  background: none;
  z-index: 1;
  width: 25px;
  height: 25px;
  transition: all .25s ease-in .25s;
  color: transparent;
  font-size: 10px;
  line-height: 25px;
}
.search-box input[type="text"]:hover {
  cursor: pointer;
}
.search-box input[type="text"]:hover:focus {
  cursor: text;
}
.search-box input[type="text"]:hover + span {
  background: rgba(0, 0, 0, 0.2);
}
.search-box input[type="text"]:focus {
  width: 100px;
  padding: 0 10px;
  outline: none;
  background: none;
  color: black;
}
.search-box input[type="text"]:focus + span {
  width: 100px;
}
.search-box input[type="text"]:focus + span::before {
  width: 2px;
  opacity: 0;
  transition: all .25s ease-in;
}
.search-box input[type="text"] + span {
  z-index: -1;
  position: absolute;
  border: 2px solid black;
  top: 0;
  width: 25px;
  height: 25px;
  transition: all .25s ease-in .25s;
  border-radius: 25px;
  left: 0;
}
.search-box input[type="text"] + span::before {
  transition: all .25s ease-in .5s;
  transform-origin: left top;
  content: '';
  position: absolute;
  width: 15px;
  height: 5px;
  border-radius: 5px;
  background: black;
  transform: rotate(45deg) translate(17px, 8px)
}

#recherche {
  font-size: 15px !important;
}


#commentaire {
  display: none;
  opacity: 0;
  transition: all 1s;
  z-index: 101;
  transition: all 1s;
}

#commentaire h1 {
  margin-top: 20px;
  padding-top: 20px;
}

#commentaire textarea {
  transition: all 1s;
  width:100%;
  height:auto;
  min-height:150px;
  font-size:14pt;
  padding: 5px;
}

#commentaire button {
  transition: all 1s;
  font-size:14pt;
  border:0;
  border-radius: 14px;
  background-color: #3498db;
  font-family: Arial;
  color: #ffffff;
  padding: 5px 10px;
  margin: 5px auto;
  text-decoration: none;
  display: block;
}

#commentaire p.message {
  opacity: 0;
  font-weight: bold;
}

.explications {
  max-width: 900px;
  text-align: center;
  display: block;
  margin: 20px auto 5px auto;
}

.header .explications span {
  -webkit-line-clamp: 1;
  opacity: .5;
}

#commentaire p a:active,
#commentaire p a:visited,
#commentaire p a:link,
.explications a:active,
.explications a:visited,
.explications a:link {
  color:black;
}

@media (prefers-color-scheme: dark) {
  body, input, .menu, .center-div {
    background-color: black;
    color: white;
  }
  .menu {
    background: rgba(0, 0, 0, .5);
  }
  #infos p.infos { color: white; }
  .outer-div {
    background-color: rgba(0,0,0,0.9);
  }
  .search-box input[type="text"]:hover + span {
    background: rgba(255, 255, 255, 0.2);
  }
  .search-box input[type="text"]:focus {
    color: white;
  }
  .search-box input[type="text"] + span {
    border: 2px solid white;
  }
  .search-box input[type="text"] + span::before {
    background: white;
  }
  #commentaire p a:active,
  #commentaire p a:visited,
  #commentaire p a:link,
  .explications a:active,
  .explications a:visited,
  .explications a:link {
    color:white;
  }
}

#aleatoire,#aucunfiltre {
  background-color: green !important;
  color: white !important;
}

#disponible {
  display: none;
  font-weight: bold;
}

#deconnexion {
  display: none;
  font-weight: bold;
  color: orange;
}


.share-button,
#filtres a.share-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 3px 10px 2px 8px;
  margin-left: 5px;
  margin-bottom: 5px;
  color: #fff;
  background-color: #333;
  border-radius: 4px;
  box-shadow: 0 1px 1px rgba(0, 0, 0, .35);
  text-decoration: none;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size:10px
}

.share-button:hover, .share-button:link, .share-button:visited {
  color:#fff
}

.share-button:active {
  top: 1px;
  box-shadow:0 0 1px rgba(0, 0, 0, .25)
}

.share-button svg {
  fill: #fff;
  width: 19px;
  height: 19px;
  margin-right:5px
}

.share-button.facebook,
#filtres a.facebook {
  background-color:#4a66b7
}

.share-button.facebook:hover {
  background-color:#4a66b7
}

.share-button.twitter,
#filtres a.twitter {
  background-color:#1b95e0
}

.share-button.twitter:hover {
  background-color: #1b95e0
}

#filtres a.share-button {
  top: 4px;
}

.partage {
  float: right;
  display: inline-block;
  margin-top:-40px;
}

/* Petits écrans */
@media only screen and (max-width: 700px) {
  .partage {
    text-align:center;
    float: none !important;
    display: block;
    margin-top:-5px;
    margin-bottom:5px;;
    width: 100%;
  }
  .share-button {
    margin-left: 0 !important;;
  }
}

/* ------- bouton plus ------- */

.infos input {
  opacity: 0;
  position: absolute;
  pointer-events: none;
}
.infos span {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.infos input:focus ~ label {
  outline: -webkit-focus-ring-color auto 5px;
}
.infos input:checked + span {
  -webkit-line-clamp: unset;
}
.infos input:checked ~ label {
  display: none;
}
.infos span {
  margin: 0;
}
.infos label {
  border-radius: 4px;
  padding: 0.2em 0.6em;
  border: 1px solid #009ce2;
  background-color: #00acff;
  color: #fff;
  font-size: 0.8em;
}

#disponible a,.filmsvod {
  border-radius: 0 !important;
  text-decoration: none;
  width: 16px;
  height: 16px;
  margin: 0 !important;
  padding: 0 !important;
  display: inline-block;
  background: url('../images/vod.png?1') no-repeat;
  background-size: 400%;
  background-color: transparent !important;
  background-position: 0px 0px;
}

#disponible a[href*="filmotv"] { background-position: -16px 0px; }
#disponible a[href*="orange.fr"] { background-position: -16px -32px; }
#disponible a[href*="mytf1vod"] { background-position: -32px -16px; }
#disponible a[href*="rakuten.tv"] { background-position: -48px -32px; }
#disponible a[href*="mycanal"] { background-position: -32px -32px; }
#disponible a[href*="apple.com"] { background-position: -32px 0px; }
#disponible a[href*="youtu.be"] { background-position: 0px -32px; }
#disponible a[href*="cinemasalademande"] { background-position: -48px -48px; }
#disponible a[href*="microsoft.com"] { background-position: -48px 0px; }
#disponible a[href*="netflix.com"] { background-position: 0px -16px; }
#disponible a[href*="primevideo.com"] { background-position: -16px -16px; }
#disponible a[href*="pantaflix.com"] { background-position: -48px -16px; }
#disponible a[href*="queerscreen.fr"] { background-position: -32px -48px; }
#disponible a[href*="mubi.com"] { background-position: -16px -48px; }
#disponible a[href*="lacinetek.com"] { background-position: 0px -48px; }
#disponible a[href*="arte.tv"] { background-position: 0px 0px; }
#disponible a[href*="amazon.com"] { background-position: 0px -64px; }

.filmsvod {
  width: 35px !important;
  height: 35px !important;
}

.filmotv { background-position: -35px 0px; }
.video-a-la-demande { background-position: -35px -70px; }
.mytf1vod { background-position: -70px -35px; }
.rakuten { background-position: -105px -70px; }
.vod { background-position: -70px -70px; }
.itunes { background-position: -70px 0px; }
.youtu { background-position: 0px -70px; }
.cinemasalademande { background-position: -105px -105px; }
.microsoft { background-position: -105px 0px; }
.netflix { background-position: 0px -35px; }
.primevideo { background-position: -35px -35px; }
.pantaflix { background-position: -105px -35px; }
.queerscreen { background-position: -70px -105px; }
.mubi { background-position: -35px -105px; }
.lacinetek { background-position: 0px -105px; }
.arte { background-position: 0px 0px; }
.amazon { background-position: 0px -140px; }



.wrap-collabsible {
  margin-bottom: 0;
  max-width: 1100px;
  margin: 0px auto;
}

input[type='checkbox'] {
  display: none;
}

.lbl-toggle {
  display: block;
  font-size: 1.2rem;
  text-align: center;
  padding: .2rem;
  background: transparent;
  cursor: pointer;
  border-radius: 7px;
  transition: all 0.25s ease-out;
  outline:0;
  filter: brightness(50%);
}

.lbl-toggle:hover {
  filter: brightness(100%);
}

.lbl-toggle::before {
  content: ' ';
  display: inline-block;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 5px solid currentColor;
  vertical-align: middle;
  margin-right: .7rem;
  transform: translateY(-2px);
  transition: transform .2s ease-out;
}

.toggle:checked + .lbl-toggle::before {
  transform: rotate(90deg) translateX(-3px);
}

.search-box { visibility: hidden; }

.collapsible-content {
  max-height: 0px;
  overflow: hidden;
  transition: max-height .25s ease-in-out;
}

.toggle:checked + .lbl-toggle + .collapsible-content {
  max-height: 100vh;
}

.toggle:checked + .lbl-toggle {
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 0;
}

.collapsible-content .content-inner {
  background: rgba(255, 255, 255, .2);
  border-radius: 7px;
  padding: .5rem 1rem;
}

/*
.search-box { visibility: hidden; }
.toggle:checked .search-box { visibility: visible; }
*/

.suivant {
  position: relative;
  float: right;
  right: 0;
  top: 13px;
}

.suivant span {
  padding: 9px;
  margin-right:25px;
  border: solid grey;
  border-width: 0 1px 1px 0;
  display: inline-block;
  transform: rotate(-45deg);
  transition: all .5s;
}

.suivant:hover span {
  margin-right:15px;
  padding: 8px;
  border: solid #1b95e0;
  border-width: 0 3px 3px 0;
  display: inline-block;
  transition: all .5s;
}


@media (prefers-color-scheme: dark) {
  .collapsible-content .content-inner {
    background: rgba(0, 0, 0, .2);
  }
}

#youtube {
  text-decoration: none;
  display: inline-block;
  border-radius: 20px;
  padding: 0.2em 0.6em;
  border: 1px solid green;
  background-color: green;
  color: #fff;
  font-size: 1em;
}