﻿AUTEUR, CC, CORPS, DATE, DESTINATAIRES, MEMO, PAR, SUJET {
  display: block;
}

MEMO {
	padding: 2em;
	border: thick salmon solid;
}

MEMO::before {
	content: "Mémo interne de l’EBSI";
	margin-bottom: 1em;
	margin-left: 2em;
	display: block;
	font-family: script, cursive;
	text-decoration: underline;
	text-decoration-style: double;
	font-size: x-large;
	color: orange;
}

MEMO[PJ]::after {
	content: "→ Pièce jointe: " open-quote "\A0" attr(PJ) "\A0" close-quote " ←";
	font-family: sans-serif;
	padding-top: 2em;
	margin-left: 2em;
	display: block;
}

MEMO[STATUT]::after {
	content: "→ Statut : " attr(STATUT) " ←";
	font-family: sans-serif;
	padding-top: 2em;
	margin-left: 2em;
	display: block;
}

MEMO[STATUT][PJ]::after {
	content: "→ Statut : " attr(STATUT) " ←\A"
		"→ Pièce jointe : " open-quote "\A0" attr(PJ) "\A0" close-quote " ←";
	font-family: sans-serif;
	padding-top: 2em;
	margin-left: 2em;
	display: block;
	white-space: pre;
}

AUTEUR {color:red; background-color:#ccffff;}

AUTEUR::before {
  content: "De : ";
  font-weight: bold;
  font-style: normal;
}

NOM {
  display: block;
  font-style: italic;
  color: purple;
}

NOM::before {
  content: "et à : ";
  font-weight: bold;
  font-style: normal;
}

NOM:first-child::before {
  content: "À : ";
  font-weight: bold;
  font-style: normal;
}

CC > NOM:first-child::before {
  content: "Copie à : ";
  font-weight: bold;
  font-style: normal;
}

NOM[COURRIEL]::after, AUTEUR[COURRIEL]::after {
  content: " [" attr(COURRIEL) "] ";
  font-family: monospace;
  font-style: normal;
}

NORMAL::after {
  content: "Ce mémo doit être traité en priorité NORMALE";
  font-weight: bold;
  font-size: big;
  font-family: papyrus;
}

URGENT::after {
  content: "Ce mémo doit être traité en HAUTE priorité";
  font-weight: bold;
  font-size: big;
  font-family: papyrus;
}

VRAC::after {
  content: "Ce mémo peut être traité en BASSE priorité";
  font-weight: bold;
  font-size: big;
  font-family: papyrus;
}

SUJET::before {
  content: "Sujet : ";
  font-weight: bold;
  font-style: normal;
  color: magenta;
}

SUJET {
  color: green;
}

DATE::before {
  content: "Date : ";
  font-weight: bold;
  font-style: normal;
}

DATE {
  color: gold;
  background-color: black;
}

PAR {
  margin-top: 1em;
}

EM {
  font-style: italic;
}
