body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 20px;
  background-color: #f5f5f5;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  background-color: white;
  padding: 10px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

h1 {
  text-align: center;
  color: #333;
  margin-bottom: 20px;
  margin-top:0;
}

#wordcloud {
  width: 100%;
  height: 600px;
  border: 1px solid #ddd;
  border-radius: 4px;
  position: relative;
}

.word {
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.word:hover {
  opacity: 0.7;
}

.controls {
  margin-bottom: 10px;
  text-align: center;
}

.controls fieldset {
  display: inline-block;
  padding: 4px;
  border-radius: 6px;
  border-color: #c3c3c3;
}
.controls label {
  margin-right: 10px;
}

.controls input,
.controls select {
  margin-right: 8px;
  padding: 5px;
}

.stats {
  margin-top: 20px;
  padding: 15px;
  background-color: #f8f9fa;
  border-radius: 4px;
  text-align: center;
}

.loading {
  text-align: center;
  padding: 50px;
  font-size: 18px;
  color: #666;
}

.error {
  text-align: center;
  padding: 50px;
  font-size: 18px;
  color: #d32f2f;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
  background-color: white;
  margin: 5% auto;
  border-radius: 8px;
  width: 80%;
  max-width: 800px;
  max-height: 80vh;
  position: relative;
  display: flex;
  flex-direction: column;
}

.modal-header {
  padding: 20px 20px 10px 20px;
  border-bottom: 2px solid #007bff;
  background-color: white;
  position: sticky;
  top: 0;
  z-index: 10;
  border-radius: 8px 8px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h2 {
  margin: 0;
  color: #333;
  padding: 0;
  border: none;
  flex: 1;
}

.close {
  color: #aaa;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  margin-left: 15px;
  flex-shrink: 0;
}

.close:hover {
  color: #000;
}

.modal-body {
  padding: 10px 20px 20px 20px;
  overflow-y: auto;
  flex: 1;
}

.article-list {
  list-style: none;
  padding: 0;
}

.article-item {
  margin-bottom: 15px;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background-color: #f8f9fa;
  transition: background-color 0.3s ease;
}

.article-item:hover {
  background-color: #e9ecef;
}

.article-title {
  font-weight: bold;
  color: #007bff;
  text-decoration: none;
  display: block;
  margin-bottom: 5px;
  font-size: 16px;
}

.article-title:hover {
  text-decoration: underline;
}

.article-url {
  font-size: 12px;
  color: #6c757d;
  word-break: break-all;
}

.related-names {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #dee2e6;
}

.related-names-title {
  font-size: 13px;
  font-weight: bold;
  color: #495057;
  margin-bottom: 5px;
}

.related-name {
  display: inline-block;
  background-color: #e9ecef;
  color: #495057;
  padding: 2px 6px;
  margin: 2px;
  border-radius: 3px;
  font-size: 11px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.related-name:hover {
  background-color: #007bff;
  color: white;
}

.related-name.current {
  background-color: #007bff;
  color: white;
}

.article-item .source-site {
  float:right;
  font-size: 11px;
  font-style: italic;
  background-color: #fff;
  color: #495057;
}

.article-count {
  background-color: #007bff;
  color: white;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 12px;
  margin-bottom: 10px;
  display: inline-block;
}

.metadata-section {
  background-color: #e3f2fd;
  border: 1px solid #90caf9;
  border-radius: 4px;
  padding: 15px;
  padding-top: 0;
  margin-bottom: 20px;
}

.metadata-title {
  font-weight: bold;
  color: #1565c0;
  margin-top: 10px;
  margin-bottom: 10px;
  font-size: 18px;
}

.metadata-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}

.metadata-item {
  background-color: white;
  padding: 8px 12px;
  border-radius: 4px;
  border-left: 4px solid #1976d2;
}

.metadata-label {
  font-size: 12px;
  color: #666;
  margin-bottom: 2px;
}

.metadata-value {
  font-size: 14px;
  font-weight: bold;
  color: #333;
}

.date-range {
  background-color: #fff3e0;
  border: 1px solid #ffcc02;
  border-radius: 4px;
  padding: 10px;
  margin-top: 10px;
  text-align: center;
}

.extreme-articles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-top: 10px;
}

.extreme-article {
  background-color: white;
  padding: 10px;
  border-radius: 4px;
  border: 1px solid #ddd;
}

.extreme-article h4 {
  margin: 0 0 5px 0;
  color: #333;
  font-size: 14px;
}

.extreme-article .date {
  font-weight: bold;
  color: #007bff;
  margin-bottom: 5px;
}

.extreme-article .title {
  font-size: 12px;
  color: #666;
  line-height: 1.3;
}

.anticor-footer {
  margin-top: 30px;
  padding: 20px;
  background-color: #f8f9fa;
  border-top: 3px solid #007bff;
  border-radius: 0 0 8px 8px;
  text-align: center;
}

.footer-content {
  max-width: 800px;
  margin: 0 auto;
}

.anticor-footer p {
  margin: 5px 0;
  color: #666;
  font-size: 14px;
}

.anticor-footer a {
  color: #007bff;
  text-decoration: none;
  font-weight: bold;
}

.anticor-footer a:hover {
  text-decoration: underline;
}

.footer-note {
  font-style: italic;
  font-size: 13px;
  margin-top: 10px;
  color: #888;
}

			/**
			 * CSS pour l'animation affichée pendant le téléchargement des données distantes.
			 */
			#loader {
				display: block ;
				position: fixed;
				left: 50%;
				top: 30%;
				transform: translateY(-50%);
				transform: translateX(-50%);
				z-index: 9999;
				width: 100px;
				height: 100px;
				/*margin: -75px 0 0 -75px;*/
				border: 16px solid #f3f3f3;
				border-radius: 50%;
				border-top: 16px solid #3498db;
				-webkit-animation: spin 2s linear infinite;
				animation: spin 2s linear infinite;
			}

			@-webkit-keyframes spin {
				0% { -webkit-transform: rotate(0deg); }
				100% { -webkit-transform: rotate(360deg); }
			}
			@keyframes spin {
				0% { transform: rotate(0deg); }
				100% { transform: rotate(360deg); }
			}
