body{
    font-family: 'Trebuchet MS', 'Lucida Sans', 'Myriad Pro', Arial, sans-serif;
    background: image-set(url('images/page_back.webp') 1x, url('images/page_back@x2.webp') 2x) repeat top center transparent;
    font-size: 0.71875rem;
}

#container{
    background: image-set(url('images/container_back.webp') 1x, url('images/container_back@x2.webp') 2x) repeat-y top left transparent;
    margin: 0 auto;
    padding: 78px 0 0 0;
    width: 1000px; height: 100%;
}

.no-menu-top{
    padding: 33px 0 0 0;
}

#container > header{
    width: 897px; height: 210px;
    padding: 35px 0 0 103px;
    position: relative;
    background: image-set(url('images/header_back.webp') 1x, url('images/header_back@x2.webp') 2x) repeat-y 72px 0 transparent;
}

    #container > header h1{
        position: absolute;
        font-size: 2.8125rem;
        z-index: 10;
        font-weight: normal;
        letter-spacing: -2px;
        text-shadow: 4px 4px 0 #666d74;
        margin: 50px 0 0 20px;
    }
        #container h1 a{ color: #fff; }
        
    #header-image{
        width : 805px; height: 180px;
        position: absolute;
        border-radius: 7px;
    }

#mobile-menu-toggle,
#mobile-menu-panel {
    display: none;
}

#menu{
    position: absolute;
    top: 0;
    margin: 5px 0 0 50px;
    height: 39px; width: 760px;
    padding: 16px 0 0;
    background: image-set(url('images/menu_top_back.webp') 1x, url('images/menu_top_back@x2.webp') 2x) no-repeat top left transparent;
}
    .no-menu-top #menu{
        height: 0;
        margin: 0;
        padding: 0;
    }
    
    #menu .placeholder{
        height: 39px;
    }
    
    #menu h3{
        display: none;
    }
    
    #menu-top-wrapper{
        display: flex;
        height: 39px;
        overflow: hidden;
    }
    
        #menu ul{
            display: flex;
        }
    
        #menu ul li{
            font-size: 0.71875rem;
            margin: 3px 2px;
        }
    
    #menu a{
        color: #4b5660;
        padding: 1px 10px;
        border-right: 1px solid #4b5660;
        display: block;
    }
    #menu .last a{
        border-right: none;
    }
        #menu a:hover{ background: #696969; }

#content{
    padding: 20px 0 0;
}

    #content .inner{
        display: grid;
        grid-template-columns: auto 1fr auto;
    }

    hgroup{
    }
        hgroup h1{
            font-weight: normal;
            font-style: italic;
            color: #4b5660;
            font-size: 2rem;
            padding: 0 0 15px 0;
        }

#navigation-main{
    order: 0;
}

#navigation-sec{
    order: 2;
}

