*,
*::after,
*::before {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "SN Pro", sans-serif;
  background-color: #29365d;
  color: #fff7b4;
  overflow-x: hidden;
  position: relative;
}

.page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

em{
  font-weight: 700;
  font-style: none;
}

/* NAV */

header {
  position: relative;
}

nav {
  position: relative;
  padding: 1em 8vw;
  font-family: "Cherry Bomb One", sans-serif;
  letter-spacing: 2%;
  overflow: visible;
  z-index: 4;
}

nav::before {
  background-image: url("nuages.svg");
  background-position: center;
  background-size: cover;
}

nav > ul {
  display: flex;
  gap: 3.5em;
}

li {
  list-style: none;
}

ul {
  padding: 0;
}

.main-link {
  margin-right: auto;
}

.main-link > a {
  font-size: 1.3rem;
}

nav > ul > li > a {
  color: #29365d;
  font-size: 1.1rem;
}

/* -----TITRES----- */

h1 {
  margin: 0;
  font-family: "Cherry Bomb One", sans-serif;
  font-size: 3.5em;
  letter-spacing: 6%;
}

.title-container {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 70vh;
  width: 100vw;
  justify-content: center;
  align-items: center;
  overflow: visible;
}

.title-container > h1 {
  font-size: 5.5em;
}

.title-container > p {
  margin: 0 24vw;
  text-align: center;
  font-size: 1.11rem;
}

h2 {
  font-family: "Cherry Bomb One", sans-serif;
  margin-bottom: 5px;
  letter-spacing: 6%;
  color: #fff7b4;
  position: relative;
}

h3 {
  width: fit-content;
  font-size: 1.05em;
  line-height: 1.15;
  margin: 0;
}

/* -----CARDS----- */

main {
  padding: 2vh 8vw 2vh 8vw;
  flex: 1;
}

.film-inventory-container {
  background-color: #f8fdff;
  color: #29365d;
  position: relative;
}

.film-inventory-container > h2 {
  margin-block: 0 15px;
  color: inherit;
  padding-left: 1.75em;
  font-size: 1.7rem;
}

.card-link {
  width: calc((1330px - 3 * 3.7em) / 4);
}

.card-link:hover {
  text-decoration: none;
}

.cards-section {
  display: flex;
  gap: 3.7em;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2em;
  width: 100%;
}

.card-film {
  height: fit-content;
  width: 100%;
  height: auto;
  display: flex;
  break-inside: avoid;
  flex-direction: column;
  overflow: hidden;
  margin-bottom: 1em;
}

.card-affiche {
  display: flex;
  justify-content: center;
  width: 100%;
  height: auto;
  flex: 1;
  display: flex;
  justify-content: center;
}

.card-affiche > img {
  height: fit-content;
  width: 80%;
  object-fit: cover;
  border-radius: 15px;
  border: #29ae8f solid 5px;
}

.card-infos {
  width: 100%;
  display: flex;
  flex-direction: column;
  height: auto;
  overflow: hidden;
  color: #29365d;
  border-radius: 15px;
  justify-content: center;
  overflow: visible;
}

.card-title-container {
  margin-block: 0.6em;
  width: 100%;
  height: fit-content;
  display: flex;
  align-items: center;
  gap: 0.3em;
  justify-content: center;
  overflow: visible;
}

.card-title-container > p {
  margin: 0;
  white-space: nowrap;
}

.category-container .category-tag {
  border-radius: 15px;
  display: flex;
  text-align: center;
  justify-content: center;
  align-items: center;
  padding: 0.4em 0.7em;
  width: fit-content;
  color: #f8fdff;
}

.category-container .category-tag:nth-child(3){
  /* flex-basis: 100%; */
  /* text-align: center; */
  align-self: center;
}

.category-container {
  display: flex;
  gap: 0.5em;
  width: 100%;
  justify-content: center;
  height: fit-content;
  flex-wrap: wrap;
  width: 100%;
  overflow: visible;
  /* transition: font-size 0.5 ease-out; */
}

/* LIENS */
a {
  text-decoration: none;
  color: #29365d;
  width: fit-content;
}

a:hover {
  text-decoration: underline;
}

.back-link {
  opacity: 0.8;
  font-style: italic;
  font-size: 0.95rem;
  width: fit-content;
}

/* .back-link::before {
  display: flex;
  content: "➜";
  transform: rotate(180deg);
  white-space: nowrap;
} */

/* FILTERS */

