/* Variables CSS pour le thème default */
:root {
    /* Couleurs de fond */
    --bg-body: #d6dde8;
    --bg-card: rgba(0, 0, 0, 0.08);
    --bg-container: #ffffff;
    --bg-menu: #f5f7fa;
    --bg-menu-guestbook: #f0f4fa;
    --bg-post-card: #fafbfd;
    --bg-post-footer: linear-gradient(to bottom, #2a5caa 0%, #1a3d7c 50%, #163268 100%);
    --bg-notification-success: #dff0d8;
    --bg-notification-error: #fde8e8;
    --bg-forum-row: #f5f7fc;
    --bg-forum-row-even: #edf0f8;
    --bg-stats-forum: #f0f4fa;
    --bg-contribution: #f5f7fa;
    --bg-contribution-hover: #e8edf8;
    --bg-button: linear-gradient(to bottom, #5588cc 0%, #2a5caa 50%, #1a3d7c 100%);
    --bg-button-hover: linear-gradient(to bottom, #6699dd 0%, #3366bb 50%, #224488 100%);
    --bg-button-add: linear-gradient(to bottom, #66bb66 0%, #3d8c3d 50%, #2a6a2a 100%);
    --bg-button-add-hover: linear-gradient(to bottom, #77cc77 0%, #4a9a4a 50%, #336633 100%);
    --bg-button-danger: linear-gradient(to bottom, #dd5555 0%, #aa2222 50%, #881a1a 100%);
    --bg-button-danger-hover: linear-gradient(to bottom, #ee6666 0%, #bb3333 50%, #992222 100%);
    --bg-button-warning: linear-gradient(to bottom, #ffcc44 0%, #ee9900 50%, #cc7700 100%);
    --bg-button-warning-hover: linear-gradient(to bottom, #ffdd55 0%, #ffaa00 50%, #dd8800 100%);
    --bg-input: #ffffff;
    --bg-page-link: linear-gradient(to bottom, #f5f7fa 0%, #e8edf5 100%);
    --bg-page-link-hover: linear-gradient(to bottom, #dde4f0 0%, #c8d4e8 100%);
    --bg-active-page: linear-gradient(to bottom, #2a5caa 0%, #1a3d7c 100%);
    --bg-disabled-page: #e8e8e8;
    --bg-footer: linear-gradient(to bottom, #2a5caa 0%, #1a3d7c 100%);

    /* Couleurs de texte */
    --text-primary: #2c2c2c;
    --text-link: #1464b4;
    --text-link-hover: #d94f00;
    --text-link-alternative: #199190;
    --text-danger: #bb1111;
    --text-admin: #d94f00;
    --text-sadmin: #bb1111;
    --text-menu-header: #ffffff;
    --text-guestbook-date: #888;
    --text-guestbook-author: #1a3d7c;
    --text-badge: #ffffff;
    --text-notification-success: #2d6a2d;
    --text-notification-error: #7b1a1a;
    --text-forum-header: #ffffff;
    --text-category-name: #ffffff;
    --text-forum-header-row: #1a3d7c;
    --text-unread-badge: #cc4400;
    --text-button: #ffffff;
    --text-button-add: #ffffff;
    --text-button-danger: #ffffff;
    --text-button-warning: #5a3000;
    --text-button-warning-hover: #4a2800;
    --text-page-link: #0055bb;
    --text-page-link-hover: #1a3d7c;
    --text-active-page: #ffffff;
    --text-disabled-page: #aaa;
    --text-footer: #cce0ff;
    --text-footer-hover: #ffffff;

    /* Couleurs de bordure */
    --border-container: #b0b8c8;
    --border-menu-header: #0f265a;
    --border-menu-guestbook: #c0cce0;
    --border-badge: #990000;
    --border-post-card: #c0cce0;
    --border-notification-success: #4cae4c;
    --border-notification-error: #c0392b;
    --border-stats-forum: #c0cce0;
    --border-contribution: #b0b8c8;
    --border-button: #0f265a;
    --border-button-add: #1a5a1a;
    --border-button-danger: #661111;
    --border-button-warning: #aa6600;
    --border-input: #a0aabb;
    --border-input-focus: #2a5caa;
    --border-page-link: #aabbcc;
    --border-active-page: #0f265a;

    /* Couleurs de dégradé */
    --gradient-menu-header: linear-gradient(to bottom, #2a5caa 0%, #1a3d7c 50%, #163268 100%);
    --gradient-post-card-header: linear-gradient(to bottom, #eef2fa 0%, #dde4f0 100%);
    --gradient-forum-category: linear-gradient(to bottom, #2a5caa 0%, #1a3d7c 100%);
    --gradient-forum-header: linear-gradient(to bottom, #dde4f0 0%, #c8d4e8 100%);

    /* Ombres */
    --shadow-container: 0 1px 4px rgba(0,0,0,0.15), inset 0 1px 0 rgba(255,255,255,0.8);
    --shadow-button: 0 1px 2px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.2);
    --shadow-button-hover: 0 2px 4px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.25);
    --shadow-button-add: 0 1px 2px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.2);
    --shadow-button-add-hover: 0 2px 4px rgba(0,0,0,0.25);
    --shadow-button-danger: 0 1px 2px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.2);
    --shadow-button-danger-hover: 0 2px 4px rgba(0,0,0,0.25);
    --shadow-button-warning: 0 1px 2px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.3);
    --shadow-button-warning-hover: 0 2px 4px rgba(0,0,0,0.25);
    --shadow-input: inset 0 1px 3px rgba(0,0,0,0.12);
    --shadow-input-focus: inset 0 1px 3px rgba(0,0,0,0.12), 0 0 4px rgba(42,92,170,0.3);

    /* Text-shadow */
    --text-shadow-menu-header: 0 1px 2px rgba(0,0,0,0.4);
    --text-shadow-button: 0 1px 1px rgba(0,0,0,0.3);
    --text-shadow-button-warning: 0 1px 1px rgba(0,0,0,0.3);
}html, body {
    background-color: var(--bg-body);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4'%3E%3Crect width='4' height='4' fill='%23d6dde8'/%3E%3Crect width='1' height='1' fill='%23cdd4e0' opacity='0.6'/%3E%3C/svg%3E");
}

/* Liens */
a {
    color: var(--text-link);
    text-decoration: none;
    font-weight: bold;
}

a:hover {
    color: var(--text-link-hover);
    text-decoration: underline;
    text-shadow: none;
}

a:visited {

}

a.danger {
    color: var(--text-danger);
}

a.alternative{
    color: var(--text-link-alternative);
}

.text-admin { color: var(--text-admin); font-weight: bold; }
.text-sadmin { color: var(--text-sadmin); font-weight: bold; }

/* Conteneurs et menus */
.container, .menu {
    background-color: var(--bg-container);
    color: var(--text-primary);
    border-color: var(--border-container);
    box-shadow: var(--shadow-container);
}

.container {
    background-color: var(--bg-container);
}

.menu {
    background-color: var(--bg-menu);
}

/* En-têtes des menus — dégradé bleu façon portails 2000s */
.menu h2 {
    background: var(--gradient-menu-header);
    color: var(--text-menu-header);
    text-shadow: var(--text-shadow-menu-header);
    border-color: var(--border-menu-header);
    border-bottom: 2px solid var(--border-menu-header);
}

.container h2 {
    background: var(--gradient-menu-header);
    color: var(--text-menu-header);
    text-shadow: var(--text-shadow-menu-header);
    border-color: var(--border-menu-header);
}

/* Livre d'or */
.menu ul.guestbook {
    background-color: var(--bg-menu-guestbook);
    border-color: var(--border-menu-guestbook);
}

.menu ul.guestbook li span.date {
    color: var(--text-guestbook-date);
}

.menu ul.guestbook li span.author {
    color: var(--text-guestbook-author);
    font-weight: bold;
}

.guestbook p span.author {
    color: var(--text-guestbook-author);
    font-weight: bold;
}

/* Badge "nouveau" */
.new-item-menu::after {
    color: var(--text-badge);
    border-color: #cc4400;
    background-color: #ee5500;
}

.badge {
    background-color: #cc0000;
    border-color: var(--border-badge);
    color: var(--text-badge);
}

/* Articles / news */
.post-card, .news, .guestbook p {
    background-color: var(--bg-post-card);
    border-color: var(--border-post-card);
}

.post-card-header, .news-header {
    border-color: var(--border-post-card);
    background: var(--gradient-post-card-header);
}

.post-card-header h3, .news-header h3 {
    color: var(--text-guestbook-author);
    text-shadow: none;
}

/* Notifications */
.notification li.success {
    border-color: var(--border-notification-success);
    color: var(--text-notification-success);
    background-color: var(--bg-notification-success);
    box-shadow: none;
}

.notification li.error {
    border-color: var(--border-notification-error);
    color: var(--text-notification-error);
    background-color: var(--bg-notification-error);
    box-shadow: none;
}

/* Forum */
.forum h3 {
    color: var(--text-forum-header);
    text-shadow: none;
}

.forum .category-name {
    background: var(--gradient-forum-category);
    color: var(--text-category-name);
}

.forum .forum-row {
    background-color: var(--bg-forum-row);
}

.forum .forum-row:nth-child(even) {
    background-color: var(--bg-forum-row-even);
}

.forum .forum-header {
    background: var(--gradient-forum-header);
    color: var(--text-forum-header-row);
    font-weight: bold;
}

.stats_forum ul {
    background-color: var(--bg-stats-forum);
    border-color: var(--border-stats-forum);
    color: var(--text-primary);
}

span.unread-badge {
    color: var(--text-unread-badge);
    text-shadow: none;
    font-weight: bold;
}

/* Contribution page */
.games, .movies, .musics, .tech, .category, .news_contrib {
    background-color: var(--bg-contribution);
    border-color: var(--border-contribution);
    transition: background-color 0.2s;
}

.games:hover, .movies:hover, .musics:hover, .tech:hover, .category:hover, .news_contrib:hover {
    background-color: var(--bg-contribution-hover);
}

/* Boutons */
button, .btn-default {
    background: var(--bg-button);
    color: var(--text-button);
    border-color: var(--border-button);
    text-shadow: var(--text-shadow-button);
    box-shadow: var(--shadow-button);
}

button:hover, .btn-default:hover {
    background: var(--bg-button-hover);
    color: var(--text-button);
    box-shadow: var(--shadow-button-hover);
}

.btn-add {
    background: var(--bg-button-add);
    color: var(--text-button-add) !important;
    border-color: var(--border-button-add);
    box-shadow: var(--shadow-button-add);
}

.btn-add:hover {
    background: var(--bg-button-add-hover);
    color: var(--text-button-add) !important;
    box-shadow: var(--shadow-button-add-hover);
}

.btn-danger {
    background: var(--bg-button-danger);
    color: var(--text-button-danger);
    border-color: var(--border-button-danger);
    box-shadow: var(--shadow-button-danger);
}

.btn-danger:hover {
    background: var(--bg-button-danger-hover);
    color: var(--text-button-danger);
    box-shadow: var(--shadow-button-danger-hover);
}

.btn-warning {
    background: var(--bg-button-warning);
    color: var(--text-button-warning);
    border-color: var(--border-button-warning);
    box-shadow: var(--shadow-button-warning);
}

.btn-warning:hover {
    background: var(--bg-button-warning-hover);
    color: var(--text-button-warning-hover);
    box-shadow: var(--shadow-button-warning-hover);
}

/* Formulaires */
input[type="text"], input[type="password"], input[type="email"], select, textarea {
    background-color: var(--bg-input);
    color: var(--text-primary);
    border-color: var(--border-input);
    box-shadow: var(--shadow-input);
}

input[type="text"]:focus, input[type="password"]:focus, input[type="email"]:focus, select:focus, textarea:focus {
    border-color: var(--border-input-focus);
    outline: none;
    box-shadow: var(--shadow-input-focus);
}

/* Pagination */
.page-link {
    background: var(--bg-page-link);
    color: var(--text-page-link);
    border-color: var(--border-page-link);
}

.page-link:hover {
    background: var(--bg-page-link-hover);
    color: var(--text-page-link-hover);
}

li.active span {
    background: var(--bg-active-page);
    color: var(--text-active-page);
    border-color: var(--border-active-page);
    box-shadow: none;
}

li.disabled span {
    background-color: var(--bg-disabled-page);
    color: var(--text-disabled-page);
}

/* Footer */
.footer p {
    color: #555;
    text-shadow: none;
}

.footer {
    background: var(--bg-footer);
}

.footer p, .footer a {
    color: var(--text-footer);
}

.footer a:hover {
    color: var(--text-footer-hover);
    text-decoration: underline;
}
*, html, body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

h1, h2, h3, h4, h5, h6 {
    padding: 8px 10px;
}

p, ul {
    padding: 8px 10px;
}

/* Notification */
.notification {
    margin: 8px;
}

.notification ul {
    list-style-type: none;
}

.notification ul li {
    padding: 8px 12px;
    border: 1px solid;
    margin: 4px 0;
    border-radius: 4px;
    font-size: 0.85rem;
}

/* Conteneurs et menus */
.container, .menu {
    padding: 0;
    border: 1px solid;
    margin-bottom: 8px;
    border-radius: 6px;
    overflow: hidden;
}

.container {
    display: flex;
    flex-direction: column;
    padding-bottom: 10px;
}

.container > *:not(h2):not(.breadcrumbs):not(.forum) {
    padding-left: 10px;
    padding-right: 10px;
}

.menu h2 {
    border-bottom: 2px solid;
    padding: 7px 10px;
    margin: 0 0 8px;
    width: 100%;
    display: block;
    box-sizing: border-box;
    text-align: center;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.container h2 {
    border-bottom: 2px solid;
    padding: 8px 12px;
    margin: 0 0 10px;
    width: 100%;
    display: block;
    box-sizing: border-box;
    font-size: 1.1rem;
}

.menu ul {
    list-style-type: none;
    display: flex;
    flex-direction: column;
    padding: 4px 8px 8px;
}

.menu ul li {
    margin: 3px 0;
    padding: 2px 0;
    border-bottom: 1px dotted #dde4f0;
    font-size: 0.8rem;
}

.menu ul li:last-child {
    border-bottom: none;
}

.menu ul.guestbook {
    max-height: 180px;
    overflow-y: auto;
    margin: 4px;
    border: 1px solid;
    font-size: 0.75rem;
    border-radius: 3px;
    padding: 4px;
}

/* Badge "nouveau" */
.new-item-menu::after {
    margin-left: 6px;
    padding: 1px 4px;
    font-size: 0.55rem;
    border: 1px solid;
    content: "nouveau !";
    border-radius: 2px;
    font-weight: bold;
}

.badge {
    border: 1px solid;
    border-radius: 3px;
    padding: 1px 4px;
    font-size: 0.7rem;
}

/* Formulaire login inline */
form.incol {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 4px;
}

.container .header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

/* Articles / news */
.news, .post-card {
    margin: 8px;
    padding: 0;
    border: 1px solid;
    border-radius: 4px;
    overflow: hidden;
}

.guestbook p {
    margin: 8px;
    padding: 8px;
    border: 1px solid;
    border-radius: 4px;
    font-size: 0.8rem;
}

.news-header, .post-card-header {
    display: flex;
    flex-direction: row;
    border-bottom: 1px solid;
    padding: 6px 10px;
    align-items: center;
}

.news-header h3, .post-card-header h3 {
    margin: 0;
    padding: 0;
    font-size: 0.95rem;
}

.contrib {
    border: 1px solid;
    margin: 8px;
    padding: 10px;
    border-radius: 4px;
}

.contrib a {
    font-size: 1.1rem;
    font-weight: bold;
}

/* Forum */
.forum {
    display: flex;
    flex-direction: column;
    margin: 0 0 8px 0;
}

.forum .row {
    justify-content: space-between;
}

.forum h3 {
    margin: 0;
    padding: 6px 10px;
    font-size: 0.9rem;
}

.forum-header {
    display: flex;
    flex-direction: row;
    padding: 6px 10px;
    border-bottom: 1px solid;
    font-size: 0.8rem;
    font-weight: bold;
}

.forum-column, .forum-column-detail {
    flex: 1;
    flex-direction: column;
    border: 1px solid;
    padding: 8px;
    font-size: 0.8rem;
}

.forum-column:nth-child(1) { flex: 2; }
.forum-column:nth-child(2), .forum-column:nth-child(3) { flex: 1; }
.forum-column-detail:nth-child(1) { flex: 1; }
.forum-column-detail:nth-child(2) { flex: 4; }

.forum-column-detail ul {
    list-style-type: none;
    padding: 0;
}

.forum-body {
    display: flex;
    flex-direction: column;
    border: 1px solid;
    margin: 0 8px 8px;
    border-radius: 0 0 4px 4px;
}

.forum-body img {
    max-width: 100%;
}

.forum-row {
    display: flex;
    flex-direction: row;
    border-bottom: 1px solid #dde4f0;
}

.forum-row:last-child {
    border-bottom: none;
}

.stats_forum {
    margin: 12px 0 8px 0;
    border-top: 1px solid #c0cce0;
    padding-top: 8px;
}

.stats_forum ul {
    list-style-type: none;
    border: 1px solid;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
}

.stats_forum ul li {
    margin: 3px 0;
}

/* Breadcrumbs */
ul.breadcrumbs {
    display: flex;
    flex-direction: row;
    font-size: 0.7rem;
    list-style-type: none;
    margin: 6px 0;
    padding: 4px 8px;
    background-color: var(--bg-forum-row-even);
    border-bottom: 1px solid var(--border-menu-guestbook);
    color: var(--text-primary);
}

ul.breadcrumbs li {
    margin: 0 4px;
}

ul.breadcrumbs li::after {
    content: ' ›';
    color: var(--text-guestbook-date);
}

ul.breadcrumbs li:last-child::after {
    content: '';
}

/* Pagination */
ul.pagination {
    display: flex;
    flex-direction: row;
    list-style-type: none;
    margin: 10px 0;
    padding: 0;
    gap: 4px;
}

ul.pagination li.page-item {
    margin: 0;
}

.page-link {
    padding: 4px 10px;
    border: 1px solid;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 0.75rem;
    cursor: pointer;
    border-radius: 3px;
    transition: background 0.15s;
}

li.disabled {
    pointer-events: none;
    cursor: default;
}

/* Footer */
.footer {
    text-align: center;
    padding: 14px 0;
    margin-top: 10px;
}

.footer p {
    font-size: 0.75rem;
    margin: 0;
}

@media screen and (min-width: 768px) {
    .warning-announce-not-mobile-compatible {
        display: none;
    }
}
/* Menu horizontal — base commune à tous les thèmes */

.menu-horizontal {
    width: 100%;
    background: var(--gradient-menu-header);
    border-bottom: 2px solid var(--border-menu-header);
}

.menu-horizontal > ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    padding: 0 8px;
    margin: 0;
    gap: 2px;
}

.menu-horizontal > ul > li {
    position: relative;
    padding: 0;
    border-bottom: none;
    font-size: 0.85rem;
}

.menu-horizontal > ul > li > a {
    display: block;
    padding: 9px 14px;
    color: var(--text-menu-header);
    font-weight: bold;
    text-decoration: none;
    text-shadow: var(--text-shadow-menu-header);
    border-bottom: 2px solid transparent;
    transition: color 0.15s, border-color 0.15s;
}

.menu-horizontal > ul > li > a:hover {
    color: #ffffff;
    border-bottom-color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
}

/* Sous-menus dropdown */
.menu-horizontal > ul > li > ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 160px;
    background: var(--bg-container);
    border: 1px solid var(--border-container);
    border-top: 2px solid var(--border-menu-header);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    list-style: none;
    padding: 4px 0;
    margin: 0;
    z-index: 200;
}

.menu-horizontal > ul > li:hover > ul {
    display: block;
}

.menu-horizontal > ul > li > ul > li {
    border-bottom: 1px dotted var(--border-container);
    padding: 0;
}

.menu-horizontal > ul > li > ul > li > a {
    display: block;
    padding: 6px 12px;
    color: var(--text-link);
    text-decoration: none;
    font-size: 0.82rem;
}

.menu-horizontal > ul > li > ul > li > a:hover {
    background: var(--bg-forum-row);
    color: var(--text-link-hover);
}

/* Burger — caché sur desktop, visible sur mobile */
.burger-menu {
    display: none;
}

@media screen and (max-width: 768px) {
    .burger-menu {
        display: flex;
        align-items: center;
        padding: 8px;
    }

    .burger-icon {
        background: none;
        border: none;
        cursor: pointer;
        display: flex;
        flex-direction: column;
        gap: 5px;
        padding: 4px;
    }

    .burger-icon span {
        display: block;
        width: 22px;
        height: 2px;
        background: var(--text-menu-header);
        border-radius: 2px;
    }

    .menu-horizontal > ul {
        display: none;
        flex-direction: column;
        padding: 4px 0;
        gap: 0;
    }

    .menu-horizontal > ul > li > a {
        padding: 10px 16px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
}

/* Système de grille utilisant les flexbox */

.row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.row-xs {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    width: 80%;
    margin: auto;
}

.col {
    flex: 1;
    margin: 10px;
}

/* classes pour les largeurs des colonnes */

.col-1 { flex: 0 0 8.33%; }
.col-2 { flex: 0 0 16.667%; }
.col-3 { flex: 0 0 25%; }
.col-4 { flex: 0 0 33.33%; }
.col-5 { flex: 0 0 46.66%; }
.col-6 { flex: 0 0 50%; }
.col-7 { flex: 0 0 58.33%; }
.col-8 { flex: 0 0 66.66%; }
.col-9 { flex: 0 0 75%; }
.col-10 { flex: 0 0 83.33%; }
.col-11 { flex: 0 0 91.66%; }
.col-12 { flex: 0 0 100%; }

/* Responsive */

@media screen and (max-width: 768px) {
    .row {
        flex-direction: column;
    }

    .col {
        margin: 10px 0;
    }

    .menu ul.guestbook li span.date {
        color: #646788;
    }

    .col-2 {
        order: 2;  /* Placer après .col-7 */
    }

    .col-7 {
        order: 1;  /* Placer avant .col-1 */
    }
}.banner {
    width: 100%;
    height: 110px;
    background: linear-gradient(to bottom,
        #3a70cc 0%,
        #2a5caa 30%,
        #1a3d7c 60%,
        #0f265a 100%
    );
    border-top: 3px solid #6699dd;
    border-bottom: 3px solid #0a1a40;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 3px 8px rgba(0,0,0,0.4);
}

/* Reflet glossy façon Web 2.0 */
.banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to bottom,
        rgba(255,255,255,0.15) 0%,
        rgba(255,255,255,0.03) 100%
    );
    pointer-events: none;
}

/* Lignes décoratives discrètes façon "portail" */
.banner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 60px,
            rgba(255,255,255,0.025) 60px,
            rgba(255,255,255,0.025) 61px
        );
    pointer-events: none;
}

.galaxy-background {
    display: none;
}

.banner-text {
    font-family: 'Oswald', 'Trebuchet MS', Arial, sans-serif;
    font-size: 52px;
    font-weight: 700;
    color: #ffffff;
    text-shadow:
        0 2px 4px rgba(0,0,0,0.5),
        0 0 20px rgba(100,160,255,0.4);
    z-index: 1;
    position: relative;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.slogan {
    color: #aaccff;
    font-family: Verdana, sans-serif;
    font-size: 11px;
    z-index: 1;
    position: relative;
    margin-top: 6px;
    letter-spacing: 0.5px;
    animation: slide 35s linear infinite;
}

@keyframes slide {
    0%   { transform: translateX(100%); }
    50%  { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}
form {
    display: flex;
    flex-direction: column;
}

.btn, input[type="submit"], button {
    border: 1px solid;
    padding: 5px 14px;
    margin: 4px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    width: auto;
    max-width: max-content;
    font-size: 0.8rem;
    cursor: pointer;
    border-radius: 4px;
    font-family: Verdana, sans-serif;
    font-weight: bold;
    transition: all 0.15s ease;
}

.btn-small {
    font-size: 0.65rem;
    padding: 3px 8px;
}

.btn-large {
    font-size: 1rem;
    padding: 8px 20px;
}

input[type="text"], input[type="password"], input[type="email"], select, textarea {
    padding: 5px 8px;
    margin: 4px 0;
    width: 99%;
    border: 1px solid;
    border-radius: 3px;
    font-family: Verdana, sans-serif;
    font-size: 0.85rem;
    transition: border-color 0.15s, box-shadow 0.15s;
}

input[type="text"], input[type="password"], input[type="email"], select {
    height: 32px;
}

textarea {
    min-height: 100px;
    resize: vertical;
}

.form-inline {
    display: flex;
    flex-direction: row;
    gap: 8px;
    margin-bottom: 8px;
    align-items: center;
}

label {
    font-size: 0.8rem;
    font-weight: bold;
    color: #2c2c2c;
    margin-bottom: 2px;
    display: block;
}
@import url('https://fonts.googleapis.com/css2?family=Trebuchet+MS&family=Oswald:wght@400;600;700&display=swap');

body {
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-size: 13px;
    line-height: 1.5;
    color: #2c2c2c;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Oswald', 'Trebuchet MS', Arial, sans-serif;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.menu h2 {
    font-family: 'Oswald', 'Trebuchet MS', Arial, sans-serif;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

p.date {
    font-size: 0.75em;
    color: #888;
    text-align: right;
}
/* Transitions douces */
.container, .menu, .post-card, .news, .forum-row, .btn, button, a {
    transition: color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}
/* Décorations thème default */
/* Styles complémentaires thème default */

/* Séparateur dégradé façon 2000s */
hr {
    border: none;
    height: 1px;
    background: linear-gradient(to right, transparent, #a0b0cc, transparent);
    margin: 10px 0;
}

/* Liens dans les menus */
.menu ul li a {
    color: #0055bb;
    font-size: 0.8rem;
    display: block;
    padding: 1px 0;
}

.menu ul li a:hover {
    color: #cc4400;
    text-decoration: none;
    padding-left: 5px;
    transition: padding-left 0.1s;
}

/* Avatar dans le menu */
.menu center img {
    border: 2px solid #2a5caa;
    border-radius: 4px;
    margin: 6px auto;
    display: block;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Span post online/offline */
span.post-offline {
    color: #cc0000;
    font-weight: bold;
    font-size: 0.75rem;
}

span.post-online {
    color: #2a7a2a;
    font-weight: bold;
    font-size: 0.75rem;
}

/* Catégories forum */
.forum .category-name {
    padding: 6px 10px;
    color: #fff;
    font-size: 0.85rem;
    font-weight: bold;
    letter-spacing: 0.5px;
}

/* Ligne zebra forum */
.forum .forum-row {
    padding: 6px 10px;
    transition: background-color 0.1s;
}

.forum .forum-row:hover {
    background-color: #dde4f4;
}

/* Unread badge */
span.unread-badge {
    font-size: 0.7rem;
    font-weight: bold;
    background-color: #ee5500;
    color: #fff;
    padding: 1px 5px;
    border-radius: 3px;
}
.postmenu {
    border: 1px solid var(--border-container);
    background-color: var(--bg-menu);
    width: 240px;
    margin: 8px;
    float: right;
    display: flex;
    flex-direction: column;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: var(--shadow-container);
}

.postmenu .header {
    background: var(--gradient-menu-header);
    color: var(--text-menu-header);
    text-shadow: var(--text-shadow-menu-header);
    padding: 6px 8px;
    font-size: 0.8rem;
    font-weight: bold;
    border-bottom: 1px solid var(--border-menu-header);
}

.postmenu .body {
    padding: 8px;
}

.postmenu .body ul {
    display: flex;
    flex-direction: column;
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.postmenu .body ul li {
    font-size: 0.75rem;
    padding: 2px 0;
    border-bottom: 1px dotted var(--border-stats-forum);
    color: var(--text-primary);
}

.postmenu .body ul li:last-child {
    border-bottom: none;
}

.postmenu .body ul li:hover {
    margin-left: 5px;
    transition: margin-left 0.1s;
}

.post-footer {
    font-family: 'Cinzel', Georgia, serif;
    font-size: 0.75rem;
    color: var(--text-link-secondary);
    background: var(--bg-post-footer);
    border-top: 2px solid var(--border-menu-header);
    text-shadow: 0 0 12px rgba(240, 216, 96, 0.5), 0 1px 3px rgba(0, 0, 0, 0.98);
    letter-spacing: 3px;
    text-transform: uppercase;
    padding: 8px 12px;
    margin: 0;
    bottom: 0;
    position: relative;
}

.gallery {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-start;
}

.gallery-item {
    display: flex;
    flex-direction: column;
    max-width: 200px;
}/* ===== GENERAL CARDS ===== */
.card-game {
    border: 1px solid #b0b8c8;
    margin: 8px;
    border-radius: 4px;
    overflow: hidden;
    background-color: #fff;
}

.card-game .header {
    border-bottom: 1px solid #b0b8c8;
    padding: 8px 12px;
    background: linear-gradient(to bottom, #2a5caa 0%, #1a3d7c 100%);
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
}

.card-game .header a { color: #cce0ff; }
.card-game .header a:hover { color: #fff; }

.card-game .body {
    padding: 10px;
    color: #2c2c2c;
}

.card-game .footer {
    border-top: 1px solid #b0b8c8;
    background: linear-gradient(to bottom, #eef2fa 0%, #dde4f0 100%);
    padding: 8px 12px;
    font-size: 0.8rem;
    color: #444;
}

ul.inline { display: flex; flex-direction: row; list-style: none; padding: 0; }
ul.inline li { margin: 0 10px 0 0; }

.countdown { font-size: 20px; color: #cc0000; text-align: center; font-weight: bold; }

.quiz-score {
    float: right;
    color: #1a3d7c;
    font-size: 0.85rem;
    padding: 2px 6px;
    background-color: #eef2fa;
    border: 1px solid #c0cce0;
    border-radius: 3px;
}

/* ===== PETIT BAC ===== */
.game-bac-letter {
    position: absolute;
    right: 10px;
    top: 60px;
    border: 2px solid #2a5caa;
    background: linear-gradient(to bottom, #2a5caa 0%, #1a3d7c 100%);
    border-radius: 5px;
    padding: 10px 16px;
    font-size: 1.5rem;
    color: #fff;
    font-weight: bold;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

table.bac, table.bac th, table.bac tr, table.bac td { border: 1px solid #b0b8c8; }
table.bac { width: 90%; margin: auto; border-collapse: collapse; }
table.bac th { background: linear-gradient(to bottom, #2a5caa 0%, #1a3d7c 100%); color: #fff; padding: 6px; }
table.bac th, table.bac td { text-align: center; padding: 5px; }
table.bac td input[type="text"] { border: none; background-color: transparent; font-family: 'Courier New', Courier, monospace; color: #2c2c2c; width: 100%; }
table.bac td input:focus { background-color: #eef2fa; outline: none; }

/* ===== QUIZ TABLE ===== */
table.quiz, table.quiz th, table.quiz tr, table.quiz td { border: 1px solid #b0b8c8; }
table.quiz { width: 90%; margin: auto; border-collapse: collapse; margin-bottom: 20px; }
table.quiz th { background: linear-gradient(to bottom, #2a5caa 0%, #1a3d7c 100%); color: #fff; padding: 8px; }
table.quiz th, table.quiz td { text-align: center; padding: 6px; }
table.quiz tr:nth-child(even) td { background-color: #edf0f8; }
table.quiz td ul { list-style-type: none; padding: 0; margin: 0; }

/* ===== QUIZ FORM ===== */
.quiz-title {
    color: #1a3d7c;
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.4rem;
    text-shadow: none;
}

.quiz-form { display: flex; flex-direction: column; gap: 16px; }

.quiz-question {
    background: #fff;
    border: 1px solid #b0b8c8;
    margin-bottom: 12px;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.question-header {
    background: linear-gradient(to bottom, #2a5caa 0%, #1a3d7c 100%);
    padding: 8px 14px;
    color: #fff;
    font-weight: bold;
    font-size: 0.85rem;
    border-bottom: 1px solid #0f265a;
}

.question-content { padding: 16px; }

.question-content h3 {
    color: #1a3d7c;
    margin-bottom: 12px;
    font-size: 1rem;
    text-shadow: none;
}

.choices-container { display: flex; flex-direction: column; gap: 8px; padding: 4px 0; }

.choice-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 4px;
    border: 1px solid #dde4f0;
    background-color: #f5f7fa;
    transition: background-color 0.15s;
    cursor: pointer;
}

.choice-item:hover { background-color: #dde8f8; border-color: #2a5caa; }
.choice-item input[type="radio"] { margin-right: 6px; accent-color: #2a5caa; }
.choice-item label { color: #2c2c2c; cursor: pointer; flex: 1; font-size: 0.9rem; }

.submit-container { text-align: center; margin-top: 20px; }

.submit-button {
    background: linear-gradient(to bottom, #5588cc 0%, #2a5caa 50%, #1a3d7c 100%);
    color: #fff !important;
    border: 1px solid #0f265a;
    padding: 10px 28px;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 4px;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: all 0.15s ease;
}

.submit-button:hover {
    background: linear-gradient(to bottom, #6699dd 0%, #3366bb 50%, #224488 100%);
    box-shadow: 0 3px 6px rgba(0,0,0,0.25);
}

/* ===== QUIZ RESULTS ===== */
.quiz-result-container { max-width: 800px; margin: 20px auto; padding: 0 16px; }

.quiz-result-card {
    background-color: #fff;
    border: 1px solid #b0b8c8;
    padding: 24px;
    text-align: center;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.progress-circle-container { display: flex; justify-content: center; margin: 20px 0; }
.progress-circle { width: 180px; height: 180px; position: relative; }
.circular-chart { display: block; margin: 0 auto; max-height: 180px; }
.progress-path { transition: stroke-dasharray 1s ease-in-out; }
.progress-path.high   { stroke: #2a8a2a; }
.progress-path.medium { stroke: #cc8800; }
.progress-path.low    { stroke: #cc2222; }

.percentage-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 28px;
    color: #1a3d7c;
    font-weight: bold;
}

.score-details { margin: 20px 0; animation: fadeInUp 0.5s ease-out; }

.score-details h3 { color: #1a3d7c; font-size: 1.1rem; margin-bottom: 10px; text-shadow: none; }

.score-number { font-size: 2.2rem; font-weight: bold; margin: 12px 0; }
.score-number.high   { color: #2a7a2a; }
.score-number.medium { color: #cc7700; }
.score-number.low    { color: #cc2222; }

.score-message { color: #444; font-size: 1rem; margin: 12px 0; }

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}
@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

.table {
    display: flex;
    flex-direction: column;
    width: 90%;
    margin: 0 auto 10px auto;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 15px;
    font-family: Arial, sans-serif;
}

.table .header {
    display: flex;
    flex-direction: row;
    flex: 1;
    border-bottom: 2px solid #16396a;
    font-weight: 600;
    font-size: 1rem;
    color: #dbdbdb;
    padding: 10px 0;
}

.table .body {
    display: flex;
    flex-direction: row;
    flex: 1;
    border-bottom: 1px solid #f0f0f0;
    color: #666666;
    padding: 12px 0;
    transition: background-color 0.2s ease;
}

.table .body:hover {
    background: #111d4e53;
    cursor: pointer;
}

.new-message {
    display: inline-block;
    color: #ffffff;
    background-color: #4CAF50;
    border: none;
    font-size: 0.75rem;
    margin-right: 10px;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 500;
}

@keyframes glow {
    from {
        box-shadow: 0 0 5px rgba(255, 0, 255, 0.8);
    }
    to {
        box-shadow: 0 0 10px rgba(255, 0, 255, 1);
    }
}.profile-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: linear-gradient(to bottom, #eef2fa 0%, #dde4f0 100%);
    border-bottom: 1px solid #c0cce0;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 4px;
    object-fit: cover;
    border: 2px solid #2a5caa;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.profile-avatar:hover {
    transform: scale(1.03);
    transition: transform 0.2s;
}

.profile-info {
    flex: 1;
}

.profile-name, .username {
    font-size: 1.5rem;
    color: #1a3d7c;
    font-weight: 700;
    margin-bottom: 4px;
}

.profile-username {
    color: #5577aa;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.joined-date {
    color: #888;
    font-size: 0.8rem;
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 8px;
    margin: 1rem 0;
    padding: 1rem;
}

.stat-item {
    text-align: center;
    padding: 10px;
    background: linear-gradient(to bottom, #f5f7fa 0%, #e8edf5 100%);
    border: 1px solid #c0cce0;
    border-radius: 4px;
}

.stat-value {
    font-size: 1.3rem;
    font-weight: bold;
    color: #1a3d7c;
    display: block;
}

.stat-label {
    color: #666;
    font-size: 0.75rem;
    margin-top: 4px;
}

.profile-bio {
    line-height: 1.6;
    color: #333;
    margin: 1rem 0;
    padding: 10px 14px;
    border-left: 3px solid #2a5caa;
    background-color: #f5f7fa;
    border-radius: 0 4px 4px 0;
    font-size: 0.85rem;
}

.bio-content {
    line-height: 1.6;
    color: #333;
}

.profile-contact {
    display: flex;
    gap: 8px;
    margin-top: 1rem;
}

.profile-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1rem;
    margin-top: 1rem;
}

.profile-main {
    background: #fff;
    border: 1px solid #c0cce0;
    border-radius: 6px;
    overflow: hidden;
}

/* === EN-TÊTE H2 ================================================== */
.container h2.profile-username {
    margin-bottom: 0;
}

/* === HERO BANNIÈRE ================================================ */
.profile-hero {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.25rem 1.5rem;
    background: var(--gradient-menu-header);
    border-bottom: 2px solid var(--border-menu-header);
    margin-top: 0;
    margin-bottom: 1.5rem;
}

.profile-hero-avatar {
    position: relative;
    flex-shrink: 0;
}

.profile-hero-avatar img {
    display: block;
    width: 100px;
    height: 100px;
    object-fit: cover;
}

.level-badge {
    position: absolute;
    bottom: -8px;
    right: -8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: var(--bg-button, linear-gradient(135deg, #5588cc, #1a3d7c));
    border: 2px solid var(--border-menu-header, #0f265a);
    border-radius: 50%;
    color: #fff;
    line-height: 1;
    box-shadow: 0 2px 4px rgba(0,0,0,0.4);
}

.level-text {
    font-size: 0.5rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.level-number {
    font-size: 1rem;
    font-weight: bold;
}

.profile-hero-info {
    color: var(--text-menu-header, #fff);
    text-shadow: var(--text-shadow-menu-header, 0 1px 2px rgba(0,0,0,0.4));
}

.profile-username {
    font-size: 1.5rem;
    margin: 0 0 0.25rem;
    color: var(--text-menu-header, #fff);
    text-shadow: var(--text-shadow-menu-header, 0 1px 2px rgba(0,0,0,0.4));
}

.profile-realname {
    font-size: 0.9rem;
    opacity: 0.85;
    margin: 0.1rem 0;
}

.profile-joined,
.profile-xp,
.profile-email {
    font-size: 0.85rem;
    opacity: 0.8;
    margin: 0.1rem 0;
}

.profile-email-private {
    font-size: 0.75rem;
    opacity: 0.65;
    font-style: italic;
}

.profile-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.profile-link {
    font-size: 0.8rem;
    color: var(--text-menu-header, #fff);
    background: rgba(255,255,255,0.15);
    border-radius: 3px;
    padding: 0.2rem 0.5rem;
    text-decoration: none;
    opacity: 0.9;
}

a.profile-link:hover {
    opacity: 1;
    background: rgba(255,255,255,0.25);
    text-decoration: none;
    color: #fff;
}

/* === GRILLE PRINCIPALE ============================================ */
.profile-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    border: none;
}

.profile-main {
    border: none;
}

/* === CARTES ======================================================= */
.profile-card {
    background-color: var(--bg-forum-row, #f5f7fc);
    border: 1px solid var(--border-container, #b0b8c8);
    border-radius: 4px;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
}

.profile-card h3 {
    font-size: 0.95rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-primary, #2c2c2c);
    border-bottom: 1px solid var(--border-container, #b0b8c8);
    padding-bottom: 0.5rem;
    margin: 0 0 0.75rem;
}

.bio-content {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-primary, #2c2c2c);
}

/* === STATISTIQUES ================================================= */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

.stat-item {
    background-color: var(--bg-forum-row-even, #edf0f8);
    border: 1px solid var(--border-container, #b0b8c8);
    border-radius: 4px;
    padding: 0.6rem 0.4rem;
    text-align: center;
}

.stat-value {
    display: block;
    color: var(--text-link, #1464b4);
    font-size: 1.2rem;
    font-weight: bold;
}

.stat-label {
    display: block;
    font-size: 0.72rem;
    color: var(--text-primary, #2c2c2c);
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-top: 0.1rem;
}

/* === BADGES ======================================================= */
.achievements-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.badge-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--bg-forum-row-even, #edf0f8);
    border: 1px solid var(--border-container, #b0b8c8);
    border-radius: 4px;
    padding: 0.5rem;
    width: 70px;
    text-align: center;
    transition: transform 0.15s, box-shadow 0.15s;
    cursor: default;
}

.badge-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 6px rgba(0,0,0,0.15);
}

.badge-item img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.badge-name {
    font-size: 0.65rem;
    margin-top: 0.3rem;
    color: var(--text-primary, #2c2c2c);
    opacity: 0.8;
    word-break: break-word;
}

/* === INVENTAIRE =================================================== */
.profile-inventory {
    margin-top: 0.5rem;
}

.inventory-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding-top: 0.25rem;
}

.inventory-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--bg-forum-row-even, #edf0f8);
    border: 1px solid var(--border-container, #b0b8c8);
    border-radius: 4px;
    padding: 0.5rem;
    min-width: 80px;
    text-align: center;
    transition: box-shadow 0.15s;
}

.inventory-item:hover {
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.inventory-item img {
    max-width: 64px;
    max-height: 64px;
    object-fit: contain;
}

.item-quantity {
    display: block;
    font-size: 0.7rem;
    font-weight: bold;
    color: var(--text-link, #1464b4);
    margin-top: 0.25rem;
}

/* === ACTIONS ====================================================== */
.profile-actions {
    margin: 1rem 0 0.5rem;
    text-align: right;
}

/* === FORMULAIRES DE MODIFICATION ================================== */
.form-section {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.form-row label {
    font-size: 0.85rem;
    font-weight: bold;
    color: var(--text-primary, #2c2c2c);
}

.form-row input[type="text"],
.form-row input[type="email"],
.form-row input[type="url"],
.form-row input[type="password"],
.form-row input[type="file"],
.form-row select,
.form-row textarea {
    width: 100%;
    padding: 0.4rem 0.6rem;
    border: 1px solid var(--border-input, #a0aabb);
    border-radius: 3px;
    background-color: var(--bg-input, #fff);
    color: var(--text-primary, #2c2c2c);
    font-size: 0.9rem;
    box-shadow: var(--shadow-input, inset 0 1px 3px rgba(0,0,0,0.12));
    box-sizing: border-box;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
    outline: none;
    border-color: var(--border-input-focus, #2a5caa);
    box-shadow: var(--shadow-input-focus);
}

.form-row.two-cols {
    flex-direction: row;
    gap: 1rem;
}

.form-row.two-cols > div {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.form-row-check {
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
}

.form-row-check input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.form-row-check label {
    font-weight: normal;
    margin: 0;
}

.form-error {
    font-size: 0.8rem;
    color: var(--text-danger, #bb1111);
    margin: 0;
}

/* === UTILITAIRES ================================================== */
.no-items {
    font-size: 0.85rem;
    opacity: 0.7;
    font-style: italic;
}

.avatar-container {
    position: relative;
    width: 120px;
    height: 120px;
}

.level-badge {
    position: absolute;
    background: linear-gradient(to bottom, #3d8c3d 0%, #1a5a1a 100%);
    color: white;
    padding: 4px;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    border: 2px solid #fff;
    bottom: -5px;
    right: -5px;
}

.level-number {
    font-size: 0.9rem;
    font-weight: bold;
}

.stats-card, .achievements-card {
    background: #fff;
    border: 1px solid #c0cce0;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 10px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-top: 8px;
}

.inventory {
    background: #fff;
    border: 1px solid #c0cce0;
    border-radius: 6px;
    padding: 12px;
    width: 98%;
    margin: 8px auto;
}

.inventory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 10px;
    padding: 10px;
}

.inventory-item {
    text-align: center;
    padding: 10px;
    background: linear-gradient(to bottom, #f5f7fa 0%, #e8edf5 100%);
    border: 1px solid #c0cce0;
    border-radius: 4px;
}

.item-quantity {
    font-size: 1.2rem;
    font-weight: bold;
    color: #1a3d7c;
    display: block;
}

.profile-actions {
    margin-top: 1rem;
    display: flex;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(to bottom, #5588cc 0%, #2a5caa 100%);
    color: #ffffff !important;
}

.btn-secondary {
    background: linear-gradient(to bottom, #eef2fa 0%, #dde4f0 100%);
    color: #1a3d7c;
    border-color: #aabbcc;
}

@media (max-width: 768px) {
    .profile-grid {
        grid-template-columns: 1fr;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
a.shop {
    text-decoration: none;
    color: #333;
    font-weight: 400;
}

a.shop:hover {
    text-decoration: none;
    color: #333;
}

.shop {
    padding: 10px;
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
}
.card-shop {
    background: #fff;
    border: 2px solid #000;
    border-radius: 8px;
    margin: 15px 0;
    padding: 15px;
    box-shadow: 3px 3px 0px #000;
    transition: transform 0.2s;
    width: 250px;
    min-height: 380px;
    display: flex;
    flex-direction: column;
    position: relative;
    margin-right: 15px;
    vertical-align: top;
    justify-content: space-between;
}

.card-shop:hover {
    transform: translateY(-5px);
    background: #f0f7ff;
}

.card-shop img {
    max-width: 220px;
    margin-bottom: 10px;
    margin: auto;
}

.card-shop .card-title {
    font-family: "Comic Sans MS", cursive;
    color: #0066cc;
    margin-bottom: 10px;
}

.card-shop .card-text {
    font-family: Arial, sans-serif;
    color: #333;
    margin-bottom: 10px;
}

.card-shop .card-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-shop .button-container {
    margin-top: auto;
    text-align: center;
    padding-top: 15px;
}

.btn-shop-primary {
    background: linear-gradient(to bottom, #0099ff, #0066cc);
    border: 2px solid #000;
    border-radius: 5px;
    padding: 5px 15px;
    color: white;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    display: inline-block;
    min-width: 120px;
}

.btn-shop-primary:hover {
    background: linear-gradient(to bottom, #00bbff, #0099ff);
}

.btn-shop-secondary {
    background: linear-gradient(to bottom, #ffcc00, #ff9900);
    border: 2px solid #000;
    border-radius: 5px;
    padding: 5px 15px;
    color: white;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    display: inline-block;
    min-width: 120px;
}

.btn-shop-large {
    padding: 10px 20px;
    height: 65px;
}

.fa-coins {
    color: #ffd700;
}
/* ===== BARRE BBCODE ===== */
.bbcode-bar, .bbcode-bar ul {
    display: flex;
}

.bbcode-bar {
    flex-direction: column;
    background: linear-gradient(to bottom, #eef2fa 0%, #dde4f0 100%);
    border: 1px solid #b0b8c8;
    border-radius: 4px 4px 0 0;
    margin: 0 0 0 0;
    width: 99%;
}

.bbcode-bar ul {
    flex-direction: row;
    flex-wrap: wrap;
    list-style-type: none;
    padding: 4px 6px;
    margin: 0;
    gap: 2px;
}

.bbcode-bar li {
    margin: 0;
    font-family: Verdana, sans-serif;
}

.bbcode-bar button {
    margin: 1px;
    padding: 3px 8px;
    font-size: 0.7rem;
    background: linear-gradient(to bottom, #ffffff 0%, #e8edf5 100%);
    color: #1a3d7c;
    border: 1px solid #a0aabb;
    border-radius: 3px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.1s;
}

.bbcode-bar button:hover {
    background: linear-gradient(to bottom, #dde8f8 0%, #c8d4e8 100%);
    border-color: #2a5caa;
    color: #0f265a;
}

/* ===== FENETRE DRAGGABLE (aide bbcode) ===== */
.draggable {
    width: 600px;
    height: 300px;
    overflow: auto;
    position: fixed;
    top: 50%;
    left: 50%;
    background-color: #fff;
    border: 2px solid #2a5caa;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    border-radius: 4px;
    z-index: 1000;
    display: none;
}

.draggable .header {
    position: sticky;
    top: 0;
    width: 100%;
    background: linear-gradient(to bottom, #2a5caa 0%, #1a3d7c 100%);
    color: #fff;
    padding: 6px 10px;
    cursor: move;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    font-weight: bold;
}

.draggable .close-button {
    color: #cce0ff;
    font-size: 18px;
    cursor: pointer;
    line-height: 1;
}

.draggable .close-button:hover {
    color: #fff;
}

.draggable .content {
    padding: 14px;
    overflow-y: auto;
    color: #2c2c2c;
    font-size: 0.85rem;
}

/* ===== RENDU BBCODE ===== */
ul.bbcode-list {
    margin-left: 30px;
    display: flex;
    flex-direction: column;
}

h1.h1-bbcode {
    font-family: Verdana, sans-serif;
    font-size: 1.6rem;
    color: #1a3d7c;
    border-bottom: 2px solid #c0cce0;
    padding-bottom: 4px;
}

h2.h2-bbcode {
    font-family: Verdana, sans-serif;
    font-size: 1.3rem;
    color: #1a3d7c;
    background-color: transparent;
    border: none;
    border-bottom: 1px solid #dde4f0;
    padding-bottom: 4px;
}

h3.h3-bbcode {
    font-family: Verdana, sans-serif;
    font-size: 1.1rem;
    color: #2a5caa;
}

fieldset.quote-bbcode {
    padding: 10px 14px;
    border: 1px solid #b0b8c8;
    background-color: #f0f4fa;
    border-radius: 4px;
    margin: 8px 0;
}

fieldset.quote-bbcode legend {
    border: 1px solid #b0b8c8;
    padding: 2px 8px;
    background: linear-gradient(to bottom, #eef2fa 0%, #dde4f0 100%);
    color: #1a3d7c;
    font-size: 0.8rem;
    font-weight: bold;
    border-radius: 3px;
}

/* ===== LAYOUT PANEL ===== */
.panel-wrapper {
    display: flex;
    gap: 0;
    min-height: calc(100vh - 200px);
    margin: 0;
}

.panel-sidebar {
    width: 220px;
    flex-shrink: 0;
    background: linear-gradient(to bottom, #1a3d7c 0%, #0f265a 100%);
    border-right: 2px solid #0a1a40;
}

.panel-sidebar-header {
    background: linear-gradient(to bottom, #0f265a 0%, #081840 100%);
    color: #aaccff;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 12px 14px;
    border-bottom: 1px solid #0a1a40;
}

.panel-nav {
    display: flex;
    flex-direction: column;
    padding: 6px 0;
}

.panel-nav-item {
    display: block;
    padding: 9px 14px;
    color: #aaccff;
    font-size: 0.82rem;
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    font-weight: normal;
}

.panel-nav-item:hover {
    background-color: rgba(255,255,255,0.08);
    color: #ffffff;
    text-decoration: none;
    border-left-color: #5588cc;
}

.panel-nav-item.active {
    background-color: rgba(255,255,255,0.12);
    color: #ffffff;
    border-left-color: #88aaee;
    font-weight: bold;
}

.panel-nav-separator {
    height: 1px;
    background-color: rgba(255,255,255,0.1);
    margin: 8px 0;
}

.panel-main {
    flex: 1;
    padding: 16px;
    background-color: #edf0f8;
    min-width: 0;
}

/* ===== PAGE HEADER ===== */
.panel-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid #c0cce0;
}

.panel-page-header h2 {
    margin: 0;
    padding: 0;
    font-size: 1.3rem;
    color: #1a3d7c;
    border: none;
    background: none;
}

/* ===== SECTIONS ===== */
.panel-section {
    background: #ffffff;
    border: 1px solid #c0cce0;
    border-radius: 5px;
    margin-bottom: 16px;
    overflow: hidden;
}

.panel-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 14px;
    background: linear-gradient(to bottom, #eef2fa 0%, #dde4f0 100%);
    border-bottom: 1px solid #c0cce0;
}

.panel-section-header h3 {
    margin: 0;
    padding: 0;
    font-size: 0.95rem;
    color: #1a3d7c;
    border: none;
    background: none;
}

/* ===== STATS DASHBOARD ===== */
.panel-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.panel-stat-card {
    background: #fff;
    border: 1px solid #c0cce0;
    border-radius: 5px;
    padding: 14px;
    display: flex;
    gap: 12px;
    align-items: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.panel-stat-card.panel-stat-warning {
    border-left: 4px solid #cc7700;
    background: #fffaf0;
}

.panel-stat-icon { font-size: 1.8rem; }

.panel-stat-value {
    font-size: 1.6rem;
    font-weight: bold;
    color: #1a3d7c;
    line-height: 1;
}

.panel-stat-label {
    font-size: 0.75rem;
    color: #666;
    margin-top: 2px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.panel-stat-sub {
    font-size: 0.72rem;
    color: #888;
    margin-top: 3px;
}

.panel-stat-sub a {
    color: #cc7700;
    font-weight: bold;
}

/* ===== TABLES ===== */
.panel-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
}

.panel-table thead tr {
    background: linear-gradient(to bottom, #eef2fa 0%, #dde4f0 100%);
}

.panel-table th {
    padding: 8px 10px;
    text-align: left;
    font-weight: bold;
    color: #1a3d7c;
    border-bottom: 2px solid #c0cce0;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.panel-table td {
    padding: 7px 10px;
    border-bottom: 1px solid #edf0f8;
    vertical-align: middle;
    color: #2c2c2c;
}

.panel-table tbody tr:hover td {
    background-color: #f5f8ff;
}

.panel-table tbody tr:last-child td {
    border-bottom: none;
}

.panel-row-muted td {
    opacity: 0.6;
}

.panel-empty {
    text-align: center;
    color: #888;
    padding: 20px !important;
    font-style: italic;
}

.panel-empty-state {
    text-align: center;
    color: #888;
    padding: 30px;
    font-style: italic;
    background: #fff;
    border: 1px solid #c0cce0;
    border-radius: 5px;
}

.panel-actions {
    white-space: nowrap;
}

/* ===== BADGES ===== */
.panel-badge {
    display: inline-block;
    padding: 2px 7px;
    border-radius: 3px;
    font-size: 0.7rem;
    font-weight: bold;
    text-transform: uppercase;
}

.panel-badge-success { background: #d4edda; color: #1a5c1a; border: 1px solid #a3d4a3; }
.panel-badge-danger  { background: #fde8e8; color: #8b1a1a; border: 1px solid #f0aaaa; }
.panel-badge-warning { background: #fff3cd; color: #7a4f00; border: 1px solid #f0cc88; }
.panel-badge-info    { background: #dde8f8; color: #1a3d7c; border: 1px solid #aaccee; }

/* ===== FORMS ===== */
.panel-form {
    padding: 16px;
}

.panel-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.panel-form-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.panel-form-full {
    grid-column: 1 / -1;
}

.panel-form-group label {
    font-size: 0.78rem;
    font-weight: bold;
    color: #444;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.panel-form-group input,
.panel-form-group select,
.panel-form-group textarea {
    padding: 6px 8px;
    border: 1px solid #a0aabb;
    border-radius: 3px;
    font-size: 0.85rem;
    font-family: Verdana, sans-serif;
    color: #2c2c2c;
    background: #fff;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.08);
    transition: border-color 0.15s, box-shadow 0.15s;
    width: 100%;
    box-sizing: border-box;
    margin: 0;
}

.panel-form-group input:focus,
.panel-form-group select:focus,
.panel-form-group textarea:focus {
    border-color: #2a5caa;
    outline: none;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.08), 0 0 4px rgba(42,92,170,0.25);
}

.panel-form-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding: 12px 0;
}

.panel-checkbox {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    cursor: pointer;
    color: #2c2c2c;
    font-weight: normal;
}

.panel-checkbox input { width: auto; margin: 0; }

.panel-checkbox-large { font-size: 1rem; font-weight: bold; }

.panel-checkboxes-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 8px;
    background: #f5f7fa;
    border: 1px solid #c0cce0;
    border-radius: 3px;
}

.panel-form-actions {
    display: flex;
    gap: 8px;
    padding-top: 12px;
    margin-top: 4px;
    border-top: 1px solid #edf0f8;
}

.panel-inline-form {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    border-bottom: 1px solid #edf0f8;
    align-items: center;
}

.panel-inline-form input {
    flex: 1;
    padding: 6px 8px;
    border: 1px solid #a0aabb;
    border-radius: 3px;
    font-size: 0.85rem;
    margin: 0;
    width: auto;
    height: auto;
}

/* ===== SEARCH ===== */
.panel-search-form {
    display: flex;
    gap: 6px;
    align-items: center;
}

.panel-search-form input {
    padding: 5px 10px;
    border: 1px solid #a0aabb;
    border-radius: 3px;
    font-size: 0.85rem;
    width: 220px;
    height: auto;
    margin: 0;
}

/* ===== QUIZ DETAIL ===== */
.panel-quiz-question {
    border: 1px solid #c0cce0;
    border-radius: 4px;
    margin: 8px 16px;
    overflow: hidden;
}

.panel-quiz-q-header {
    background: linear-gradient(to bottom, #eef2fa 0%, #dde4f0 100%);
    padding: 8px 12px;
    font-weight: bold;
    color: #1a3d7c;
    font-size: 0.85rem;
    border-bottom: 1px solid #c0cce0;
}

.panel-quiz-choices {
    list-style: none;
    padding: 8px 16px;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.panel-quiz-choices li {
    font-size: 0.82rem;
    padding: 4px 8px;
    border-radius: 3px;
    color: #2c2c2c;
    border: none;
    margin: 0;
}

.panel-choice-correct {
    background-color: #d4edda;
    color: #1a5c1a !important;
    font-weight: bold;
}

/* ===== MISC ===== */
.panel-text-danger { color: #cc0000; }

/* Éphémérides Styles */

.ephemerides-header {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--body-fg);
}

.ephemerides-header h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--secondary);
}

.ephemerides-subtitle {
    font-size: 1.1rem;
    color: var(--body-quiet-color);
    max-width: 600px;
    margin: 0 auto;
}

.ephemerides-list {
    display: grid;
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.ephemeride-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.ephemeride-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.ephemeride-header {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--primary-fg);
    padding: 0.75rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ephemeride-category-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-contribution);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.ephemeride-year-badge {
    background: var(--message-info-bg);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-style: italic;
}

.ephemeride-body {
    padding: 1.5rem;
}

.ephemeride-title {
    color: var(--secondary);
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.ephemeride-content {
    color: var(--body-fg);
    line-height: 1.6;
}

.ephemeride-content p {
    margin-bottom: 1rem;
}

.ephemeride-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.ephemerides-empty {
    text-align: center;
    padding: 3rem;
    color: var(--body-quiet-color);
    font-size: 1.1rem;
}

.ephemerides-empty p {
    margin: 0;
}

@media (max-width: 768px) {
    .ephemeride-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .ephemeride-category-badge,
    .ephemeride-year-badge {
        width: 100%;
        text-align: center;
    }
}