/* ==========================================================================
   Liste de projets – partagée par l'accueil (index.html) et projets.html
   ========================================================================== */

/* ---------- Projets ---------- */
.projects {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 80px;
  padding: 100px var(--gutter);
}
.projects__head { display: flex; flex-direction: column; gap: 16px; }
.eyebrow { font-size: 16px; text-transform: uppercase; line-height: normal; }
.projects__title { font-family: var(--font-serif); font-weight: 700; font-size: 48px; line-height: normal; }

.projects__list { display: flex; flex-direction: column; gap: 64px; }

.project { display: flex; align-items: center; gap: 48px; }
.project--reverse { flex-direction: row-reverse; }
.project__media,
.project__body { flex: 1 1 0; min-width: 0; }

.project__media { border-radius: 24px; overflow: hidden; background: #d5d5ff; aspect-ratio: 612 / 368; }
.project__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.project:hover .project__media img { transform: scale(1.03); }

.project__body { display: flex; flex-direction: column; gap: 24px; }
.project__title { font-family: var(--font-serif); font-weight: 400; font-size: 40px; line-height: normal; }
.project__title em { font-weight: 800; }
.project__desc { font-size: 18px; line-height: 1.5; }

.project__link {
  display: flex;
  align-items: center;
  align-self: flex-start;
  gap: 24px;
  font-size: 18px;
  line-height: 1.5;
  text-transform: uppercase;
  letter-spacing: .02em;
}
.project__link img { transition: transform .25s; }
.project__link:hover img { transform: translateX(6px); }

/* Carte Allociné (projet fictif) : titre sur deux lignes + tag à droite */
.project__head { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.project__head .project__title { flex: 1 1 auto; }
.project__title--allocine em { font-weight: 900; }
.tag--fictive { display: inline-flex; flex: none; align-items: center; justify-content: center; padding: 8px 16px; background: #fecc00; border: 1px solid #000; border-radius: 100px; color: #0b0b0b; font-size: 15px; font-weight: 500; line-height: normal; white-space: nowrap; }
.project__titles-mobile { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .project,
  .project--reverse { flex-direction: column; align-items: stretch; }
  .project__media { aspect-ratio: 612 / 368; }
}

/* Mobile (frame Figma 393 px) – n'affecte pas le rendu ≥ 768px */
@media (max-width: 767px) {
  .projects { gap: 0; padding: 48px 0 0; }
  .projects__head { gap: 8px; padding-inline: var(--gutter); }
  .projects__title { font-size: 36px; }
  .projects__list { gap: 0; }
  .project,
  .project--reverse { flex-direction: column; align-items: stretch; gap: 20px; padding: 32px var(--gutter); }
  .project__media { flex: none; width: 100%; aspect-ratio: 353 / 216; }
  .project__body { flex: none; width: 100%; gap: 20px; }
  .project__title { font-size: 36px; }
  .project__link {
    align-self: stretch;
    justify-content: space-between;
    padding: 12px 0;
    font-size: 24px;
    text-transform: none;
    letter-spacing: 0;
  }
  .project__head--desktop { display: none; }
  .project__titles-mobile { display: block; }
  .project__titles-mobile .project__name-row { display: flex; align-items: flex-start; gap: 20px; }
  .project__titles-mobile .project__name { flex: 1 1 0; min-width: 0; font-family: var(--font-serif); font-weight: 400; font-size: 36px; line-height: normal; }
  .project__titles-mobile .project__subtitle { margin-top: 8px; font-family: var(--font-serif); font-weight: 900; font-style: italic; font-size: 36px; line-height: normal; }
}
