
@font-face {
  font-family: "inclusive-reg";
  font-weight: 100;
  src: url('../font/InclusiveSans-Regular.ttf') format('truetype');
}

@font-face {
  font-family: "inclusive-it";
  font-weight: 100;
  font-style: italic;
  src: url('../font/InclusiveSans-Italic.ttf') format('truetype');
}

h1, h2, h3, h4, h5, h6 {
  font-weight: normal;
}

a{
color: black;    
  text-decoration: none; 
}

a:hover,
a img:hover,
button:hover {
  cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' height='32' width='32'><text y='24' font-size='24' fill='%2339FF14'>❥</text></svg>") 16 16, auto;
  color: #39FF14;
}


body{
margin-top:0px;
font-family:"inclusive-reg"; 
height: 100%;
}

.titre {
  display: flex;
  justify-content: space-between;
  align-items: center; 
  margin: inherit;  
  padding-left: 20px;
  padding-right: 20px;
  font-size: 0.8rem;
}

.about{
  margin-left: auto;
}

.filters{
  margin: auto;
}

h3{
  margin: auto;
  font-size: 1.2rem;
}

@media (max-width:900px){
  h3{
  display: none;
}
  }


.filters button {
  border: 1px solid black; 
  border-radius: 20px; 
  background-color: white; 
  padding: 5px 15px;
  margin-right: 8px;
  font-size: 0.8rem;
  transition: all 0.2s ease;
}

.filters button:hover {
  background-color: black;
  color: white;
}

@media (max-width:900px){
  .titre {
    display: flex;
    flex-wrap: wrap;           /* la ligne des enfants peut se couper */
    align-items: center;
    padding-left: 0px;
    padding-right: 0px;
  }

  .titre > h2:first-child {     /* ❥ louise sansoldi */
    order: 1;
    flex: 1;
    text-align: left;
  }

  .titre > h2.about {           /* about */
    order: 2;
    flex: 1;
    text-align: right;
  }

  .filters {
    order: 3;
    display: flex;              /* <--- essentiel */
    flex-wrap: nowrap;
    justify-content: center;    /* centre les boutons */
    gap: 2px;                   /* espace entre les boutons */
    width: 100%;
    margin-top: 10px;
  }

  .filters button{
    font-size: 0.8em;
    margin-right: 0px;
  }

  .filters button:nth-child(3) {
    display: none;
  }

  .filters button:hover {
  background-color: #39FF14;
  border : #39FF14;
  color: black;
}
}


/* colonne img */

.contain_images {
  column-count: 4;      /* nombre de colonnes */
  column-gap: 10px;     /* espace entre les colonnes */
  padding: 20px;
}

@media (max-width: 900px) {
  .contain_images {
    column-count: 1 !important;
    padding: 0px;
    padding-top: 20px;
  }
}



.image_item {
  break-inside: avoid;  /* empêche qu’une image se casse entre deux colonnes */
  margin-bottom: 20px;  /* espace vertical entre les images */
}

.image_item img {
  width: 100%;
  display: block;
}

.image_item p {
  text-align: left;
  margin-top: 8px;
  font-size: 0.8rem;
}




/* page par projets */

.project-page {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* .carousel-container {
  flex: 1;
  overflow: auto;
} */

.carousel-container {
  flex: 1;
  overflow-x: auto;
  overflow-y: hidden; /* évite la scroll bar verticale */
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  -ms-overflow-style: none;  /* IE/Edge */
  scrollbar-width: none;     /* Firefox */
}

.carousel-container::-webkit-scrollbar {
  display: none; /* Chrome, Safari */
}

.carousel-container {
  -ms-overflow-style: none;  /* IE et Edge */
  scrollbar-width: none;     /* Firefox */
}



.carousel {
  display: flex;
  gap: 20px;
  height: 100%;
}

.carousel img {
  flex: 0 0 auto;
  height: 100%;
  border-radius: 5px;
  object-fit: cover;
}

.project-infos-content {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.5s ease, opacity 0.5s ease;
  width: 60%;
}

.project-infos-title h1:hover + .project-infos-content,
.project-infos-title h1:focus + .project-infos-content {
  max-height: 200px; /* hauteur ajustable */
  opacity: 1;
}

.project-infos-title h1 {
  cursor: pointer;
  transition: transform 0.3s ease;
}

/* .project-infos-title h1:hover {
  transform: translateY(-50px); 
}  */

.project-infos-animation:hover .project-infos-content {
  max-height: 200px;
  opacity: 1;
}

@media (max-width: 900px) {
  .carousel-container {
    height: 80vh;
    overflow-y: auto;
    overflow-x: hidden;
  }

  .carousel {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .carousel img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 5px;
  }

  .project-infos {
    position: relative;
    width: 100%;
    text-align: center;
    margin-top: 10px;
    padding-bottom: 10px;
  }

  .project-infos-title h1 {
    cursor: pointer;
    transition: transform 0.3s ease;
    margin: 0;
    font-size: 1.5em;
    text-align: left;
  }

  /* le titre bouge uniquement si actif */
  .project-infos-title.active h1 {
    transform: translateY(-50px);
  }

  .project-infos-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    width: 100%;
    text-align: left;
  }

  .project-infos-content.active {
    max-height: 200px; /* ajustable selon la description */
  }
}



/* CV */

.cv{
  padding: 20px;
  width: 60%;
}

h4{
  font-size: 1.5em;
}

span{
  color: #39FF14 !important;
}

.cv a{
  color: #39FF14 !important;
}

@media (max-width: 900px) {
  .cv{
  padding: 0px;
  width: 100%;
}
}


.image-bichromie {
  filter: grayscale(100%) contrast(120%);
  transition: filter 0.3s ease;
}

.image-bichromie:hover {
  filter: none;
}

.coeurvert{
  color: #39FF14 !important; 
}