* {
  --dblue: #010031;
  --lightcolor: white;
  --font-sans: "Fustat";
  --font-mono: "DM Mono";
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  overflow-x: hidden;
  padding-bottom: 64px;
}




/*style général*/

.header {
  background: var(--dblue);
  color: var(--lightcolor);
  display: flex;
  position: fixed;
  padding-top: 8px;
  z-index: 5;
  width: 100%;
  border-bottom: 1px var(--lightcolor) solid;
}

.header a {
  align-items: left;
  color: var(--lightcolor);
  text-decoration: none;
}

#nameofpage {
  width: max-content;
  background-color: var(--lightcolor);
  color: var(--dblue);
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(64px, 15vw, 128px);
  margin-top: 32px;
  padding: 0 32px;
}


.btn {
  text-decoration: none;
  position: relative;
  color: var(--lightcolor);
  transition: all 200ms ease;
  z-index: 1;
}

.btn::after {
  content: '';
  position: absolute;
  background: var(--lightcolor);
  align-items: center;
  z-index: -1;
  left: -4px;
  right: -4px;
  top: 0;
  bottom: 0;
  transform-origin: left;
  transform: scaleX(0);
  transition: all 200ms ease;
}

.btn:hover {
  color: var(--dblue);
  cursor: pointer;
}

.btn:hover::after {
  transform: scaleX(1);
}

.btn.active {
  color: var(--dblue);
  cursor: pointer;
}

.btn.active::after {
  transform: scaleX(1);
}


.on_page {
  color: var(--dblue);
  position: relative;
}

.on_page::before {
  content: '';
  position: absolute;
  background: var(--lightcolor);
  align-items: center;
  z-index: -1;
  left: -4px;
  right: -4px;
  top: 0;
  bottom: 0;
}


a {
  text-decoration: none;
}


/*style index*/

body {
  background: var(--dblue);
}

#myname {
  font-family: var(--font-sans);
  font-weight: 900;
  font-size: clamp(64px, 15vw, 128px);
  color: var(--dblue);
  display: block;
  line-height: 95%;
  max-width: 100%;

}

#jean {
  background: var(--lightcolor);
  width: fit-content;
  padding: 0 0.125em;
  position: absolute;
  left: 0.25em;
  bottom: 1.125em;
  color: var(--dblue);
  height: max-content;
  padding-top: 0.0625em;
}

#bucher {
  background: var(--lightcolor);
  width: fit-content;
  padding: 0 0.125em;
  position: absolute;
  left: 1em;
  bottom: 0.25em;
  padding-top: 0.0625em;
  color: var(--dblue);
}




#menu {
  font-family: var(--font-mono);
  font-size: large;
  position: absolute;
  bottom: 176px;
  left: 400px;
  background: var(--dblue);
  padding: 8px;
}

#job {
  font-family: var(--font-mono);
  font-size: clamp(12px, 2.2vw, 20px);
  color: var(--lightcolor);
  position: absolute;
  bottom: 280px;
  left: 32px;
  background: var(--dblue);
  padding: 8px;
  width: fit-content;
  max-width: (100vw - 64px);
}

#main_video, 
#video_phone {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

#video_phone{
  display: none;
}

.btn_in {
  text-decoration: none;
  position: relative;
  color: var(--lightcolor);
  transition: all 200ms ease;
  z-index: 1;
}

.btn_in:hover {
  color: var(--dblue);
  cursor: pointer;
}

.btn_in::before {
  content: '';
  position: absolute;
  background: var(--lightcolor);
  align-items: center;
  z-index: -1;
  left: -4px;
  right: -4px;
  top: 0;
  bottom: 0;
  transform-origin: left;
  transform: scaleX(0);
  transition: all 200ms ease;
}

.btn_in:hover::before {
  transform: scaleX(1);
}

.bar {
  width: 100%;
  background-color: red;
  height: 16px;
  margin: 32px;
  position: absolute;
  left: 0;
  bottom: 0;
  display: none;
}



/*style contact*/



#logo {
  background-color: var(--lightcolor);
  color: var(--dblue);
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: clamp(32px, 6vw, 64px);
  margin: 16px;
  padding-left: 8px;
  padding-right: 8px;
  padding-top: 8px;
}

