@import url("https://fonts.googleapis.com/css2?family=Indie+Flower&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Lato:wght@700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Spectral:wght@700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Lato:wght@300&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Varela+Round&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Nunito:wght@300&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Nunito+Sans:wght@300;600&display=swap");
@import url('https://fonts.googleapis.com/css2?family=Moon+Dance&display=swap');

* {
  box-sizing: border-box;
}

@media (min-width: 750px) {
  h2 {
    margin: 0;
  }
}

body {
  margin: 0;
  display: grid;
  height: 100vh;
  max-width: 1500px;
  grid-template-rows: 300px 100px auto auto auto minmax(8rem, auto);
  grid-template-areas: "header" "title" "links" "intro" "main" "book" "footer";
  grid-gap: 2rem;
}
@media (min-width: 1500px) {
  body {
    margin: auto;
  }
}
@media (min-width: 750px) {
  body {
    grid-template-areas: "header header header header header" "links links links links links" "intro intro intro intro intro" "book main main main main" "book main main main main" "footer footer footer footer footer";
    grid-template-rows: 300px auto auto auto auto minmax(8rem, auto);
    grid-template-columns: minmax(200px, 500px);
  }
}

.title {
  display: flex;
  width: 100%;
  flex-direction: row;
  justify-content: center;
  align-content: center;
  grid-area: title;
}

header {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  background-image: linear-gradient(to top, rgba(66, 99, 142, 0.6) 10%, transparent), url("imgs/photo_2025/_J1A9375NB.JPG");
  background-size: cover;
  background-position: center;
  justify-content: space-between;
  align-items: center;
  color: #e3e3e3;
  grid-area: header;
}
@media (min-width: 750px) {
  header {
    background-position-x: center;
    background-position-y: 30%;
  }
}
header h1 {
  font-size: 5rem;
  margin: 5rem;
  grid-row-start: 2;
  text-align: center;
  font-family: "Moon Dance", sans-serif;
}
header hr {
  border: 2px cornsilk solid;
  width: 50%;
  max-width: 300px;
  grid-row-start: 3;
}
header h3 {
  font-size: 1.7rem;
  text-shadow: 2px 2px 2px gray;
  font-family: "Nunito", sans-serif;
}

.cat-title {
  color: #6681c5;
  text-transform: uppercase;
  align-self: flex-start;
  position: relative;
  padding: 0.2rem 1rem;
  font-family: "Spectral", sans-serif;
  font-weight: 700;
}
.cat-title::after {
  border-top: 4px dotted #e7a72f;
  content: "";
  position: absolute;
  left: 0.3rem;
  bottom: 0;
  width: 80px;
  /* margin-top: 1rem; */
}

hr {
  border: 1px solid #eab85d;
  width: 80%;
  max-width: 500px;
  margin: 2rem auto;
}

