/* ============================================================
   CHALUMEAU HUGUES
   PORTFOLIO
   ============================================================ */


/* ============================================================
   HERO
   ============================================================ */

.portfolio-hero {
  padding: 28px 0 16px;
}

.portfolio-hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
  align-items: end;
  gap: 45px;
}

.portfolio-hero-title {
  min-width: 0;
}

.portfolio-hero-side {
  display: flex;
  align-items: stretch;
  gap: 18px;
}

.portfolio-intro-line {
  flex: 0 0 1px;
  width: 1px;
  min-height: 64px;
  background: #111;
}

.portfolio-hero-side p {
  margin: 0;
  max-width: 430px;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.72;
}


/* ============================================================
   SECTION
   ============================================================ */

.portfolio-section {
  padding: 0 0 35px;
}


/* ============================================================
   FILTRES
   ============================================================ */

.portfolio-filter-wrap {
  margin-bottom: 28px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.portfolio-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 28px;

  margin: 0;
  padding: 0;

  list-style: none;
}

.portfolio-filter li {
  margin: 0;
  padding: 0;
}

.portfolio-filter a {
  position: relative;
  display: block;

  padding: 17px 0 15px;

  color: #777;

  font-size: 10px;
  font-weight: 600;

  line-height: 1;

  letter-spacing: .14em;
  text-transform: uppercase;

  transition: color .22s ease;
}

.portfolio-filter a:hover,
.portfolio-filter a.active {
  color: #111;
}

.portfolio-filter a.active::after {
  content: "";

  position: absolute;

  left: 0;
  right: 0;
  bottom: -1px;

  height: 1px;

  background: #111;
}


/* ============================================================
   GRILLE
   ============================================================ */

.portfolio-items {
  position: relative;

  width: calc(100% + 24px);

  margin-left: -12px;
  margin-right: -12px;
}

.portfolio-item {
  position: relative;

  padding-left: 12px;
  padding-right: 12px;

  margin-bottom: 38px;
}


/* ============================================================
   GRANDE IMAGE
   ============================================================ */

.portfolio-large {
  width: 100%;
  margin-bottom: 42px;
}

.portfolio-large .project-image {
  height: clamp(370px, 41vw, 610px);
}


/* ============================================================
   PROJET PRINCIPAL
   ============================================================ */

.project-card-featured .project-image {
  position: relative;
}

.project-card-featured .project-image::before {
  content: "";

  position: absolute;

  z-index: 1;

  left: 0;
  right: 0;
  bottom: 0;

  height: 58%;

  pointer-events: none;

  background:
    linear-gradient(
      to top,
      rgba(0,0,0,.62) 0%,
      rgba(0,0,0,.28) 42%,
      rgba(0,0,0,0) 100%
    );
}

.project-featured-overlay {
  position: absolute;

  z-index: 2;

  left: 0;
  right: 0;
  bottom: 0;

  display: flex;
  align-items: flex-end;
  justify-content: space-between;

  gap: 40px;

  padding: clamp(28px, 4vw, 55px);

  color: #fff;
}

.project-featured-content {
  min-width: 0;
}

.project-featured-meta {
  margin-bottom: 10px;

  color: rgba(255,255,255,.82);

  font-size: 10px;
  font-weight: 600;

  line-height: 1.3;

  letter-spacing: .18em;

  text-transform: uppercase;
}

.project-featured-title {
  margin: 0;

  max-width: 760px;

  color: #fff;

  font-size: clamp(20px, 2.2vw, 32px);
  font-weight: 400;

  line-height: 1.05;

  letter-spacing: -.015em;
}

.project-featured-arrow {
  flex: 0 0 auto;

  padding-bottom: 4px;

  color: #fff;

  font-size: clamp(24px, 2.3vw, 34px);

  line-height: 1;

  transition: transform .3s ease;
}

.project-card-featured:hover .project-featured-arrow {
  transform: translateX(8px);
}


