/* Page Les projets — portfolio MMI filtrable */

@font-face {
  font-family: "Swiss 911 Compressed";
  src: url("Typos/swiss-911-compressed-regular_bvhuc/Swiss 911 Compressed Regular/Swiss 911 Compressed Regular.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
}

:root {
  --lp-accent: #00ff0c;
  --lp-font-title: "Swiss 911 Compressed", "Arial Narrow", "Franklin Gothic Medium", Impact, sans-serif;
  --lp-font-serif: Georgia, "Times New Roman", Times, serif;
  --lp-font-btn: "Helvetica Now Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --lp-font-body: "Libre Franklin", "Segoe UI", sans-serif;
  /* Couleurs des compétences. Contraste sur fond noir, et sous un texte noir
     lorsqu'elles servent de remplissage : comprendre 5,4:1 · concevoir 7,9:1
     · développer 13,6:1 · entreprendre 19,3:1 · exprimer 19,6:1.
     Toutes au-delà du seuil AA de 4,5:1. */
  --lp-skill-comprendre-rgb: 219 85 82;
  --lp-skill-concevoir-rgb: 216 141 104;
  --lp-skill-developper-rgb: 162 226 100;
  --lp-skill-entreprendre-rgb: 204 255 255;
  --lp-skill-exprimer-rgb: 254 253 126;
  --lp-skill-comprendre: rgb(var(--lp-skill-comprendre-rgb));
  --lp-skill-concevoir: rgb(var(--lp-skill-concevoir-rgb));
  --lp-skill-developper: rgb(var(--lp-skill-developper-rgb));
  --lp-skill-entreprendre: rgb(var(--lp-skill-entreprendre-rgb));
  --lp-skill-exprimer: rgb(var(--lp-skill-exprimer-rgb));
  /* Variantes saturées, réservées aux aplats larges (jauges) où la couleur
     n'a pas à porter de texte. Mêmes teintes, saturation poussée. */
  --lp-skill-comprendre-vivid-rgb: 255 59 56;
  --lp-skill-concevoir-vivid-rgb: 255 138 61;
  --lp-skill-developper-vivid-rgb: 157 255 61;
  --lp-skill-entreprendre-vivid-rgb: 53 255 255;
  --lp-skill-exprimer-vivid-rgb: 255 251 46;
  --lp-skill-comprendre-vivid: rgb(var(--lp-skill-comprendre-vivid-rgb));
  --lp-skill-concevoir-vivid: rgb(var(--lp-skill-concevoir-vivid-rgb));
  --lp-skill-developper-vivid: rgb(var(--lp-skill-developper-vivid-rgb));
  --lp-skill-entreprendre-vivid: rgb(var(--lp-skill-entreprendre-vivid-rgb));
  --lp-skill-exprimer-vivid: rgb(var(--lp-skill-exprimer-vivid-rgb));
  --lp-max: 1320px;
  --lp-intro-bottom-gap: clamp(0.85rem, 2.2vh, 1.35rem);
}

body.page-les-projets,
body.page-portfolio {
  margin: 0;
  min-height: 100vh;
  background: #000;
  color: #fff;
}

/* ——— Intro splash (hero accueil) ——— */
body.portfolio-intro-active {
  overflow: hidden;
}

body.page-portfolio .page-enter-overlay {
  display: none !important;
}

.portfolio-splash {
  position: fixed;
  inset: 0;
  z-index: 5000;
  opacity: 1;
  pointer-events: auto;
  cursor: pointer;
  transition: opacity 1s ease;
}

.portfolio-splash.is-hiding {
  opacity: 0;
  pointer-events: none;
}

.portfolio-splash.is-done {
  display: none;
}

.portfolio-splash .hero {
  min-height: 100vh;
  min-height: 100dvh;
}

.portfolio-app {
  opacity: 0;
  transition: opacity 1s ease;
}

.portfolio-app.is-visible {
  opacity: 1;
}

.portfolio-app[aria-hidden="true"] {
  pointer-events: none;
}

.lp-main {
  position: relative;
  font-family: var(--lp-font-body);
  padding: clamp(4.75rem, 9vh, 6rem) 1.5rem 0;
  overflow: hidden;
}

.lp-main::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.22) 0.45px, transparent 0.55px);
  background-size: 4px 4px;
}

.lp-inner {
  position: relative;
  z-index: 1;
  max-width: var(--lp-max);
  margin: 0 auto;
}

/* ——— Section plein écran : hero + filtres ——— */
.lp-intro {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(1.25rem, 3vh, 2rem);
  min-height: calc(100vh - clamp(4.75rem, 9vh, 6rem) - var(--lp-intro-bottom-gap));
  min-height: calc(100dvh - clamp(4.75rem, 9vh, 6rem) - var(--lp-intro-bottom-gap));
  padding-bottom: var(--lp-intro-bottom-gap);
  box-sizing: border-box;
}