.links {
  display: flex;
  flex-wrap: nowrap;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
@media (min-width: 750px) {
  .links {
    grid-area: links;
  }
}
.links hr {
  border: 1px solid #6681c5;
  width: 20%;
  max-width: 200px;
}
.links__list {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
}
.links .link {
  height: 64px;
  width: 64px;
  display: block;
  cursor: pointer;
  appearance: none;
  border: none;
  padding: 0.5rem;
  background-color: white;
  margin: 1rem;
}
@media (max-width: 300px) {
  .links .link {
    height: 48px;
    width: 48px;
  }
}
.links .link img {
  height: 100%;
  width: 100%;
}

.profil {
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
@media (min-width: 750px) {
  .profil {
    grid-area: intro;
  }
}
@media (min-width: 750px) {
  .profil {
    display: grid;
    grid-template-areas: "pic pic bio bio bio" "hr_1 hr_1 hr_1 hr_1 hr_1" "video video video video video " "hr_2 hr_2 hr_2 hr_2 hr_2";
    grid-template-rows: auto minmax(2rem, 2.5rem) auto minmax(2rem, 2.5rem);
    grid-template-columns: auto;
  }
}
.profil__picture {
  height: auto;
  min-width: 250px;
  width: 80%;
  max-width: 300px;
}
@media (min-width: 750px) {
  .profil__picture {
    grid-area: pic;
    align-self: center;
    justify-self: center;
  }
}
@media (min-width: 750px) {
  .profil__picture + .cat-title {
    grid-area: bio;
    align-self: flex-start;
    margin-bottom: 1rem;
  }
}
.profil-biographie {
  font-size: 1.2rem;
  padding: 2rem;
  font-family: "Lato", sans-serif;
  font-weight: 300;
}
@media (min-width: 750px) {
  .profil-biographie {
    grid-area: bio;
    display: flex;
    align-self: center;
    margin-top: 1rem;
  }
}
.profil-biographie + hr {
  display: none;
}
@media (min-width: 750px) {
  .profil-biographie + hr {
    display: block;
    grid-area: hr_1;
    justify-self: center;
    width: 100px;
    height: 2px;
    border: 1px solid #eab85d;
    width: 80%;
    max-width: 500px;
  }
}
@media (min-width: 750px) {
  .profil-biographie + hr + .cat-title {
    grid-area: video;
    justify-self: start;
  }
}
.profil-video-wrapper {
  width: 85%;
  height: 0;
  position: relative;
  overflow: hidden;
  padding-bottom: 56.25%;
}
@media (min-width: 750px) {
  .profil-video-wrapper {
    grid-area: video;
    justify-self: center;
    margin-top: 2rem;
    align-self: end;
  }
}
@media (min-width: 750px) {
  .profil-video-wrapper + hr {
    grid-area: hr_2;
    justify-self: center;
  }
}
.profil-video-wrapper__demo {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

main {
  display: flex;
  width: 100%;
  flex-wrap: wrap;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  font-family: "Lato", sans-serif;
  font-weight: 300;
}
@media (min-width: 750px) {
  main {
    grid-area: main;
    justify-content: flex-start;
  }
}
main .casting {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
}
main .casting .skill {
  position: relative;
  padding: 0.2rem 1rem;
}
main .casting-skills {
  display: flex;
  list-style-type: none;
  padding: 0 0.5rem;
  align-self: flex-start;
  width: 100%;
  flex-direction: column;
  flex-wrap: wrap;
}
main .casting-skills li {
  display: grid;
  grid-template-columns: 1fr;
  grid-auto-rows: max-content;
  padding: 0.5rem 0;
}
@media (min-width: 600px) {
  main .casting-skills li {
    display: grid;
    grid-template-columns: 1fr 2fr;
    grid-auto-rows: max-content;
  }
}
main .casting-skills__title {
  text-transform: uppercase;
  color: #526698;
  font-family: "Lato", sans-serif;
  font-weight: 700;
}
main .casting-details {
  width: 100%;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  align-items: flex-start;
  align-self: flex-start;
  padding: 0 0.5rem;
  transition: all 500ms;
}
main .casting-details li {
  display: grid;
  grid-template-columns: 1fr;
  grid-auto-rows: max-content;
  padding: 0.5rem 0;
}
@media (min-width: 600px) {
  main .casting-details li {
    display: grid;
    grid-template-columns: 1fr 2fr;
    grid-auto-rows: max-content;
  }
}
main .casting-details #visible {
  width: 100%;
}
main .casting-details #hidden > ul {
  display: flex;
  width: 100%;
  flex-direction: column;
  flex-wrap: wrap;
  list-style-type: none;
  padding: 0;
  transition: all 500ms;
}
main .casting-details #visible > ul {
  display: flex;
  width: 100%;
  flex-direction: column;
  flex-wrap: nowrap;
  list-style-type: none;
  padding: 0;
  transition: all 500ms;
  overflow: hidden;
}
main .casting-details #hidden {
  height: 0 !important;
  overflow: hidden !important;
}
main .casting-details #hidden > ul {
  display: flex;
  width: 100%;
  flex-direction: column;
  flex-wrap: wrap;
  transition: all 500ms;
}
main .casting-details__title {
  text-transform: uppercase;
  color: #526698;
}
main .casting-details__button {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  width: 100%;
}
main .casting-details__subtitle {
  display: flex;
  position: relative;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-end;
  cursor: pointer;
  transition: background-color 0.5s ease-out;
}
main .casting-details__subtitle h3 {
  color: #6681c5;
  position: relative;
  text-transform: uppercase;
  font-size: 0.9rem;
  margin-left: 20px;
  padding-bottom: 0.5rem;
  font-family: "Lato", sans-serif;
  font-weight: 600;
}
main .casting-details__subtitle h3::after {
  border-bottom: 4px dotted #e7a72f;
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  /* margin-top: 1rem; */
}
main .casting-details__subtitle p {
  color: #e7a72f;
  padding-left: 0.4rem;
  padding-right: 0.4rem;
  font-size: 1rem;
  font-family: "Roboto", sans-serif;
  text-transform: uppercase;
}
main .experience {
  width: 100%;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  padding: 0 0.5rem;
  font-family: "Lato", sans-serif;
  font-weight: 300;
}
main .experience-details {
  list-style-type: none;
  width: 100%;
  padding: 0 0.5rem;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
}
main .experience-details li {
  display: grid;
  grid-template-columns: minmax(0, 40px) 1fr;
  grid-gap: 0.5rem;
  padding: 0.5rem 0;
  font-size: 1rem;
}
main .experience-details__date {
  color: #526698;
  font-size: 1rem;
  font-family: "Lato", sans-serif;
  font-weight: 700;
}
main .formation {
  width: 100%;
  flex-direction: column;
  flex-wrap: wrap;
  padding: 0 0.5rem;
}
main .formation-details {
  list-style-type: none;
  width: 100%;
  padding: 0 0.5rem;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
}
main .formation-details li {
  display: grid;
  grid-template-columns: minmax(0, 100px) 1fr;
  grid-gap: 0.5rem;
  padding: 0.5rem 0;
  font-size: 1rem;
}

main .formation-details strong {
  font-weight: 600;
}

main .formation-details__date {
  color: #526698;
  font-size: 1rem;
}

.book {
  width: 100%;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}
@media (min-width: 750px) {
  .book {
    grid-area: book;
  }
}
.book-landscape {
  width: 100%;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}
