body{
    font-family: Verdana,Arial,Helvetica,sans-serif;
    font-size: 0.6875rem;
    background: image-set(url('images/background.webp') 1x, url('images/background@x2.webp') 2x) no-repeat center top #000;
}

#container{
    width: 960px;
    padding: 12px;
    margin: 40px auto 20px;
    
    background-color: #333;
    background-color: rgba(51, 51, 51, 0.6);

    color: #eee;

    border-radius: 16px;
    background-clip: padding-box;

    position: relative;
    z-index: 10;
}

#container > header {
    position: relative;
}
    #container > header h1{
        font-family: 'PT Sans Narrow',Verdana,Arial,Helvetica,sans-serif;
        font-size: 1.875rem;
        font-weight: normal;
        position: absolute;
        z-index: 11;
        margin: 20px 0 0 20px;
    }
    #container h1 a{ color: #eee; }
#header-image{
    width : 960px; height: 115px;
    border-radius: 12px;
}

#mobile-menu-toggle,
#mobile-menu-panel {
    display: none;
}

#menu-top-wrapper {
    display: flex;
    justify-content: flex-end;
}

#menu{
    width: 960px;
    padding: 5px 0;

    font-size: 0.75rem;
}
#menu .block {
    display: inline-block;
}
#menu .placeholder {
    min-height: 48px;
}
    #menu h3 {
        display: none;
    }
        #menu ul {
            display: flex;
            flex-wrap: wrap;
            justify-content: flex-end;
        }
        #menu li {
            line-height: 48px;
            padding: 0 0 0 6px;
        }

        #menu a {
            font-family: 'PT Sans Narrow',Verdana,Arial,Helvetica,sans-serif;
            font-size: 1rem;
            padding: 7px 10px;
            color: #eee;
            border-radius: 14px;
            background-color: #666;
            background-color: rgba(102, 102, 102, 0.6);
        }

        #menu a:hover{
            background-color: #7c7c7c;
            background-color: rgba(124, 124, 124, 0.6);
            color: #fff;
        }

#content .inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    margin: 10px 0 0;
}

    article hgroup h1{
        font-family: 'PT Sans',Verdana,Arial,Helvetica,sans-serif;
        font-weight: normal;
        font-size: 1.75rem;
        margin-bottom: 20px;
    }

article{
    order: 1;
    padding: 0 25px 40px;
    font-size: 0.75rem;
}
    .no-menu-sec article, .no-menu-main article{
    }
    .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 {
        font-family: 'PT Sans',Verdana,Arial,Helvetica,sans-serif;
        margin: 0 0 10px 0;
        letter-spacing: -1px;
        font-weight: 400;
    }
    article h1, article h2 {
        font-size: 1.5625rem;
        margin: 0 0 15px 0;
    }
    
    article h3 {
        border-bottom: 1px solid #eee;
        font-size: 1rem;
        padding: 5px 0;
    }
    
    article h4 {
        font-size: 1rem;
        font-weight: 100;
    }
    
    article p, article dl{
        padding: 0 0 10px 0;
        line-height: 17px;
    }
    
    article a {
        color: #01C6FF;
        text-decoration: underline;
    }
    article a:hover {
        text-decoration: none;
    }

    article em {
        color: #FF0D40;
    }
    
    article dt {
        color: #aaa;
    }
    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: #555;
            font-style: italic;
            color: #fff;
        }
        article pre {
            background: #ddd;
            font-size: 0.6875rem;
            line-height: 14px;
        }
    
    article code {
        padding: 0; margin: 0;
    }
    
    article hr {
        background-color: #333;
    }

#container .phorm label {
    color: #eee;
    font-family: Verdana,Arial,Helvetica,sans-serif;
    font-size: 0.6875rem;
}

#navigation-main{ 
    order: 0;
}
#navigation-sec{ 
    order: 2;
}
aside { 
    max-width: 200px;
}
aside .block, aside .placeholder {
    width: 200px;
}
    aside h3 {
        font-family: 'PT Sans Narrow',Verdana,Arial,Helvetica,sans-serif;
        font-size: 1.625rem;
        font-weight: normal;
        letter-spacing: 1px;
        padding: 0 5px;
        margin: 0;
        min-height: 25px;
    }
    aside ul {
        padding: 10px 0 20px 0;
    }
        aside .block > ul > li {
            margin: 4px 0;
        }
            aside .block > ul > li > a {
                display: block;
                margin: 0 0 0 5px;
                padding: 0 0 0 5px;
                text-indent: 10px;
                line-height: 16px;

                background: image-set(url('images/bullet.png') 1x, url('images/bullet@x2.png') 2x) no-repeat 0 5px;
            }

    aside a {
        color: #01C6FF;
        text-decoration: underline;
    }
    aside a:hover {
        text-decoration: none;
    }
    aside.left .menu-content {
        margin: 4px 0 4px 4px;
    }
    aside.right .menu-content {
        margin: 4px 4px 4px 0;
    }
    aside input[type="text"],
    aside input[type="email"]{
        width: 145px;
    }
    
    aside .phorm .buttons {
        text-align: center;
    }
    
    aside .menu-content{
        padding: 10px;
    }
            
