#project-grid {
  display: none;
}

#project-grid.active-grid {
  display: grid;
}


body, html {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

:root{
  --main-color: rgb(0, 38, 63);
}


/* Banner qui contient tout */
.banner-portfolio {
  background-image: linear-gradient(rgba(49, 49, 49, 0.75), rgba(34, 34, 34, 0.75)), url(/Image/pylone.png);
  background-position: top;
  background-size: cover;
  background-repeat: no-repeat;
  min-height: 100vh;
  width: 100%;
  position: relative;
  color: #ffffff;
  box-sizing: border-box;

  display: flex;
  flex-direction: column;

  padding-bottom: 60px; /* ✅ ajoute juste un espace en bas */
}






/* Titre + sélection */
.selection-portfolio {
  text-align: center;
  margin-bottom: 30px;
  z-index: 2;
  position: relative;
}

.selection-portfolio h1 {
  font-size: 3em;
  color: #ffffff;
  font-family: 'Poppins', sans-serif;
}

.hero-separator {
  width: 60px;
  height: 4px;
  background-color: #f9b49c;
  border: none;
  margin: 20px auto;
}

.semestre-select select {
  padding: 8px 15px;
  font-size: 16px;
  border-radius: 8px;
  border: none;
}

/* Grille de projets */

/* GRID général */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* ← max 3 colonnes */
  gap: 30px;
  padding: 50px;
}


/* Chaque carte */
.project-card {
  position: relative;
  height: 300px;
  border-radius: 15px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  backdrop-filter: blur(8px);
  color: white;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Fond image de chaque carte */
.background-image-proxmox{
  position: absolute;
  top: 0; left: 0;
  width: 100%; 
  height: 80%;
  background-size: contain;  /* ✅ au lieu de cover */
  background-position: center 90px;
  background-repeat: no-repeat;

  opacity: 0.6;
  z-index: 0;
}

.background-image-rom{
  position: absolute;
  top: 0; left: 140px;
  width: 40%; 
  height: 500vh;
  background-size: contain;  /* ✅ au lieu de cover */
  background-position: center 50px;
  background-repeat: no-repeat;

  opacity: 0.6;
  z-index: 0;
}

.background-image-veille{
  position: absolute;
  top: 0; left: 0;
  width: 80%; 
  height: 100vh;
  background-size: contain;  /* ✅ au lieu de cover */
  background-position: center 120px;
  background-repeat: no-repeat;

  opacity: 0.6;
  z-index: 0;
}


.background-image-elastic{
  position: absolute;
  top: 0; left: 0;
  width: 100%; 
  height: 100vh;
  background-size: contain;  /* ✅ au lieu de cover */
  background-position: center 120px;
  background-repeat: no-repeat;

  opacity: 0.6;
  z-index: 0;
}


/* Contenu du projet */
.project-content {
  position: relative;
  z-index: 1;
  padding: 20px;
  width: 100%;
  box-sizing: border-box;
}

.project-content h3, .project-content p {
  margin: 0;
  padding: 5px 0;
  font-family: 'Poppins', sans-serif;
}


.project-card h3 {
  margin: 0 0 10px;
  font-size: 1.2em;
}

.project-card p {
  margin: 0;
  font-size: 0.95em;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.project-link {
  display: block;
  text-decoration: none;
  color: inherit; /* ← garde la couleur blanche du parent */
  height: 100%;
  width: 100%;
}
.project-link h3,
.project-link p {
  color: inherit; /* hérite la couleur blanche du parent .project-card */
}

.header-sae {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 30px 40px;
  flex-wrap: wrap;
}

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

.btn-return {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  text-decoration: none;
  padding: 12px 30px;
  border-radius: 10px;
  backdrop-filter: blur(8px);
  transition: background 0.3s;
  min-width: 230px; /* même largeur pour tous */
  text-align: center;
  font-weight: 500;
  font-family: 'Poppins', sans-serif;
}

.btn-return:hover {
  background: rgba(255, 255, 255, 0.2);
}

.sae-title-cyber {
  flex-grow: 1;
  margin-left: 175px; /* ✅ décale le titre vers la gauche */
}

.sae-title-rom {
  flex-grow: 1;
  margin-left: 425px; /* ✅ décale le titre vers la gauche */
}

.sae-title-git {
  flex-grow: 1;
  margin-left: 410px; /* ✅ décale le titre vers la gauche */
}

.sae-title-veille {
  flex-grow: 1;
  margin-left: 200px; /* ✅ décale le titre vers la gauche */
}

.sae-title-proxmox {
  flex-grow: 1;
  margin-left: 270px; /* ✅ décale le titre vers la gauche */
}


.sae-title-cyber h1 {
  font-size: 2.2rem;
  font-weight: 600;
  color: #fff;
  margin: 0;
  font-family: 'Poppins', sans-serif;
}

.sae-title-rom h1 {
  font-size: 2.2rem;
  font-weight: 600;
  color: #fff;
  margin: 0;
  font-family: 'Poppins', sans-serif;
}

.sae-title-proxmox h1 {
  font-size: 2.2rem;
  font-weight: 600;
  color: #fff;
  margin: 0;
  font-family: 'Poppins', sans-serif;
}


.sae-info-container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin: 40px;
  
}

.sae-logo {
  display: block;
  margin: 0 auto 20px auto; /* centre horizontalement et ajoute un espace en bas */
  height: 60px; /* ajuste si nécessaire */
}



.sae-info-block {
  background-color: rgba(255, 255, 255, 0.08); /* semi-transparent blanc */
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 15px;
  padding: 25px;
  flex: 1 1 400px;
  color: white;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.sae-info-block:hover {
  transform: translateY(-4px);
}

.sae-info-block h2, .sae-info-block h3 {
  margin-top: 0;
  color: #ffffff;
}

.sae-info-block ul li {
  margin: 10px 0;
  margin-bottom: 10px;
  padding-left: 20px;
  font-family: 'Poppins', sans-serif;

}

.sae-info-block h3 {
  margin: 10px 0;
  margin-bottom: 10px;
  padding-left: 20px;
  font-family: 'Montserrat', sans-serif;

}

.sae-info-block h4 {
  font-family: 'Montserrat', sans-serif;
}

.sae-info-block li {
  font-family: 'Poppins', sans-serif;
}

.sae-info-block p {
  display: block;
  margin-bottom: 12px !important;
  font-family: 'Poppins', sans-serif;
}