.book-landscape img {
  object-fit: contain;
  padding: 1rem;
  width: 90%;
  height: auto;
}
.book-portrait {
  width: 100%;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}
.book-portrait img {
  object-fit: contain;
  padding: 1rem;
  width: 90%;
  height: auto;
}
.book button {
  appearance: none;
  background-color: transparent;
  border: none;
  display: flex;
  position: relative;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  cursor: pointer;
  transition: background-color 0.5s ease-out;
}
.book button h3 {
  color: #6681c5;
  position: relative;
  text-transform: uppercase;
  font-size: 0.9rem;
  padding-bottom: 0.5rem;
  font-family: "Lato", sans-serif;
  font-weight: 600;
}
.book button h3::after {
  border-bottom: 4px dotted #e7a72f;
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  /* margin-top: 1rem; */
}
.book button:hover {
  background-color: rgba(102, 129, 197, 0.2);
}

footer {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  font-family: "Lato", sans-serif;
  font-weight: 300;
  justify-content: space-around;
  align-items: space-around;
  background-color: cornsilk;
  color: grey;
  font-size: 1rem;
  text-align: center;
  /* position: absolute; */
  /* bottom: 0; */
  width: 100%;
}
@media (min-width: 750px) {
  footer {
    grid-area: footer;
  }
}

.backdrop {
  position: fixed;
  height: 100vh;
  width: 100vw;
  left: 0;
  right: 0;
  opacity: 1;
  z-index: 3;
  background-color: rgba(0, 0, 0, 0.5);
  transition: opacity 250ms ease-in;
  display: none;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
}
.backdrop .gallery {
  position: relative;
  min-height: 180px;
  height: 50%;
  width: 80%;
  min-width: 180px;
  max-height: 90%;
  background-color: white;
  box-shadow: 2px 4px 2px rgba(0, 0, 0, 0.1333333333);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
@media (min-width: 400px) {
  .backdrop .gallery {
    height: 60%;
  }
}
@media (min-width: 600px) {
  .backdrop .gallery {
    height: 100%;
  }
}
.backdrop .gallery-little {
  display: flex;
  justify-content: flex-start;
  width: 80%;
}
.backdrop .gallery-little__imgs {
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  overflow-x: scroll;
  max-height: 100px;
  max-width: 100%;
  width: 100%;
  align-content: flex-start;
}
@media (min-width: 900px) {
  .backdrop .gallery-little__imgs {
    align-content: center;
  }
}
.backdrop .gallery-little__imgs img {
  height: 100%;
  width: 100%;
  max-width: 64px;
  margin: 0px 2px;
  cursor: pointer;
}
.backdrop .gallery-little__imgs .active {
  border: rgba(77, 116, 166, 0.6) 3px solid;
  border-radius: 4px;
}
.backdrop .gallery button {
  position: absolute;
  appearance: none;
  cursor: pointer;
}
.backdrop .gallery__exit-button {
  right: -9px;
  top: -9px;
  appearance: none;
  border: none;
  background-color: rgba(245, 180, 58, 0.7294117647);
  border-radius: 50%;
  z-index: 2;
  height: 36px;
  width: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.backdrop .gallery__left-button {
  left: 12px;
  top: calc(50% - 36px);
  z-index: 2;
  border: none;
  background-color: rgba(245, 179, 58, 0.5019607843);
  border-radius: 50%;
  height: 36px;
  width: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.backdrop .gallery__right-button {
  right: 12px;
  top: calc(50% - 36px);
  z-index: 2;
  border: none;
  background-color: rgba(245, 179, 58, 0.5019607843);
  border-radius: 50%;
  height: 36px;
  width: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.backdrop .gallery-imgs {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: flex-start;
  width: 100%;
  height: 75%;
  padding: 2rem;
  overflow: hidden;
}
.backdrop .gallery-imgs__window {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}
.backdrop .gallery-imgs__window img {
  object-fit: contain;
  display: none;
  width: 100%;
  height: 100%;
}
.backdrop .gallery-imgs__window .invisible {
  display: none;
}
.backdrop .gallery-imgs__window .visible {
  display: block;
}
.backdrop .gallery-imgs__counter {
  position: absolute;
  background-color: rgba(245, 179, 58, 0.5019607843);
  color: black;
  border-radius: 10px;
  bottom: calc(0% + 20px);
  margin: auto;
  padding: 1rem 2rem;
}

.active {
  display: flex !important;
}

.dots {
  position: absolute;
  bottom: 3rem;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  max-width: 300px;
  height: 30px;
}

.dot {
  height: 15px;
  width: 15px;
  cursor: pointer;
  background-color: orange;
  border-radius: 50%;
  margin: 5px;
}

.fade-out {
  animation-name: fade-out;
  animation-duration: 0.5s;
  animation-fill-mode: forwards;
}

/* Fading animation */
.fade {
  animation-name: fade;
  animation-duration: 0.5s;
}

@keyframes fade {
  from {
    opacity: 0.2;
  }
  to {
    opacity: 1;
  }
}
@keyframes fade-out {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}
