/*=============== GOOGLE FONTS ===============*/
/* @import url("https://fonts.googleapis.com/css2?family=Bai+Jamjuree:wght@400;500;600;700&display=swap"); */

/*=============== VARIABLES CSS ===============*/
:root {
  --header-height: 3.5rem;
  /*========== Font and typography ==========*/
  /*.5rem = 8px | 1rem = 16px ...*/
  /* --body-font: "Bai Jamjuree", sans-serif; */
  --biggest-font-size: 2.5rem;
  --h1-font-size: 1.75rem;
  --h2-font-size: 1.25rem;
  --h3-font-size: 1.125rem;
  --normal-font-size: .938rem;
  --small-font-size: .813rem;
  --smaller-font-size: .75rem;

  /*========== Font weight ==========*/
  --font-regular: 400;
  --font-medium: 500;
  --font-semi-bold: 600;
  --font-bold: 700;

  /*========== z index ==========*/
  --z-tooltip: 10;
  --z-fixed: 100;
}

/*========== Responsive typography ==========*/
@media screen and (min-width: 1150px) {
  :root {
    --biggest-font-size: 4.5rem;
    --h1-font-size: 3rem;
    --h2-font-size: 1.5rem;
    --h3-font-size: 1.25rem;
    --normal-font-size: 1rem;
    --small-font-size: .875rem;
    --smaller-font-size: .813rem;
  }
}


img {
  display: block;
  max-width: 100%;
  height: auto;
}

/*=============== REUSABLE CSS CLASSES ===============*/
.container {
  max-width: 1120px;
  /* margin-inline: 1.5rem; */
  margin: auto;
}

.flex {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  justify-content: center;
  /* transform: rotate(90deg); */

}

.section {
  padding-block: 4rem 2rem;
}
.section.projects{
  display: block;
  padding-top: 0;
}
.section.works{
    grid-template-columns: none;

}
.section__title-1, 
.section__title-2 {
  position: relative;
  /* font-size: var(--h1-font-size); */
  width: max-content;
  margin: .75rem auto 2rem;
}

.section__title-1 span, 
.section__title-2 span {
  z-index: 5;
  position: relative;
}


.geometric-box {
  position: absolute;
  width: 20px;
  height: 20px;
  background-color: var(--first-color);
  rotate: -30deg;
}

.geometric-box::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border: 3px solid var(--black-color);
  left: -5px;
  top: -5px;
}

.projects{
  transition: background-color .4s;
}

.projects__card{
  padding: 1rem 1rem 2rem;
  transition: all .4s ease;
  border: 2px solid var(--border-color);
  border-right: 2px solid black;
    border-left: 2px solid black;
  width:clamp(250px, 300px, 75vw);
}

.projects__image{
  position: relative;
  margin-bottom: .75rem;
}
.projects__button{
position: absolute;
right: 1rem;
bottom: -1.5rem;
padding: 1rem;
background-color: white;
color: black;
border-bottom: 2px solid black;
}
.projects__content{
  margin-bottom: 1.25rem;
}
.projects__subtitle{
  position: relative;
  display: inline-block;
  font-size: var(--small-font-size);
  font-weight: var(--font-medium);
  color: var(--text-color);
  margin-bottom: .75rem;
  padding-left: 1.75rem;
}
.project__subtitle::after{
  content: '';
  width: 20px;
  height: 1px;
  background-color: var(--text-color);
  position: absolute;
  top: 50%;
  left: 0;
}
.projects__title{
  font-size: var(--h3-font-size);
  margin-bottom: .75rem;
}
.projects__buttons{
  display: flex;
  align-items: center;
  column-gap: 1rem;
}

.projects__link{
  display: flex;
  align-items: center;
  column-gap: .25rem;
  color: var(--text-color);
  font-size: var(--small-font-size);
  font-weight: var(--font-medium);
  transition: color .4s;
}
.projects__link i {
  font-size: 1rem;
  color: var(--title-color);
  transition: color .4s;
}
.projects__link:hover,
.projects__link:hover i{
  color: var(--first-color);
}


.projects__card:hover{
  /* background-color: rgba(255, 255, 255, 0.411); */
  background: white;
  box-shadow: 0 8px 32px hsla(0, 0%, 10%, .1); 
  
}

.projects__card:hover img{
    filter: brightness(1.05) contrast(1.1);
}

a.projects__button
{
color: black;
background: rgba(255, 255, 255, 0.405);
backdrop-filter: blur(7px);
border-right: 1px solid var(--border-color);
}



.projects__card:hover a.projects__button:hover{
  background-color: black;
  color: white;
}




.section__ressources{
  margin-top: calc(var(--header-height) + 20px);
}
