body{
    font-family: 'Lucida Sans', 'Trebuchet MS', 'Myriad Pro', Arial, sans-serif;
    background: image-set(url('images/page_back.webp') 1x, url('images/page_back@x2.webp') 2x) repeat-x top left #fff;
    font-size: 0.71875rem;
}

#container{
    background: image-set(url('images/container_back.webp') 1x, url('images/container_back@x2.webp') 2x) no-repeat top center #fff;
    margin: 0 auto;
    width: 1000px;
}

#container > header{
    width: 1000px; height: 245px;
}
    #container > header h1{
        position: absolute;
        font-size: 1rem;
        width: 350px;
        font-weight: normal;
        font-style: italic;
        text-shadow: 2px 2px 0 #232527;
        z-index: 10;
    }
        #container header h1 a{ color: #fff; }
    
    #header-image{
        width : 404px; height: 135px;
        margin: 0 0 0 95px;
        position: absolute;
        top: 94px;
    }

#mobile-menu-toggle,
#mobile-menu-panel {
    display: none;
}

#menu{
    position: absolute;
    height: 39px; width: 712px;
    top: 0;
    margin: 0 0 0 300px;
    padding: 20px 0 0 120px;
}
    #menu .placeholder{
        height: 39px;
    }
    
    #menu h3{
        display: none;
    }
    
    .no-menu-top #menu{
        height: 0;
        margin: 0;
        padding: 0;
    }
    
    #menu-top-wrapper{
        display: flex;
        height: 39px;
    }
    
    #menu ul{
        display: flex;
    }
    
    #menu ul li{
        font-size: 0.71875rem;
        background: image-set(url('images/menu_top_item.webp') 1x, url('images/menu_top_item@x2.webp') 2x) no-repeat top left transparent;
        margin: 0 4px;
    }
    
    #menu a{
        display: block;
        padding: 12px 15px 8px 50px;
        color: #fff;
        font-style: italic;
    }
#content{
    padding: 20px 0 0;
}
    #content .inner{
        display: grid;
        grid-template-columns: auto 1fr auto;
    }
    
    article section hgroup{
        position: absolute;
        top: 0;
        margin: 100px 0 0 220px;
        width: 450px;
    }
        .no-menu-main hgroup{ margin: 100px 0 0 440px; }
        .no-menu hgroup{ margin: 100px 0 0 440px; }
        
    article section hgroup h1{
        color: #dd0642;
        letter-spacing: -1px;
        text-shadow: 0 1px 0 #8c3e54;
        font-size: 1.5625rem;
        font-style: italic;
        font-weight: normal;
    }

article{
    order: 1;
    padding: 0 30px 40px;
    color: #a1a1a1;
    line-height: 21px;
    text-align: justify;
}
    .no-menu-main article{
        padding: 70px 0 0 100px;
    }
    
    .no-menu article{
        padding: 30px 0 0 100px;
    }
    
    article section h1, article section h2{
        color: #2e3337;
        font-style: italic;
        font-size: 1.125rem;
        font-weight: normal;
        padding: 5px 0;
        margin: 0 0 10px 0;
    }
    
    article section h3{
        font-weight: normal;
        font-style: italic;
        font-style: italic;
        color: #dd0642;
        font-size: 0.875rem;
        padding: 0 0 15px 0;
    }
    
    article p, article dl{
        padding: 0 0 10px 0;
        font-size: 0.71875rem;
    }
    
    article dt{
        color: #494949;
    }
    article dd{
        padding: 0 0 0 20px;
        line-height: 18px;
    }
    article table{
        border: 1px solid #dd0642;
        border-width: 1px 0 0 1px;
        width: 100%;
        margin: 30px 0;
    }
        article table td{
            border: 1px solid #dd0642;
            padding: 5px;
            border-width: 0 1px 1px 0;          
        }

    article ul, article ol{
        margin: 5px 0 20px 30px;
        color: gray;
    }
        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: #dd0642;
            font-style: italic;
        }
        article pre{
            background: #2e3337;
            font-size: 0.6875rem;
            line-height: 14px;
        }
    
    article code{
        padding: 0; margin: 0;
    }
    
    article a{ color: #dd0642; }
    
    article hr {
        background-color: #2e3337;
    }
    
#navigation-main{
    order: 0;
    margin: 60px 0 0 48px;
    max-width: 245px;
}
    #navigation-main .placeholder{
        width: 245px;
    }
    
    #navigation-main .block{
        background: image-set(url('images/menu_left_back.webp') 1x, url('images/menu_left_back@x2.webp') 2x) no-repeat bottom left transparent;
        width: 245px;
    }
    #navigation-main h3{
        height: 65px;
        background: image-set(url('images/menu_left_title.webp') 1x, url('images/menu_left_title@x2.webp') 2x) no-repeat top left transparent;
        color: #fff;
        font-style: italic;
        font-size: 0.8125rem;
        font-weight: normal;
        padding: 53px 0 0 50px;
    }
    #navigation-main .block > ul{
        width: 180px;
        margin: -20px auto 0 auto;
        padding: 0 0 20px 0;
    }
        #navigation-main .block > ul > li{
            background: image-set(url('images/menu_left_bullet.webp') 1x, url('images/menu_left_bullet@x2.webp') 2x) no-repeat center left transparent;
            padding: 4px 0 4px 40px;
            margin: 0 0 10px 0;
        }
            #navigation-main a{
                color: #060606;
            }
            #navigation-main a:hover{
                text-decoration: underline;
            }
            
    #navigation-main .menu-content{
        padding: 0 30px 15px;
    }
    #navigation-main input[type="text"],
    #navigation-main input[type="email"]{
        width: 155px;
    }
    
