/* ---------- POLICE ---------- */
@font-face {
    font-family: 'hoover-light';
    src: url('../font/hoover/hoover-light.woff2') format('woff2'),
         url('../font/hoover/hoover-light.woff') format('woff');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'hoover-regular';
    src: url('../font/hoover/hoover-regular.woff2') format('woff2'),
         url('../font/hoover/hoover-regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

/* ---------- GLOBAL ---------- */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    background-color: #111111;
    color: #fff;
    font-family: 'hoover-light', sans-serif;
    line-height: 1.4;
    overflow-x: hidden; /* empêche scroll horizontal */
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1 0 auto; 
}

/* ---------- HEADER ---------- */
.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    flex-wrap: wrap;
}

.site-header .logo {
    font-weight: normal;
    font-size: 1.2rem;
    text-transform: none;
}

.main-nav {
    display: flex;
    flex-direction: row;
    gap: 2.5rem;
    flex-wrap: nowrap;
    align-items: center;
}

.main-nav a {
    text-decoration: none;
    color: #ffffff;
    font-size: 1.2rem;
    position: relative;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 2px;
    background: currentColor;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.main-nav a:hover::after {
    opacity: 1;
}

/* ---------- HERO ---------- */
.home-hero {
    padding: 1rem 2rem;
    text-align: center;
}

.home-hero h1 {
    font-family: 'hoover-light', sans-serif;
    font-weight: 300;
    font-size: 1.2rem;
    line-height: 1.4;
    margin: 0;
    margin: 6rem 0;
}

.home-hero .email {
    display: block;
    font-family: 'hoover-regular', sans-serif;
    margin-top: 0rem;
}

/* ---------- GRID D'IMAGES ---------- */
.image-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 2rem;
    margin-top: 4rem;
}

.project {
    display: block;
}

.project-item {
    display: block;
    overflow: hidden; /* cache débordement pour le zoom/rotation */
}

.project-item img {
    width: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* Effet zoom + rotation au survol */
.project-item:hover img {
    transform: scale(1.20) rotate(3deg);
}

/* ---------- FOOTER ---------- */
.site-footer {
    flex-shrink: 0;
    padding: 1rem 2rem;
    text-align: left;
    font-family: 'hoover-regular', sans-serif;
    color: #ffffff99;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
    .image-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .image-grid {
        grid-template-columns: 1fr;
    }

    .home-hero h1 {
        font-size: 0.9rem;
    }
}
