/* ========================================
   INDEX / HERO PAGE
   ======================================== */

/* Reset & base */
body, html {
    margin: 0;
    padding: 0;
    font-family: 'DM Sans', sans-serif;
    height: 100%;
    width: 100%;
    overflow-x: hidden;
}

/* Section héros */
.hero {
    background-image: url('corrige_par_gpt/img/hero/hero_desktop.jpg');
    background-image: image-set(
        url('corrige_par_gpt/img/hero/hero_desktop.webp') type('image/webp'),
        url('corrige_par_gpt/img/hero/hero_desktop.jpg') type('image/jpeg')
    );
    background-size: cover;
    background-position: center;
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.35) 0%,
        rgba(0, 0, 0, 0.55) 100%
    );
    z-index: 1;
}

.overlay {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding: 20px;
    width: 90%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-name {
    font-size: 3.2rem;
    margin: 0 0 8px 0;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.hero-subtitle {
    font-size: 1rem;
    font-weight: 400;
    margin: 0 0 30px 0;
    opacity: 0.8;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.hero-nav {
    display: flex;
    gap: 40px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-nav a {
    color: white;
    font-size: 1.3rem;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    position: relative;
    transition: color 0.3s ease;
}

.hero-nav a::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background-color: #ffbc47;
    position: absolute;
    bottom: -6px;
    left: 50%;
    transition: width 0.3s ease, left 0.3s ease;
}

.hero-nav a:hover {
    color: #ffbc47;
}

.hero-nav a:hover::after {
    width: 100%;
    left: 0;
}

/* Footer */
.site-footer {
    background-color: #fff;
    color: #333;
    text-align: center;
    padding: 20px;
    width: 100%;
    position: relative;
    bottom: 0;
    flex-shrink: 0;
    font-family: 'DM Sans', sans-serif;
}

.site-footer p {
    margin: 0;
    font-size: 14px;
    color: #999;
}

.social-links {
    margin-top: 8px;
}

.social-links a {
    font-family: 'DM Sans', sans-serif;
    color: #666;
    text-decoration: none;
    margin: 0 12px;
    font-size: 14px;
    transition: color 0.3s;
}

.social-links a:hover {
    color: #ffbc47;
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        background-image: url('corrige_par_gpt/img/hero/hero_mobile.jpg');
        background-image: image-set(
            url('corrige_par_gpt/img/hero/hero_mobile.webp') type('image/webp'),
            url('corrige_par_gpt/img/hero/hero_mobile.jpg') type('image/jpeg')
        );
    }

    .hero-nav {
        flex-direction: column;
        gap: 20px;
    }

    .hero-nav a {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .hero-name {
        font-size: 2.4rem;
    }

    .hero-subtitle {
        font-size: 0.85rem;
    }

    .hero-nav a {
        font-size: 1rem;
    }
}