#logo a {
  color: var(--dblue);
  text-decoration: none;
}

.toptext {
  font-family: var(--font-mono);
  font-size: clamp(14px, 2vw, 18px);
  padding: 32px;
}



#contacttext1 {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: clamp(18px, 2.6vw, 24px);
  color: var(--lightcolor);
  margin: 32px;
  margin-top: clamp(80px, 10vh, 128px);
}

#contactinfos {
  font-family: var(--font-mono);
  font-size: clamp(16px, 2vw, 18px);
  color: var(--lightcolor);
  margin: 32px;
  margin-top: 48px;
}

#contactinfos a {
  color: var(--lightcolor);
  text-decoration: none;
  transition: all 200ms ease;
}

#contactinfos a:hover {
  color: var(--dblue);
  text-decoration: none;
}

.footer {
  background: var(--dblue);
  position: fixed;
  bottom: 0px;
  color: var(--lightcolor);
  font-family: var(--font-mono);
  display: flex;
  padding: 32px;
  gap: clamp(32px, 5vw, 48px);
  padding-top: 16px;
  border-top: 1px var(--lightcolor) solid;
  width: 100%;
  font-size: clamp(12px, 2vw, 16px);
  z-index: 5;
}

.footer a {
  color: var(--lightcolor);
  text-decoration: none;
  font-size: clamp(12px, 2vw, 16px);
}


/*style about me*/

#aboutmetext1 {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: clamp(22px, 2vw, 28px);
  color: var(--lightcolor);
  margin-left: 32px;
  margin-top: 88px;
  max-width: calc(100vw - 64px);
}


#aboutmetext2 {
  max-width: 1000px;
  font-family: var(--font-sans);
  font-size: clamp(18px, 2vw, 22px);
  color: var(--lightcolor);
  margin: 32px;
  margin-top: 48px;
}


#am_comp{
  margin-top: 32px;
}

#am_comp>h4{
  font-size: clamp(18px, 2vw, 22px);
}

#am_c_tool{
  font-style: italic;
  font-weight: 100;
}



#expériences {
  width: calc(100vw - 64px);
  color: var(--lightcolor);
  margin: 32px;
  font-family: var(--font-sans);
}

#exptitle {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: clamp(22px, 2.6vw, 28px);
}

.dateexp {
  font-family: var(--font-mono);
  font-size: clamp(16px, 2vw, 18px);
  font-weight: 300;
}

.nameexp {
  font-family: var(--font-mono);
  font-size: clamp(16px, 2vw, 18px);
}

.detailsexp {
  font-weight: 400;
  font-size: clamp(16px, 2vw, 18px);
}

.competencesexp {
  font-style: italic;
}

#cv {
  display: flex;
  max-width: 60vw;
}

#oneexp {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 32px;
}

#co_p5script>canvas{
  position: fixed;
  top: 200px;
  right: 32px;
}


#am_p5script {
  position: relative;
  display: block;
  top: 256px;
  height: 100%;
  z-index: 2;
  font-family: 'DM Mono';
  font-size: 16px;
  color: var(--lightcolor);
  background-color: var(--dblue);
  padding-right: 32px;
}

#am_p5script>canvas{
  position: relative;
  margin-bottom: 144px;
}


#am_page{
  display: flex;
}



/* style projects page */


#pr_page {
  display: flex;
  margin: 32px;
  margin-bottom: 0;
  align-items: start;
  gap: 64px;
}

#filter_sect {
  position: sticky;
  padding: 16px;
  top: 192px;
  color: var(--lightcolor);
  font-family: var(--font-sans);
  font-size: xx-large;
  font-weight: 500;
  width: 30rem;
  border-left: var(--lightcolor) 2px solid;
}

#filter_name {
  white-space: nowrap;
  width: max-content;
}

#filter_sect button {
  background: none;
  border: none;
  text-align: left;
  font-size: x-large;
  font-weight: 300;
  transform: translateX(0);
  transition: all 200ms ease;
}

#filter_sect button:hover {
  transform: translateX(16px);
  font-weight: 600;
}

#filter_sect button.active {
  transform: translateX(16px);
  font-weight: 600;
}