/* Motif de fond, débordant sur toute la largeur de l'écran */
.lp-intro::before {
  content: "";
  position: absolute;
  top: calc(-1 * clamp(4.75rem, 9vh, 6rem));
  bottom: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  z-index: -1;
  pointer-events: none;
  opacity: 0.85;
  background-image: url("PHOTOS ACCUEIL/Accueil/motif.png");
  background-repeat: repeat;
  background-size: clamp(520px, 52vw, 860px) auto;
}

.lp-intro__hero-wrap {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 0;
}

/* ——— Hero BUT + compétences ——— */
.lp-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) 1px minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.25rem, 4vw, 3rem);
  flex: 1 1 auto;
  min-height: clamp(240px, 42vh, 480px);
  margin: 0;
}

.lp-hero__year-block {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  align-self: center;
  width: 100%;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.lp-hero__year-visual {
  position: relative;
  width: min(100%, clamp(260px, 40vw, 500px));
  margin: 0 auto;
}

.lp-hero__year-svg {
  display: none;
  width: 100%;
  height: auto;
}

.lp-hero__year-svg.is-visible {
  display: block;
}

.lp-hero__year-svg--tout {
  width: min(100%, clamp(280px, 48vw, 560px));
}

.lp-hero__divider {
  align-self: stretch;
  width: 1px;
  background: rgba(255, 255, 255, 0.85);
  min-height: clamp(180px, 34vh, 400px);
}

.lp-hero__skills {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-self: center;
  gap: clamp(0.35rem, 1.4vh, 0.75rem);
}

.lp-hero__skill {
  font-family: var(--lp-font-serif);
  font-size: clamp(1.75rem, 4.2vw, 3.1rem);
  font-weight: 400;
  line-height: 1.12;
  color: #fff;
  transition: color 0.28s ease, opacity 0.28s ease;
}

.lp-hero__skill.is-dimmed {
  opacity: 0.38;
}

.lp-hero__skill.is-active-skill {
  opacity: 1;
}

.lp-hero__skills.is-tout-mode .lp-hero__skill[data-skill="comprendre"] {
  color: var(--lp-skill-comprendre);
  opacity: 1;
}

.lp-hero__skills.is-tout-mode .lp-hero__skill[data-skill="concevoir"] {
  color: var(--lp-skill-concevoir);
  opacity: 1;
}

.lp-hero__skills.is-tout-mode .lp-hero__skill[data-skill="developper"] {
  color: var(--lp-skill-developper);
  opacity: 1;
}

.lp-hero__skills.is-tout-mode .lp-hero__skill[data-skill="entreprendre"] {
  color: var(--lp-skill-entreprendre);
  opacity: 1;
}

.lp-hero__skills.is-tout-mode .lp-hero__skill[data-skill="exprimer"] {
  color: var(--lp-skill-exprimer);
  opacity: 1;
}

.lp-hero__skill[data-skill="comprendre"].is-active-skill { color: var(--lp-skill-comprendre); }
.lp-hero__skill[data-skill="concevoir"].is-active-skill { color: var(--lp-skill-concevoir); }
.lp-hero__skill[data-skill="developper"].is-active-skill { color: var(--lp-skill-developper); }
.lp-hero__skill[data-skill="entreprendre"].is-active-skill { color: var(--lp-skill-entreprendre); }
.lp-hero__skill[data-skill="exprimer"].is-active-skill { color: var(--lp-skill-exprimer); }

/* ——— Filtres en ligne ——— */
.lp-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2rem);
  flex-shrink: 0;
  margin: clamp(2.75rem, 5.5vw, 4.25rem) 0 clamp(2rem, 4.5vw, 3.25rem);
  width: 100%;
}

.lp-filter-block {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(0.45rem, 0.85vw, 0.65rem);
  min-width: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.lp-filter-block--year {
  flex: 0 0 auto;
  width: max-content;
  max-width: 100%;
}

.lp-filter-block--skills {
  flex: 1 1 auto;
  min-width: 0;
}

.lp-filter-block__label {
  flex: 0 0 auto;
  margin: 0;
  font-family: var(--lp-font-body);
  font-size: clamp(0.68rem, 0.95vw, 0.76rem);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.72);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}

.lp-filter-block__btns {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(0.35rem, 0.65vw, 0.48rem);
  min-width: 0;
}

.lp-btn {
  font-family: var(--lp-font-btn);
  font-size: clamp(0.68rem, 0.95vw, 0.82rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  padding: 0.52rem 0.92rem;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  background: rgba(0, 0, 0, 0.22);
  color: #fff;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition:
    background 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease;
  box-shadow: none;
}

.lp-btn:hover {
  box-shadow: none;
}

/* Années BUT */
.lp-btn--year:not(.is-active) {
  color: rgba(255, 255, 255, 0.38);
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.03);
}