.filters {
  display: flex;
  list-style: none;
  align-items: center;
  justify-content: center;
  gap: 1em 3.1em;
  flex-wrap: wrap;
  padding: 0;
  font-family: "Cherry Bomb One", sans-serif;
  letter-spacing: 1.2;
  font-size: 1.1rem;
}

select,
select::picker(select) {
  appearance: base-select;
  /* background-color: #0A2037; */
  color: #f8fdff;
}

select {
  border: none;
  color: #29365d;
}

select::picker(select) {
  border: #29ae8f solid 1px;
  border-radius: 5px;
  font-family: "SN Pro", sans-serif;
}

select option {
  padding: 0.25rem 0.5rem;
  background-color: #29365d;
  font-weight: 500;
  /* border: #29365D solid 0.5px; */
}

option:hover {
  background-color: #f8fdff;
  color: #29365d;
}

.search-bar {
  border-radius: 15px;
  border: #29ae8f solid 2px;
  background-color: #29ae8f;
  background-color: rgba(41, 174, 143, 0.45);
  padding: 0.6rem 0.8rem;
  margin-right: 10px;
  width: 200px;
}

.search-bar:focus {
  border-radius: 15px;
  background-color: #f8fdff;
  outline: #29365d 2px solid;
  opacity: 1;
  padding: 0.6rem 0.8rem;
  margin-right: 10px;
  width: 200px;
}

input[type="submit"] {
  font-family: "SN Pro", sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.4rem 0.8rem;
  background-color: #ff9c6b;
  background-color: #29ae8f;
  color: #29365d;
  color: #f8fdff;
  border-radius: 40px;
  border: #29ae8f solid 2px;
  cursor: pointer;
  width: fit-content;
  transition: all 0.5;
  transition: all 0.2 ease-in;
}

input[type="submit"]:hover {
  background-color: #f8fdff;
  color: #29ae8f;
}

/* -----FOOTER----- */

footer {
  padding-top: 100px;
  width: 100vw;
  position: relative;
  background: none;
  background: transparent;
}

footer ul {
  position: relative;
  background-color: #29365d;
  color: #f8fdff;
  display: flex;
  justify-content: space-between;
  width: 400px;
}

footer li,
footer ul li a {
  z-index: 10;
}

