@font-face {
  font-family: "ABCGravity";
  src: url("../fonts/ABCGravity-Normal-Trial.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
}

body {
  background: black;
  color: white;
  font-family: "ABCGravity", sans-serif;
  overflow-x: hidden;
  padding-top: 80px;
}


/* ===== NOUVEAU SYSTÈME DE FILTRES PORTFOLIO ===== */

.portfolio-section {
  margin-top: 50px;
  margin-right: -4px;
  border: 1px solid white;
}

.portfolio-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  background-color: black;
  border: 1px solid white;
  margin-bottom: 0;
  margin-left : 0px;
}

.portfolio-logo {
  font-size: 16px;
  font-weight: normal;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: white;
}

.filters {
  display: flex;
  gap: 15px;
  align-items: center;
}

.filters span {
  font-weight: normal;
  font-size: 13px;
  margin-right: 5px;
  color: white;
}

.filter-btn {
  padding: 6px 18px;
  background-color: black;
  border: 1px solid white;
  cursor: pointer;
  font-size: 13px;
  font-weight: normal;
  transition: all 0.2s ease;
  border-radius: 0;
  color: white;
  font-family: "ABCGravity", sans-serif;
}

.filter-btn:hover {
  background-color: #333;
}

.filter-btn.active {
  background-color: #1ce14f ;
  border-color: black;
  color: black;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  max-width: 100%;
}

.project-card {
  position: relative;
  background-color: black;
  overflow: hidden;
  aspect-ratio: 16/10;
  transition: opacity 0.3s ease;
  border: 1px solid white;
  margin: 0px 0 0 0px;
}

.project-card.hidden {
  display: none;
}

.project-card a {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  text-decoration: none;
}

.project-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.project-card:hover .project-image {
  transform: scale(1.05);
}

/* ===== FIN SYSTÈME DE FILTRES ===== */

/* ===== ECO EXPLORER STYLES ===== */

.row-images-eco-explorer {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  margin-bottom: 5px;
}

.row-images-eco-explorer img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 0px;
}

.video-container-eco-explorer {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto 30px auto;
}

.video-container-eco-explorer video {
  width: 100%;
  height: auto;
  border-radius: 0px;
}

/* ===== WASH & WONDER STYLES ===== */

.projects-wash-wonder {
  display: grid;
  grid-template-columns: 1fr 5fr; /* 1fr vide à gauche, 3fr photos à droite */
  border: 2px solid white;
  margin-top: 50px;
}


.projects-wash-wonder .title {
  font-size: 90px;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 18px;
  position: sticky;
  z-index: 5;
  color: white;
  margin-top: -60px;
}


.projects-wash-wonder .title p {
font-size: 12px;
text-transform: none;
margin-top: -100px;
text-align: justify;
}

.projects-wash-wonder .large {
  background: none;
  border-left: 2px solid white;
}

.row-images-wash-wonder {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
  margin-bottom: 5px;
}

.row-images-wash-wonder img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: 0px;
}

.row-images-wash-wonder-cover {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  margin-bottom: 5px;
}

.row-images-wash-wonder-cover img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 0px;
}

.video-container-wash-wonder {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto 30px auto;
}

.video-container-wash-wonder video {
  width: 100%;
  height: auto;
  border-radius: 0px;
}

/* ===== FIN WASH & WONDER STYLES ===== */

/* ===== THÉÂTRE PÉPINIÈRE STYLES ===== */

.row-images-theatre-pepiniere {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 5px;
  margin-bottom: 5px;
}

.row-images-theatre-pepiniere img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 0px;
}

/* ===== VIDÉOS ROW STYLES ===== */

.videos-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  margin: 40px 0;
}

/* Vidéo verticale (Blender) */
.video-item.blender {
  width: 27%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: 0px;
}

/* Vidéo horizontale (Unity) */
.video-item.unity {
  width: 85%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 0px;
}

/* ===== CONTAINER ABOUT SECTION ===== */

