
.nosProjets{
  padding: 20px;
}
.projects{
  text-align: center;
  padding: 10px;
}
.mainProjets {
  max-width: 1500px;
  margin: 30px auto;
  display: flex;
  gap: 30px;
  padding: 0 5px;
}

/* Grille projets */
.projects-list {
   flex: 4;
  /*display: grid;
  grid-template-columns: repeat(auto-fill,minmax(320px,1fr));
  gap: 25px; */
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 20px;
}

/* Carte projet */
.nosproject-card {
  /* background: #fff;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgb(0 0 0 / 0.1);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer; */
    background: #fff;
    
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: transform 0.2s ease-in-out;
   
  
}

.nosproject-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 20px rgb(0 0 0 / 0.15);
}

.project-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.project-content {
  padding: 15px 20px;
  flex: 2;
  display: flex;
  flex-direction: column;
}

/*Ajout*/
.project-content h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.project-content p {
    margin: 5px 0;
    color: #555;
}
/*Ajout*/
.project-title {
  font-size: 1.2rem;
  margin: 0 0 8px;
  color: green;
}

.project-info {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 10px;
}

.project-description {
  flex-grow: 1;
  font-size: 1rem;
  color: #444;
  margin-bottom: 15px;
}

.btn-actions {
  align-self: flex-start;
  padding: 8px 16px;
  background-color: #133126;
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn-actions:hover {
  background-color: #1b4837;
}

/* Sidebar sommaire */
aside.sidebar {
  flex: 1;
  background: white;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 10px rgb(0 0 0 / 0.05);
  height: fit-content;
  position: sticky;
  top: 30px;
}

aside.sidebar h3 {
  margin-top: 0;
  color: #133126;
  border-bottom: 2px solid #133126;
  padding-bottom: 8px;
  margin-bottom: 15px;
}

aside.sidebar ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

aside.sidebar ul li {
  margin-bottom: 10px;
}

aside.sidebar ul li a {
  color: #133126;
  text-decoration: none;
  font-weight: 600;
}

aside.sidebar ul li a:hover {
  text-decoration: underline;
}

/* Popup modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: white;
  padding: 30px;
  border-radius: 10px;
  max-width: 600px;
  width: 90%;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  position: relative;
}

.modal-content h3 {
  margin-top: 0;
  color: #133126;
}

.close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 24px;
  font-weight: bold;
  color: #aaa;
  cursor: pointer;
  user-select: none;
}

.close-btn:hover {
  color: #133126;
}

/* Liste actions dans modal */
.modal-content ul {
  padding-left: 20px;
  max-height: 300px;
  overflow-y: auto;
}

/* Responsive */
@media (max-width: 900px) {
  main {
    flex-direction: column;
    padding: 0 10px;
  }

  aside.sidebar {
    position: relative;
    top: 0;
    margin-bottom: 30px;
  }
  .project-content h3 {
    font-size:small;
   
}

.project-content p {
   font-size: smaller;
}
.project-title{
  font-size: small;
}
.nosproject-card {

width: 300px;
   
  
}
}


      /* 📲 Tablettes (entre 768px et 1024px) */
@media screen and (min-width: 768px) and (max-width: 1024px) {
 
    .nosproject-card {

width: auto;
   
  

}
}



footer{
  background-color: #133126 ; 
  color: white; 
  text-align: center; 
  padding: 15px 10px; 
  margin-top: 40px;
}
