body {
    background-color: #2a3233;
    font-family: Arial, sans-serif;
    color: rgb(255, 255, 255);
}
.projetContainer {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    justify-items: center;
    justify-content: center;
    
}

.card {
  position: relative;
  width: 250px;
  height: 350px;
  perspective: 1000px;
  border-radius: 20px;
  color: black;
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25), 0 1.5px 4px rgba(0,0,0,0.18);
}
.card .front{
    background: linear-gradient(135deg, #48595a 0%, #1f2c2e 100%);
    font-size: large;
}

.card .front,
.card .back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border: 2px solid black;
  border-radius: 20px;
  padding: 1rem;
  box-sizing: border-box;
  transition: transform 0.6s;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card .back {
  transform: rotateY(180deg);
  background-color: #1f2c2e;
  color: white;
}

.card.flipped .front {
  transform: rotateY(180deg);
}

.card.flipped .back {
  transform: rotateY(0deg);
}

button.toggle-detail {
  display: none;
}

/* Mobile */
@media (max-width: 768px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  button.toggle-detail {
    display: block;
    background-color: #00bcd4;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
  }
}
@media (max-width: 480px) {
 nav {
    flex-direction: column !important;
    align-items:flex-end;
    padding: 0.5rem;
    gap : 0.5rem;
  }
  nav a {
    margin: 0.5rem 0;
    background-color: #18242333;
  }
}
nav {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    background-color: #182224;
    padding: 1rem;
}
nav a {
    color: #6280d4;
    text-decoration: none;
    font-size: 1.2rem;
    margin: 0 1rem;
}
nav a:hover {
    color: #00bcd4;
}
html, body {
    margin: 0;
    padding: 0;
    height: 100%;
}
h1 {
    text-align: center;
    color: #ffffff;
    margin-top: 0.5rem;
    font-size: 1.7rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}
header {
        padding: 10px 0;
        text-align: center;
    }
footer {
        padding: 10px 0;
        text-align: center;
    }
.grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 75px;
    }
a {
    color: #00bcd4;
    text-decoration: none;
}
h3 {
    color: #ffffff;
    font-size: 1.2rem;
    margin: 0.5rem 0;
    text-align: center;
}
/* Animation fade-in avec un mouvement vers le haut */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease-out forwards;
}

/* Définition de l'animation */
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
