.debug {
  display: none;
}

div#preloader {
  display: none;
}

@font-face {
  font-family: "avenir_book";
  src: url("../fonts/avenir_book-webfont.woff2") format("woff2"),
    url("../fonts/avenir_book-webfont.woff") format("woff");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "avenir_heavy";
  src: url("../fonts/avenir_heavy-webfont.woff2") format("woff2"),
    url("../fonts/avenir_heavy-webfont.woff") format("woff");
}

@font-face {
  font-family: "avenir_light";
  src: url("../fonts/avenir_light-webfont.woff2") format("woff2"),
    url("../fonts/avenir_light-webfont.woff") format("woff");
}

@font-face {
  font-family: "avenir_black";
  src: url("../fonts/avenir_black-webfont.woff2") format("woff2"),
    url("../fonts/avenir_black-webfont.woff") format("woff");
}

@font-face {
  font-family: "avenir_regular";
  src: url("../fonts/avenir_regular-webfont.woff2") format("woff2"),
    url("../fonts/avenir_regular-webfont.woff") format("woff");
}

body,
h1,
h2,
h3,
h4,
h5,
h6,
ul,
li {
  margin: 0;
  padding: 0;
}

html {
  overflow-x: hidden;
}

body {
  font-family: "avenir_regular";
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "avenir_heavy";
}

a {
  display: block;
}

.container {
  margin: auto;
  max-width: 90%; /* Ajout d'un maximum de largeur général */
}

main {
  padding: 50px 0 60px;
}

body.logged-in header {
  top: 32px;
}

header {
  position: sticky;
  top: 0;
  /* background-color: #fff; */
  background-color: transparent;
  z-index: 99;
  padding: 20px 0 0;
}

header .social-wrapper ul {
  list-style-type: none;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 40px;
}

header .social-wrapper ul a {
  text-decoration: none;
  color: #000;
  display: block;
  font-size: 14px;
  letter-spacing: 0.7px;
}

header .social-wrapper img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  object-position: center;
  display: block;
}

.logo-wrapper,
.social-wrapper {
  flex: 1;
}

nav.header-nav {
  flex: 2;
}

.start {
  background-color: transparent;
  position: relative;
  z-index: 2;
}

.start a {
  display: block;
  margin: 0;
}

main {
  background-color: transparent;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
}

header .top {
  padding: 20px 0;
  position: relative;
  z-index: 999999;
}

header .top img,
header .bottom img {
  display: block;
  width: 100%; /* Uniformisé */
  margin: 0;
}

header .top img {
  max-width: 428px;
  opacity: 0;
}

header .bottom {
  overflow: hidden;
  transition: all 0.3s ease;
}

header .bottom img {
  opacity: 1;
}

.start .logo {
  display: block;
  width: 100%;
  text-decoration: none;
  position: relative;
  font-family: "avenir_black";
  font-size: 272px;
  color: #000;
  margin: 0;
  padding: 0;
  letter-spacing: 114px;
  line-height: 1em;
  object-fit: contain;
  object-position: top;
  height: auto;
}

header a.logo {
  text-decoration: none;
  display: block;
  position: relative;
  font-family: "avenir_black";
  font-size: 52px;
  color: #000;
  margin: 0;
  padding: 0;
  letter-spacing: 20px;
  line-height: 1em;
}

header .logo.end {
  width: 282px;
}

header h1,
.h1 {
  font-size: 16px !important;
  font-weight: 400 !important;
  padding: 0;
  letter-spacing: 0.7px;
  font-family: "avenir_regular";
}

.start .h1 {
  margin-top: 10px;
}

@media (max-width: 1064px) {
  header {
    flex-direction: column;
  }

  header h1 {
    font-size: 12px !important;
  }

  header .wrapper {
    flex-direction: column;
    align-items: center;
    gap: 40px;
  }
}

.project-filters {
  margin: 60px 0 20px;
  position: relative;
  z-index: 9999;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: flex-end;
}

.filter-button {
  font-family: "avenir_regular";
  display: inline-block;
  padding: 5px 15px;
  background-color: transparent;
  border: none;
  cursor: pointer;
  font-size: 14px;
  /* border-radius: 20px; */
  text-align: right;
  text-transform: uppercase;
}

button.filter-close {
  position: absolute;
  top: 20px;
  right: 20px;
}

.project-item {
  position: relative;
  overflow: hidden;
  opacity: 1;
}

.project-item a {
  display: block;
}

.project-thumbnail img,
.related-article-thumbnail img {
  width: 100%;
  height: auto;
}

.project-description {
  border: 1px solid rgba(7, 7, 7, 0.1);
  padding: 20px;
}

.project-details,
ul.team-members-list {
  display: flex;
  justify-content: space-between;
}

/* .project-team, */
ul.team-members-list {
  border: 1px solid rgba(7, 7, 7, 0.1);
}

li.team-member-item {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

li.team-member-item::after {
  content: "";
  width: 1px;
  height: 100%;
  background-color: rgba(7, 7, 7, 0.1);
  position: absolute;
  top: 0;
  right: 0;
}

li.team-member-item:last-child::after {
  display: none;
}

.header-menu,
.footer-menu {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 40px;
}

.header-menu li,
.footer-menu li {
  display: inline-block;
}

.header-menu li a,
.footer-menu li a {
  letter-spacing: 0.7px;
  text-decoration: none;
  /* padding: 10px 20px; */
  color: #000;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  font-size: 14px;
}

footer {
  padding: 94px 0 56px;
  /* border-top: 1px solid #efefef; */
  text-align: center;
  background: transparent;
}

footer .container.menu,
footer .container.bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #fff;
}

