body{
    font-family: 'Trebuchet MS', 'Lucida Sans', 'Myriad Pro', Arial, sans-serif;
    background: #060606;
    font-size: 0.71875rem;
}

#container{
    background: image-set(url('images/page_back_nomenu.webp') 1x, url('images/page_back_nomenu@x2.webp') 2x) no-repeat top center #060606;
    margin: 0 auto;
    padding: 48px 0 0 0;
    width: 1000px;
}

#container > header{
    width: 752px; height: 110px;
    font-family: Georgia, "Cambria", "Hoefler Text", Utopia, "Liberation Serif", "Nimbus Roman No9 L", Times, "Times New Roman", serif;
    padding: 85px 0 0 248px;
}

    #container > header h1{
        font-size: 2rem;
        width: 250px;
        margin-left: -248px;
        font-weight: normal;
        text-shadow: 2px 2px 0 #34411e;
        position: absolute;
        z-index: 20;
    }
        #container h1 a{ color: #94a544; }
    
    #header-image{
        width : 581px; height: 100px;
        position: absolute;
        z-index: 10;
    }

#mobile-menu-toggle,
#mobile-menu-panel {
    display: none;
}

#menu-top-wrapper{
    display: flex;
    width: 531px;
    margin: 0 0 0 248px;
}

#menu{
    flex: 1;
}

.no-menu-top #menu {
    height: 0;
}

    #menu h3{
        display: none;
    }

    #menu .block {
        min-height: 39px;
    }
    
    #menu ul{
        display: flex;
        height: 39px;
    }
        #menu ul li{
            font-size: 0.71875rem;
        }
    
    #menu a{
        display: block;
        color: #4b5660;
        padding: 9px 10px;
        color: #fff;
        font-style: italic;
    }
        #menu a:hover{
            background: #2a2c1c;
            color: #c1d663;
        }

    #menu .placeholder{
        height: 39px;
    }

#content{
    padding: 20px 0 0;
}

    #content .inner{
        display: grid;
        grid-template-columns: auto 1fr auto;
    }

    hgroup{
    }
        hgroup h1{
            font-family: Georgia, "Cambria", "Hoefler Text", Utopia, "Liberation Serif", "Nimbus Roman No9 L", Times, "Times New Roman", serif;
            color: #fff;
            font-size: 1.5625rem;
            font-weight: normal;
        }