.project_list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  gap: 32px;
  row-gap: clamp(24px, 2.42vw, 32px);
  width: 100%;
}


.one_project {
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;

  align-content: flex-start;
  width: 100%;



  color: var(--lightcolor);
  gap: clamp(8px, 0.75vw, 16px);

  transform: scale(1);
  transition: all 200ms ease;
  flex-grow: 0;
}

.one_project.hide {
  display: flex;
  align-content: flex-start;
  width: 100%;

  transform: scale(1);
  transition: all 200ms ease;
  opacity: 0.2;
}

#experimentations{
  background-color: var(--lightcolor);
  color: var(--dblue);
  padding: 16px;
}

#wavy_anim span{
  display: inline-block;
  animation: wave 2s ease-in-out infinite;
}

#wavy_anim span:nth-child(1) {
  animation-delay: -3s;
}
#wavy_anim span:nth-child(2) {
  animation-delay: -2.8s;
}
#wavy_anim span:nth-child(3) {
  animation-delay: -2.6s;
}
#wavy_anim span:nth-child(4) {
  animation-delay: -2.4s;
}
#wavy_anim span:nth-child(5) {
  animation-delay: -2.2s;
}
#wavy_anim span:nth-child(6){
  animation-delay: -2s;
}
#wavy_anim span:nth-child(7){
  animation-delay: -1.8s;
}
#wavy_anim span:nth-child(8){
  animation-delay: -1.6s;
}
#wavy_anim span:nth-child(9){
  animation-delay: -1.4s;
}
#wavy_anim span:nth-child(10){
  animation-delay: -1.2s;
}
#wavy_anim span:nth-child(11){
  animation-delay: -1s;
}
#wavy_anim span:nth-child(12){
  animation-delay: -0.8s;
}
#wavy_anim span:nth-child(13){
  animation-delay: -0.6s;
}
#wavy_anim span:nth-child(14){
  animation-delay: -0.4s;
}
#wavy_anim span:nth-child(15){
  animation-delay: -0.2s;
}
#wavy_anim span:nth-child(16){
  animation-delay: 0s;
}

@keyframes wave {
  0%, 100%{
    transform: translateY(4px);
  }
  50%{
    transform: translateY(-4px);
  }
}

#pr_name>#wavy_anim{
  font-size: clamp(48px, 6.85vw, 96px);
  padding: 8px;
}







.project_name {
  font-family: var(--font-mono);
  font-size: clamp(18px, 2.42vw, 32px);
  font-weight: 500;
  position: relative;
  transition: all 200ms ease;
  width: fit-content;
}

.project_name::before {
  content: '';
  position: absolute;
  background: var(--lightcolor);
  align-items: center;
  z-index: -1;
  left: -4px;
  right: -4px;
  top: 0;
  bottom: 0;
  transform-origin: left;
  transform: scaleX(0);
  transition: all 200ms ease;
}

.one_project:hover {
  .project_name {
    color: var(--dblue);
  }

  .project_name::before {
    transform: scaleX(1);
  }

  cursor: pointer;
  transform: scale(1.02);
}

.prp_img {
  width: 100%;
  height: 340px;
  object-fit: cover;
}

#project_filter {
  font-family: var(--font-mono);
  font-size: clamp(10px, 1.36vw, 18px);
  letter-spacing: -1px;
}

.project_explain {
  font-family: var(--font-sans);
  font-size: clamp(10px, 1.36vw, 18px);
}


.project_collab {
  font-family: var(--font-sans);
  font-style: italic;
  font-weight: 200;
}



/* style pr page*/




#nameofpage_pr {
  width: fit-content;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: clamp(32px, 3.42vw, 48px);
  margin-top: 32px;
  padding-left: 32px;
}

.btn_pr {
  text-decoration: none;
  position: relative;
  color: var(--lightcolor);
  transition: all 200ms ease;
  transform: translateX(0);
}

.btn_pr a {
  text-decoration: none;
  color: var(--lightcolor);
  transition: all 200ms ease;
}


.btn_pr::after {
  content: '';
  position: absolute;
  background: var(--lightcolor);
  align-items: center;
  z-index: -1;
  left: -48px;
  right: -12px;
  top: 0;
  bottom: 0;
  transform-origin: left;
  transform: scaleX(0);
  transition: all 200ms ease;
}



