
/*
 Theme Name: Child theme
 Theme URI: https://www.elegantthemes.com/gallery/divi/
 Description: Divi Child Theme
 Author: Emma
 Author URI: https://www.elegantthemes.com/
 Template: Divi
 Version: 1.0.0
/
 
/ =Theme customization starts here
------------------------------------------------------- 
*//* ======================================================= */
/*          STRUCTURE DU PORTFOLIO (COLONNES)              */
/* ======================================================= */

/* Conteneur principal en Flexbox pour créer les colonnes */
.portfolio-container {
  display: flex;
  flex-wrap: wrap; 
  gap: 20px; 
}

/* Colonne des projets (prend la majorité de l'espace) */
.projets-column {
  flex: 1; 
  min-width: 70%;
}

/* Colonne des filtres (sur la droite, en position fixe) */
.filtres-column {
  flex: 1;
  min-width: 10%;
  top: 45%;
  right: 1%;
  position: fixed;
  text-align: right;
}


/* ======================================================= */
/*          STYLES DES ÉLÉMENTS DU PORTFOLIO               */
/* ======================================================= */

/* --- Conteneur du hover (gauche) --- */
#projets-hover-simple {
  position: relative;
  min-height: 600px;
}

/* --- Style de la liste des projets (gauche) --- */
.liste-projets a {
  display: block; 
  padding: 50px 10px;
  font-family: "Climate Crisis", sans-serif;
  font-weight: 400;
  font-size : 60px;
  font-variation-settings: "YEAR" 1979;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  display: inline-block;
  cursor: pointer;
  color:white;
}

/* Effet de la ligne au survol sur les titres de projet */
.liste-projets a::after {
  content: '';
  position: absolute;
  left: 0;
  top: 45%; 
  width: 0;
  height: 10px;
  background-color: #ffffff;
  transition: width 0.5s ease-out;
}

.liste-projets a:hover::after {
  width: 100%;
}

/* --- Style des filtres (droite) --- */
.filtres-column a.filtre-link {
  display: block;
  color: #aaaaaa;
  font-family: Archivo Black;
  line-height:0.8em;
  font-size: 16px;
  text-decoration: none; /* On s'assure qu'il n'y a pas de barre par défaut */
  padding: 8px 0;
  transition: color 0.3s ease;
}

/* Au survol, le filtre devient blanc et est barré */
.filtres-column a.filtre-link:hover {
  color: #ffffff;
  text-decoration: line-through;
}

/* Le filtre ACTIF reste blanc, devient gras et reste barré */
.filtres-column a.filtre-actif {
  color: #ffffff;
  font-weight: bold;
  text-decoration: line-through;
}

/* --- Style des images qui apparaissent au survol --- */
.images-projets img {
  position: fixed;
  top: 55%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: auto;
  max-height: 80%;
  z-index: -99;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}
/* ======================================================= */
/*          STYLES PAGES PROJETS            */
/* ======================================================= */

@media only screen and (max-width: 980px) {
  .liste-projets a {
    font-size : 25px;
    line-height: 1em;
    height: 10px;
  }
  .liste-projets{
    flex-wrap: inherit;
  }
   .liste-projets a:hover {
    color:grey;
  }
  .filtres-column{
    visibility : hidden;
  }
  .images-projets img {
  position: absolute;
  width: auto;
  max-height: 80%;
  z-index: 0;
  visibility:visible;
  }
}