body, html {
    margin: 0;
    padding: 0;
    font-family: 'Comfortaa', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    min-height: 100vh;
    position: relative;
}

body {
    background: url('../images/index_background.jpg') no-repeat center center fixed;
    background-size: cover;
}

.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(3px);
    z-index: 0;
}

.sticky-menu {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    z-index: 100;
    padding: 10px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.sticky-menu nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    flex-shrink: 0;
}

.logo a {
    text-decoration: none;
    display: block;
}

.logo img {
    height: 40px;
    width: auto;
    display: block;
    transition: opacity 0.3s ease;
}

.logo a:hover img {
    opacity: 0.8;
}

.logo-icon {
    display: block;
    height: 35px;
}

.nav-links ul li a.active {
    border-bottom: 2px solid #999;
    padding-bottom: 3px;
}

.nav-links ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.nav-links ul li {
    margin: 0 15px;
}

.nav-links ul li a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    transition: opacity 0.3s ease;
}

.nav-links ul li a:hover {
    opacity: 0.7;
}

main {
    position: relative;
    z-index: 1;
    padding-top: 80px;
    color: #333;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 60px;
}

/* Footer */
.site-footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    z-index: 100;
    padding: 10px 0;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
    left: 0;
    right: 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.copyright {
    color: #333;
    font-size: 0.9rem;
    font-weight: 300;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: #333;
    text-decoration: none;
    font-size: 0.9rem;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 0.7;
}

/* Correction spécifique pour la page index */
body[data-page="index"] .site-footer {
    position: fixed;
    left: 0;
    right: 0;
    width: 100%;
    margin: 0;
    transform: none;
}

/* Media Queries */
@media (max-width: 768px) {
    /* Menu mobile */
    .logo-main {
        display: none;
    }
    
    .logo-icon {
        display: block;
        height: 35px;
    }

    .hamburger {
        display: block;
        cursor: pointer;
        padding: 10px;
        z-index: 101;
    }

    .hamburger span {
        display: block;
        width: 25px;
        height: 3px;
        background-color: #333;
        margin: 5px 0;
        transition: all 0.3s ease;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        padding: 80px 20px;
        transition: right 0.3s ease;
        z-index: 100;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links ul {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-links ul li {
        margin: 15px 0;
        width: 100%;
    }

    .nav-links ul li a {
        display: block;
        padding: 10px 0;
        font-size: 1.2rem;
    }

    /* Footer mobile */
    .footer-content {
        padding: 0 15px;
    }
    
    .copyright {
        font-size: 0.8rem;
    }

    .site-footer .footer-links {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        height: 0 !important;
        width: 0 !important;
        overflow: hidden !important;
        position: absolute !important;
        pointer-events: none !important;
    }
}