/* ==== DARK MODE – inversion tonale stricte, sans modifier le layout ==== */

/* Texte global sur fond sombre */
body.dark { color:#e6e6e6 !important; }

/* --- HEADER & BREADCRUMB --- */
body.dark #page-header,
body.dark .headerbar { background:#121212 !important; color:#e6e6e6 !important; }

body.dark .breadcrumbs,
body.dark .breadcrumbs li,
body.dark .breadcrumbs a {
  background:transparent !important;
  color:#e6e6e6 !important;
}

/* --- ONGLETs (FAQ, Rechercher, etc.) & LIENS HAUT-DROITE --- */
/* Tu les voulais CLairs en dark mode */
body.dark .navbar .linklist li a,
body.dark .headerbar .linklist li a,
body.dark .rightside .linklist li a {
  background:#e8e8e8 !important;  /* clair */
  color:#111 !important;
  border:1px solid #3a3a3a !important;
}
body.dark .navbar .linklist li a:hover,
body.dark .headerbar .linklist li a:hover,
body.dark .rightside .linklist li a:hover {
  background:#f2f2f2 !important;
  color:#000 !important;
}

/* --- BLOCS FORUM --- */
body.dark .forabg,
body.dark .forumbg {
  background:#1b1b1b !important;      /* fond sombre pour blocs */
  border-color:#3a3a3a !important;     /* bordures plus sombres */
}
body.dark .forabg .header,
body.dark .forumbg .header {
  background:#2a2a2a !important;       /* bandeau titre plus foncé */
  color:#f0f0f0 !important;
}

/* Lignes de la liste des forums (alternance) */
body.dark .topiclist li.row {
  background:#1f1f1f !important;       /* ligne 1 */
  color:#e6e6e6 !important;
  border-top:1px solid #3a3a3a !important;
}
body.dark .topiclist li.row:nth-child(even) {
  background:#262626 !important;       /* ligne 2 (un peu plus clair) */
}

/* Colonnes statistiques / dernier message — certaines restaient blanches */
body.dark .topiclist li.row dd,
body.dark .topiclist li.row dt {
    background-color: transparent !important; /* change uniquement la couleur, pas l'image */
	color:#e6e6e6 !important;
}
body.dark .topiclist li.row dd.topics,
body.dark .topiclist li.row dd.posts,
body.dark .topiclist li.row dd.views,
body.dark .topiclist li.row dd.lastpost {
  background:transparent !important;   /* enlève les “cases blanches” */
  color:#cfcfcf !important;
}

/* Titres de forums/sujets lisibles */
body.dark a.forumtitle,
body.dark a.topictitle { color:#ffffff !important; }

/* Pastilles/icônes à gauche (les cercles) */
body.dark .forum-image,
body.dark .icon,
body.dark .icon:before {
  background:#2e2e2e !important;
  border-color:#444 !important;
  color:#e6e6e6 !important;
}

/* Panneaux et contenus généraux ; pas de modif de padding/marges */
body.dark .panel,
body.dark .content,
body.dark .post,
body.dark .inner {
  background:#1b1b1b !important;
  color:#e6e6e6 !important;
  border-color:#3a3a3a !important;
}

/* Petits textes / méta */
body.dark .copyright,
body.dark .time,
body.dark .author,
body.dark .pagination,
body.dark .small,
body.dark .responsive-hide {
  color:#b8b8b8 !important;
}
/* Boutons en mode sombre */
body.dark .action-bar .button {
    background-color: #444 !important; /* fond sombre */
    background-image: none !important; /* pas de dégradé clair */
    border-color: #555 !important;
    color: #eee !important;
    text-shadow: none !important; /* supprime l'ombre blanche */
}

/* Survol et focus en mode sombre */
body.dark .action-bar .button:hover,
body.dark .action-bar .button:focus {
    background-color: #555 !important; /* un peu plus clair au survol */
    background-image: none !important;
    border-color: #666 !important;
    color: #fff !important;
    text-shadow: none !important;
}
/* Inversion pour le titre "Discussions diverses" */
body.dark .forum-title a {
    color: #e6e6e6 !important;      /* texte sombre */
    padding: 4px 8px;
    border-radius: 4px;
}

/* Inversion pour "Marquer tous les sujets comme lus" */
body.dark .pagination .mark {
    color: #e6e6e6 !important;   /* texte clair */
    background-color: transparent !important; /* fond foncé ou aucun fond */
}

body.dark .pagination .mark:hover {
    background-color: #444 !important; /* fond légèrement plus clair au survol */
}

body.dark h1{
	display:none;
	color: #1f1f1f;
}



body.dark .inventea-wrapper {
	
	border: 2px solid #555 !important;
	background: #2e2e2e  !important;
}

body.dark a {
	color: #f3f3f3
}
body.dark  {
	background-color: #5f5f5f
}

body.dark .inventea-menu li > a {
	background: rgba(100, 100, 100, 0.7) !important;
	
}

body.dark  .inventea-menu li > a:focus,
body.dark  .inventea-menu li > a:hover,
body.dark  .inventea-menu li > a:active {
	background: rgba(70, 70, 70, 0.95)!important;
}

body.dark .post .postprofile, 
body.dark .post.bg2 .postprofile {
  background-color: #202020 !important;
}

body.dark .postprofile,
body.dark .pm .postprofile,
body.dark .search .postprofile {
	color: #ccc !important;
}

body.dark .postprofile strong {
	color: #ccc !important;
}

body.dark .button {
	border-color: #383C40!important ;
	background-color: #1A1A1A!important ; /* Old browsers */
	background-image: -webkit-linear-gradient(top, #000000 0%, #1A1A1A 100%)!important;
	background-image: linear-gradient(to bottom, #000000 0%, #1A1A1A 100%)!important; /* W3C */
	filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#000000', endColorstr='#1A1A1A', GradientType=0)!important; /* IE6-9 */
	box-shadow: 0 0 0 1px #000000 inset!important;
	-webkit-box-shadow: 0 0 0 1px #000000 inset!important;
	color: #2CEEBE!important;
}

body.dark .button:hover,
body.dark .button:focus {
	border-color: #F5712C!important;
	background-color: #000000!important; /* Old browsers */
	background-image: -webkit-linear-gradient(top, #1A1A1A 0%, #000000 100%)!important;
	background-image: linear-gradient(to bottom, #1A1A1A 0%, #000000 100%)!important; /* W3C */
	filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#1A1A1A', endColorstr='#000000', GradientType=0)!important; /* IE6-9 */
	text-shadow: 1px 1px 0 #000000, -1px -1px 0 #000000, -1px -1px 0 rgba(44, 238, 190, 0.2)!important;
}


/* cadres forums / tableaux */
body.dark .forabg,
body.dark .forumbg,
body.dark .cp-main table.table1 {
  border-bottom: 3px solid #2e2e2e!important;
}

/* séparateurs de lignes */
body.dark li.row,
body.dark .cp-main .panel li.row,
body.dark table.table1 tbody tr {
  border-top: 1px solid #2a2a2a!important;
}


body.dark ul.topics .bg2,
body.dark li.row:hover,
body.dark table.table1 tr.bg2,
body.dark table.table1 tbody tr:hover {
  background-color: #262626 !important;
}
body.dark ul.topics .bg1,
body.dark table.table1 tr.bg1 {
  background-color: #1f1f1f !important;
}


body.dark  bg1 td.posts:nth-child(2n) {
  background-color: #0f0f0f !important;
}
body.dark  bg2 td.posts:nth-child(2n) {
  background-color: #151515 !important;
}
body.dark .bg1 td:nth-child(2),
body.dark .bg1 td:nth-child(4) {
  background-color: #0f0f0f !important;

}

body.dark .bg2 td:nth-child(2),
body.dark .bg2 td:nth-child(4) {
  background-color: #151515 !important;

}

body.dark table.table1 td {
	color: #cfcfcf!important;
}


/* lignes signalées (rose clair → sombre désaturé) */
body.dark .forumbg ul.topiclist li.reported dd:nth-child(even),
body.dark li.reported,
body.dark li.reported:hover {
  background: #2b2225 !important;
}

/* héritage couleur */
body.dark li.row strong {
  color: inherit!important;
}

/* en-têtes/panneaux : texte (gris moyen → clair) */
body.dark .content {
  color: #d0d0d0!important;
}

body.dark .panel h2,
body.dark .panel h3,
body.dark .content h2 {
  color: #e6e6e6!important;
}

/* post signalé (rose clair → sombre) */
body.dark .post.reported .postbody {
  background-color: #2b2225!important;
}

/* badge “online” (garde le contraste, verts un peu assombris) */
body.dark .inventea-online {
  border-bottom: 3px solid #0a675a!important;
  background: #0b7a66!important;
  color: #ffffff!important;
}

/* auteur / séparateurs (gris clair → gris foncé) */
body.dark p.author {
  border-bottom: 1px dotted #333333!important;
}

body.dark .post .signature {
  border-top: 1px dotted #333333!important;
}

/* sondages (bords/txt) */
body.dark fieldset.polls {
  border-color: #3a3a3a!important;
  color: #d0d0d0!important;
}

/* pièces jointes (cadre) */
body.dark .attachbox {
  border: 1px solid #3a3a3a!important;
}

/* icônes de profil (fond/bord bas) */
body.dark .postprofile ul.profile-icons li a,
body.dark .postbody ul.profile-icons li a {
  border-bottom: 3px solid #3a3a3a!important;
  background: #1e1e1e!important;
}

/* hr pointillé (gris clair → foncé) */
body.dark hr.dashed {
  border-top: 1px dotted #333333!important;
}

/* topic icon (si jamais un fond est appliqué via thème) */
body.dark .forabg ul.topiclist li.row dl dt {
  background-repeat: no-repeat!important;
}
