body{
    background: url('images/page_back.png') repeat top left #292b26;
    font-family: "Lucida Grande", "Lucida Sans", "Trebuchet MS";
    font-size: 11.5px;
}

#container {
    width: 882px;
    margin: 210px auto 0 auto;
}

#container > header {
    height: 165px;
    margin: -165px 0 0 0;
}
    #container > header h1{
        font-family: Georgia, Cambria, "Hoefler Text", Utopia, "Liberation Serif", "Nimbus Roman No9 L", Times, "Times New Roman", serif;
        font-size: 3.75rem;
        font-weight: normal;
        color: #fff;
        text-shadow: 4px 4px 0 #000;
        min-width: 760px;
        max-width: 882px;
        line-height: 40px;
        letter-spacing: -2px;
        margin: 60px 0 0 0;
        position: absolute;
    }
        #container h1 a{
            color: #fff;
            display: block;
            background: url('images/header_title_back.png') no-repeat bottom right transparent;
            padding: 0 70px 35px 0;
            min-height: 59px;
        }

    #header-image{
        width : 464px; height: 135px;
        margin: 0 0 0 215px;
        position: absolute;
        z-index: 10;
        top: 245px;
    }
    
    .no-menu-top #header-image{
        top: 178px;
    }

#mobile-menu-toggle,
#mobile-menu-panel {
    display: none;
}

#menu {
    font-family: Georgia, Cambria, "Hoefler Text", Utopia, "Liberation Serif", "Nimbus Roman No9 L", Times, "Times New Roman", serif;
    margin: 0 0 15px;
    border-radius: 5px;
    background: #d6e1c3;
}

.no-menu-top #menu {
    height: 0;
    margin: 0;
}
    #menu menu {
        min-height: 30px;
        display: flex;
    }
    #menu menu h3 {
        display: none;
    }
    
    #menu a {
        color: #fff;
        padding: 5px 12px;
        display: block;
        background: #C1D2A4;
    }
        #menu a:hover{
            color: #d6e1c3;
            background: #A8B78D;
        }

    #menu menu ul {
        display: flex;
    }
    
    #menu ul li {
        font-size: 14px;
        border-right: 1px solid #fff;
        text-shadow: 1px 1px 0 #000;
    }
    #menu ul li.first {
        border-left: none;
    }
        #menu ul li.first a {
            border-radius: 5px 0 0 5px;
        }
    #menu ul li.last {
        border-right: none;
    }
        #menu ul li.last a {
            border-radius: 0 5px 5px 0;
        }
        #menu ul li.first.last a {
            border-radius: 5px;
        }

#content{
}
#content .inner {
    display: grid;
    grid-template-columns: auto auto auto;
    box-shadow: 0 20px 59px rgba(0, 0, 0, 0.73);
    border-radius: 5px;
}
    hgroup h1{
        font-family: Georgia, Cambria, "Hoefler Text", Utopia, "Liberation Serif", "Nimbus Roman No9 L", Times, "Times New Roman", serif;
        font-weight: normal;
        color: #232520;
        font-size: 40px;
        padding: 20px 0;
    }

article{
    padding: 160px 16px 50px;
    line-height: 17px;
    text-align: justify;
    background: #fff;
    order: 1;
}
    
    article section h1, article section h2{
        color: #2f322c;
        font-size: 14px;
        font-style: italic;
        font-weight: normal;
        padding: 5px 0;
        margin: 12px 0;
        border-bottom: 1px solid #8f9b7a;
    }
        article section header hgroup h1{
            margin: 0 0 12px 0;
        }
    
    article section h3{
        background: #d6e1c3;
        padding: 3px 5px;
        font-weight: normal;
        font-style: italic;
        margin: 10px 0;
    }
    article p, article dl{
    }   
    article dt{
        color: #67774c;
    }
    article dd{
        padding: 0 0 0 15px;
        background: #d7deca;
        padding: 3px 5px;
        font-weight: normal;
        font-style: italic;
        margin: 10px 0 10px 10px;
    }
    article table{
        border: 1px solid #67774c;
        border-width: 1px 0 0 1px;
        width: 100%;
        margin: 20px 0;
    }
        article table td{
            padding: 4px;
            border: 1px solid #67774c;
            border-width: 0 1px 1px 0;
        }

    article ul, article ol{
        margin: 15px 0 15px 30px;
    }
        article ul li{ padding: 2px 0; list-style-type: disc; }
        article ol li{ padding: 1px 0; list-style-type: decimal; }
    
    article blockquote, article pre{
        border-top: 1px solid #445527;
        border-bottom: 1px solid #445527;
        margin: 25px 0;
        padding: 15px;
        line-height: 12px;
    }
        article blockquote{
            font-style: italic;
            text-align: center;
        }
        article pre{
        }
    
    article code{
    }   
    article a{ color: #7a8b5d; }
    
    article hr {
        background-color: #8f9b7a;
    }

aside{
    color: #20290f;
    padding: 30px 0 0 0;
}
    aside a{ color: #20290f; }
    aside h3{
        font-family: Georgia, Cambria, "Hoefler Text", Utopia, "Liberation Serif", "Nimbus Roman No9 L", Times, "Times New Roman", serif;
        font-size: 19px;
        font-weight: normal;
        text-shadow: 1px 1px 0 #fff;
        padding: 0 10px 10px 0;
        margin: 0 0 10px 0;
        letter-spacing: -1px;
        background: url('images/menu_title.png') no-repeat bottom left transparent;
        text-align: right;
    }
    aside .block{
        padding: 0 0 30px 0;
    }
    aside .block > ul{
    }
        aside .block > ul > li{
            padding: 4px 25px
        }

    aside .menu-content{
        padding: 0 15px 15px;
    }
    aside input[type="text"],
    aside input[type="email"]{
        width: 130px;
    }


#navigation-main{
    width: 205px;
    background: url('images/menu_main_back.png') no-repeat top left #d6e1c3;
    order: 0;
    padding-bottom: 20px;
    border-radius: 5px 0 0 5px;
}
    #navigation-main .block{
    }
    #navigation-main h3{
    }
    #navigation-main .block > ul{
    }
        #navigation-main .block > ul > li{
            background: url('images/bullet.png') no-repeat center left;
            margin: 0 0 0 -10px;
        }
            #navigation-main a{
            }
    