/* ============================================================
   MOYENS
   ============================================================ */

.portfolio-medium {
  width: 50%;
  margin-bottom: 42px;
}

.portfolio-medium .project-image {
  height: clamp(245px, 24vw, 385px);
}


/* ============================================================
   PETITS
   ============================================================ */

.portfolio-small {
  width: 33.333333%;
  margin-bottom: 38px;
}

.portfolio-small .project-image {
  height: clamp(175px, 15vw, 235px);
}


/* ============================================================
   CARTE
   ============================================================ */

.project-card {
  display: block;
  width: 100%;

  color: #111;

  text-decoration: none;
}

.project-card:hover,
.project-card:focus {
  color: #111;
}


/* ============================================================
   IMAGE
   ============================================================ */

.project-image {
  position: relative;

  width: 100%;

  overflow: hidden;

  background: #efefed;
}

.project-image img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;

  transform: scale(1);

  transition: transform .65s var(--ease);
}

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

.project-image::after {
  content: "";

  position: absolute;

  inset: 0;

  pointer-events: none;

  background: rgba(0,0,0,0);

  transition: background .35s ease;
}

.project-card:hover .project-image::after {
  background: rgba(0,0,0,.025);
}


/* ============================================================
   INFOS
   ============================================================ */

.project-info {
  display: flex;

  align-items: flex-start;
  justify-content: space-between;

  gap: 24px;

  padding-top: 11px;
}

.project-info-main {
  min-width: 0;
}

.project-meta {
  margin-bottom: 5px;

  color: var(--muted);

  font-size: 9px;
  font-weight: 600;

  line-height: 1.3;

  letter-spacing: .17em;

  text-transform: uppercase;
}


/* ============================================================
   FLÈCHES
   ============================================================ */

.project-arrow {
  flex: 0 0 auto;

  display: inline-flex;

  align-items: center;
  justify-content: center;

  margin-top: 3px;

  font-size: 19px;

  line-height: 1;

  transition: transform .28s ease;
}

.portfolio-small .project-arrow {
  font-size: 17px;
}

.project-card:hover .project-arrow {
  transform: translateX(5px);
}


/* ============================================================
   BOUTON FINAL
   ============================================================ */

.portfolio-next {
  display: flex;

  justify-content: center;
  align-items: center;

  margin-top: 8px;

  padding: 18px 0 60px;
}

.portfolio-next-button {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  gap: 20px;

  min-width: 270px;
  min-height: 52px;

  padding: 0 28px;

  border: 1px solid #111;

  background: #fff;

  color: #111;

  font-size: 10px;
  font-weight: 600;

  line-height: 1;

  letter-spacing: .16em;

  text-transform: uppercase;

  transition:
    background .25s ease,
    color .25s ease;
}

.portfolio-next-button:hover {
  background: #111;
  color: #fff;
}


/* ============================================================
   TABLETTE
   ============================================================ */

@media (max-width: 1100px) {

  .portfolio-small {
    width: 50%;
  }

}


/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 700px) {

  .portfolio-hero {
    padding: 22px 0 14px;
  }

  .portfolio-hero-layout {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .portfolio-filter-wrap {
    overflow-x: auto;
    margin-bottom: 20px;
  }

  .portfolio-filter {
    width: max-content;
    flex-wrap: nowrap;
    gap: 24px;
  }

  .portfolio-items {
    width: 100%;
    margin: 0;
  }

  .portfolio-item,
  .portfolio-large,
  .portfolio-medium,
  .portfolio-small {
    width: 100%;

    padding-left: 0;
    padding-right: 0;

    margin-bottom: 34px;
  }

  .portfolio-large .project-image,
  .portfolio-medium .project-image,
  .portfolio-small .project-image {
    height: auto;
    aspect-ratio: 4 / 3;
  }

  .project-featured-title {
    font-size: clamp(18px, 5.5vw, 24px);
  }

}