@media (max-width: 1064px) {
  footer .container.menu,
  footer .container.bottom {
    flex-direction: column;
    align-items: center;
    gap: 0;
  }
}

footer .container.bottom p {
  font-size: 12px;
  padding-top: 56px;
}

footer .logo {
  font-family: "avenir_black";
  font-size: 20vw; /* Utilise une unité responsive pour adapter la taille */
  color: #fff;
  text-decoration: none;
  line-height: 1; /* Évite les marges verticales inutiles */
  white-space: nowrap; /* Empêche le texte de se couper sur plusieurs lignes */
  width: 100%; /* Occupe toute la largeur */
  display: block;
  padding-top: 56px;
}

footer .baseline {
  padding: 0;
  color: #fff;
  opacity: 1;
  width: 100%;
  text-align: left;
}

footer ul.social {
  display: flex;
  justify-content: center;
  list-style-type: none;
  gap: 40px;
  padding: 20px 0;
}

footer .social a {
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
  display: block;
  font-size: 14px;
  letter-spacing: 0.7px;
}

footer .footer-nav .footer-menu li a {
  color: #fff;
}

footer .container.bottom a {
  display: inline;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}

footer .container.bottom a:hover {
  text-decoration: underline;
}

#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #000;
  display: flex;
  justify-content: center;
  z-index: 9999;
  opacity: 1;
  transition: opacity 0.5s ease;
}

#preloader .container {
  margin: 160px auto;
}

.logged-in #preloader .container {
  margin: 192px auto;
}

.preloader-content {
  text-align: center;
}

.logo-letters {
  /* font-size: 4rem;
  font-weight: bold; */
  opacity: 0;
  /* transform: scale(0.8); */
  /* color: #fff; */
  position: relative;
}

.logo-letters img {
  width: 89vw;
}

.baseline {
  margin-top: 1rem;
  font-size: 1rem;
  opacity: 0;
  overflow: hidden;
  white-space: nowrap;
  display: inline-block;
  width: 0;
  color: #fff;
}

header,
main,
footer {
  opacity: 0;
  transition: opacity 1s ease;
}

/* Style initial du lien */
.header-menu a,
header .social-wrapper a,
a.filter-toggle {
  position: relative;
  color: #000; /* Couleur de texte noire */
  text-decoration: none;
  overflow: hidden; /* Pour limiter l'animation de fond à l'intérieur du lien */
  transition: color 0.3s ease; /* Transition douce pour la couleur du texte */
  padding: 5px 10px;
  font-size: 14px;
  letter-spacing: 0.7px;
}

/* Arrière-plan qui va apparaître lors du survol */
.header-menu a::before,
header .social-wrapper a::before,
a.filter-toggle::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background-color: #000; /* Fond noir */
  transition: width 0.3s ease; /* Animation du fond de gauche à droite */
  z-index: -1; /* Positionne le fond derrière le texte */
}

/* Effet de survol */
.header-menu a:hover,
header .social-wrapper a:hover,
a.filter-toggle:hover {
  color: #fff !important; /* Change la couleur du texte en blanc */
}

.header-menu a:hover::before,
header .social-wrapper a:hover::before,
a.filter-toggle:hover::before {
  width: 100%; /* Le fond noir s'étend sur toute la largeur du lien */
}

/* Style de base pour l'image du projet */
.project-item .media-item img {
  transition: transform 0.5s ease, box-shadow 0.5s ease; /* Animation pour le zoom et le contour */
  display: block;
}

/* Style pour l'effet de survol */
.project-item:hover .media-item img {
  transform: scale(1.05);
}

/* Animation pour le contour blanc */
.project-item .media-item img {
  position: relative;
}

@media (max-width: 1064px) {
  nav.header-nav,
  .social-wrapper {
    display: none;
  }

  footer .baseline {
    white-space: normal;
    text-align: center;
  }
}

.menu {
  display: none;
  font-size: 2em;
}

@media (max-width: 1064px) {
  .menu {
    display: block;
  }
}

nav.mobile-nav {
  /* justify-content: center;
  align-items: center;
  position: absolute;
  background: #fff;
  width: 100vw;
  top: 0;
  left: 0;
  height: 100vh; */
}

.mobile-wrapper {
  position: fixed;
  top: 0;
  right: -300px; /* Positionne en dehors de l'écran */
  width: 300px;
  height: 100%;
  background-color: #fff;
  box-shadow: -2px 0 115px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  z-index: 9999;
  padding: 0;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
}

.mobile-wrapper.active {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100vw;
  height: 100vh;
  background-color: #fff;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 99999;
}

.mobile-wrapper ul#menu-header-menu {
  list-style-type: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.mobile-wrapper ul#menu-header-menu a {
  text-transform: uppercase;
  color: #000;
  text-decoration: none;
}

@media (max-width: 1064px) {
  footer .logo {
    padding-top: 0;
  }
  footer .container.bottom p {
    padding-top: 0;
  }
}

.menu-close {
  position: absolute;
  top: 20px;
  right: 20px;
}

@media (max-width: 1064px) {
  .h1 {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    width: 100%;
    font-size: 12px !important;
  }
}

@media (max-width: 1064px) {
  main {
    padding: 100px 0 0;
  }
}

.page-id-126 h1 {
  font-size: 56px;
  line-height: 1em;
}