#navigation-sec{
    width: 194px;
    background: url('images/menu_sec_back.png') no-repeat top left #d6e1c3;
    order: 2;
    padding-bottom: 20px;
    border-radius: 0 5px 5px 0;
}
    #navigation-sec .block{
    }
    #navigation-sec h3{
    }
    #navigation-sec .block > ul{
    }
        #navigation-sec .block > ul > li{
            background: url('images/bullet.png') no-repeat center right;
            text-align: right;
            margin: 0 -10px 0 0;
        }
            #navigation-sec a{
            }

#footer{
    width: 882px;
    padding: 30px 0 30px;
    margin: 0 auto;
    color: #fff;
    font-size: 10px;
    line-height: 14px;
}
    #footer footer{
    }
    #footer p{
    }
        #footer p a{
            color: #d6e1c3;
            border-bottom: 1px dashed #d6e1c3;
        }

/* Editor debugs */
#header-icon-edit {
    margin: 180px 0 0 290px;
}

/* --- Styles Mobile (Breakpoint) --- */
@media (max-width: 950px) {
    #container {
        margin-top: 0;
        width: auto;
    }

    #main-content {
        word-wrap: anywhere;
    }

	#container > header{
		margin: 0;
	}

    #container > header h1{
        margin: 20px 60px 0 20px;
        font-size: 1.8rem;
        letter-spacing: -1px;
        min-width: auto;
    }

    #container > header h1 a{
        top: 0 !important;
        left: 0 !important;
		background-position: calc(100% + 50px) bottom;
    }

    #menu,
    #navigation-main,
    #navigation-sec {
        display: none;
    }

    #mobile-menu-toggle {
        display: block;
        position: fixed;
        top: 15px;
        right: 15px;
        z-index: 1001;
        width: 40px;
        height: 40px;
        background: #20290f; /* Couleur de fond basée sur aside text pour un contraste */
        border: none;
        border-radius: 3px;
        cursor: pointer;
    }

    #mobile-menu-toggle span {
        display: block;
        width: 24px;
        height: 2px;
        background: #fff;
        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);
    }

    #mobile-menu-panel {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: #fff;
        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;
    }

    #content .inner {
        grid-template-columns: 1fr;
        padding: 0 10px;
        box-shadow: none;
        border-radius: 0;
    }

    article{
        order: 0;
        margin: 0 !important;
        padding: 20px 16px 50px;
        width: auto;
    }

    #mobile-menu-panel .block { margin-bottom: 20px; }
    #mobile-menu-panel .block h3 {
        font-size: 1rem;
        font-weight: bold;
        text-transform: uppercase;
        padding: 10px;
        background-color: #d6e1c3; /* Couleur de menu de navigation principale */
        color: #20290f; /* Couleur de texte aside */
        text-shadow: none;
        text-align: left;
    }
    #mobile-menu-panel ul { display: block; }
    #mobile-menu-panel li {
        display: block;
        border-right: none;
        border-bottom: 1px solid #eee;
        padding: 0;
        margin: 0;
    }
    #mobile-menu-panel a {
        display: block;
        padding: 15px 10px;
        color: #20290f;
        text-shadow: none;
        background: none;
        border-radius: 0;
    }
    
    #mobile-menu-panel > menu { display: none; }
    
    #header-image {
        width: 100%;
        height: auto;
        margin: 0;
        position: relative;
        top: auto;
        left: auto;
    }
    
    .no-menu-top #header-image {
        display: none;
    }
    
    #footer {
        width: auto;
        padding: 15px 10px;
    }
}