/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Arial Black', sans-serif;
  background-color: #000000;
  color: #ffffff;
  padding: 20px;
}

h1 {
  text-align: center;
  margin-bottom: 10px;
  font-size: 2.5em;   
  color: #ffffff;
}

h2 {
  text-align: center;
  margin-bottom: 10px;
  font-size: 2.2em;   
  color: #ffffff;
  margin-top: 80px;
}

.divider {
  width: 80px;
  height: 4px;
  background-color: white;
  margin: 0 auto 40px auto;
  border-radius: 2px;
}

/* Grid of creations */
.creations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

hr {
  width: 80%;
  max-width: 700px;
  margin: 0 auto 40px auto;
  border: 1px solid #aaa;
}

/* Each creation item */
.creation-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.creation-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease;
}

.creation-item:hover img {
  transform: scale(1.05);
}

/* Overlay effect */
.overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.7);
  height: 100%;
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px;
  text-align: center;
  transition: opacity 0.3s ease;
}

.overlay p {
  color: #fff;
  font-size: 1em;
  line-height: 1.4;
}

.creation-item:hover .overlay {
  opacity: 1;
}

 /* SECTION PROJETS */
 .projects-section {
  margin-top: 80px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
  margin-top: 50px;
}

.project-card {
  background: #111111;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.project-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.3s ease;
  background: #333; /* Fallback si pas d'image */
}

.project-card:hover img {
  transform: scale(1.05);
}

.project-card h3 {
  padding: 20px 20px 15px 20px;
  font-size: 1.4em;
  color: #ffffff;
  text-align: center;
}

.learn-more-btn {
  display: block;
  width: calc(100% - 40px);
  margin: 0 20px 20px 20px;
  padding: 12px;
  background: linear-gradient(45deg, #333, #555);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1em;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.learn-more-btn:hover {
  background: linear-gradient(45deg, #555, #777);
  transform: translateY(-2px);
}

.learn-more-btn:active {
  transform: translateY(0);
}

.project-description {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  background: #0a0a0a;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.project-description.active {
  max-height: 300px;
  padding: 20px;
}

.project-description p {
  color: #cccccc;
  line-height: 1.6;
  margin-bottom: 15px;
  font-size: 0.95em;
}

.project-description p:last-child {
  margin-bottom: 0;
  font-weight: bold;
  color: #ffffff;
} 

.button {
  display: inline-block;
  padding: 12px 20px;
  background-color: rgb(0, 0, 0);
  color: rgb(255, 255, 255);
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  text-decoration: none;
}
a.-button {

  color: white;
}

/* Return button */
.return-button {
  text-align: center;
  margin-top: 80px;
}

.return-button a {
  display: inline-block;
  background-color: black;
  color: white;
  padding: 12px 24px;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  transition: background-color 0.3s ease;
  border: 2px solid #333;
}

.return-button a:hover {
  background-color: #333;
  border-color: #555;
}

/* Responsive */
@media (max-width: 768px) {
  .projects-grid {
      grid-template-columns: 1fr;
      gap: 30px;
  }
  
  h1 {
      font-size: 2em;
  }
  
  h2 {
      font-size: 1.8em;
  }
}