.btn_pr::before {
  position: absolute;
  content: '';
  display: inline-block;
  background-image: url(../medias/arrow_back.png);
  background-size: contain;
  background-repeat: no-repeat;
  z-index: 2;
  opacity: 0;
  transition: all 200ms ease;
  left: -24px;
  top: 4px;
  width: clamp(32px, 3.42vw, 48px);
  height: clamp(32px, 3.42vw, 48px);
}

.btn_pr:hover {
  color: var(--dblue);
  cursor: pointer;
  transform: translateX(48px);
}

.btn_pr:hover a {
  text-decoration: none;
  color: var(--dblue);
}

.btn_pr:hover::after {
  transform: scaleX(1);
}

.btn_pr:hover::before {
  opacity: 1;
}

#pr_titlebar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 32px;
}

#pr_name {
  width: fit-content;
  max-width: 90vw;
  background-color: var(--lightcolor);
  color: var(--dblue);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: clamp(40px, 6.85vw, 96px);
  margin-top: clamp(16px, 2.28vw, 32px);
  padding-left: 32px;
  padding-right: 32px;
}

#pr_infos {
  color: var(--lightcolor);
  font-family: var(--font-mono);
  margin-top: 32px;
  margin-left: 32px;
  font-size: clamp(12px, 1.6vw, 20px);
  height: max-content;
}

#pr_class {
  font-weight: 600;
  margin-bottom: 2px;
}

#pr_collab {
  font-style: italic;
  font-weight: 100;
  font-size: clamp(12px, 1.3vw, 16px);
  margin-top: 4px;
}

.pr_short {
  font-family: var(--font-sans);
  color: var(--lightcolor);
  font-size: clamp(16px, 2vw, 24px);
  margin-top: 32px;
  margin-left: 32px;
  margin-right: 32px;
  max-width: 1200px ;
}

#pr_mainpic {
  height: 400px;
  width: 100%;
  margin-top: 32px;
  margin-bottom: 32px;
  object-fit: cover;
}


#pr_texts {
  display: flex;
  margin: 32px;
  margin-top: 64px;
  gap: 64px;
  max-width: 100%;
}



#pr_textblockp1 {
  width: 100%;
}

#pr_imgblockp1 {
  display: flex;
  gap: 32px;
  width: 100%;
}

#noflex{
  display: flex;
  flex-direction: column;
  font-family: 'DM Mono';
  color: var(--lightcolor);
  width: 100%;
}

#noflex>iframe{
  width: 100%;
  aspect-ratio: 16 / 9  ;
}


h1 {
  color: var(--lightcolor);
  font-family: var(--font-sans);
}

.pr_text {
  color: var(--lightcolor);
  font-family: var(--font-sans);
  font-size: clamp(16px, 1.6vw, 20px);
  line-height: 130%;
}

#pr_link {
  font-size: 24px;
}

#pr_oneimg {
  width: 100%;
  object-fit: cover;
}

#pr_images {
  margin: 32px;
  margin-top: 128px;
}

#carousel {
  display: flex;
  gap: 32px;
}

#carousel #pr_oneimg{
  max-height: 600px;
}

#pr_video {
  margin: 32px;
}

#pr_video iframe {
  width: 40vw;
}

#first{
  margin-top: 0;
}



/* expérimentations */

#ex_textblockp1 {
  max-width: 1500px;
}

#ex_list{
  display: grid;
  grid-template-columns: minmax(400px, 1fr) minmax(400px, 1fr) ;
  color: var(--lightcolor);
  font-family: 'Fustat';
  font-size: clamp(16px, 1.6vw, 20px);
  gap: 32px;
  padding-top: 64px;
}

#one_ex{
  display: flex;
  flex-direction: column;
  gap: 32px;
}

#one_ex>h3{
  font-size: 24px;
  font-weight: 500;
  font-family: 'DM Mono';
  margin: 0 0;
}

#one_ex>iframe{
  aspect-ratio: 16 / 9;
  margin-top: 32px;
  margin-top: auto;
}


#non_mobile{
  display: none;
}