#navigation-sec{
    order: 2;
    font-size: 0.6875rem;
    color: #fff;
    max-width: 214px;
}
    #navigation-sec .placeholder{
        width: 214px;
    }
    
    #navigation-sec .block{
        background: image-set(url('images/menu_right_back.webp') 1x, url('images/menu_right_back@x2.webp') 2x) no-repeat top left transparent;
        border-radius: 0 0 5px 5px;
        margin: 10px 0;
        padding: 0 0 15px 0;
        width: 214px;
    }
    #navigation-sec h3{
        color: #fff;
        font-size: 0.8125rem;
        margin: 20px 20px 0 20px;
        padding: 20px 0 6px;
        font-weight: normal;
        font-style: italic;
        border-bottom: 1px solid gray;
    }
    #navigation-sec .block > ul{
        padding: 10px 15px 10px 10px;
    }
        #navigation-sec .block > ul > li{
            background: image-set(url('images/menu_right_bullet.webp') 1x, url('images/menu_right_bullet@x2.webp') 2x) no-repeat center left transparent;
            padding: 4px 0 4px 40px;
            margin: 0 0 10px 10px;
        }
            #navigation-sec a{
                color: #fff;
            }
            #navigation-sec a:hover{
                text-decoration: underline;
            }
    #navigation-sec .menu-content{
        padding: 15px;
    }
    #navigation-sec input[type="text"],
    #navigation-sec input[type="email"]{
        width: 145px;
    }

aside .phorm .buttons {
    text-align: center;
}

aside .block p {
    margin: 5px 0;
}

#footer{
    height: 210px;
    background: image-set(url('images/footer_back.webp') 1x, url('images/footer_back@x2.webp') 2x) repeat-x bottom left transparent;
}
    #footer footer{
        width: 1000px;
        padding: 150px 0 30px 0;
        margin: 0 auto;
        background: image-set(url('images/footer_container.webp') 1x, url('images/footer_container@x2.webp') 2x) repeat-x 0 -80px transparent;
    }
    #footer p{
        color: gray;
        width: 600px;
        margin: 0 0 0 200px;
        line-height: 15px;
        font-size: 0.6875rem;
    }
        #footer p a{ color: #dd0642; border-bottom: 1px dashed gray; }

/* Editor debugs */
#header-icon-edit {
    margin: 110px 0 0 110px;
}