.footer-content {
  width: 100vw;
  height: auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer-content a {
  color: #f8fdff;
}

/*-----DETAILS FILM-----*/

.affiche-fiche-container {
  display: flex;
  flex-direction: row;
  gap: 3em;
  flex-wrap: wrap;
}

.details-affiche {
  height: 370px;
  border-radius: 20px;
}

.fiche-film-container-flex {
  padding: 2vw 8vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

/* .fiche-content-wrapper{
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
} */

.fiche-content-wrapper h1 {
  margin-block: 15px 20px;
  font-size: 3.2rem;
  text-align: left;
  width: 100%;
}

.fiche-content-wrapper p {
  margin-block: 15px 20px;
  font-size: 1.05rem;
  max-width: 700px;
}

.fiche-film {
  background-color: #fff7b4;
  color: #29365d;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  padding: 1.6em 2em;
  min-width: 650px;
  width: 70%;
}

.fiche-film > h2 {
  margin-top: 0;
  color: #29365d;
  font-size: 1.8rem;
}

.fiche-film > p,
.fiche-film-content-grid p {
  margin-block: 0.3rem 1rem;
}

.fiche-film > .category-container {
  margin: 0.2em 0 0.3em 0.2em;
  justify-content: start;
}

.fiche-film > ul {
  margin-block: 1em;
}

.fiche-p-details {
  display: flex;
  gap: 0.8em;
}

.fiche-film-content-grid {
  display: grid;
  grid-template-columns: auto;
  grid-template-rows: 1fr 1fr;
  gap: 0 1.5em;
  margin-block: auto;
}

.synopsis {
  grid-row: 1 / span 2;
  grid-column-start: 2;
}

.fiche-details-studio {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: end;
}

.fiche-details-studio h2{
  margin-top: 0;
}

.fiche-content-wrapper p {
  max-width: 750px;
  text-align: left;
}

.fiche-content-wrapper h2{
  width: 100%;
  max-width: 750px;
  text-align: left;
}

/*-----FORM-----*/

fieldset {
  background-color: #fff7b4;
  color: #29365d;
  border: none;
  display: flex;
  flex-direction: column;
  border-radius: 35px;
  gap: 0.5em;
}

.form-mdp fieldset {
  justify-content: center;
  align-items: center;
  width: fit-content;
  padding: 1.2em 2em;
  gap: 0.8em;
}

.form-mdp {
  padding: 2em;
  width: 100%;
  height: 65vh;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  flex: 1;
}

form > h1,
.about-container > h1 {
  font-size: 2.7rem;
  text-align: center;
  margin-top: 1em;
}

form > p {
  margin-block: 0.4em 1.4em;
}

.form-mdp > fieldset > input[type="password"] {
  border-radius: 20px;
  padding: 1em 1.2em;
  border: #29ae8f solid 2px;
  width: 105%;
}

input:not(.search-bar),
textarea {
  border: #29ae8f solid 2px;
}

input:not(.search-bar):focus,
textarea:focus {
  outline: #29365d solid 2px;
}

/*-----FORM-INSERT-FILM-----*/

.form-insert-film {
  padding: 2em;
  width: 100%;
  /* height: 60vh; */
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  /* gap: 1em; */
}

.form-insert-film fieldset {
  justify-content: start;
  width: fit-content;
  padding: 2em;
}

.insert-form-inputs {
  column-count: 2;
  column-rule: #29365d solid 2px;
  column-gap: 2em;
}

.insert-form-inputs p {
  margin-block: 0 0.8em;
}

.insert-form-inputs input {
  border-radius: 20px;
  padding: 0.8em 1em;
  width: 90%;
  margin-top: 0.4em;
}

input::placeholder,
textarea::placeholder {
  font-family: "SN Pro", sans-serif;
  color: #29365d;
  opacity: 0.75;
}

.form-insert-film > fieldset > textarea {
  border-radius: 20px;
  padding: 1em 1.2em;
}

.form-insert-part2 {
  width: 100%;
  margin-block: 0.5em;
  display: grid;
  grid-template-columns: 1fr 1fr;
  /* grid-template-rows: 70% 30%; */
  gap: 1.2em;
}

.checkbox-container {
  grid-row: 1 / span 2;
}

.checkbox-container input:checked {
  accent-color: #ff9c6b;
  color: #f8fdff;
}

.checkboxes {
  columns: 2;
  column-rule: #29365d 1.5px solid;
  gap: 0.5em;
}

/* .checkbox-container input:checked::after{
    color: #F8FDFF;
} */

.checkbox-container input {
  accent-color: #f8fdff;
  border: #29365d solid 1px;
}

.form-insert-select {
  display: flex;
  justify-content: center;
  gap: 0.5em;
  margin-block: 0.3em;
  flex-wrap: wrap;
  grid-column-start: 2;
  grid-row-start: 2;
  align-items: end;
}

/* .radio-container{ */
/* display: flex;
    flex-direction: column; */
/* text-align: center; */
/* justify-items: center; */
/* } */

.radio-container input:checked {
  accent-color: #ff9c6b;
  color: #f8fdff;
  border: 1px solid #29365d;
}
.radio-container p,
.radio-container label {
  margin: 0;
  text-align: left;
}

/* ---------------------------------------------------------ABOUT------------------------------------------------------- */

.about-project {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: end;
}

.about-container p {
  max-width: 750px;
  text-align: left;
}

.about-container h2{
  width: 100%;
  max-width: 750px;
  text-align: left;
}

.four-favorites > .cards-section {
  gap: 1.5em;
}

.four-favorites {
  margin-block: 2em;
  padding: 1.5em 2em;
  background-color: #fff7b4;
  border-radius: 40px;
}

.four-favorites > h2 {
  color: #29365d;
  margin-top: 0;
  /* text-align: center; */
  font-size: 2rem;
}

/* scrollbar styling non-standard version */
html::-webkit-scrollbar {
  width: 0.8rem;
  background-color: #0a2037;
}
html::-webkit-scrollbar-thumb {
  background: #cee5f3;
  border: #0a2037 solid 2px;
  border-radius: 20px;
}

.mentions-legales {
  display: flex;
  flex-direction: column;
  width: 100%;
  align-items: center;
}

.mentions-legales h2 {
  text-align: center;
  font-size: 1.7rem;
}

/* ------------------------------------------------------SCROLL TO TOP BUTTON----------------------------------------------------- */

.to-top {
  background-color: #f8fdff;
  position: fixed;
  right: 16px;
  bottom: 25px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid #29ae8f;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: #29ae8f;
  opacity: 0;
  pointer-events: none;
  transition: all 0.6s;
  z-index: 15;
  transform: rotate(-90deg);
}

.to-top.active {
  bottom: 25px;
  pointer-events: auto;
  opacity: 1;
  text-decoration: none;
}