article{
    order: 1;
    width: 510px;
    padding: 15px 25px 40px;
    color: #a1a1a1;
    line-height: 21px;
    text-align: justify;
}
    .no-menu-sec article{ 
        width: 680px;
    }
    .no-menu-main article{ 
        width: 540px;
    }
    .no-menu article{ 
        width: 780px;
    }
    article section h1, article section h2{
        color: #696969;
        border-bottom: 1px solid #a6a6a6;
        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: #4b5660;
        font-size: 1rem;
        padding: 0 0 15px 0;
    }
    
    article p, article dl{
        padding: 0 0 10px 0;
        font-family: 'Lucida Sans', 'Trebuchet MS', 'Myriad Pro', Arial, sans-serif;
        font-size: 0.71875rem;
    }
    
    article dt{
        color: #494949;
    }
    article dd{
        padding: 0 0 0 20px;
        line-height: 18px;
    }
    article table{
        border: 1px solid #4b5660;
        border-width: 1px 0 0 1px;
        width: 100%;
        margin: 30px 0;
    }
        article table td{
            border: 1px solid #4b5660;
            padding: 5px;
            border-width: 0 1px 1px 0;          
        }

    article ul, article ol{
        margin: 0 0 0 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{
        color: #fff;
        margin: 10px 0;
        line-height: 18px;
        padding: 15px;
    }
        article blockquote{
            background: #4b5660;
            font-style: italic;
        }
        article pre{
            background: #696969;
            font-size: 0.6875rem;
            line-height: 14px;
        }
    
    article code{
        padding: 0; margin: 0;
    }
    
    article a{ color: #4b5660; border-bottom: 1px dashed gray; }
    
    article hr {
        background-color: #a6a6a6;
    }

aside{
    max-width: 216px;
    color: #453929;
}
    aside .placeholder {
        width: 216px;
    }

    aside .block{
        width: 186px;
        padding: 15px;
        margin: 10px 0;
        background: image-set(url('images/post-it.webp') 1x, url('images/post-it@x2.webp') 2x) no-repeat top left;
    }

    aside h3{
        background: image-set(url('images/menu_title.webp') 1x, url('images/menu_title@x2.webp') 2x) no-repeat bottom left transparent;
        color: #453929;
        font-size: 1rem;
        padding: 5px 10px 15px;
        font-style: italic;
        font-weight: normal;
    }
    aside .block > ul{
        padding: 10px 0 30px 0;
    }
        aside .block > ul > li{
            padding: 5px 0 5px 30px;
            margin: 4px 0;
            background: image-set(url('images/bullet.webp') 1x, url('images/bullet@x2.webp') 2x) no-repeat top left transparent;
        }
            aside a{ color: #453929; }
    
    aside .menu-content{
        padding: 12px;
    }
    aside input[type="text"],
    aside input[type="email"]{
        width: 130px;
    }
            
#footer{
    width: 830px; height: 70px;
    background: image-set(url('images/container_back.webp') 1x, url('images/container_back@x2.webp') 2x) repeat-y 0 7px transparent;
    padding: 15px 0 15px 170px;
    margin: 0 auto;
}
    #footer footer{
        background: image-set(url('images/footer_back.webp') 1x, url('images/footer_back@x2.webp') 2x) no-repeat top left transparent;
        padding: 12px 0 0 45px;
        min-height: 58px;
    }
    #footer p{
        color: gray;
    }
        #footer p a{ color: #141414; border-bottom: 1px dashed gray; }

/* --- Styles Mobile (Breakpoint) --- */
@media (max-width: 950px) {
    #container {
        width: 100%;
        padding: 0;
        background: none;
    }
    
    #container > header {
        width: auto;
        height: auto;
        padding: 20px 10px 0;
        background: none;
    }

    #container > header h1 {
        position: relative;
        font-size: 2rem;
        margin: 0;
        text-align: center;
        letter-spacing: normal;
    }

    #header-image {
        width: 100%;
        position: relative;
        margin: 10px 0;
        border-radius: 0;
    }

    #menu,
    #navigation-main,
    #navigation-sec {
        display: none;
    }

	#content{
		padding: 0;
	}

    #mobile-menu-toggle {
        display: block;
        position: fixed;
        top: 15px;
        right: 15px;
        z-index: 1001;
        width: 40px;
        height: 40px;
        background: #4b5660;
        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: #fff5ae; /* Couleur post-it */
        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;
    }

    article {
        width: auto !important;
        padding: 15px 10px 20px;
        order: 0; 
        text-align: left;
    }
    
    aside { 
        width: 100%; 
        max-width: 100%;
    }
    aside .block {
        width: 95%; /* Prend presque toute la largeur */
        padding: 10px;
        margin: 10px auto;
        background: none; /* Supprime l'image de fond "post-it" sur mobile pour une meilleure lisibilité/performance */
        border: 1px solid #453929; /* Ajoute une bordure simple */
    }
    aside .placeholder { width: 100%; }
    
    #footer{
        width: 100%;
        padding: 10px 0;
        margin: 0;
        background: none;
    }
    #footer footer{
        background: none;
        padding: 10px;
        min-height: 0;
        text-align: center;
    }
    
    /* Styles pour le menu mobile */
    #mobile-menu-panel .block { margin-bottom: 20px; width: auto; padding: 0; background: none; }
    #mobile-menu-panel .block h3 {
        font-size: 1.1rem;
        padding: 10px;
        background: #4b5660;
        color: #fff;
        font-style: normal;
        margin: 0;
    }
    #mobile-menu-panel .block > ul { padding: 0; }
    #mobile-menu-panel .block > ul > li {
        padding: 10px;
        margin: 0;
        background: none;
        border-bottom: 1px solid #ccc;
    }
    #mobile-menu-panel a {
        color: #453929;
        display: block;
    }

}