body {
    font-family: 'Lato', sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    background-color: #f9f7f1;
    line-height: 1.6;
}

a{color:#2343FF;font-weight:700;font-size:1.2em;}
hr{width:100%;margin-top: -1em;
    margin-bottom: -1em;}
header {
	background-color: #FAEEE0;
	color: #FAEEE0;
	padding: 1rem;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.logo {
   
}.logo img { height: 80px; width: 80px; }

nav ul {
	list-style: none;
	display: flex;
	gap: 1.5rem;
	color: #000000;
}

nav a {
    color: #8A7C55;
    text-decoration: none;
}
img{max-width:100%;}
.hero {
    text-align: center;
    padding: 34px;line-height:1.4;margin-bottom:25px;
    background-color: #e8ece5;
}

.hero h1 {
    font-family: 'Lato', sans-serif;
    font-size: 2.5rem;
    color: #2e4a2e;max-width:650px;margin:auto;margin-bottom:35px;
}

.latest-posts, .articles, .product-list {
    display: grid;
    gap: 1rem;
    margin: 2rem 0;
}

.post-preview, article, .product {
	background: white;
	padding: 1rem;
	border-radius: 8px;
	box-shadow: 0 2px 5px rgba(0,0,0,0.1);
	margin-bottom: 11px;
}

.newsletter {
	margin-top: 5rem;
	margin-bottom: 26px;
}

.newsletter input {
    padding: 0.5rem;
    margin-right: 0.5rem;
}

.about, .products, .diy, .contact {
    padding: 2rem;
    background-color: #f4f4e9;
}

.contact form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

.social-links a {
    margin: 0 1rem;
    color: #4a704a;
}

footer {
    text-align: center;
    padding: 1rem;
    background-color: #2e4a2e;
    color: white;
}

.logo{margin-left:25px;}
.blog{padding:25px;}
.imgpost{width:100%;}
.post-detail{
	padding: 25px;
	max-width: 600px;
	margin-left: auto;
	margin-right: auto;
}
#a-propos{max-width:600px;text-align:center;margin:auto;}

@media (min-width: 768px) {.nopc{display:none;}
    .latest-posts, .articles, .product-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .latest-posts, .articles, .product-list {
        grid-template-columns: repeat(3, 1fr);
    }
}


.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background-color: #4a704a;
    position: relative;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 2px 0;
    transition: all 0.3s ease;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-family: 'Lato', sans-serif;
    font-weight: 400;
}

.nav-menu a:hover {
    color: #e8ece5;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%; /* Below the navbar */
        left: 10%;  /* Centered (100% - 80%) / 2 */
        width: 80%;
        background-color: #4a704a;
        padding: 1rem 0;
        text-align: center;
        z-index: 1000;
        box-shadow: 0 8px 16px rgba(0,0,0,0.2);
        border-radius: 8px;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        margin: 0.5rem 0;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
}@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        width: 80vw; /* 80% of screen width */
        height: 100vh; /* Full height */
        background-color: #4a704a;
        padding: 2rem 1rem;
        text-align: center;
        z-index: 9999;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        margin: 1rem 0;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
}
