/* Mise en page de la Newsbox */

.newsboxContainer a {
text-decoration: none; 
color: #FFFFFF;
}

.news-container {
min-width: 400px;
width: 27%;
font-family: Arial, sans-serif;
background: rgba(0, 0, 0, 0.3); /* Fond semi-transparent noir */
backdrop-filter: blur(3px);
color: white; /* Texte en blanc pour contraster avec le fond */
border-radius: 10px;
overflow: hidden;
margin: auto;
position: fixed;
bottom: 75px;
right: auto;
left: auto;
z-index: 1000;
}

.news-box {
  height: 159px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.3); /* Bordure légère */
border-radius: 10px;
background-color: transparent;
}

/* Le dégradé en haut */
.news-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 20px; /* hauteur du dégradé */
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(0,0,0,0.7), transparent);
  z-index: 10;
}

/* Le dégradé en bas */
.news-box::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 20px;
  pointer-events: none;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  z-index: 10;
}

.news-list {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  will-change: transform;
}

.news-item {
display: flex;
align-items: center;
padding: 4px;
min-height: 43px;
height: auto;
border-bottom: 1px solid rgba(255, 255, 255, 0.3);
background-color: transparent;
box-sizing: border-box;
margin-top: -2px;
margin-bottom: 2px;
margin-left: 2px;
color: #ffffff;
font-size: 14px;
font-weight: normal;
flex: 1;
backface-visibility: hidden;
-webkit-backface-visibility: hidden;
will-change: auto;
transform: translateZ(0); /* ou none */
filter: none;
overflow: visible;
}

.news-item img {
width: 35px;
height: 35px;
object-fit: cover;
margin-right: 10px;
border-radius: 5px;
flex-shrink: 0;
}

.news-item a {
text-decoration: none;
color: #ffffff;
font-size: 14px;
flex: 1;
}

.news-list:hover {
  will-change: auto;
  transform: translateZ(0); /* ou none */
  filter: none;
}

.surlignage {
  position: relative;
  display: inline-block;
  font-weight: bold;
  z-index: 0;
  padding: 5px 15px 5px 15px;
}

.surlignage .fond {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2.3em;
  transform: skewY(-1.2deg);
  opacity: 1.0;
  z-index: -1;
  filter: blur(2.3px);
  border-radius: 4px;
}

.non-clickable-title {
margin-left: auto;
margin-right: auto;
}

#scrollList {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translateZ(0);
}

@keyframes scrollNews {
0% { transform: translateY(0); }
100% { transform: translateY(-50%); } /* moitié car on double les items */
}

@media (max-width: 400px) {
	.news-container {
	width: 100%;
	}

	.news-item a {
	font-size: 13px;
	}
}