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

body {
  background: aquamarine;
  font-family: "Courier New", Courier, monospace;
  color: #111;
}

h1 {
  font-family: "Orbitron", sans-serif;
  text-align: center;
  color: #410000;
  margin: 28px 12px;
  font-size: 40px;
}


.container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 20px;
}


.vignette {
  width: 150px;
  height: 150px;
  background: #790000;
  border-radius: 15px;
  border: 2px solid #ccc;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 42px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}


.vignette:not(.zoom):hover {
  transform: scale(1.08);
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}


.texte-initial { display: block; pointer-events: none; }


.contenu-cache {
  display: none;         
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
  width: 100%;
}


.vignette.zoom {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 90%;
  height: 88%;
  transform: translate(-50%, -50%);
  background: #fff;
  color: #111;
  border-radius: 16px;
  padding: 26px;
  z-index: 1200;
  overflow: auto;
  box-shadow: 0 20px 50px rgba(0,0,0,0.35);
}

.vignette.zoom .texte-initial { display: none; }
.vignette.zoom .contenu-cache { display: block; opacity: 1; pointer-events: auto; }



.vignette .contenu-cache h2 {
  font-size: 26px;
  margin-bottom: 14px;
  font-family: "Orbitron", sans-serif;
  color: #2a2a2a;
  text-align: center;
}



.vignette .bloc {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}



.vignette img {
  width: 320px;
  max-width: 45%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}



.vignette p {
  font-size: 18px;
  line-height: 1.5;
  color: #222;
}



@media (max-width: 900px) {
  .vignette img { width: 260px; max-width: 45%; }
}

@media (max-width: 600px) {
  .vignette.zoom { width: 96%; height: 86%; padding: 18px; }
  .vignette img { width: 100%; max-width: 100%; }
  .vignette .bloc { flex-direction: column; align-items: center; text-align: center; }
  .vignette p { font-size: 16px; }
}