.lp-btn--year:not(.is-active):hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: none;
}

.lp-btn--year.is-active {
  background: #fff;
  border-color: #fff;
  color: #000;
  box-shadow: none;
}

.lp-btn--year.is-active:hover {
  background: #fff;
  border-color: #fff;
  color: #000;
  box-shadow: none;
}

.lp-btn--skill[data-skill="comprendre"] {
  color: var(--lp-skill-comprendre);
  border-color: rgb(var(--lp-skill-comprendre-rgb) / 0.65);
  background: rgb(var(--lp-skill-comprendre-rgb) / 0.06);
}

.lp-btn--skill[data-skill="concevoir"] {
  color: var(--lp-skill-concevoir);
  border-color: rgb(var(--lp-skill-concevoir-rgb) / 0.65);
  background: rgb(var(--lp-skill-concevoir-rgb) / 0.06);
}

.lp-btn--skill[data-skill="developper"] {
  color: var(--lp-skill-developper);
  border-color: rgb(var(--lp-skill-developper-rgb) / 0.65);
  background: rgb(var(--lp-skill-developper-rgb) / 0.06);
}

.lp-btn--skill[data-skill="entreprendre"] {
  color: var(--lp-skill-entreprendre);
  border-color: rgb(var(--lp-skill-entreprendre-rgb) / 0.65);
  background: rgb(var(--lp-skill-entreprendre-rgb) / 0.06);
}

.lp-btn--skill[data-skill="exprimer"] {
  color: var(--lp-skill-exprimer);
  border-color: rgb(var(--lp-skill-exprimer-rgb) / 0.65);
  background: rgb(var(--lp-skill-exprimer-rgb) / 0.06);
}

.lp-btn--skill[data-skill="tout"] {
  color: rgba(255, 255, 255, 0.85);
  border-color: rgba(255, 255, 255, 0.55);
}

.lp-btn--skill[data-skill="comprendre"]:not(.is-active):hover {
  background: rgb(var(--lp-skill-comprendre-rgb) / 0.14);
  box-shadow: none;
}

.lp-btn--skill[data-skill="concevoir"]:not(.is-active):hover {
  background: rgb(var(--lp-skill-concevoir-rgb) / 0.14);
  box-shadow: none;
}

.lp-btn--skill[data-skill="developper"]:not(.is-active):hover {
  background: rgb(var(--lp-skill-developper-rgb) / 0.14);
  box-shadow: none;
}

.lp-btn--skill[data-skill="entreprendre"]:not(.is-active):hover {
  background: rgb(var(--lp-skill-entreprendre-rgb) / 0.14);
  box-shadow: none;
}

.lp-btn--skill[data-skill="exprimer"]:not(.is-active):hover {
  background: rgb(var(--lp-skill-exprimer-rgb) / 0.14);
  box-shadow: none;
}

.lp-btn--skill[data-skill="tout"].is-active {
  background: #fff;
  border-color: #fff;
  color: #000;
  box-shadow: none;
}

.lp-btn--skill.is-active:not([data-skill="tout"]) {
  color: #000;
}

.lp-btn--skill[data-skill="comprendre"].is-active:not([data-skill="tout"]) {
  background: var(--lp-skill-comprendre);
  border-color: var(--lp-skill-comprendre);
  box-shadow: none;
}

.lp-btn--skill[data-skill="concevoir"].is-active:not([data-skill="tout"]) {
  background: var(--lp-skill-concevoir);
  border-color: var(--lp-skill-concevoir);
  box-shadow: none;
}

.lp-btn--skill[data-skill="developper"].is-active:not([data-skill="tout"]) {
  background: var(--lp-skill-developper);
  border-color: var(--lp-skill-developper);
  box-shadow: none;
}

.lp-btn--skill[data-skill="entreprendre"].is-active:not([data-skill="tout"]) {
  background: var(--lp-skill-entreprendre);
  border-color: var(--lp-skill-entreprendre);
  box-shadow: none;
}

.lp-btn--skill[data-skill="exprimer"].is-active:not([data-skill="tout"]) {
  background: var(--lp-skill-exprimer);
  border-color: var(--lp-skill-exprimer);
  box-shadow: none;
}

/* ——— Section projets + encadré ——— */
.lp-projects-wrap {
  margin-top: clamp(2rem, 5vw, 3.5rem);
  padding-bottom: clamp(3rem, 6vw, 4.5rem);
}

.lp-projects-head {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1.25rem);
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  padding: clamp(0.85rem, 2vw, 1.15rem) clamp(1.25rem, 4vw, 3rem);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-left: none;
  border-right: none;
  margin-bottom: 0;
  box-sizing: border-box;
}