article{
    order: 1;
    width: 531px;
    padding: 0 25px 40px;
    color: #a1a1a1;
    line-height: 21px;
    text-align: justify;
    background: #1a1a1a;
    font-family: 'Lucida Sans', 'Trebuchet MS', 'Myriad Pro', Arial, sans-serif;
}
    .no-menu-main article{
        margin-left: 0;
    }
    .no-menu-sec article{
        margin-right: 0;
    }
    .no-menu article{
        margin-left: 0;
        margin-right: 0;
    }
    
    article section h1, article section h2{
        color: #94a544;
        border-bottom: 3px solid #060606;
        font-style: italic;
        font-size: 1rem;
        font-weight: normal;
        padding: 5px 0;
        margin: 0 0 10px 0;
    }
    
    article section h3{
        font-weight: normal;
        font-style: italic;
        color: #fff;
        font-size: 0.875rem;
        padding: 0 0 15px 0;
    }
    
    article p, article dl{
        margin: 0 0 10px 0;
        font-size: 0.71875rem;
    }
    
    .blog .metadata,
    .blog .metadata .comments {
        height: 16px;
    }
    
    article dt{
        color: #494949;
    }
    article dd{
        padding: 0 0 0 20px;
        line-height: 18px;
    }
    article table{
        border: 1px solid #94a544;
        border-width: 1px 0 0 1px;
        width: 100%;
        margin: 30px 0;
    }
        article table td{
            border: 1px solid #94a544;
            padding: 5px;
            border-width: 0 1px 1px 0;          
        }

    article ul, article ol{
        margin: 5px 0 20px 30px;
        color: #fff;
    }
        article ul li{ padding: 2px 0; list-style-type: disc; }
        article ol li{ padding: 1px 0; list-style-type: decimal; }
    
    article blockquote, article pre{
        color: #fff;
        margin: 10px 0;
        line-height: 18px;
        padding: 15px;
    }
        article blockquote{
            background: #94a544;
            font-style: italic;
        }
        article pre{
            background: #696969;
            font-size: 0.6875rem;
            line-height: 14px;
        }
    
    article code{
        padding: 0; margin: 0;
    }
    
    article a{ color: #94a544; border-bottom: 1px dashed #fff; }
    
    article hr {
        background-color: #060606;
    }
    
#navigation-main{
    order: 0;
    width: 200px;
    margin: 0 0 0 48px;
}
    #navigation-main .block{
        margin: 0 0 20px 0;
    }
    #navigation-main h3{
        color: #fff;
        font-style: italic;
        color: #fff;
        font-size: 1rem;
        font-weight: normal;
        padding: 7px 0;
    }
    
        #navigation-main .block > ul > li{
            background: image-set(url('images/menu_left_item_bottom.png') 1x, url('images/menu_left_item_bottom@x2.png') 2x) no-repeat bottom left transparent;
            padding: 0 0 22px 0;
            margin: 5px 0;
            overflow: hidden;
        }
            #navigation-main .block > ul > li a{
                display: block;
                width: 170px;
                padding: 15px 15px 0;
                color: #fff;
                background: image-set(url('images/menu_left_item_top.png') 1x, url('images/menu_left_item_top@x2.png') 2x) no-repeat top left transparent;
                
            }

            .menu-content p a {
                color: #fff;
                text-decoration: underline;
            }
            .menu-content p a:hover {
                text-decoration: none;
            }
    
    aside .placeholder{
        width: 200px;
    }

#navigation-sec{
    order: 2;
    max-width: 165px;
    font-size: 0.6875rem;
}
    #navigation-sec div.block {
        padding: 0 0 4px 3px;
        background: image-set(url('images/menu_right_back.png') 1x, url('images/menu_right_back@x2.png') 2x) repeat-y left top;
    }
    #navigation-sec div.block.last {
        padding-bottom: 12px;
        background-repeat: no-repeat;
        background-position: -163px bottom;
    }
    #navigation-sec div.block.first {
        padding-top: 20px;
        background-repeat: no-repeat;
        background-position: right top;
    }
    #navigation-sec nav{
        width: 163px;
        margin: 0 0 12px 0;
    }
    #navigation-sec h3{
        font-family: Georgia, "Cambria", "Hoefler Text", Utopia, "Liberation Serif", "Nimbus Roman No9 L", Times, "Times New Roman", serif;
        color: #fff;
        font-size: 1rem;
        padding: 7px 0 0 10px;
        font-weight: normal;
    }
    #navigation-sec .block > ul{
        padding: 10px 15px 10px 10px;
        background: image-set(url('images/menu_right_block.png') 1x, url('images/menu_right_block@x2.png') 2x) repeat-x top left #647037;
    }
        #navigation-sec .block > ul > li{
            background: image-set(url('images/bullet.png') 1x, url('images/bullet@x2.png') 2x) no-repeat center left transparent;
            padding: 5px 0 5px 20px;
            color: #fff;
        }
            #navigation-sec .block > ul > li a{
                color: #fff;
            }


#footer{
    width: 560px; height: 70px;
    margin: 0 auto;
    line-height: 15px;
    font-size: 0.65625rem;
    color: #fff;
    padding: 10px 0 20px 75px;
}
    #footer p{
        color: gray;
    }
        #footer p a{ color: #fff; border-bottom: 1px dashed gray; }

