/* ===========================
   Template Page — Projets
=========================== */

/* ─── Grille de projets ─── */
.projects-grid {
    margin: 0 8px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

p {
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--color-black);
    margin-bottom: 1.5em;
}

/* ─── Animation d'apparition ─── */
@keyframes card-fade-up {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ─── Carte projet ─── */
.project-card {
    opacity: 0;
    animation: card-fade-up 0.7s ease forwards;
}

.project-card:nth-child(1)  { animation-delay: 0.1s; }
.project-card:nth-child(2)  { animation-delay: 0.25s; }
.project-card:nth-child(3)  { animation-delay: 0.4s; }
.project-card:nth-child(4)  { animation-delay: 0.55s; }
.project-card:nth-child(5)  { animation-delay: 0.7s; }
.project-card:nth-child(6)  { animation-delay: 0.85s; }
.project-card:nth-child(n+7) { animation-delay: 1s; }

.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;
}

/* ─── 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;
}
