/* ===========================
   Page d'accueil — Projets
=========================== */

/* La homepage démarre sous le header transparent */

.h1-front-page {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: normal;
  text-align: center;
  margin-bottom: 60px;
}

/* ─── Grille de projets ─── */
.projects-grid {
    margin: 0 8px;
  display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 8px;
}

/* ─── Carte projet ─── */

/* Animation d'apparition */
@keyframes card-fade-up {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.project-card {
  opacity: 0; /* état initial avant animation */
  animation: card-fade-up 0.7s ease forwards;
}

/* Décalage en cascade : chaque carte attend un peu plus */
.project-card:nth-child(1) { animation-delay: 0.1s; }
.project-card:nth-child(2) { animation-delay: 0.35s; }
.project-card:nth-child(3) { animation-delay: 0.6s; }
.project-card:nth-child(4) { animation-delay: 0.85s; }
.project-card__link {
  display: block;
  text-decoration: none;
  color: var(--color-black);
}

.project-card__image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
}

.project-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

/* .project-card__link:hover .project-card__image {
  transform: scale(1.01);
} */

/* ─── Overlay au survol ─── */
.project-card__overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.project-card__link:hover .project-card__overlay {
  opacity: 1;
}

.project-card__overlay-title {
  font-family: var(--font-primary);
  font-size: clamp(1rem, 2vw, 1.4rem);
  font-style: italic;
  font-weight: normal;
  letter-spacing: 0.04em;
  color: #fff;
  text-align: center;
  padding-inline: 20px;
}

.project-card__overlay-cta {
  font-family: var(--font-primary);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

.project-card__title {
  margin-top: 14px;
  font-size: 0.9rem;
  font-weight: normal;
  font-style: italic;
  letter-spacing: 0.05em;
  color: var(--color-black);
}

/* ─── Bouton "Voir tous les projets" ─── */
.front-page__cta {
  margin-top: 56px;
  text-align: center;
}

.btn-text {
  display: inline-block;
  font-family: var(--font-primary);
  font-size: 0.9rem;
  font-style: italic;
  letter-spacing: 0.08em;
  color: var(--color-black);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  transition: opacity 0.2s ease;
}

.btn-text:hover {
  opacity: 0.6;
}

/* ─── État vide ─── */
.front-page__empty {
  font-style: italic;
  color: var(--color-muted);
  text-align: center;
  padding-block: 60px;
}

/* ─── Section "À propos" ─── */
.a-propos-page__cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin-top: 60px;
}

.a-propos-page__cta-inner{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    max-width: 800px;
    margin: auto;
}

.a-propos-page__cta-text{
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.a-propos-page__cta p {
  font-style: italic;
  font-weight: 300;
  color: var(--color-muted);
}

.a-propos-page__cta img {
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

/* ─── Responsive ─── */
@media (max-width: 900px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .a-propos-page__cta-inner{
    flex-direction: column-reverse;
    gap: 20px;
    text-align: center;
    width: 70%;
  }
}

@media (max-width: 560px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
}