/* --- Styles Mobile (Breakpoint) --- */
@media (max-width: 1024px) {
    /* 1. Global Reset & Layout */
    #container {
        width: 100%;
        padding: 0;
        /* Le fond de page complexe est ignoré pour les mobiles ou géré par la couleur unie */
        background: #060606;
    }

    #content {
        padding: 0;
    }
    
    /* 2. Header and Banner Adjustments */
    #container > header {
        width: 100%;
        height: auto;
        padding: 20px 0 10px;
        position: relative;
    }

    #container > header h1 {
        position: static;
        width: auto;
        font-size: 1.5rem;
        margin: 0;
        text-align: center;
        text-shadow: none; /* Simplification */
    }
    
    #header-image {
        width: 100%;
        margin: 10px 0 0 0;
        z-index: 10;
    }

    /* Masquer les navigations fixes */
    #menu-top-wrapper,
    #menu,
    #navigation-main,
    #navigation-sec {
        display: none;
    }

    /* 3. Mobile Menu Toggle Button */
    #mobile-menu-toggle {
        display: block;
        position: fixed;
        top: 15px;
        right: 15px;
        z-index: 1001;
        width: 40px;
        height: 40px;
        background: #94a544; /* Vert olive/Accent */
        border: none;
        border-radius: 3px;
        cursor: pointer;
    }

    #mobile-menu-toggle span {
        display: block;
        width: 24px;
        height: 2px;
        background: #060606;
        margin: 5px auto;
        transition: transform 0.3s, opacity 0.3s;
    }

    body.nav-open #mobile-menu-toggle span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    body.nav-open #mobile-menu-toggle span:nth-child(2) {
        opacity: 0;
    }
    body.nav-open #mobile-menu-toggle span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    /* 4. Mobile Menu Panel (Hidden by default) */
    #mobile-menu-panel {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: #1a1a1a; /* Fond de l'article */
        z-index: 1000;
        overflow-y: auto;
        padding: 70px 20px 20px;
        box-sizing: border-box;
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
    }

    body.nav-open #mobile-menu-panel {
        transform: translateX(0);
    }

    body.nav-open {
        overflow: hidden;
    }

    /* 5. Content Area */
    #content .inner {
        grid-template-columns: 1fr;
    }

    article {
        width: auto !important;
        padding: 20px 15px 40px;
        margin: 0;
        order: 0; 
    }
    .no-menu-sec article, .no-menu-main article, .no-menu article {
        margin: 0;
    }

    /* Titres (du menu principal et sidebars) */
    #mobile-menu-panel h3 {
        color: #94a544; /* Vert olive */
        font-size: 1.2rem;
        padding: 10px 0;
        border-bottom: 1px solid #94a544;
    }

    /* Menu principal (reconstruction du menu #menu) */
    #mobile-menu-panel .menu-top-links ul {
        display: block;
    }
    #mobile-menu-panel .menu-top-links a {
        padding: 10px 0;
        font-size: 1rem;
        border-bottom: 1px dotted #4b5660;
    }
    
    /* Menus Sidebars (#navigation-main et #navigation-sec) */
    #mobile-menu-panel .block {
        width: 100%;
        padding: 0;
        margin-bottom: 20px;
        background: none;
    }
    
    #mobile-menu-panel .block > ul > li {
        background: none;
        padding: 0;
        margin: 0;
        overflow: visible;
        border-bottom: 1px dotted #4b5660;
    }

    #mobile-menu-panel .block > ul > li a {
        padding: 10px 5px;
        background: none;
        color: #fff;
		font-size: 1rem;
    }
    
    #mobile-menu-panel .block > ul > li {
        padding: 8px 0 8px 10px;
        background-position: left center;
    }
    
    #mobile-menu-panel .menu-content p,
    #mobile-menu-panel .menu-content p a,
	#mobile-menu-panel .menu-content label {
        color: #fff; /* Couleur du texte d'article */
        text-decoration: none;
    }
    
    /* 7. Footer */
    #footer {
        width: 100%;
        height: auto;
        padding: 20px 0;
        margin: 0 auto;
        text-align: center;
        line-height: 1.5;
    }
}