
.cards { 
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(var(--imgwidth), 1fr));
  grid-gap: 20px 10px;
  align-items: stretch;
}

.card {
  /* Add shadows to create the "card" effect */
  box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
  transition: 0.3s;
  border-radius: 10px;  /*5px rounded corners */
  border: solid 1px;
  border-color: black;
  position: relative;
  width: var(--imgwidth);
  max-width: calc(100vw - 20px);
  height: var(--cardheight);
}


/* On mouse-over, add a deeper shadow */
.card:hover{
  box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2);
}

.card_header{
	  font-weight: 1000;
	  background-color: #c0272d;
	  color: #FFFFFF;
	  width: 100%;
	  height: 40px;
	  line-height: 40px;
	  font-size: 20px;
	  text-align: center;
	  border-top-left-radius: 10px;
	  border-top-right-radius: 10px;
	  border-bottom: solid 1px black;
}
.card_image{
	border-top-left-radius: 10px;
	border-top-right-radius: 10px;
}
.card_image, .card_image_after_header{
	height: var(--imgheight);
	border-bottom: solid 1px;
	overflow: hidden;
}
.card_image img, .card_image_after_header img{
	width: 100%;
	height: var(--imgheight);
	max-width: var(--imgwidth);
}

.card_text{
	/*height: calc(calc(var(--cardheight) - var(--imgheight)) - 62px);*/
	height: var(--textheight);
	overflow-y: auto;
	padding-left: 8px;
	padding-right: 8px;
}

.card_text li{
	margin-top: 1px;
	margin-bottom: 1px;
}

.card_text ul{
	margin-top: 5px;
	margin-bottom: 5px;
}

.card_text_index{
	border-bottom-left-radius: 10px;
	border-bottom-right-radius: 10px;	
	border-top: solid 1px;
	padding-left: 8px;
	padding-right: 8px;
	text-decoration: none;
	color: #000000;
}


.card_button{
	background-color: #CCCCCC;
	height: 30px;
	line-height: 30px;
	text-align: center;
	font-weight: 1000;
	margin-top: auto;
	border-bottom-left-radius: 10px;
	border-bottom-right-radius: 10px;	
	border-top: solid 1px;
	position: absolute;
	left:    0;
	bottom:   0;
	width: 100%;
}
.card_button:hover{
	background-color: #cc5256;
}

.card_button a, .card_button a:visited, .card_text_index a, .card_text_index a:visited{
	text-decoration: none;
	color: #000000;
	background: none;
	padding-left: 0;
	line-height: 30px;
}

.card_button span
{
    position:absolute;
    width:100%;
    height:100%;
    left:0;
    top:0;
    z-index:1;
}

/* Add some padding inside the card container */
.container, .container_Ressources  {
	padding: 2px 4px;
  	border-bottom-left-radius: 10px;
	border-bottom-right-radius: 10px;
	border: 2px solid black;
	border-top: 0px;
	
}

.container {
	height: 40px;
}


.headercards{
	margin:auto;
	max-width:920px;
	display: flex;
    justify-content:space-between;
}

.HeaderSliderContainer {
display: inline-block;
max-width: calc(960px*0.24);
width: 24vw;
max-height: calc(960px*0.159);
height: calc(24vw/1.509);
overflow: hidden;
border: 1px solid black;
}

.headercards img{
  width: auto;
  height: 100%;
  max-width: none;
}

.headercards img:hover {
	animation-fill-mode: forwards;
	animation-name: SlideAnim4Slides;
    animation-duration: 6s;
    animation-timing-function: linear;
}


.pictureContainer4Slides, .pictureContainerNoSlides, .pictureContainerRessources {
    overflow: hidden;
	border-top-left-radius: 10px;
	border-top-right-radius: 10px;		
}

.download-button-Ressources{
	background-color: #CCCCCC;
	height: 30px;
	line-height: 30px;
	text-align: center;
	font-weight: 1000;
	margin-top: auto;
	width: 296px;
	border-bottom-left-radius: 10px;
	border-bottom-right-radius: 10px;	
	border: 2px solid black;

	position: absolute;
	left:    0;
	bottom:   0;
	width: 296px;	
}


.pictureContainer4Slides{
	animation: animShow 0.5s forwards; 
}
@keyframes animShow {
    0% {opacity: 0;}
    99% {opacity: 0;}
    100% {opacity: 1;}
}

@keyframes SlideAnim4Slides{
    0%{transform: translate(0px, 0px);}
	5%{transform: translate(0px, 0px);}
	10%{transform: translate(-20%, 0px);}
	35%{transform: translate(-20%, 0px);}
	
	40%{transform: translate(-40%, 0px);}
	65%{transform: translate(-40%, 0px);}
	
	70%{transform: translate(-60%, 0px);}
	95%{transform: translate(-60%, 0px);}
	
	100%{transform: translate(-80%, 0px);}
}

@keyframes SlideAnim4SlidesOut{
    0%{transform: translate(-80%, 0px);}
	100%{transform: translate(0px, 0px);}
}


.pictureContainer4Slides img, .pictureContainerNoSlides img {
  width: auto;
  height: calc(var(--imgwidth)/1.509);
  max-width: none;
  overflow: hidden;
}

.pictureContainerRessources  {
	height: 225px;
}

.pictureContainerRessources img{
  width: 300px;
  height: 225px;
  max-width: none;
  overflow: hidden;
}

.pictureContainer4Slides img {
  animation-name: SlideAnim4SlidesOut;
  animation-direction: backwards;
  animation-duration: 0.5s;
}

.pictureContainer4Slides img:hover {
	animation-fill-mode: forwards;
	animation-name: SlideAnim4Slides;
    animation-duration: 6s;
    animation-timing-function: linear;
}