@media (max-width:700px){
  #non_mobile{
    display: block;
  }

  #text_not_mobile{
    display: none;
  }
  
  #p5_list{
    display: none;
  }
}




















/* MEDIA - PHONE VERSION*/


/* general */

.bar1h {
  position: relative;
  width: 24px;
  height: 4px;
  background-color: var(--dblue);
  display: none;
  transform: rotate(0);
  top: 0;
  transition: all 200ms ease;
}

.bar1h.anim {
  position: relative;
  width: 24px;
  height: 4px;
  background-color: var(--dblue);
  display: block;
  transform: rotate(45deg);
  top: 8px;
}


.bar2h {
  position: relative;
  width: 24px;
  height: 4px;
  background-color: var(--dblue);
  display: none;
  transition: all 200ms ease;
  opacity: 1;
}

.bar2h.anim {
  position: relative;
  width: 24px;
  height: 4px;
  background-color: var(--dblue);
  display: block;
  opacity: 0;
}

.bar3h {
  position: relative;
  width: 24px;
  height: 4px;
  background-color: var(--dblue);
  display: none;
  transition: all 200ms ease;
  bottom: 0;
}

.bar3h.anim {
  position: relative;
  width: 24px;
  height: 4px;
  background-color: var(--dblue);
  display: block;
  transform: rotate(-45deg);
  bottom: 8px;
}

.baricon_h {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 30%;
  gap: 4px;
}

#phone_headermenu {
  display: none;
}

.phone_links {
  display: none;
}

@media (max-width:900px) {

  .header {
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: all 200ms ease;
    height: fit-content;
  }

  .header.anim {
    height: 100%;
  }

  .phone_links {
    display: none;
    color: var(--lightcolor);
    font-family: var(--font-mono);
    margin-top: 64px;
    flex-direction: column;
    gap: 32px;
    font-size: 48px;
    width: fit-content;
  }

  .phone_links.anim {
    display: flex;
  }

  #pl_1 {
    display: none;
  }

  #pl_1.anim {
    display: flex;
  }

  #pl_2 {
    display: none;
  }

  #pl_2.anim {
    display: flex;
  }

  #pl_3 {
    display: none;
  }

  #pl_3.anim {
    display: flex;
  }

  #logo {
    width: fit-content;
  }

  .toptext {
    padding: 0;
    margin-left: 16px;
    margin-bottom: 16px;
  }

  #menuheader {
    display: none;
  }

  #phone_headermenu {
    display: block;
    color: var(--lightcolor);
    background-color: var(--lightcolor);
    position: absolute;
    top: 22px;
    right: 16px;
    width: 50px;
    height: 50px;
  }

  .bar1h {
    display: block;
  }

  .bar2h {
    display: block;
  }

  .bar3h {
    display: block;
  }

  .footer {
    padding-bottom: 16px;
    display: block;
  }

  .footerleft {
    display: none;
    ;
  }

}


/* index */

.burgerbtn {
  background-color: var(--lightcolor);
  height: 64px;
  margin: 32px;
  position: absolute;
  left: 0;
  bottom: 0;
  right: 0;
  display: none;
}

.burgerbtn:hover {
  cursor: pointer;
}

.bar1 {
  position: relative;
  width: 24px;
  height: 4px;
  background-color: var(--dblue);
  display: none;
  top: -4px;
  transform: rotate(0);
  transition: all 200ms ease;
}

.bar1.anim {
  position: relative;
  width: 24px;
  height: 4px;
  background-color: var(--dblue);
  display: block;
  top: 5px;
  transform: rotate(45deg);
}

.bar2 {
  position: relative;
  width: 24px;
  height: 4px;
  background-color: var(--dblue);
  display: block;
  align-self: center;
  transition: all 200ms ease;
  opacity: 1;
}

.bar2.anim {
  position: relative;
  width: 24px;
  height: 4px;
  background-color: var(--dblue);
  display: block;
  align-items: center;
  align-self: center;
  opacity: 0;
}

.bar3 {
  position: relative;
  width: 24px;
  height: 4px;
  background-color: var(--dblue);
  display: none;
  bottom: -4px;
  transition: all 200ms ease;
}

