/* ============================
   Read more (Project detail)
============================ */

.project-detail {
  margin-top: 18px;
  width: 100%;
  max-width: 1050px;      /* un peu moins large */
  margin-left: auto;
  margin-right: auto;
  padding-bottom: 40px;
}

/* top row: back + title */
.project-detail-top{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.back-btn{
  border: 1px solid #e5e7eb;
  background: #ffffff;
  color: #1d4ed8;
  font-weight: 800;
  font-size: 13px;
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease;
  white-space: nowrap;
}
.back-btn:hover{
  transform: translateY(-1px);
  border-color: #93c5fd;
  box-shadow: 0 10px 18px rgba(0,0,0,.08);
}

.project-detail-head{
  flex: 1;
  min-width: 0;
}

.project-detail-title{
  font-size: 26px;
  font-weight: 900;
  color: #111827;
  margin: 0 0 8px 0;
  letter-spacing: -0.02em;
}

.project-detail-summary{
  color: #4b5563;
  line-height: 1.7;
  font-size: 15px;
  margin: 10px 0 22px 0;
  max-width: 850px;
}

.project-detail-subtitle{
  font-size: 18px;
  font-weight: 900;
  color: #111827;
  margin: 0 0 14px 0;
}

/* ============================
   Each report page: smaller + centered
============================ */

.project-page{
  width: 100%;
  max-width: 820px;       /* ✅ pages moins larges */
  margin: 0 auto 22px auto;

  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  box-shadow: 0 10px 22px rgba(0,0,0,.06);
  overflow: hidden;
}

/* zone image: padding + centre */
.project-page-media{
  width: 100%;
  aspect-ratio: 13 / 8;   /* 1300x800 */
  background: #f3f4f6;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 18px;          /* ✅ réduit visuellement la taille de l’image */
}

.project-page-media img{
  width: 100%;
  height: 100%;
  object-fit: contain;    /* pas de coupe */
  display: block;
}

.project-page-text{
  padding: 14px 16px 16px 16px;
}

.project-page-title{
  font-size: 16px;
  font-weight: 900;
  color: #111827;
  margin: 0 0 6px 0;
}

.project-page-desc{
  margin: 0;
  font-size: 14px;
  color: #4b5563;
  line-height: 1.6;
}

/* mobile */
@media (max-width: 1024px){
  .project-detail { max-width: 100%; }
  .project-detail-title{ font-size: 22px; }
  .project-detail-top{ align-items: flex-start; }

  .project-page{
    max-width: 100%;
    border-radius: 14px;
  }

  .project-page-media{
    padding: 12px;
  }
}