.container {
  display: grid;
  grid-template-columns: 1fr 2fr;
  height : 565px;
  margin-right : -4px;
  margin-top: 100px;
  border: 2px solid white;
}

.left-section {
  display: flex;
  flex-direction: column; 
}

.header {
  padding: 20px 30px;
  border-bottom: 3px solid white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-right : 2px solid white;
}

.header h1 {
  font-size: 50px;
  font-weight: normal;
  letter-spacing: -2px;
}

.divider {
  width: 0px;
  height: 2px;
  background-color: white;
}

.photo-section {
  justify-content: center;
  align-items: center;
  border-right : 2px solid white;
  padding: 20px;
  height: 350px;
}

.photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.right-section {
  display: flex;
  flex-direction: column;
}

.intro {
  margin-bottom: 15px;
}

.intro h3 {
  font-size: 14px;
  font-weight: normal;
  margin-bottom: 15px;
}

.intro p {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 15px;
}

.content {
  flex: 1;
  padding: 30px;
  overflow-y: auto;
}

.section {
  margin-bottom: 25px;
}

.section h4 {
  font-size: 12px;
  font-weight: normal;
  margin-bottom: 10px;
  letter-spacing: 1px;
}

.section p {
  font-size: 13px;
  line-height: 1.5;
}

.signature {
  height: 10vw;
  width: 20vw;
  rotate: -8deg;
  padding-left: 300px;
  padding-top: 10px;
}

/* ===== MARQUEE ANIMATION ===== */

.marquee {
  width: 100%;
  height: 30px;
  background: black;
  color: white;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  border-top: 2px solid white;
  border-bottom: 2px solid white;
  white-space: nowrap;
  margin-top: 60px;
  margin-bottom: 60px;
}

