
@font-face {
  font-family: 'PPFraktionSans';
  src: url('font/PPFraktionSans-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: "goth";
  src: url('font/Lordish.ttf');
}

:root {

  --main-font: 'PPFraktionSans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}


/* style */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--main-font);
  background: white;
  color: black;
}
a {
  color: inherit;
  text-decoration: inherit;
}


/* page principal */
.portfolio-container {
  width: 100%;
  height: 100vh;
  background: white;
  color: black;
}

.portfolio-main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 100vh;
  border: 20px solid blue;
}

.projects-section,
.blog-section {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.projects-section {
  border-right: 5px solid black;
}


/* liste pro gauche */
.profile-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 5px solid black;
  flex-shrink: 0;
}

.profile-image-container {
  border-right: 5px solid black;
  padding: 0;
  background: white;
  display: flex;
  align-items: stretch;
  aspect-ratio: 1 / 1;
}

.profile-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-description {
  padding: 10px;
  font-size: 13px;
  line-height: 1.4;
  background: white;
}

.profile-description p {
  margin: 0;
}

.projects-list {
  overflow-y: auto;
  overflow-x: hidden;
  flex: 1;
}

/* élément de la liste */
.project-row {
  display: grid;
  grid-template-columns: 90px 1fr;
  border-bottom: 5px solid black;
  font-size: 13px;
  font-style: italic;
  text-decoration: underline;
  cursor: pointer;
  transition: background 0.s, color 0s;
}

/* Hover bleu */
.project-row:hover {
  background: blue;
  color: white;
}

.project-year {
  padding: 8px;
  border-right: 5px solid black;
  font-weight: 400;
}

.project-title {
  padding: 8px;
  font-weight: 400;
}


/* partie blog a droite */
.blog-list {
  overflow-y: auto;
  overflow-x: hidden;
  flex: 1;
}

/* header de droite*/
.recently-added-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 5px solid black;
  background: white;
}

.recently-added-image-container {
  border-right: 5px solid black;
  padding: 0;
  background: white;
  display: flex;
  align-items: stretch;
  aspect-ratio: 1 / 0.9970;
}

.recently-added-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.recently-added-text {
  padding: 10px;
  font-size: 13px;
  line-height: 1.4;
  background: white;
  display: flex;
  align-items: flex-start;
}

.recently-added-text p {
  margin: 0;
  font-size: 13px;
  font-weight: 400;
}


/* liste blog */
.blog-row {
  display: grid;
  grid-template-columns: 90px 1fr; /* Date column + title column */
  border-bottom: 5px solid black;
  font-size: 13px;
  font-style: italic, bold;
  text-decoration: underline;
  cursor: pointer;
  transition: background 0s, color 0s;
}

/* Hover2 */
.blog-row:hover {
  background: blue;
  color: white;
}

.blog-date {
  padding: 8px;
  border-right: 5px solid black;
  font-weight: 400;
}

.blog-title {
  padding: 8px;
  font-weight: 400;
}


/* style pages projets */
.project-page-container {
  width: 100%;
  height: 100vh;
  background: white;
  color: black;
  display: flex;
  flex-direction: column;
}

/* retour */
.back-button {
  border: 5px solid black;
  border-bottom: 5px solid black;
  background: white;
  padding: 8px;
  font-size: 20px;
  font-weight: 400;
  cursor: pointer;
  text-align: left;
  font-family: var(--main-font);
  transition: background 0s, color 0s;
}

.back-button:hover {
  background: blue;
  color: white;
}

/* page projet */
.project-main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  flex: 1;
  overflow: hidden;
  border: 5px solid black;
  border-top: none;
}

/* Left Section - Images */
.images-section {
  border-right: 5px solid black;
  overflow-y: auto;
  overflow-x: hidden;
}

.image-container {
  border-bottom: 5px solid black;
}

.image-container:last-child {
  border-bottom: none;
}

.project-image {
  width: 100%;
  height: auto;
  display: block;
}

/* partie description */
.text-section {
  overflow-y: auto;
  overflow-x: hidden;
}

.text-content {
  padding: 10px;
}

.project-page-title {
  margin: 10px;
  font-size: 35px;
  font-weight: 600;
  text-decoration: underline;
}

.project-date {
  margin: 10px;
  font-size: 20px;

}

.project-text {
  font-size: 16px;
  margin: 10px;
  line-height: 1.3;
  white-space: pre-wrap;

}


.projects-list::-webkit-scrollbar,
.blog-list::-webkit-scrollbar,
.images-section::-webkit-scrollbar,
.text-section::-webkit-scrollbar {
  width: 8px;
}

.projects-list::-webkit-scrollbar-track,
.blog-list::-webkit-scrollbar-track,
.images-section::-webkit-scrollbar-track,
.text-section::-webkit-scrollbar-track {
  background: white;
}

.projects-list::-webkit-scrollbar-thumb,
.blog-list::-webkit-scrollbar-thumb,
.images-section::-webkit-scrollbar-thumb,
.text-section::-webkit-scrollbar-thumb {
  background: black;
}


/* partie telephone Responsive */
@media (max-width: 768px) {

  .portfolio-main,
  .project-main {
    grid-template-columns: 1fr;
    height: auto;
  }


  .projects-section {
    border-right: none;
    border-bottom: 1px solid black;
    min-height: 50vh;
  }

  .blog-section {
    min-height: 50vh;
  }


  .profile-header {
    grid-template-columns: 1fr;
  }

  .profile-image-container {
    border-right: none;
    border-bottom: 1px solid black;
  }


  .recently-added-header {
    grid-template-columns: 1fr;
  }

  .recently-added-image-container {
    border-right: none;
    border-bottom: 1px solid black;
  }


  .images-section {
    border-right: none;
    border-bottom: 1px solid black;
    max-height: 50vh;
  }
}

/* bail du texte qui bouge en dessous*/

.big-marquee {
  position: fixed;
  top: 25%;
  left: 0;
  width: 100%;
  overflow: hidden;
  z-index: 99999999;
  pointer-events: none;

  /* fondu bordss */
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    blue 15%,
    blue 85%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    blue 15%,
    blue 85%,
    transparent 100%
  );
}

.big-marquee-track {
  display: flex;
  width: max-content;
  animation: bigscroll 25s linear infinite;
}

.big-marquee span {
  white-space: nowrap;
  font-family: goth;
  font-size: 150px;
  padding-right: 50px;

  /* effet clear du texte qui défile */
  color: rgba(0, 0, 0, 0.08);

  /* contour */
  -webkit-text-stroke: 1px rgba(0, 0, 0, 0.15);
}

/* animation */
@keyframes bigscroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