.lp-projects-head__title {
  justify-self: start;
  font-family: var(--lp-font-btn);
  font-size: clamp(1.15rem, 2.1vw, 1.55rem);
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
}

.lp-projects-head__but {
  justify-self: center;
  font-family: var(--lp-font-btn);
  font-size: clamp(1.05rem, 1.95vw, 1.45rem);
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  text-transform: lowercase;
}

.lp-projects-head__but--mmi {
  text-transform: none;
}

.lp-projects-head__dates {
  justify-self: end;
  font-family: var(--lp-font-btn);
  font-size: clamp(1.05rem, 1.95vw, 1.45rem);
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  text-transform: lowercase;
}

/* ——— Grille projets ——— */
.lp-projects {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 3.5vw, 2.75rem);
  padding: 0;
}

.lp-project {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.lp-project.is-hidden {
  display: none;
}

.lp-project__link {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  color: inherit;
  text-decoration: none;
}

.lp-project__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #111;
}

.lp-project__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease, filter 0.25s ease;
}

.lp-project__link:hover .lp-project__media img {
  transform: scale(1.04);
  filter: brightness(1.06);
}

.lp-project__title {
  margin: 0;
  font-family: var(--lp-font-body);
  font-size: clamp(0.92rem, 1.3vw, 1.02rem);
  font-weight: 600;
  line-height: 1.35;
  color: #fff;
}

.lp-project__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lp-project__tag {
  font-family: var(--lp-font-btn);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.22rem 0.5rem;
  border-radius: 4px;
  border: 1px solid currentColor;
}

.lp-project__tag--comprendre { color: var(--lp-skill-comprendre); }
.lp-project__tag--concevoir { color: var(--lp-skill-concevoir); }
.lp-project__tag--developper { color: var(--lp-skill-developper); }
.lp-project__tag--entreprendre { color: var(--lp-skill-entreprendre); }
.lp-project__tag--exprimer { color: var(--lp-skill-exprimer); }

.lp-project__tag--but {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.85);
  background: transparent;
}

.lp-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 2rem 1rem;
  text-align: center;
  font-family: var(--lp-font-body);
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.55);
}

.lp-empty[hidden] {
  display: none;
}

@media (max-width: 960px) {
  .lp-filters {
    flex-direction: column;
    align-items: flex-start;
  }

  .lp-filter-block--year,
  .lp-filter-block--skills {
    width: 100%;
  }

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

@media (max-width: 820px) {
  .lp-intro {
    min-height: calc(100vh - clamp(4.5rem, 8vh, 5.5rem) - var(--lp-intro-bottom-gap));
    min-height: calc(100dvh - clamp(4.5rem, 8vh, 5.5rem) - var(--lp-intro-bottom-gap));
  }

  .lp-hero {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    min-height: 0;
    flex: 0 1 auto;
  }

  .lp-hero__divider {
    width: 100%;
    height: 1px;
    min-height: 0;
  }

  .lp-hero__skills {
    justify-content: flex-start;
  }

  .lp-hero__year-visual {
    width: min(100%, 420px);
  }
}

@media (max-width: 520px) {
  .lp-main {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .lp-btn {
    padding: 0.5rem 0.85rem;
  }

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

  .lp-projects-head {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .lp-projects-head__title,
  .lp-projects-head__but,
  .lp-projects-head__dates {
    justify-self: center;
  }
}


/* Filtres sous le titre « Les projets » */
.lp-filters--projects {
  flex-direction: column;
  align-items: stretch;
  margin: clamp(2.25rem, 5vw, 3.75rem) 0 clamp(2.5rem, 5.5vw, 4rem);
  gap: clamp(1.75rem, 4vw, 3.25rem);
}

.lp-filters__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2rem);
  width: 100%;
}

.lp-filters__portfolio {
  margin-left: auto;
  position: static;
  transform: none;
}

.lp-filters__portfolio .portfolio-filter__label {
  font-size: clamp(0.8rem, 1.05vw, 0.92rem);
  color: #fff;
}

.lp-filters__portfolio .portfolio-filter__btn {
  font-size: clamp(0.85rem, 1.1vw, 1rem);
  padding: 0.65rem 1.25rem;
}

.lp-filters--projects .lp-filter-block {
  gap: clamp(0.75rem, 1.4vw, 1.1rem);
}

.lp-filters--projects .lp-filter-block__btns {
  gap: clamp(0.5rem, 1vw, 0.75rem);
}

.page-one-page .lp-projects-wrap .lp-filters--projects {
  margin-top: clamp(2.25rem, 5vw, 3.75rem);
}

.page-one-page .lp-projects-wrap .lp-projects {
  margin-top: clamp(0.5rem, 1.5vw, 1rem);
}