#footer {
    width: 100%;
    padding: 400px 0 15px;
    color: #eee;
    min-height: 116px;
    position: relative;
    margin-top: -400px;

    background: image-set(url('images/footer_background.webp') 1x, url('images/footer_background@x2.webp') 2x) no-repeat center bottom #000;
}
    #footer footer {
        margin: auto;
        width: 960px;
        padding: 0 12px 15px 12px;

        background-color: #333;
        background-color: rgba(51, 51, 51, 0.6);

        border-radius: 16px;
        background-clip: padding-box;
        overflow: hidden;
    }
    #footer p {
        padding: 15px 0 0;
    }
        #footer p a {
            color: #eee;
            text-decoration: underline;
        }
        #footer p a:hover {
            text-decoration: none;
        }

/* --- Styles Mobile (Breakpoint) --- */
@media (max-width: 990px) {
	:root {
        --rainbow-gradient: linear-gradient(135deg, #FF0080 0%, #FF8C00 20%, #FFD700 40%, #00FF00 60%, #00BFFF 80%, #8A2BE2 100%);
    }

    #container {
        width: auto;
        padding: 0;
        margin: 0 auto;
        /* Conserve l'effet de transparence si possible, mais supprime la marge */
        border-radius: 0;
    }

    /* 2. Header and Banner Adjustments */
    #container > header {
        width: 100%;
        padding: 0 0 10px 0;
    }

    #container > header h1 {
        font-size: 1.5rem;
        margin: 0;
        width: 100%;
        text-align: center;
    }

	#container > header h1 a {
		position: absolute;
		top: 20px !important;
		left: 20px !important;
	}
    
    #header-image {
        width: 100%;
        border-radius: 0;
    }
    
    #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: #b30076; /* Couleur d'accentuation (Cyan) */
        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);
    }

    /* 4. Mobile Menu Panel (Hidden by default) */
    #mobile-menu-panel {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: #333; /* Couleur de fond du container sans transparence */
        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 */
    #content .inner {
        grid-template-columns: 1fr;
        margin: 0;
        padding: 10px;
    }

    article {
        width: auto !important;
        padding: 10px;
        margin: 0;
        order: 0; 
    }
    .no-menu-sec article, .no-menu-main article, .no-menu article {
        padding: 10px;
    }
    
    /* 6. Sidebar/Menu Blocks in Mobile Panel */
    #mobile-menu-panel .block {
        width: 100%;
        margin-bottom: 20px;
    }
    #mobile-menu-panel h3{
        font-size: 1.4rem;
        padding: 10px 5px;
        font-weight: bold;
        border-bottom: 1px solid #555; /* Bordure discrète */
        
        /* Application du gradient au texte */
        background: var(--rainbow-gradient);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        text-fill-color: transparent;
        
        /* Fallback pour les navigateurs ne supportant pas text-fill-color */
        color: #fff;
    }
    
    #mobile-menu-panel ul {
        padding: 10px 0;
    }

    #mobile-menu-panel .block > ul > li > a {
		display: block;
        text-indent: 0;
        padding: 10px 0;
        margin: 0 0 0 10px;
        color: #eee;
        border-bottom: 1px dotted #555;
		font-size: 1.1rem;
    }

    #mobile-menu-panel .menu-content {
        padding: 10px;
        background: rgba(51, 51, 51, 0.6);
    }
    
    #mobile-menu-panel input[type="text"],
    #mobile-menu-panel input[type="email"]{
        width: 90%;
    }

    /* 7. Footer Adjustments */
    #footer {
        width: 100%;
        padding: 20px 0 0 0; 
        margin-top: 0;
        min-height: auto;
        background: #000;
    }
    #footer footer {
        width: auto;
        padding: 10px 0;
        margin: 0;
        border-radius: 0;
        text-align: center;
    }
    #footer p {
        padding: 10px 0 0;
    }
}