.marquee-content {
  display: inline-block;
  padding-left: 0;
  animation: marquee 25s linear infinite;
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===== RESPONSIVE ===== */

@media (max-width: 1024px) {
  body {
    padding-top: 100px;
  }

  .logo {
    left: 50%;
    transform: translateX(-50%);
  }

  header nav {
    padding: 20px 20px;
  }

  header nav a {
    font-size: 12px;
  }

  .side-text {
    font-size: 12px;
  }

  .side-text.left {
    left: 20px;
    bottom: 300px;
  }

  .side-text.right {
    right: 20px;
    bottom: 300px;
  }

  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .project {
    grid-template-columns: 1fr;
  }

  .project .large {
    border-left: none;
    border-top: 2px solid white;
    width: 100%;
    height: auto;
    min-height: 400px;
  }

  .projects-wash-wonder {
    grid-template-columns: 1fr;
  }

  .projects-wash-wonder .title {
    font-size: 60px;
    margin-top: 0;
  }

  .projects-wash-wonder .large {
    border-left: none;
    border-top: 2px solid white;
    height: auto;
    min-height: 600px;
  }

  .row-images-wash-wonder {
    grid-template-columns: repeat(2, 1fr);
  }

  .row-images-wash-wonder img {
    height: 350px;
  }

  .container {
    grid-template-columns: 1fr;
    height: auto;
  }

  .photo-section {
    border-right: none;
    border-bottom: 2px solid white;
  }

  .header {
    border-right: none;
  }
}

@media (max-width: 900px) {
  .videos-row {
    flex-direction: column;
  }

  .video-item.blender,
  .video-item.unity {
    width: 90%;
  }
  
  .projects-grid {
    grid-template-columns: repeat(1, 1fr);
  }
}

@media (max-width: 768px) {
  body {
    padding-top: 100px;
  }

  header nav {
    flex-direction: column;
    gap: 15px;
    padding: 15px;
    align-items: center;
  }

  header nav a {
    font-size: 11px;
  }

  .logo {
    width: 50px;
    height: 50px;
    left: 50%;
    transform: translateX(-50%);
  }

  .logo-static,
  .logo-video {
    width: 3vw;
    height: 3vw;
    min-width: 50px;
    min-height: 50px;
  }

  .logo img {
    width: 50px;
  }

  .side-text {
    display: none;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .filters {
    flex-wrap: wrap;
  }

  .project {
    grid-template-columns: 1fr;
  }

  .project .title {
    font-size: 13px;
    position: relative;
    top: 0;
  }

  .project .large {
    border-left: none;
    border-top: 2px solid white;
    width: 100%;
    height: auto;
    min-height: 300px;
  }

  .projects-wash-wonder {
    grid-template-columns: 1fr;
  }

  .projects-wash-wonder .title {
    font-size: 40px;
    margin-top: 0;
  }

  .projects-wash-wonder .title p {
    margin-top: 20px;
  }

  .projects-wash-wonder .large {
    border-left: none;
    border-top: 2px solid white;
    height: auto;
    min-height: 400px;
  }

  .row-images-eco-explorer {
    grid-template-columns: 1fr;
  }

  .row-images-wash-wonder {
    grid-template-columns: 1fr;
  }

  .row-images-wash-wonder img {
    height: 300px;
  }

  .row-images-wash-wonder-cover {
    grid-template-columns: 1fr;
  }

  .row-images-theatre-pepiniere {
    grid-template-columns: 1fr;
  }

  .container {
    margin-top: 50px;
    height: auto;
  }

  .header {
    padding: 15px 20px;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    border-right: none;
  }

  .header h1 {
    font-size: 35px;
  }
.photo-section {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.photo-section img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain; /* 🔥 empêche toute distorsion */
}

  .content {
    padding: 20px 15px;
  }


  .marquee-content {
    font-size: 12px;
  }

  .arrow {
    bottom: 20px;
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  body {
    padding-top: 120px;
  }

  .portfolio-logo {
    font-size: 14px;
  }

  .filter-btn {
    font-size: 12px;
    padding: 5px 15px;
  }

  .project .title {
    font-size: 12px;
  }

  .projects-wash-wonder .title {
    font-size: 30px;
  }

  .header h1 {
    font-size: 24px;
  }

  .intro h3 {
    font-size: 13px;
  }

  .intro p,
  .section p {
    font-size: 12px;
  }

  .section h4 {
    font-size: 11px;
  }
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background-color: black;
}

header nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 20px 30px;
  position: relative;
  z-index: 10;
  background: none;
  height: 50px;
}

header nav::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 8px;
  right: 4px;
  bottom: -10px;
  background: black;
  border: 2px solid white;
  z-index: -1;
  pointer-events: none;
}

.nav-link {
  text-decoration: none;
  color: white;
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 1px;
}

.nav-link:first-child {
  justify-self: start;
}

.nav-link:last-child {
  justify-self: end;
}

/* LOGO CENTRÉ */
.logo {
  position: relative;
  width: 60px;
  height: 60px;
  justify-self: center;
  z-index: 100;
}

.logo-static,
.logo-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.4s ease;
}

.logo-static {
  opacity: 1;
  z-index: 2;
}

.logo-video {
  opacity: 0;
  z-index: 3;
  pointer-events: none;
}



.video-gameboy video{
  height: 800px;
  object-fit: cover;
  border-radius: 0px;

}

.video-unity{
  object-fit: cover;
  border-radius: 0px;


}

.impression-3D {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  margin-bottom: 5px;
}

.impression-3D img {
 width: 100%;
 height: 300px;
object-fit: cover;
}

.large img {
  width: 100%;
  height: 800px;
object-fit: cover;
}

.video-after-effect video{
  width: 90%;
  object-fit: cover;
  border-radius: 0px;}

  .video-touch {
 /* espace entre les vidéos */
}

.video-touch video {
  width: 100%; /* ou la taille que tu veux */
  object-fit: cover;
  border-radius: 0;
}

.large {

}
/* ===== PATCH PNG – NE MODIFIE PAS LE LAYOUT ===== */
