/* Fix background sur mobile */
@media (max-width: 768px) {
    body {
        background-attachment: scroll;
        background-size: cover;
        background-position: center center;
    }
}

/* Responsive navbar and small layout helpers */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 1rem;
    z-index: 1200;
    background: transparent;
}
.brand img { height: 40px; }
.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.6rem;
    cursor: pointer;
}
.nav-links {
    display: flex;
    gap: 1rem;
    align-items: center;
}
.nav-links a { text-decoration: none; color: inherit; padding: 0.4rem 0.6rem; }

/* Mobile */
@media (max-width: 768px) {
    .nav-toggle { display: block; }
    .nav-links {
        position: absolute;
        top: 56px;
        left: 0;
        right: 0;
        background: rgba(255,255,255,0.95);
        flex-direction: column;
        display: none;
        padding: 0.5rem 1rem;
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    }
    .nav-links.open { display: flex; }
    body { padding-top: 56px; }
}

/* Small tweaks for forms and cards */
.container, .registration-form, .login-form { max-width: 95%; }

/* Footer helper */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

footer {
    margin-top: auto;
}

/* Specific tweaks for NousContacter.php */
.contact-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.contact-info img {
    width: 150px;
    height: auto;
}

/* Responsive Cookies*/
@media (max-width: 600px) {
    .cookie-consent {
        bottom: 0;
        left: 0;
        transform: none;
        width: 100%;
        max-width: 100%;
        border-radius: 12px 12px 0 0;
    }

    @keyframes slideUp {
        from {
            transform: translateY(100%);
            opacity: 0;
        }
        to {
            transform: translateY(0);
            opacity: 1;
        }
    }

    .cookie-buttons {
        flex-direction: column;
    }

    .cookie-button {
        width: 100%;
    }
} 