/* --- Styles Mobile (Breakpoint) --- */
@media (max-width: 1024px) {
    /* 1. Global Reset & Layout */
    body {
        /* Simplification du fond blanc */
        background: #fff;
    }
    
    #container {
        width: 100%;
        padding: 0;
        margin: 0 auto;
        /* Suppression du fond complexe du conteneur */
        background: none;
    }
    
    /* 2. Header and Banner Adjustments */
    #container > header {
        width: 100%;
        height: auto;
        padding: 0;
        position: relative;
		background: #363B40;
		background: linear-gradient(90deg,rgba(54, 59, 64, 1) 0%, rgba(48, 53, 57, 1) 100%);
    }

    /* Le titre est linéarisé */
    #container > header h1 {
        position: static;
        width: auto;
        font-size: 1.5rem;
        margin: 0;
        text-align: center;
        text-shadow: none; 
        color: #dd0642; /* Couleur d'accentuation */
    }
    
    /* L'image du header est redimensionnée */
    #header-image {
        position: static;
        width: 100%;
        margin: 10px 0 0 0;
        top: auto;
    }

    /* Masquer les navigations fixes */
    #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: #dd0642; /* Rouge/Magenta vif */
        border: none;
        border-radius: 3px;
        cursor: pointer;
    }

    #mobile-menu-toggle span {
        display: block;
        width: 24px;
        height: 2px;
        background: #fff; /* Lignes blanches sur fond rouge */
        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: #2e3337; /* Couleur foncée pour le menu mobile (background de 'pre') */
        color: #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;
    }

    /* 5. Content Area & Hgroup Adjustments */
    #content .inner {
        grid-template-columns: 1fr;
    }
    
    /* Hgroup est maintenant en flux normal au-dessus de l'article */
    article section hgroup {
        position: static;
        width: auto;
        margin: 0 0 20px 0;
        padding: 10px 15px;
    }
    article section hgroup h1 {
        font-size: 1.4rem;
        text-align: center;
        margin: 0;
        color: #dd0642;
    }

    article {
        width: auto !important;
        padding: 20px 15px;
        margin: 0;
        order: 0; 
        background: #fff; /* Fond blanc sur mobile pour l'article */
        color: #2e3337;
    }

    /* 6. Sidebar/Menu Blocks in Mobile Panel (sur fond sombre) */
    #mobile-menu-panel aside {
        width: 100%;
        max-width: 100%;
        margin-bottom: 20px;
    }

    /* Titres (Menu Top, Main, Sec) */
    #mobile-menu-panel h3{
        color: #dd0642; /* Rouge/Magenta */
        font-size: 1.2rem;
        font-weight: bold;
        padding: 10px 0;
        border-bottom: 1px solid #dd0642;
        height: auto;
        background: none;
    }

    /* Menu Top (ancien #menu) */
    #mobile-menu-panel .menu-top-links ul {
        display: block;
        padding: 0;
    }
    #mobile-menu-panel .menu-top-links li {
        margin: 0;
        background: none;
        border-bottom: 1px dotted #555;
    }
    #mobile-menu-panel .menu-top-links a {
        padding: 10px 0 10px 15px;
        font-size: 1rem;
        color: #fff;
        font-style: normal;
    }
    
    /* Menus Sidebars (#navigation-main et #navigation-sec) */
    #mobile-menu-panel .block {
        width: 100%;
        padding: 0;
        margin-bottom: 20px;
        background: none; /* Supprime l'image de fond sculptée */
        border-radius: 0;
    }
    
    #mobile-menu-panel .block > ul {
        width: auto;
        margin: 0;
        padding: 10px 0;
    }
    #mobile-menu-panel .block > ul > li {
        background: none; /* Supprime les bullets complexes */
        padding: 0;
        margin: 0;
        border-bottom: 1px dotted #555;
    }

    #mobile-menu-panel a {
        display: block;
        padding: 10px 5px;
        color: #fff;
		font-size: 1rem;;
    }

    #mobile-menu-panel .menu-content{
        padding: 15px;
        background: #3e444b; /* Fond légèrement plus clair pour le contenu non-lien */
    }
    
    #mobile-menu-panel input[type="text"],
    #mobile-menu-panel input[type="email"]{
        width: 95%;
        box-sizing: border-box;
    }

    /* 7. Footer */
    #footer {
        height: auto;
        padding: 0 20px 0;
        background: none;
    }
    #footer footer{
        width: auto;
        padding: 20px 0;
        margin: 0;
        background: none;
        text-align: center;
    }
    #footer p{
        width: auto;
        margin: 0;
    }

	#menu-top-wrapper {
		height: auto;
	}
}