.alignfull.project-block-list {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  box-sizing: border-box;
  overflow-x: clip; /* ✅ plus sûr que hidden : bloque le scroll sans couper */
}




.project-block-list {
  margin: 0;
  padding: 0;
}

.project-entry-fullwidth {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  width: 100%;
  min-height: 500px;
  margin-bottom: 4rem;
  overflow: hidden;
  box-sizing: border-box;
}


/* IMAGE BLOCK (gauche ou droite selon render.php) */
.project-image-half {
  flex: 1 1 50%;
  background-size: cover;
  background-position: center center;
  min-height: 300px;
}

/* CONTENU */
.project-content-half {
  flex: 1 1 50%;
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
}

.project-content-half h2 {
  margin-top: 0;
}

.project-content-half p,
.project-content-half ul {
  margin-bottom: 1rem;
}

.project-content-half ul {
  padding-left: 1.2rem;
}

.project-videos-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.video-card {
    flex: 1 1 180px; /* Minimum width, s'adapte automatiquement */
    max-width: 300px;
}


/* RESPONSIVE MOBILE */
@media screen and (max-width: 768px) {
  .project-entry-fullwidth {
    flex-direction: column;
  }

  .project-image-half,
  .project-content-half {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .project-content-half {
    padding: 2rem 1.5rem;
  }
}

.project-partners-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
  margin-bottom: 2rem;
}

.project-partner-card {
  background: #f5f5f5;
  border-radius: 6px;
  padding: 1rem;
  min-width: 180px;
  max-width: 240px;
  flex: 1 1 auto;
  box-sizing: border-box;
}

.project-partner-card strong {
  display: block;
  font-weight: bold;
  margin-bottom: 0.25rem;
}

.project-partner-card a {
  color: #0073aa;
  text-decoration: none;
  word-break: break-word;
}

.project-partner-card a:hover {
  text-decoration: underline;
}


/* Header bloc avec titre + slogan + logo */
.project-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.project-title-slogan {
  flex: 1;
}

.project-title-slogan h2 {
  margin: 0;
}

.project-slogan {
  font-style: italic;
  font-size: 1.1rem;
  color: #444;
  margin: 0.3rem 0 0 0;
}

.project-logo img {
  max-width: 120px;
  max-height: 110px;
  object-fit: contain; /* garde les proportions sans déborder */
}

