@font-face {
  font-family: 'muli,avenir,helvetica neue,helvetica,ubuntu,roboto,noto,segoe ui,arial,sans-serif', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  overscroll-behavior: none;
  font-family: 'muli,avenir,helvetica neue,helvetica,ubuntu,roboto,noto,segoe ui,arial,sans-serif', sans-serif;
  background-color: black;
  color: white;
}

h3 {
  font-family: 'muli,avenir,helvetica neue,helvetica,ubuntu,roboto,noto,segoe ui,arial,sans-serif', sans-serif;
}

#gallery-intro:target::before {
    content: '';
    display: block;
    height: 100px;  /* Hauteur de la barre de navigation plus un peu d'espace */
}

#biodiv:target::before {
    content: '';
    display: block;
    height: 30px;  /* Hauteur de la barre de navigation plus un peu d'espace */
}

.bio-container {
  background-color: black; /* Couleur de fond noire*/
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 20px;
  margin-bottom: 10px;
}

.bio-image {
  flex: 0 0 auto;
  max-width: 500px;
  margin-right: 100px;
}

.bio-image img {
  width: 100%;
  height: auto;
  border-radius: 0%;
  object-fit: cover;
}

.bio-text {
  max-width: 600px;
  text-align: left;
}

@media (max-width: 768px) {
  .bio-container {
    flex-direction: column;
    text-align: center;
    margin-bottom: 100px;
  }

  .bio-image,
  .bio-text {
    padding: 10px;
  }

  .bio-image img {
    max-width: 100%;
  }
}

#section-id h3 {
    margin-top: 5px; /* Reduces space before h3 tags within the specified section */
}

#section-id p {
    margin-bottom: 5px; /* Reduces space after p tags within the specified section */
}

#conference-info {
  background-color: #383838; /* Couleur de fond bleue*/
  text-align: left;
  padding: 20px; /* Ajout d'un peu d'espace autour du contenu */
  margin-top: 40px; /* Espace au-dessus de la section */
  margin-bottom: 50px; /* Espace en dessous de la section */
}

#conference-info h3 {
  color: white; /* Couleur pour le texte */
  font-size: 1em; /* Taille normale pour intégrer avec le reste du texte du site */
  font-weight: normal; /* Poids normal pour éviter l'effet "gras" */
  margin-bottom: 10px; /* Espace réduit en dessous de l'en-tête */
  margin-left: 20px; /* Espace à gauche de la section */
  margin-right: 30px; /* Espace à droite de la section */
}

#conference-info ul {
  list-style-type: disc; /* Style de liste avec puces */
  margin-left: 10px; /* Indentation pour aligner avec le reste du texte */
}

#conference-info li {
  padding: 2px 0; /* Espacement vertical léger pour chaque élément de liste */
}

#conference-info .col-md-6 {
  padding: 10px; /* Réduction de l'espace intérieur pour chaque colonne */
}

#conference-info .col-md-6:nth-child(2) {
  font-style: italic; /* Police en italique pour la colonne de droite */
}

@media (max-width: 768px) {
  /* Colonnes empilées verticalement sur les petits écrans */
  #conference-info .col-md-6 {
    width: 100%;
    padding: 10px;
  }
}

#gallery-intro {
  padding: 20px;
  margin-left: 20px;
}

#gallery-intro h2 {
  font-size: 2em;
  margin-bottom: 40px;
}

#gallery-intro p {
  font-size: 1em;
  margin-bottom: 40px;
  text-align: left;
}

.image-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 20px;
  margin: auto;
  max-width: 90%;
  padding: 10px 0;
}

.gallery-item {
  margin: 0;
  overflow: hidden;
  width: 100%;
  position: relative;
}

.gallery-item img {
  width: 100%;
  height: auto;
  transition: transform 0.5s ease;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.5s, visibility 0.5s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-item:hover .overlay {
  visibility: visible;
  opacity: 1;
}

.overlay p {
  text-align: center;
  padding: 50px;
}

@media (max-width: 768px) {
  .image-gallery {
    grid-template-columns: 1fr; /* Une seule colonne sur les petits écrans */
  }

  .overlay p {
    padding: 20px; /* Réduire la taille du texte */
  }
}

#nav-border {
  height: 110px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'muli,avenir,helvetica neue,helvetica,ubuntu,roboto,noto,segoe ui,arial,sans-serif', sans-serif;
  z-index: 2;
  background-color: rgb(0, 0, 0);
  color: rgb(255, 255, 255);
  transition: background-color 0.5s ease, color 0.5s ease;
}

