/* =========================================================
   RAPHAELISME — ACCUEIL
   =========================================================
   */

/* ================= SECTIONS ================= */
section {
    width: 100%;
    position: relative;
    min-height: 100vh;
}

#home {
    height: 100vh;
    overflow: hidden;
}

/* VIDEO */
.video-bg video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

/* HERO */
.hero-text {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

.hero-text h1 {
    font-size: clamp(32px, 6vw, 80px);
    letter-spacing: 4px;
    text-transform: uppercase;
}

/* ================= PROJECTS ================= */
.image-bg {
    background: black;
}

.projects {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 20px;
    padding: 80px 4vw;
}

.project {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    text-decoration: none;
}

.project img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.project:hover img {
    transform: scale(1.06);
}

.project-info {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.project:hover .project-info {
    opacity: 1;
}

.project-info h3 {
    font-size: 18px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.project-info span {
    font-size: 14px;
    opacity: 0.8;
}


/* ================= RESPONSIVE ACCUEIL ================= */
@media (max-width: 900px) {
    .projects {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }

    /* FORCE VISIBILITÉ TITRES */
    .project-info {
        opacity: 1 !important;
        background: none;
        text-shadow: 0 0 5px rgba(0,0,0,0.7);
    }
}
