/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* template de couleurs */
:root {
    --color-primary: #0B3910;
    --color-secondary: #D3B47A;
    --color-accent: #E0B053;
    --color-dark: #6E1919;
    --color-text: #D3B47A;
    --color-bg: #0B3910;
}

/* Body */
body {
    font-family: 'Avenir', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
}

/* ======== HEADER ======== */
header {
    position: sticky;
    top: 0;
    background-color: var(--color-primary);
    padding: 20px 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.header-container {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo avec cube */
.logo {
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--color-text);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 15px;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.logo:hover {
    color: var(--color-accent);
}

/* Cube avant le nom */
.logo::before {
    content: '';
    width: 12px;
    height: 12px;
    background-color: var(--color-accent);
    display: block;
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(224, 176, 83, 0.4);
}

/* ======== NAVIGATION ======== */
nav {
    display: flex;
    align-items: center;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 40px;
    margin: 0;
    padding: 0;
}

nav ul li {
    display: inline-block;
}

nav ul li a {
    position: relative;
    text-decoration: none;
    color: var(--color-secondary);
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    display: inline-block;
    padding: 5px 0;
}

/* Effet au survol */
nav ul li a:hover {
    color: var(--color-accent);
    transform: translateY(-2px);
}

/* Soulignement animé depuis le centre */
nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 100%;
    height: 2px;
    background-color: var(--color-accent);
    transition: transform 0.3s ease;
}

nav ul li a:hover::after {
    transform: translateX(-50%) scaleX(1);
}

/* Style pour la page active */
nav ul li a.active {
    color: var(--color-accent);
    font-weight: 600;
}

nav ul li a.active::after {
    transform: translateX(-50%) scaleX(1);
}

/* Footer */
footer {
    background-color: var(--color-primary);
    padding: 40px 0;
    margin-top: 80px;
    box-shadow: 0 -1px 4px rgba(0, 0, 0, 0.6);
}

.footer-container {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 392px 1fr;
    gap: 40px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: var(--color-text);
    text-decoration: none;
    font-size: 14px;
}

.footer-links a:hover {
    text-decoration: underline;
}

.footer-contact {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.contact-item h4,
.contact-item p,
.contact-item a {
    font-size: 14px;
    text-align: center;
    color: var(--color-text);
    text-decoration: none;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 11px;
    margin-top: 10px;
}

.footer-social a {
    width: 19px;
    height: 19px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-social svg {
    width: 100%;
    height: 100%;
    fill: var(--color-text);
}

.footer-copyright {
    text-align: left;
    font-size: 14px;
    color: var(--color-text);
    margin-top: 20px;
}

/* Responsive commun */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 20px;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .footer-container {
        grid-template-columns: 1fr;
    }

    .footer-contact {
        grid-template-columns: 1fr;
    }
}

/* Lightbox */
#lightbox {
    color:  white;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.86);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

#lightbox img:not(#close) {
    max-height: 80%;
    max-width: 80%;
    object-fit: contain;
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
    }

    to {
        transform: scale(1);
    }
}

#lightbox img#close {
    height: 3em;
    width: 3em;
    position: absolute;
    top: 2%;
    right: 2%;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

#lightbox img#close:hover {
    cursor: pointer;
    transform: scale(1.1);
    opacity: 0.8;
}
