/*
Theme Name: Theme Le Fournay by NeoDigitalis
Author: NeoDigitalis
Author URI: https://neodigitalis.fr
Description: Un thème WordPress personnalisé pour Le Fournay
Version: 1.1.0
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: theme-le-fournay
Tags: custom-theme, responsive, modern
*/


*{
    margin: 0;
    padding: 0;
}
/* Header */
.site-header {
    background: #132A13;
    color: #ECF39E;
    font-family: 'Roboto', sans-serif;
}

.site-header .container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.site-branding{
    width: 100%;
    height: 350px;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    border-bottom: 1px solid #ECF39E;
}

.site-branding h1 {
    margin: 0;
    font-size: 2rem;
    text-align: center;
    text-transform: uppercase;
}

.site-branding a {
    color: #fff;
    text-decoration: none;
}

.site-branding a img {
    width: 200px;
    border-radius: 50%;
}

/* Menu Toggle (Hamburger) */
.menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: #ECF39E;
    margin: 3px 0;
    transition: 0.3s;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Navigation */
.main-navigation {
    width: 100%;
    padding: 1rem 0;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    border-bottom: 1px solid #ECF39E;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-navigation li {
    width: 200px;
    margin: 0;
    text-align: center;
}

.main-navigation li ul{
    position: absolute;
    display: none;
    flex-direction: row;
    align-items: flex-start;
    background: #31572C;
    border-radius: 4px;
    gap: 0;
    z-index: 1000;
}

.main-navigation li:hover ul{
    display: flex;
}

.main-navigation a {
    color: #ECF39E;
    text-decoration: none;
    transition: 0.3s;
    text-transform: uppercase;
    font-weight: 500;
    padding: 0.5rem 1rem;
    display: block;
}

.main-navigation a:hover {
    opacity: 0.7;
    background: rgba(236, 243, 158, 0.1);
    border-radius: 4px;
}

/* Main */
main{
    background: #132A13;
}

/* Footer */
.site-footer {
    background: #132A13;
    color: #90A955;
    padding: 3rem 0 1rem;
    font-family: 'Roboto', sans-serif;
}

.site-footer .container {
    max-width: 95%;
    margin: 0 auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-column h3 {
    color: #90A955;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}
.footer-column h4 {
    color: #90A955;
    margin-bottom: 0.7rem;
    font-size: 1.2rem;
}

.footer-column p {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column li {
    margin-bottom: 0.5rem;
}

.footer-column a {
    color: #90A955;
    text-decoration: none;
    transition: 0.3s;
}
.footer-column .socials{
    width: 100%;
    height: 100%;
}
.footer-column .socials .aSocial{
    margin-left: 10px;
    margin-bottom: 20px;
}
.footer-column .social-icons a{
    margin-left: 15px;
}
.footer-column .social-icons a i{
    transform: scale(1.5);
}

.footer-column a:hover {
    opacity: 0.7;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(236, 243, 158, 0.3);
}

.footer-bottom p {
    margin: 0;
    font-size: 0.9rem;
}
.footer-bottom p a{
    color: #90A955;
    text-decoration: none;
    transition: 0.3s;
}
.footer-bottom p a:hover{
    opacity: 0.7;
    text-decoration: underline;
}

.footer-bottom .credits {
    color: #ECF39E;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    opacity: 0.8;
}

.footer-bottom .credits a {
    color: #ECF39E;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

.footer-bottom .credits a:hover {
    opacity: 0.7;
    text-decoration: underline;
}

.footer-bottom .linkBottom {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom .linkBottom .copy{
    width: 15%;
}

.footer-bottom .linkBottom .links{
    width: 85%;
    display: flex;
    justify-content: flex-end;
}
.footer-bottom .linkBottom .links a{
    font-size: 0.9rem;
    margin-right: 10px;
    color: #ECF39E;
    text-decoration: none;
    transition: 0.3s;
}
.footer-bottom .linkBottom .links a:hover{
    opacity: 0.7;
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .site-branding h1 {
        font-size: 25px;
        padding: 0 10px;
    }
    .menu-toggle {
        display: flex;
    }

    .main-navigation {
        width: 100%;
        height: 100%;
        position: absolute;
        top: -20%;
        left: 0;
        right: 0;
        background: #31572C;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .main-navigation.active {
        top: 0;
        max-height: 500px;
        transition: max-height 0.3s ease;
    }

    .main-navigation ul {
        flex-direction: column;
        padding: 1rem;
        gap: 0;
    }

    .main-navigation li {
        padding: 0.5rem 0;
        border-bottom: 1px solid #555;
    }

    .main-navigation li ul{
        flex-direction: column;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-column {
        text-align: center;
    }

    .site-footer {
        padding: 2rem 0 1rem;
    }
}
@media (max-width: 480px) {
    .site-footer {
        padding: 1.5rem 0 1rem;
    }

    .footer-content {
        gap: 1.5rem;
    }

    .footer-column h3 {
        font-size: 1.5rem;
    }

    .footer-bottom p {
        font-size: 0.8rem;
    }
    .footer-bottom .linkBottom {
        width: 100%;
        display: flex;
        flex-direction: column-reverse;
        justify-content: center;
        align-items: center;
    }

    .footer-bottom .linkBottom .copy{
        width: 100%;
    }
    .footer-bottom .linkBottom .links{
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
        margin-bottom: 5px;
    }
}