body{
    font-family: Verdana,Arial,Helvetica,sans-serif;
    font-size: 11px;
    background: url('images/background.jpg') no-repeat center top #fff;
}


#container{
    width: 960px;
    padding: 10px 12px;
    margin: 40px auto 20px;
    
    background-color: #fff;
    background-color: rgba(256, 256, 256, 0.6);

    color: #444;

    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.15);
}

#container > header {
    margin-top: 103px;
    position: absolute;
}
    #container > header h1{
        font-family: Georgia,"Times New Roman",Times,serif;
        font-size: 30px;
        font-weight: normal;
        position: absolute;
        z-index: 11;
        margin: -70px 0 0 20px;
    }
    #container h1 a{ color: #333; }
#header-image{
    width : 960px; height: 115px;
}

#mobile-menu-toggle,
#mobile-menu-panel {
    display: none;
}

#menu{
    width: 940px;
    padding: 25px 10px;
    position: absolute;
    top: 55px;

    background: url('images/menu_top_bg.jpg') repeat;

    font-size: 12px;
    text-align: right;
}
#menu .placeholder {
    height: 48px;
}
#menu .block {
    display: inline-block;
}
#menu menu {
    width: 940px;
    height: 48px;
}
    #menu menu .flat h3 {
        display: none;
    }
        #menu ul {
            display: flex;
            gap: 6px;
        }

        #menu menu li {
            line-height: 48px;
        }

        #menu a {
            font-family: Georgia,"Times New Roman",Times,serif;
            color: #333;
            font-size: 13px;
            padding: 7px 10px;
            border-radius: 3px;
        }

        #menu a:hover{
            background-color: #f3b3bd;
            color: #fff;
        }

#navigation-main{ order: 0; }
#navigation-sec{ order: 2; }
main{ order: 1; }

#content{
    margin: 228px 0 0;
}
    #content nav.placeholder {
        width: 200px;
    }
    #content .inner {
        display: grid;
        grid-template-columns: auto auto auto;
    }
    article hgroup h1{
        font-weight: 400;
        color: #000;
        font-size: 28px;
        margin-bottom: 7px;
        letter-spacing: -1px;
        margin-bottom: 20px;
    }

article{
    padding: 0 25px 40px;
    color: #444;
    font-size: 12px;
}
    .no-menu-main article {
        padding: 0 25px 40px 0;
    }
    .no-menu-sec article {
        padding: 0 0 40px 25px;
    }
    .no-menu article{
        padding: 0;
    }

    article h1,
    article h2,
    article h3,
    article h4 {
        color: #000;
        margin: 0 0 10px 0;
        letter-spacing: -1px;
        font-weight: 400;
    }
    article h1, article h2 {
        font-size: 25px;
        margin: 0 0 20px 0;
    }
    
    article h3 {
        border-bottom: 1px solid #000;
        font-size: 16px;
        padding: 5px 0;
    }
    
    article h4 {
        font-size: 16px;
        font-weight: 100;
    }
    
    article p, article dl{
        padding: 0 0 10px 0;
        line-height: 17px;
    }
    
    article a {
        color: #FF0D40;
        text-decoration: underline;
    }
    article a:hover {
        text-decoration: none;
    }

    article em {
        color: #FF0D40;
    }
    
    article dt {
        color: #494949;
    }
    article dd {
        padding: 0 0 0 20px;
        line-height: 18px;
    }
    article table {
        margin: 30px 0;
    }
        article table td {
            padding: 5px;       
        }

    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: #333;
        margin: 10px 0;
        line-height: 18px;
        padding: 15px;
    }
        article blockquote {
            background: #f2e2a4;
            font-style: italic;
        }
        article pre {
            background: #f6c1df;
            font-size: 11px;
            line-height: 14px;
        }
    
    article code {
        padding: 0; margin: 0;
    }
    
    article hr {
        background-color: #333;
    }

aside .block { width: 200px; color: #a1a1a1; }
    aside h3 {
        color: #000;
        font-size: 14px;
        font-weight: normal;
        padding: 5px 10px;
        margin: 0 -19px 0 0;
        min-height: 25px;
    }
    aside.left h3 {
        margin: 0 0 0 -19px;
        background: url('images/menu_title_bg.png') no-repeat left;
    }
    aside.right h3 {
        margin: 0 -19px 0 0;
        background: url('images/menu_title_bg.png') no-repeat right;
    }
    aside .block > ul {
        padding: 10px 0 30px 0;
    }
        aside .block > ul > li {
            margin: 4px 0;
        }
            aside .block > ul > li > a {
                color: #666;
                display: block;
                margin: 0 0 0 5px;
                padding: 5px 0 5px 5px;
                text-indent: 16px;
                line-height: 16px;

                background: url('images/bullet.png') no-repeat 0 5px;
            }
            aside .block p > a {
                color: #666;
            }
            aside .block > ul > li > a:hover,
            aside .block  a:hover {
                text-decoration: underline;
            }
            aside .block p {
                margin: 5px 0;
            }

    aside.left .menu-content {
        margin: 4px 0 4px 4px;
        padding: 10px 10px 10px 0;
    }
    aside.right .menu-content {
        margin: 4px 4px 4px 0;
        padding: 10px 0 10px 10px;
    }
    aside input[type="text"],
    aside input[type="email"]{
        width: 145px;
    }

    aside .phorm .buttons {
        text-align: center;
    }
            
#footer {
    width: 100%;
    background-color: #EAEAEA;
    color: #777;
    padding: 0 0 15px;
}
    #footer footer {
        margin: auto;
        width: 960px;
    }
    #footer p {
        padding: 15px 0 0;
    }
        #footer p a {
            color: #FF0D40;
            text-decoration: underline;
        }
        #footer p a:hover {
            text-decoration: none;
        }

