body {
    font-family: "Happy Times at the IKOB New Game Plus Edition", serif;
    background-color: white;
    color: black;
    line-height: 1.5;
    padding: 20px;
}

img.image_responsive {
    width: 30%;
    float: right;
    position: sticky;
    top: 2%;
    margin-right: 2%;
}

p.image {
    position: sticky;
    top: 2%;
    float: right;
    margin-left: 3px;
    margin-top: 1%;
}

/* Typographie principale */
.CharOverride-1 {
    font-family: "Happy Times at the IKOB New Game Plus Edition", serif;
    font-size: 30px;
    font-style: normal;
    font-weight: normal;
}

/* Barre de navigation works/about */
.top-bar {
    margin-top: 40px;
}

.pill {
    font-size: 30px;
    text-decoration: none;
    color: black;
    border: 2px solid black;
    padding: 4px 14px;
    border-radius: 999px;
    margin-right: 10px;
    transition: all 0.2s ease;
}

.pill:hover {
    background: black;
    color: white;
}

/* Preview image */
#previewImage {
  position: fixed;
  top: 50%;
  right: 5%;
  transform: translateY(-50%);
  max-width: 40%;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.image-container {
  position: relative;
}

/* ========================= */
/* LAYOUT SPECIFIQUE PROJET */
/* ========================= */

.project_wrapper {
  display: flex;
  align-items: flex-start; /* aligne texte et médias en haut */
  gap: 40px; /* espace entre texte et médias */
  margin-bottom: 80px;
}

/* TEXTE = 1/3 */
.project_text {
  flex: 1;
  max-width: 33%;
  font-family: "Happy Times at the IKOB New Game Plus Edition", serif;
  font-size: 18px;
  line-height: 1.5;
}

.project_text h2 {
  font-size: 22px;
  margin-bottom: 16px;
}

/* MÉDIAS = 2/3 */
.project_media {
  flex: 2;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* images et vidéos cohérentes */
.project_media img,
.project_media video {
  width: 100%;
  height: auto;
  border-radius: 8px;
  max-width: 100%; /* pas de limite fixe, elles remplissent leur container */
}

/* RESPONSIVE */
@media screen and (max-width: 900px) {
  .project_wrapper {
    flex-direction: column;
  }

  .project_text,
  .project_media {
    max-width: 100%;
    flex: 1;
  }