#nav-border.white-nav {
  background-color: rgb(255, 255, 255);
  color: rgb(0, 0, 0);
}

.white-nav #wordmark {
  color: rgb(0, 0, 0);
}

#wordmark {
  transition: color 0.5s ease;
  color: white;
  padding-top: 1rem;
  font-family: 'muli,avenir,helvetica neue,helvetica,ubuntu,roboto,noto,segoe ui,arial,sans-serif', sans-serif;
  font-size: 1.8rem;
  padding-left: 4rem;
}

#downArrow {
  position: absolute;
  top: 90vh;
  display: flex;
  justify-content: center;
  width: 100vw;
}

#downArrow img {
  width: 50px;
}

.smlogo {
  width: 85px;
}

.white-nav .nav-link {
  color: black;
}

.nav-link {
  color: white;
  font-size: 1.1rem;
}

.nav-link:hover {
  color: #838383;
}

.nav {
  padding-top: 10px;
}

.vidcontainer {
  --videoRatio: calc(16 / 9);
  background-color: black;
  padding: 0;
  margin: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  position: relative;
}

iframe {
  padding: 0;
  margin: 0;
  position: relative;
  --w: 100vw;
  --h: calc(var(--w) / var(--videoRatio));
  height: var(--h);
  width: var(--w);
  top: calc(50% - (var(--h) / 2));
  left: 0;
}

@media (max-aspect-ratio: 16/9) {
  iframe {
    --h: 100vh;
    --w: calc(var(--h) * var(--videoRatio));
    top: 0;
    left: calc(50% - (var(--w) / 2));
  }
}

.overlay-text {
  position: absolute;
  top: 20%;
  right: 20%;
  bottom: 20%;
  width: 33.33%;
  background-color: black;
  color: white;
  padding: 20px;
  box-sizing: border-box;
}

.overlay-text-content {
  font-family: 'muli,avenir,helvetica neue,helvetica,ubuntu,roboto,noto,segoe ui,arial,sans-serif', sans-serif;
}

* {
  box-sizing: border-box;
}

.grid:after {
  content: '';
  display: block;
  clear: both;
}

.grid-item {
  width: 400px;
  height: 350px;
  float: left;
  display: flex;
  justify-content: center;
  align-items: center;
  border-color: hsla(0, 0%, 0%, 0.5);
  border-radius: 5px;
  margin-bottom: 10px;
}

.navbar-toggler {
  margin-right: 2rem;
  border: none;
  --bs-navbar-toggler-icon-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.white-nav .navbar-toggler {
  --bs-navbar-toggler-icon-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 0, 0, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.sticky {
  position: fixed;
  top: 0;
  width: 100vw;
}

a {
  text-decoration: none;
}

.onecredit a {
  color: rgb(117, 117, 117);
}

.onecredit a:hover {
  color: rgb(70, 70, 70);
  text-decoration: underline;
}

.footer {
  font-size: 0.7rem;
  font-family: 'muli,avenir,helvetica neue,helvetica,ubuntu,roboto,noto,segoe ui,arial,sans-serif', sans-serif;
  padding-top: 4rem;
}

#content {
  padding-top: 60px;
  min-height: calc(100vh - 70px);
}

#static-jumbotron {
  width: 100%;
  max-width: 1000px;
  margin: auto;
}

.grid-item--height2 {
  height: 500px;
}

#projectbox {
  padding-top: 3rem;
  min-height: calc(100vh - 70px);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 1500px;
  align-content: flex-start;
}

.person_name {
  text-align: center;
  margin-top: 1rem;
}

.centerContent {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 90vh;
  margin-left: 3em;
  margin-right: 3em;
}

#projectContent {
  padding-top: 42px;
  padding-left: 8vw;
  padding-right: 8vw;
  max-width: 1350px;
  margin: auto;
  display: flex;
  flex-direction: column;
}

#projectVideoMain {
  width: 100%;
  margin-bottom: 4rem;
  aspect-ratio: 16/9;
}

.projectImage {
  max-width: 100%;
}

#titleBox {
  width: 50%;
  padding: 10px;
}

#textContentBox {
  padding: 10px;
}

.text {
  padding-top: 4em;
}

