/*
Theme Name: Astra Child
Theme URI: https://wpastra.com/
Template: astra
Author: Toi
Author URI: https://ton-site.com/
Description: Thème enfant personnalisé basé sur Astra avec des styles adaptés de Brooklyn.
Tags: astra, child-theme, personnalisé
Version: 1.0
*/

/* === HEADER PERSONNALISÉ === */
.site-header {
    background-color: #007bff;
    font-family: Arial, sans-serif;
    padding: 15px 20px;
}

.header-container {
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin: 0 auto;
}

.logo a {
    text-decoration: none;
    font-weight: bold;
    color: white;
    font-size: 24px;
}

/* === NAVIGATION === */
.menu-toggle {
    display: none;
    color: white;
    font-size: 26px;
    cursor: pointer;
    user-select: none;
}

.main-nav {
    display: flex;
    flex-wrap: wrap;
}

.nav-menu {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-menu li {
    margin: 0 10px;
}

.nav-menu li a {
    display: inline-block;
    text-decoration: none;
    background-color: red;
    color: white;
    border-radius: 5px;
    transition: transform 0.3s ease, background-color 0.3s ease;
    padding: 10px 15px;
}

.nav-menu li a:hover,
.nav-menu li a:focus {
    outline: none;
    background-color: #c00;
    transform: scale(1.05);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .main-nav {
        margin-top: 10px;
        width: 100%;
        flex-direction: column;
        display: none;
        overflow: hidden;
        transition: max-height 0.4s ease;
        max-height: 0;
    }

    .main-nav.active {
        display: flex;
        max-height: 500px;
    }

    .nav-menu {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-menu li {
        width: 100%;
        margin: 5px 0;
    }

    .nav-menu li a {
        width: 100%;
        text-align: left;
    }
}

@media (min-width: 769px) {
    .menu-toggle {
        display: none;
    }

    .main-nav {
        display: flex !important;
        max-height: none !important;
    }

    .nav-menu {
        flex-direction: row;
    }

    .nav-menu li {
        width: auto;
        margin: 0 10px;
    }

    .nav-menu li a {
        width: auto;
        text-align: center;
    }
}