/* Concepteur : Josselin Fatah-Roux */
/* forum.css — styles propres au forum, séparés de ovnie.css.
   Ce fichier vient EN PLUS de ovnie.css (qui fournit la fenêtre, le
   décor, la barre des tâches...) — il faut charger les deux. */

/* ===== Fil d'Ariane ===== */

.forum-breadcrumb{
	margin-bottom: 10px;
	padding: 4px 8px;
	background-color: #C0C0C0;
	border: 1px solid;
	border-color: #808080 #ffffff #ffffff #808080;
	box-shadow:
		inset -1px -1px 0 #dfdfdf,
		inset 1px 1px 0 #000000;
	font-size: 12px;
}

/* ===== Page d'accueil du forum : catégories + sous-forums ===== */

.forum-catbox{
	margin: 16px 0;
	background-color: #ffffff;
	border: 2px solid;
	border-color: #808080 #ffffff #ffffff #808080;
	box-shadow:
		inset -1px -1px 0 #dfdfdf,
		inset 1px 1px 0 #000000;
}

.forum-catbox-title{
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 6px 10px;
	background: linear-gradient(90deg, #000080 0%, #1084d0 100%);
	color: #ffffff;
	font-family: "Tahoma", "MS Sans Serif", sans-serif;
	font-weight: bold;
	font-size: 13px;
}

.forum-catbox-cols{
	display: flex;
	gap: 10px;
	font-size: 11px;
	font-weight: normal;
	white-space: nowrap;
}

.forum-catbox-cols span{
	width: 66px;
	text-align: center;
}

.forum-catbox-cols span:last-child{
	width: 220px;
	text-align: left;
}

.forum-subforum-row{
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 10px;
	border-bottom: 1px solid #e0e0e0;
}

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

.forum-subforum-row:nth-child(even){
	background-color: #eef2f8;
}

.forum-subforum-icon{
	flex: 0 0 auto;
	width: 22px;
	height: 22px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.forum-subforum-info{
	flex: 1;
	min-width: 0;
}

.forum-subforum-info a{
	font-weight: bold;
	font-size: 14px;
}

.forum-subforum-desc{
	font-size: 12px;
	color: #555555;
	margin-top: 2px;
}

.forum-subforum-count{
	flex: 0 0 66px;
	text-align: center;
	font-size: 13px;
	color: #333333;
}

.forum-subforum-last{
	flex: 0 0 220px;
	font-size: 11px;
	color: #333333;
	line-height: 1.4;
}

.forum-subforum-last strong{
	color: #000080;
}

.forum-subforum-last .forum-last-empty{
	color: #999999;
	font-style: italic;
}

/* ===== Liste des sujets d'un sous-forum ===== */

.forum-actions{
	display: flex;
	justify-content: flex-end;
	margin: 10px 0;
}

.forum-btn{
	display: inline-block;
	font-family: "Tahoma", "MS Sans Serif", sans-serif;
	font-size: 12px;
	padding: 4px 14px;
	background-color: #C0C0C0;
	border: 1px solid;
	border-color: #ffffff #000000 #000000 #ffffff;
	box-shadow:
		inset -1px -1px 0 #808080,
		inset 1px 1px 0 #dfdfdf;
	color: #000000;
	text-decoration: none;
}

.forum-btn:active{
	border-color: #000000 #ffffff #ffffff #000000;
}

.forum-table{
	width: 100%;
	border-collapse: collapse;
	background-color: #ffffff;
	border: 2px solid;
	border-color: #808080 #ffffff #ffffff #808080;
	box-shadow:
		inset -1px -1px 0 #dfdfdf,
		inset 1px 1px 0 #000000;
	font-size: 13px;
}

.forum-table th{
	text-align: left;
	padding: 5px 10px;
	background-color: #C0C0C0;
	border-bottom: 1px solid #808080;
	font-family: "Tahoma", "MS Sans Serif", sans-serif;
	font-size: 12px;
}

.forum-table td{
	padding: 6px 10px;
	border-bottom: 1px solid #e0e0e0;
	vertical-align: top;
}

.forum-table tr:nth-child(even) td{
	background-color: #eef2f8;
}

.forum-table a{
	font-weight: bold;
}

/* ===== Messages d'un sujet ===== */

.forum-post{
	display: flex;
	margin: 12px 0;
	background-color: #ffffff;
	border: 2px solid;
	border-color: #808080 #ffffff #ffffff #808080;
	box-shadow:
		inset -1px -1px 0 #dfdfdf,
		inset 1px 1px 0 #000000;
}

.forum-post-author{
	flex: 0 0 130px;
	padding: 10px;
	background-color: #C0C0C0;
	border-right: 1px solid #808080;
	text-align: center;
}

.forum-post-avatar{
	width: 48px;
	height: 48px;
	margin: 0 auto 6px auto;
	background-color: #ffffff;
	border: 1px solid #000000;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: "Tahoma", sans-serif;
	font-weight: bold;
	font-size: 18px;
	color: #000080;
}

.forum-post-pseudo{
	font-family: "Tahoma", "MS Sans Serif", sans-serif;
	font-weight: bold;
	font-size: 12px;
	word-break: break-word;
}

.forum-post-body{
	flex: 1;
	padding: 10px 14px;
	display: flex;
	flex-direction: column;
}

.forum-post-date{
	font-size: 11px;
	color: #666666;
	margin-bottom: 6px;
	border-bottom: 1px solid #e0e0e0;
	padding-bottom: 4px;
}

.forum-post-message{
	font-size: 14px;
	white-space: pre-line;
	text-align: justify;
}

.forum-post-image{
	max-width: 100%;
	margin-top: 8px;
	border: 2px solid;
	border-color: #808080 #ffffff #ffffff #808080;
	box-shadow:
		inset -1px -1px 0 #dfdfdf,
		inset 1px 1px 0 #000000;
}

/* ===== Formulaire de réponse / nouveau sujet ===== */

.forum-reply-form{
	margin-top: 16px;
	padding: 12px;
	background-color: #C0C0C0;
	border: 2px solid;
	border-color: #808080 #ffffff #ffffff #808080;
	box-shadow:
		inset -1px -1px 0 #dfdfdf,
		inset 1px 1px 0 #000000;
}

.forum-reply-form textarea{
	width: 100%;
	font-family: "Tahoma", sans-serif;
	font-size: 13px;
	padding: 6px;
	border: 1px solid;
	border-color: #808080 #ffffff #ffffff #808080;
	box-shadow:
		inset -1px -1px 0 #dfdfdf,
		inset 1px 1px 0 #000000;
	background-color: #ffffff;
	resize: vertical;
}

.forum-file-input{
	font-family: "Tahoma", sans-serif;
	font-size: 12px;
	margin-top: 6px;
}

/* ===== Écrans étroits ===== */

@media (max-width: 720px){
	.forum-catbox-cols,
	.forum-subforum-count,
	.forum-subforum-last{
		display: none;
	}
}
