/* Variables globales */
:root {
    --header-height: 80px;
    --footer-height: 60px;
    --primary-color: #333;
    --secondary-color: #666;
    --background-color: #ffffff;
}

/* Reset et styles de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    height: 100%;
}

body {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    font-family: Arial, sans-serif;
    color: var(--primary-color);
    line-height: 1.6;
    position: relative;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

main {
    flex: 1;
    min-height: calc(100vh - var(--header-height) - var(--footer-height));
}

/* Header */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background-color: var(--background-color);
    display: flex;
    align-items: center;
    padding: 0 2rem;
    transition: opacity 0.3s;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.main-header.hidden {
    opacity: 0;
}

/* Logo styles mis à jour */
.logo {
    height: 100%;
    display: flex;
    align-items: center;
}

.logo a {
    height: 100%;
    display: flex;
    align-items: center;
}

.logo img {
    height: 50px;
    width: auto;
    display: block;
}

/* Navigation principale */
.main-header nav {
    display: flex;
    align-items: center;
    margin-left: auto;
    position: relative;
    padding-right: 2rem;
}

.main-header nav::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 60%;
    width: 2px;
    background-color: #ddd;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 500;
    transition: color 0.3s;
    font-size: 1.1rem;
}

nav a:hover {
    color: var(--secondary-color);
}

/* Section des réseaux sociaux */
.social-links {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-left: 2rem;
    margin-bottom: 1px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.social-link img {
    width: 18px;
    height: 18px;
    transition: opacity 0.3s;
    transform: translateY(1px);
}

.social-link:hover img {
    opacity: 0.7;
}

/* Protection des images */
img {
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -user-drag: none;
    -webkit-user-drag: none;
}

/* Footer mis à jour */
.main-footer {
    background-color: var(--background-color);
    padding: 2rem;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-copyright {
    text-align: center;
    color: var(--secondary-color);
}

.footer-copyright p:first-child {
    margin-bottom: 0.5rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-nav {
    display: flex;
    gap: 2rem;
}

.footer-nav a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-nav a:hover {
    color: var(--secondary-color);
}

.footer-content .social-links {
    margin: 0;
    padding: 0;
}

/* Pages avec marge pour le header */
.page-with-header {
    margin-top: var(--header-height);
}

/* Responsive design */
@media (max-width: 768px) {
    .main-header {
        padding: 0 1rem;
    }
    
    .main-header nav {
        padding-right: 1rem;
    }

    .main-header nav::after {
        height: 50%;
    }
    
    nav ul {
        gap: 1rem;
    }
    
    nav a {
        font-size: 1rem;
    }

    .social-links {
        padding-left: 1rem;
        gap: 0.75rem;
    }

    .social-link img {
        width: 16px;
        height: 16px;
    }

    .main-footer {
        padding: 1.5rem;
    }

    .footer-links {
        gap: 0.75rem;
    }

    .footer-nav {
        gap: 1.5rem;
    }

    .logo img {
        height: 45px; /* Légèrement plus petit sur tablette */
    }
}

@media (max-width: 480px) {
    .main-header {
        height: 60px;
        padding: 0 1rem;
    }
    
    .logo img {
        height: 40px;
    }
    
    nav ul {
        gap: 0.5rem;
    }

    .social-links {
        padding-left: 0.5rem;
        gap: 0.5rem;
    }

    .social-link img {
        width: 14px;
        height: 14px;
    }

    .main-footer {
        padding: 1rem;
    }

    .footer-copyright p {
        font-size: 0.9rem;
    }

    .footer-nav {
        gap: 1rem;
        font-size: 0.9rem;
    }
}