body{
    font-family: 'Lucida Sans', 'Trebuchet MS', 'Myriad Pro', Arial, sans-serif;
    font-size: 11.5px;
}

#container{
    margin: 0 auto;
    width: 998px;
    position: relative;
}

#container > header{
    padding: 60px 0 30px 0;
    height: 80px;
    border-bottom: 1px solid #696969;
    font-family: Georgia, Cambria, "Hoefler Text", Utopia, "Liberation Serif", "Nimbus Roman No9 L", Times, "Times New Roman", serif;
}

    #container > header h1{
        font-size: 49px;
        font-weight: lighter;
        position: absolute;
        z-index: 100;
        width: 100%;
    }
        #container h1 a{ color: #000; }
    #header-image{
        width : 1000px; height: 115px;
        margin: 114px 0 0 0;
        position: absolute;
        border-top: 3px solid #141414;
        border-bottom: 3px solid #141414;
    }

#mobile-menu-toggle,
#mobile-menu-panel {
    display: none;
}

#menu{
    margin: 125px 0 0 0;
    border-bottom: 1px solid #c8c8c8;
}
    
    #menu #menu-top-wrapper {
        padding: 0 0 2px 0;
        height: 22px;
    }
    #menu .placeholder {
        height: 22px;
    }
    .no-menu-top #menu #menu-top-wrapper {
        height: 0;
    }

    #menu ul {
        display: flex;
        gap: 4px;
    }
        #menu ul li{
            font-size: 11.5px;
            margin: 3px 0;
        }
    
    #menu a{
        color: #fff;
        background: #000;
        padding: 3px 10px;
        display: block;
    }
        #menu a:hover{ background: #696969; }
    
    #menu h3 {
        display: none;
    }

#content{
    padding: 20px 0 0;
}
    #content nav.placeholder {
        width: 200px;
    }
    #content .inner {
        display: grid;
        grid-template-columns: auto auto auto;
    }

    hgroup{
        position: absolute;
        top: 0;
        margin: 120px 0 0 -200px;
        background: url('images/corner.png') no-repeat left center transparent;
        z-index: -1;
    }
        hgroup h1{
            font-weight: normal;
            color: #999;
            font-style: italic;
            font-size: 14px;
            margin: 0 0 0 20px
        }

article{
    width: 548px;
    padding: 0 25px 40px;
    color: #a1a1a1;
    line-height: 21px;
    text-align: justify;
}
    .no-menu-sec article, .no-menu-main article{ width: 748px; }
    .no-menu article{ width: 948px; }

    article section h1, article section h2{
        font-family: Georgia, Cambria, "Hoefler Text", Utopia, "Liberation Serif", "Nimbus Roman No9 L", Times, "Times New Roman", serif;
        color: #141414;
        font-size: 25px;
        padding: 10px 0;
        font-weight: normal;
    }
    
    article section h3{
        color: #696969;
        border-bottom: 1px solid #a6a6a6;
        font-style: italic;
        font-size: 16px;
        font-weight: normal;
        padding: 5px 0;
        margin: 0 0 10px 0;
    }
    
    article p, article dl{
        padding: 0 0 10px 0;
    }
    
    article a{
    }
    
    article dt{
        color: #494949;
    }
    article dd{
        padding: 0 0 0 20px;
        line-height: 18px;
    }
    article table{
        border: 1px solid #696969;
        border-width: 1px 0 0 1px;
        width: 100%;
        margin: 30px 0;
    }
        article table td{
            border: 1px solid #696969;
            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: #141414;
            font-style: italic;
        }
        article pre{
            background: #696969;
            font-size: 11px;
            line-height: 14px;
        }
    
    article code{
        padding: 0; margin: 0;
    }
    
    article a{ color: #141414; border-bottom: 1px dashed gray; }

    article a img{ background-color: #fff }
    
    article hr {
        background-color: #a6a6a6;
    }

aside{ color: #a1a1a1; }
	aside .block{
		width: 200px;
	}
    aside h3{
        background: #141414;
        color: #fff;
        font-size: 12px;
        padding: 5px 10px;
        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: url('images/bullet.png') no-repeat top left #fff;
        }
            aside a{ color: #a1a1a1; }
            aside a:hover{ text-decoration: underline; }
    
    aside input[type="text"],
    aside input[type="email"]{
        width: 145px;
    }
    
    aside .menu-content{
        padding: 10px;
    }

    aside .phorm .buttons {
        text-align: center;
    }

    aside .block p {
        margin: 5px 0;
    }
            
#footer{
    width: 970px;
    border-bottom: 1px solid #696969;
    border-top: 1px solid #c8c8c8;
    padding: 15px 14px;
    margin: 0 auto 5px auto;
}
    #footer p{
        color: gray;
    }
        #footer p a{ color: #141414; border-bottom: 1px dashed gray; }

/* Editor debugs */
#header-icon-edit {
    margin: 130px 0 0 20px;
    z-index: 110;
}

#navigation-main{ order: 0; }
#navigation-sec{ order: 2; }
main{ order: 1; }

/* --- Styles Mobile (Breakpoint) --- */
@media (max-width: 950px) {
    #container {
        width: 100%;
        margin-top: 0;
    }

	#content {
		padding: 0;
	}

    #main-content {
        word-wrap: anywhere;
    }

	hgroup {
		position: relative;
		margin: 0;
	}

    #container > header h1 {
        margin: 20px 60px 0 20px;
        font-size: 1.8rem;
        letter-spacing: -1px;
		max-width: calc(100% - 60px);
    }

    #container > header h1 a {
        top: 0 !important;
        left: 0 !important;
    }
    
    #container > header{
        padding: 0;
        height: auto;
    }

    #header-image {
        width: 100%;
        height: 115px; /* Conserve la hauteur par défaut ou ajustez si nécessaire */
        margin: 0;
        position: relative;
    }

    #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: #000; /* Reprend une couleur sombre du template */
        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;
    }

    article {
        width: auto !important;
        padding: 10px;
        order: 0; 
        margin: 0 !important;
		box-sizing: border-box;
    }
    
    #footer {
        width: 100%;
        padding: 15px 10px;
		box-sizing: border-box;
    }

    #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: #141414; /* Reprend la couleur de l'en-tête de sidebar */
        color: #fff;
        font-style: normal;
    }
    #mobile-menu-panel ul { display: block; }
    #mobile-menu-panel li {
        display: block;
        border-right: none;
        border-bottom: 1px solid #eee;
        background: none;
        padding: 0;
        margin: 0;
    }
    #mobile-menu-panel a {
        display: block;
        padding: 15px 10px;
        color: #141414;
        text-shadow: none;
        background: none;
    }
    
    #mobile-menu-panel > menu { display: none; }
}