.projectImage.firstImage {
  width: 50%;
  max-height: 50vh;
  padding-right: 3rem;
}

#projectImageMain {
  display: flex;
  align-items: flex-start;
  flex-direction: row;
}

#studioIMG {
  width: 100%;
}

.imageBox {
  padding-bottom: 4rem;
  display: flex;
  flex-direction: column;
}

.person-item {
  width: 274px;
  height: 295px;
  margin: 1rem;
}

#peopleBox {
  display: flex;
  flex-direction: row;
  justify-content: center;
  width: 100%;
  padding-top: 2rem;
  flex-wrap: wrap;
}

.navbar-toggle .icon-bar {
  background-color: #fff;
}

.navbar-collapse {
  background-color: black;
  transition: background-color .5s ease;
}

.white-nav .navbar-collapse {
  background-color: white;
}

.navbar {
  width: 100%;
  position: absolute;
  top: 0;
  align-items: center;
}

#navbarBox {
  padding-right: 1.4rem;
}

.nav-item {
  padding-right: 2.6rem;
}

@media (max-width: 991px) {
  .nav-item {
    padding-left: 4rem;
  }
}

@media (max-width: 726px) {
  .jumbotron {
    max-width: 100%;
  }
  #static-jumbotron {
    max-width: none;
    margin: 1rem;
  }
  .card {
    width: 100vw;
    margin-left: 0px;
    margin-right: 0px;
    --bs-card-border-width: 0px;
  }
  .grid-item {
    margin-top: 50px;
    margin-bottom: 100px;
    height: 179px;
  }
  .person-item .card {
    width: 70vw;
    max-height: 80vh;
  }
  #projectImageMain {
    flex-direction: column;
  }
  .projectImage.firstImage {
    width: 100%;
    padding-right: 0rem;
    padding-bottom: 3rem;
  }
  #navbarBox {
    position: absolute;
    top: 93px;
    width: 100vw;
  }
}

@media (max-width: 400px) {
  #wordmark {
    font-size: 5vw;
    padding-left: 11vw;
  }
  #nav-border {
    height: 83px;
  }
  #content {
    padding-top: 55px;
  }
  #navbarBox {
    top: 82px;
  }
}

/* Styles spécifiques pour les descriptions des projets */
.project-carousel img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 100vh;
  display: none;
}

.project-carousel img.active {
  display: block;
  margin: 0 auto;
}

.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2em;
  color: white;
  background: rgba(0, 0, 0, 0.5);
  border: none;
  padding: 10px;
  cursor: pointer;
  outline: none !important;
}

.carousel-nav:focus {
  outline: none !important;
  box-shadow: none !important;
}

.carousel-nav.prev {
  left: 0;
}

.carousel-nav.next {
  right: 0;
}

.project-content {
  max-width: 940px;
  margin: 20px auto;
  padding: 10px;
  text-align: center;
  background-color: black;
  box-sizing: border-box;
}

.project-description {
  margin-top: 20px;
  text-align: justify;
}

.project-description ul {
  list-style-type: disc;
  padding-left: 20px;
  text-align: left;
}

.buttons {
  margin-top: 20px;
  text-align: center;
}

.buttons a, .buttons iframe {
  display: inline-block;
  margin: 5px;
  padding: 10px 20px;
  background-color: gray;
  color: white;
  text-decoration: none;
  border-radius: 5px;
}

.buttons iframe {
  padding: 0;
  background-color: transparent;
  border: none;
  width: 100%;
  max-width: 640px;
  height: 360px;
}

@media (max-width: 768px) {
  .carousel-nav {
    font-size: 1.5em;
    padding: 5px;
  }
  .buttons iframe {
    height: 240px;
  }
}

@media (max-width: 480px) {
  .carousel-nav {
    font-size: 1em;
    padding: 5px;
  }
  .buttons iframe {
    height: 180px;
  }
}

.fancybox__container {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.9);
}

.fancybox__content {
  background-color: black;
  color: white;
  padding: 20px;
  border-radius: 8px;
  box-sizing: border-box;
  max-width: 900px;
  width: 90%;
  margin: 0 auto;
  overflow: auto;
  max-height: 90vh;
}

.fancybox__slide {
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: auto;
}

.loader {
    border: 16px solid #f3f3f3;
    border-radius: 50%;
    border-top: 16px solid #3498db;
    width: 120px;
    height: 120px;
    animation: spin 2s linear infinite;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