/* Editor debugs */
#wallpaper-icon-edit {
    top: 70px;
}

#wallpaper-parameters {
    top: 90px;
}

/* --- Styles Mobile (Breakpoint) --- */
@media (max-width: 984px) {
    #container {
        width: auto;
        padding: 0 10px 20px;
        margin: 0 auto;
        box-shadow: none;
    }

    #container > header {
        position: relative;
        margin-top: 0;
        padding: 15px 10px 10px;
        height: auto;
        border-bottom: 1px solid #696969;
        justify-content: space-between;
        align-items: center;
    }
    
    #container > header h1 {
        position: relative;
        font-size: 24px;
        margin: 0;
        z-index: 1;
    }

    #header-image {
        width: 100%;
        height: 115px; /* Conserver la hauteur fixe comme demandé */
        display: block;
    }
    
    /* Masquer le menu desktop et les navigations secondaires */
    #menu,
    #navigation-main,
    #navigation-sec {
        display: none;
    }

    #content {
        margin: 10px 0 0;
    }
    #content .inner {
        display: block; /* Empiler les éléments */
        padding: 0 5px;
    }

    article {
        padding: 10px 0 30px;
    }
    .no-menu-main article,
    .no-menu-sec article,
    .no-menu article {
        padding: 10px 0 30px;
    }

    /* Bouton d'activation du menu mobile */
    #mobile-menu-toggle {
        display: block;
        position: fixed;
        top: 10px;
        right: 10px;
        z-index: 1001;
        width: 40px;
        height: 40px;
        background: #ff9ca6;
        border: none;
        border-radius: 3px;
        cursor: pointer;
    }

    #mobile-menu-toggle span {
        display: block;
        width: 24px;
        height: 3px;
        background: #fff;
        margin: 5px auto;
        transition: transform 0.3s, opacity 0.3s;
    }

    body.nav-open #mobile-menu-toggle span:nth-child(1) {
        transform: translateY(8px) 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(-8px) rotate(-45deg);
    }

    /* Panneau de menu mobile */
    #mobile-menu-panel {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: #fff;
        z-index: 1000;
        overflow-y: auto;
        padding: 60px 10px 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;
    }

    /* Mise en forme des éléments dans le panneau mobile */
    #mobile-menu-panel > .block {
        width: auto;
        margin-bottom: 20px;
        color: #444;
    }
    #mobile-menu-panel h3 {
        width: auto;
        margin: 0;
        background: none;
        border-bottom: 1px solid #000;
        font-weight: bold;
        padding: 10px 0;
		font-size: 1rem;
    }
    #mobile-menu-panel .block > ul {
        padding: 10px 0;
    }
    #mobile-menu-panel .block > ul > li {
        margin: 0;
        padding: 5px 0;
        list-style-type: none;
        border-bottom: 1px dashed #ddd;
    }
    #mobile-menu-panel .block > ul > li:last-child {
        border-bottom: none;
    }
    #mobile-menu-panel .block > ul > li > a {
        padding: 5px 10px;
        margin: 0;
        color: #f4b6bc;
        background: none;
        text-indent: 0;
        text-decoration: none;
		font-size: 0.9rem;
    }
    #mobile-menu-panel .menu-content {
        margin: 0;
        padding: 10px;
        border: 1px solid #ddd;
    }

    #mobile-menu-panel #menu {
        display: block;
        position: relative;
        top: auto;
        width: auto;
        padding: 0;
        margin-bottom: 20px;
        background: none;
    }
    #mobile-menu-panel #menu menu {
        width: auto;
        height: auto;
    }
    #mobile-menu-panel #menu ul {
        display: block;
        gap: 0;
        border-top: 1px solid #000;
    }
    #mobile-menu-panel #menu menu li {
        line-height: normal;
        border-bottom: 1px solid #ddd;
    }
    #mobile-menu-panel #menu a {
        padding: 10px 15px;
        font-size: 14px;
        color: #000;
        background-color: transparent;
        border-radius: 0;
    }
    #mobile-menu-panel #menu a:hover {
        background-color: #f3b3bd;
        color: #fff;
    }

    #footer {
        padding: 0 0 15px;
    }
    #footer footer {
        width: auto;
        padding: 0 10px;
    }
}