.realisations {
  display: grid;
  gap: 1em;
}
.realisation__card {
  position: relative;
}
.realisation__card__bgbleu {
  background-color: var(--bleu);
  color: var(--blanc);
  position: absolute;
  left: 0;
  bottom: 0;
  font-size: 1.2em;
  font-weight: bold;
  padding: 0.25em 0.5em;
}
.realisation__card__bgbleu--right {
  right: 0;
  left: auto;
  cursor: pointer;
  transition: transform 0.3s;
  z-index: 100;
  overflow: hidden;
}
.realisation__card__description {
  position: absolute;
  background: var(--bleu);
  padding: 30px;
  left: 0;
  top: 0;
  opacity: 0;
  width: 0;
  height: 0;
  transform: translateY(100px);
  transition: all 0.4s ease;
  pointer-events: none;
  color: var(--blanc);
}
.show-description .realisation__card__description {
  opacity: 1;
  width: 100%;
  height: 100%;
  transform: translateY(-22px);
  pointer-events: auto;
}
.show-description .toggle-btn {
  transform: rotate(45deg);
  background-color: transparent;
}
/* Fenêtre modale (mobile uniquement) */
.modal {
  display: none;
  position: fixed;
  z-index: 10;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.6);
}
.modal-content {
  background-color: var(--bleu);
  margin: 20vh auto;
  padding: 5px;
  border-radius: 10px;
  width: 80%;
  max-width: 400px;
  text-align: center;
  animation: pop 0.3s ease-out;
}
.modal-text {
  padding: 10px 20px;
}
.modal-text p {
  color: var(--blanc);
}
@keyframes pop {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
.close-btn {
  color: var(--blanc);
  float: right;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
}
/* Cacher la description dans l’image sur mobile */
@media (max-width: 768px) {
  .description {
    display: none !important;
  }
}
@media only screen and (min-width: 1024px) and (orientation: landscape) {
  .realisations {
    padding: 0 2em;
    grid-template-columns: repeat(2, 1fr);
    gap: 4em;
  }
  .realisation__card__bgbleu {
    font-size: 1.4em;
    padding: 0.5em 0.75em;
  }
}
@media only screen and (min-width: 1536px) and (orientation: landscape) {
  .realisation__card__bgbleu {
    font-size: 2em;
  }
}