.bar3.anim {
  position: relative;
  width: 24px;
  height: 4px;
  background-color: var(--dblue);
  display: block;
  align-items: center;
  align-self: center;
  bottom: 5px;
  transform: rotate(-45deg);
}

.phone_menu {
  display: flex;
  flex-direction: column;
  position: absolute;
  text-decoration: none;
  color: var(--dblue);
  background-color: var(--lightcolor);
  font-family: var(--font-mono);
  left: 32px;
  bottom: 120px;
  font-size: clamp(24px, 1vw, 32px);
}

.phone_menu a {
  color: var(--dblue);
}

#pml1 {
  position: relative;
  color: var(--dblue);
  background-color: var(--lightcolor);
  display: none;
  margin: 16px;
  margin-top: clamp(4px, 1vw, 8px);
  margin-bottom: clamp(4px, 1vw, 8px);
}

#pml2 {
  position: relative;
  color: var(--dblue);
  background-color: var(--lightcolor);
  display: none;
  margin: 16px;
  margin-top: clamp(4px, 1vw, 8px);
  margin-bottom: clamp(4px, 1vw, 8px);
}

#pml3 {
  position: relative;
  color: var(--dblue);
  background-color: var(--lightcolor);
  display: none;
  margin: 16px;
  margin-top: clamp(4px, 1vw, 8px);
  margin-bottom: clamp(4px, 1vw, 8px);
}

.baricon {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1px;
  left: 32px;
}





@media (max-width:900px) {

  #menu {
    display: none;
  }

  .burgerbtn {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 1px;
  }

  .bar1 {
    display: block;
  }

  .bar2 {
    display: block;
  }

  .bar3 {
    display: block;
  }

  .menutxt {
    font-family: var(--font-mono);
    font-size: larger;
    color: var(--dblue);
    position: relative;
    left: 64px;
    user-select: none;
  }

  #jean {
    bottom: calc(1.125em + 96px);
    left: 32px;
  }

  #bucher {
    bottom: calc(0.25em + 96px);
  }


  #job {
    font-family: var(--font-mono);
    color: var(--lightcolor);
    position: absolute;
    bottom: calc(2.125 * clamp(64px, 15vw, 128px) + 104px);
    left: 32px;
    background: var(--dblue);
    padding: 8px;
    max-width: calc(100vw - 64px);
  }

  #phone_menu {
    background-color: var(--lightcolor);
    color: var(--dblue);
  }

  #main_video{
    display: none;
  }

  #video_phone{
    display: block;
  }

}






/* projects */

.burgerbtn_filter {
  width: 100%;
  background-color: var(--lightcolor);
  display: none;
  width: 100%;
  height: 64px;

}

.bar1f {
  position: relative;
  width: 24px;
  height: 4px;
  background-color: var(--dblue);
  display: none;
  top: -4px;
  transform: rotate(0);
  transition: all 200ms ease;
}

.bar1f.anim {
  position: relative;
  width: 24px;
  height: 4px;
  background-color: var(--dblue);
  display: block;
  top: 4px;
  transform: rotate(45deg);
}

.bar2f {
  position: relative;
  width: 24px;
  height: 4px;
  background-color: var(--dblue);
  display: block;
  align-self: center;
  transition: all 200ms ease;
  opacity: 1;
}

.bar2f.anim {
  position: relative;
  width: 24px;
  height: 4px;
  background-color: var(--dblue);
  display: block;
  align-items: center;
  align-self: center;
  opacity: 0;
}

.bar3f {
  position: relative;
  width: 24px;
  height: 4px;
  background-color: var(--dblue);
  display: none;
  bottom: -4px;
  transition: all 200ms ease;
}

.bar3f.anim {
  position: relative;
  width: 24px;
  height: 4px;
  background-color: var(--dblue);
  display: block;
  align-items: center;
  align-self: center;
  bottom: 4px;
  transform: rotate(-45deg);
}

.filtermbg {
  display: none;
  overflow: hidden;
}

.filter_name {
  position: relative;
  color: var(--lightcolor);
  transition: all 200ms ease;
  z-index: 1;
}

.filter_name::after {
  content: '';
  position: absolute;
  background: var(--lightcolor);
  z-index: -1;
  left: -4px;
  right: -4px;
  top: 0;
  bottom: 0;
  transform-origin: left;
  transform: scaleX(0);
  transition: all 200ms ease;
}

