/* Validation costume (RLFB) — styles de l'extension.
   Les blocs réutilisent .forabg du thème (bandeau bleu dans Milk) ; le reste est neutre. */

.cv { margin-bottom: 20px; }
.cv-h2 { margin: 0; font-weight: 300; font-size: 1.8em; }
.cv-titlebar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin: 0 0 16px; }
.cv-muted { color: #8a8f94; }
.cv-right { text-align: right; }
.cv-req { color: #d13b3b; }

/* Blocs */
.cv-block { margin-bottom: 20px; }
.cv-block .inner { padding-bottom: 8px; }
.cv-block-head { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; padding: 10px 14px; color: #fff; text-transform: uppercase; }
.cv-block-title { font-size: 1.1em; }
.cv-block-body { background: #fff; color: #333; margin: 0 8px; border-radius: 8px; overflow-x: auto; }

/* Boutons */
.cv .button.cv-btn-primary { background: #16508a; border-color: #16508a; color: #fff; }
.cv .button.cv-btn-primary:hover { background: #11406f; color: #fff; }
.cv-filters { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; text-transform: none; }
.cv-filters .cv-toggle { background: transparent; border-color: #fff; color: #fff; }
.cv-filters .cv-toggle.cv-on { background: #fff; color: #16508a; }
.cv-filters select { max-width: 100%; }

/* Liste */
.cv-table { width: 100%; border-collapse: collapse; min-width: 560px; }
.cv-table th { text-align: left; font-size: 0.9em; text-transform: uppercase; color: #8a8f94; padding: 10px 14px; border-bottom: 1px solid #e4e7ea; }
.cv-table td { padding: 12px 14px; border-bottom: 1px solid #e4e7ea; vertical-align: middle; }
.cv-table tr:last-child td { border-bottom: 0; }
.cv-table tr.cv-clickable { cursor: pointer; }
.cv-table tr.cv-clickable:hover td { background: #f6f8fa; }
.cv-table tr.cv-locked td { color: #8a8f94; }
.cv-num { font-weight: 500; white-space: nowrap; }
.cv-table .cv-right { white-space: nowrap; }
.cv-empty { text-align: center; padding: 24px 14px; color: #8a8f94; }

/* Pastilles d'étape */
.cv-pill { display: inline-block; color: #fff; border-radius: 20px; padding: 2px 12px; font-size: 0.85em; font-weight: 500; text-transform: none; line-height: 1.6; }
.cv-step-depo { --cv-c: #8a8f94; }
.cv-step-wait { --cv-c: #5aa9e6; }
.cv-step-exam { --cv-c: #16508a; }
.cv-step-corr { --cv-c: #e8891c; }
.cv-step-ok   { --cv-c: #2e9d4a; }
.cv-step-ko   { --cv-c: #d13b3b; }
.cv-pill { background: var(--cv-c, #8a8f94); }

/* Formulaire */
.cv-frow { display: grid; grid-template-columns: 260px 1fr; gap: 12px; padding: 14px 16px; border-bottom: 1px solid #e4e7ea; }
.cv-frow:last-child { border-bottom: 0; }
.cv-frow > label { font-weight: 500; }
.cv-help { display: block; font-weight: normal; color: #8a8f94; font-size: 0.9em; }
.cv-frow input[type="text"], .cv-frow input[type="url"], .cv-frow select, .cv-frow textarea { width: 100%; max-width: 600px; box-sizing: border-box; }
.cv-urlrow { display: flex; gap: 6px; margin-bottom: 6px; max-width: 600px; }
.cv-urlrow input { flex: 1; }
.cv-editor { max-width: 760px; }
.cv-editor textarea { width: 100%; box-sizing: border-box; min-height: 120px; }
.cv-submitbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin: 10px 0; }
.cv-errors { background: #fdecec; border-left: 4px solid #d13b3b; color: #8a1f1f; padding: 8px 14px; margin-bottom: 16px; border-radius: 4px; }
@media (max-width: 700px) { .cv-frow { grid-template-columns: 1fr; } }

/* Fiche : informations et frise */
.cv-info { display: flex; flex-wrap: wrap; gap: 8px 36px; padding: 16px; }
.cv-info span { display: block; font-size: 0.8em; text-transform: uppercase; color: #8a8f94; }
.cv-frieze { display: flex; list-style: none; margin: 0; padding: 16px 16px 8px; overflow-x: auto; }
.cv-st { flex: 1; min-width: 110px; text-align: center; position: relative; color: #8a8f94; font-size: 0.9em; }
.cv-st::before { content: ""; position: absolute; top: 15px; left: -50%; width: 100%; height: 3px; background: #e4e7ea; }
.cv-st:first-child::before { display: none; }
.cv-dot { width: 32px; height: 32px; line-height: 26px; border-radius: 50%; background: #fff; border: 3px solid #e4e7ea; margin: 0 auto 6px; position: relative; z-index: 1; display: block; box-sizing: border-box; font-weight: 500; }
.cv-st.cv-done, .cv-st.cv-cur { color: #333; }
.cv-st.cv-done::before, .cv-st.cv-cur::before { background: #16508a; }
.cv-st.cv-done .cv-dot { background: #16508a; border-color: #16508a; color: #fff; }
.cv-st.cv-cur { font-weight: 500; }
.cv-st.cv-cur .cv-dot { background: var(--cv-c); border-color: var(--cv-c); color: #fff; }
.cv-st-label, .cv-st-date { display: block; }
.cv-st-date { font-size: 0.85em; color: #8a8f94; font-weight: normal; }
.cv-manage { background: #f6f8fa; margin: 8px 16px 12px; padding: 12px; border-radius: 8px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* Fiche : réponses */
.cv-answers { display: grid; grid-template-columns: 260px 1fr; gap: 10px 16px; margin: 0; padding: 16px; }
.cv-answers dt { font-weight: 500; color: #555; }
.cv-answers dd { margin: 0; }
@media (max-width: 700px) { .cv-answers { grid-template-columns: 1fr; } .cv-answers dd { margin-bottom: 8px; } }
.cv-thumbs { display: flex; flex-wrap: wrap; gap: 10px; }
.cv-thumb { width: 130px; text-decoration: none; }
.cv-thumb img, .cv-thumb-link { display: block; width: 130px; height: 96px; object-fit: cover; border-radius: 6px; background: #eef1f4; }
.cv-thumb-link { line-height: 96px; text-align: center; font-size: 1.6em; color: #8a8f94; }
.cv-thumb-url { display: block; font-size: 0.75em; color: #8a8f94; word-break: break-all; }

/* Fil de messages */
.cv-sys { text-align: center; font-size: 0.9em; color: #8a8f94; background: #f6f8fa; padding: 8px 14px; border-bottom: 1px solid #e4e7ea; }
.cv-post { display: flex; border-bottom: 1px solid #e4e7ea; }
.cv-profile { width: 180px; flex-shrink: 0; padding: 14px; text-align: center; border-right: 1px solid #e4e7ea; font-size: 0.9em; }
.cv-avatar img { max-width: 64px; height: auto; border-radius: 50%; }
.cv-author { font-weight: 500; margin-top: 4px; }
.cv-rank { display: inline-block; background: #8a8f94; color: #fff; border-radius: 4px; padding: 0 6px; font-size: 0.85em; margin-top: 3px; }
.cv-rank.cv-rank-manager { background: #16508a; }
.cv-pbody { flex: 1; padding: 14px; min-width: 0; }
.cv-pdate { font-size: 0.85em; margin-bottom: 6px; }
.cv-reply { padding: 14px; }
@media (max-width: 600px) {
	.cv-post { flex-direction: column; }
	.cv-profile { width: auto; border-right: 0; border-bottom: 1px solid #e4e7ea; display: flex; gap: 10px; align-items: center; text-align: left; }
}

/* Saisie par le BMO pour un membre */
.cv-proxy-explain { margin: 0; padding: 14px 16px 0; color: #555; }
.cv-usersearch { position: relative; max-width: 600px; }
.cv-usersearch input { width: 100%; box-sizing: border-box; }
.cv-suggest { position: absolute; z-index: 20; left: 0; right: 0; top: 100%; margin: 2px 0 0; padding: 4px 0; list-style: none; background: #fff; border: 1px solid #cfd5db; border-radius: 6px; box-shadow: 0 4px 12px rgba(0, 0, 0, .12); max-height: 260px; overflow-y: auto; }
.cv-suggest li { padding: 6px 12px; cursor: pointer; }
.cv-suggest li:hover { background: #f6f8fa; color: #16508a; }
.cv-suggest li.cv-suggest-empty { cursor: default; color: #8a8f94; }
.cv-entered-by { color: #8a8f94; font-style: italic; }

/* ---------------------------------------------------------------
   Compatibilité thème Milk (v1.0.4)
   - Milk ne charge Roboto Slab qu'en 300/400/500 : un gras 700 est
     simulé par le navigateur (texte baveux) -> on reste en 500.
   - Les bandeaux .forabg donnent du blanc et des ombres au texte.
   - Les règles génériques de th écrasent l'alignement.
   --------------------------------------------------------------- */
.cv strong, .cv b { font-weight: 500; }
.cv .cv-block-body, .cv .cv-block-body *, .cv .cv-pill, .cv .cv-filters, .cv .cv-filters * { text-shadow: none; }

.cv .cv-filters select {
	background: #fff;
	color: #16508a;
	-webkit-text-fill-color: #16508a;
	border: 1px solid #fff;
	border-radius: 20px;
	padding: 5px 12px;
	font: inherit;
	font-size: 0.95em;
	text-transform: none;
	height: auto;
}
.cv .cv-filters select option { color: #333; -webkit-text-fill-color: #333; background: #fff; }

.cv .cv-table thead th {
	background: #fff;
	color: #8a8f94;
	font-weight: 500;
	text-shadow: none;
	padding: 10px 14px;
	line-height: 1.3em;
}
.cv .cv-table th.cv-right, .cv .cv-table td.cv-right { text-align: right; }

.cv .cv-pill {
	font-family: inherit;
	font-weight: 500;
	font-size: 0.85em;
	letter-spacing: 0;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	vertical-align: middle;
}

/* Bandeau bleu RLFB garanti, quel que soit le préréglage de couleurs du thème */
.cv .forabg.cv-block { background-color: #16508a; border-radius: 8px; }
.cv .cv-block-head, .cv .cv-block-title { color: #fff; }