.filter_name:hover,
.filter_name.active {
  color: var(--dblue);
  cursor: pointer;
}

.filter_name:hover::after,
.filter_name.active::after {
  transform: scaleX(1);
}

@media (max-width:900px) {

  .project_explain {
    display: none;
  }



  .prp_img {
    height: 100px;
    width: 100%;
    object-fit: cover;
  }

  #filter_sect {
    display: none;
  }

  #filter_sect.anim {
    display: block;
    position: fixed;
    top: 26.5%;
    left: 0;
    z-index: 4;
    width: 100%;
    height: 512px;
    overflow-y: auto;
    box-sizing: border-box;
    background: var(--dblue);
    border-left: none;
  }

  .burgerbtn_filter {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0px;
    position: sticky;
    top: 20vh;
    z-index: 4;
  }

  .filtermbg {
    display: block;
    width: 100%;
    background-color: var(--dblue);
    z-index: 3;
    position: sticky;
    top: calc(20% + 62px);
    height: 0;
    transform-origin: top;
    transform: scaleY(0);
    transition: transform 200ms ease, height 200ms ease;
    border-bottom: 4px solid var(--lightcolor);
    overflow: hidden;
    padding: 0 16px;
    box-sizing: border-box;
    color: var(--lightcolor);
    font-family: var(--font-sans);
    font-size: xx-large;
    font-weight: 500;
  }

  .filtermbg.anim {
    transform: scaleY(1);
    height: clamp(325px, 60vw, 450px);
  }

  .filtermbg>* {
    opacity: 0;
    transition: opacity 500ms ease;
  }

  .filtermbg.anim>* {
    opacity: 1;
    transition-delay: 0ms;
  }

  #filter_sect_mobile {
    margin-top: 64px;
  }

  #filter_sect_mobile .filter_name {
    background: none;
    border: none;
    text-align: left;
    color: var(--lightcolor);
    font-size: clamp(24px, 5vw, 32px);
    font-weight: 300;
    white-space: normal;
    width: fit-content;
    max-width: 100%;
    box-sizing: border-box;
    display: block;
    height: max-content;

    transition: all 200ms ease;
    transform: translateX(0px);
  }

  #filter_sect_mobile .filter_name.active {
    font-weight: 600;
    color: var(--dblue);
    transform: translateX(16px);

  }

  #filter_sect_mobile .filter_name:hover {
    font-weight: 600;
    color: var(--dblue);
    transform: translateX(16px);
  }





  .baricon_f {
    margin: 24px;
  }

  .bar1f {
    display: block;
  }

  .bar2f {
    display: block;
  }

  .bar3f {
    display: block;
  }

  .filtertxt {
    font-family: var(--font-mono);
    font-size: 16px;
    color: var(--dblue);
    position: relative;
    user-select: none;
  }


  #pr_page {
    display: block;
  }



  .project_list {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    margin-top: 32px;
  }


}


/* about me */

@media (max-width:900px) {
  #cv {
    display: flex;
    flex-direction: column;
    width: 100%;
  }
}

@media (max-width: 1300px) {
  canvas {
    display: none;
  }

  #am_p5script {
    display: none;
  }

  #cv {
    max-width: 100%;
  }
}



/*project_page*/


@media (max-width: 900px) {
  #pr_titlebar {
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 0;
  }

  #pr_texts {
    flex-direction: column;
    margin-top: 0;
  }

  #pr_imgblockp1 {
    display: flex;
    width: calc(100vw - 64px);
  }

  #carousel {
    flex-wrap: wrap;
  }

  #carousel #pr_oneimg {
    width: calc(50% - 16px);
  }


  #pr_video iframe {
    width: calc(100vw - 64px);
  }


}

@media (max-width: 600px) {
  #carousel {
    flex-direction: column;
  }

  #pr_oneimg {
    width: 100%;
  }

  #carousel #pr_oneimg {
    width: 100%;
  }

}


/* Expérimentations */

@media (max-width: 900px){
  #ex_list{
    display: flex;
    flex-direction: column;
    gap: 32px;
  }
}




