/* ========================================================= */
/* Permet un responsive correct sur tous les écrans */
* {
	box-sizing: border-box;
}
img, iframe {
	max-width: 100%;
	height: auto;
}

/* ========================================================= */
/* Style du texte dans la navigation ex:circuit*/
nav li  { 
      width:20%;
      text-transform: uppercase;
      text-align:center;
      list-style-type: none;
	  float:left ; 
}

/*Met en fond rouge quand on passe avec la souris*/
nav a:hover {
	background-color: #D11B16;
}

/*fond du site*/
body{
	background-color:rgb(61,66,81)
}

/*permet l'apparition des émojies*/
.trophee::before {
  content: "\1F3C6 "; 
}
.argent::before {
  content: "\1F948 "; 
}
.bronze::before {
  content: "\1F949 "; 
}

/* ========================================================= */
/*Boite*/
#top3   { 
       width:90%;
	   max-width:500px;
       
       position:relative;
	   top:10px;
       padding:20px 20px 30px 0px;
       z-index :10 ;
       
	   margin : auto ;
	   border-radius:50px;
	   color:white;
}

/*forme et place du texte dans la boit*/
.ligne-top3 {
    display: flex;
    justify-content: space-between; 
    align-items: center;             
    width: 100%; 
}    

#photo1  {
	position:relative;
	margin:0 auto;
	width: fit-content;
	top:30px;
	overflow:hidden;
}

/*caractéristique de l'image dans la boite*/
#photo1 img {
    display: block;
    width: 100%; 
	border-radius:8px;
	z-index:1;
	transition:transform 0.4s ease;
}

/*effet Zoom quand la souris passe*/
#photo1:hover img{
	transform:scale(1.1);
}

#photo1 .texteL {
    position: absolute;
    bottom: 20px; 
    left: 50%;
    transform: translateX(-50%);
	color: white;
    font-size: 24px;
    font-weight: bold;
    white-space: nowrap;
	text-decoration:none;
	transition:0.2s;
	z-index: 20;
}

/*le texte se souligne quand la souris passe desssus*/
#photo1 .texteL:hover {
	text-decoration:underline;
}

/* ========================================================= */
/* NEWS */
#news1 {
    overflow: hidden;
    width:90%;
	max-width:570px;
    height:100px;
    position:relative;
    padding:8px;
	margin:auto;
	border-radius:10px;
	background-color:black;
	right:300px;
	top:145px;
}

#news1 img  {
	width:150px;
	height:auto;
	position:absolute;
	top:5px;
	left:20px;
	z-index:1;
	transition:transform 0.4 ease;
}

#news1:hover img{
	transform:scale(1.1);
}

#news1 .texte1{
    white-space: nowrap;
	position:absolute;
	color:white;
	top:50px;
	left:250px;
	font-size: 18px;
	text-decoration:none;
	transition:0.2s;
	z-index: 20;
}

#news1 .texte1:hover {
	text-decoration:underline;
}

#news2 {
    overflow: hidden;
    width:90%;
	max-width:570px;
    height:100px;
    position:relative;
    padding:8px;
	margin:auto;
	border-radius:10px;
	background-color:rgb(254,254,241);
	left:300px;
	top:30px;
}

#news2 img  {
	width:150px;
	height:auto;
	position:absolute;
	top:5px;
	left:20px;
	z-index:1;
	transition:transform 0.4 ease;
}

#news2:hover img{
	transform:scale(1.1);
}

#news2 .texte2{
    white-space: nowrap;
	position:absolute;
	color:black;
	top:50px;
	left:250px;
	font-size: 18px;
	text-decoration:none;
	transition:0.2s;
	z-index: 20;
}	

#news2 .texte2:hover {
	text-decoration:underline;
}

#news3 {
    overflow: hidden;
    width:90%;
	max-width:570px;
    height:100px;
    position:relative;
    padding:8px;
	margin:auto;
	border-radius:10px;
	background-color:rgb(254,254,241);
	right:300px;
	top:36px;
}

#news3 img  {
	width:150px;
	height:auto;
	position:absolute;
	top:15px;
	left:20px;
	z-index:1;
	transition:transform 0.4 ease;
}

#news3:hover img{
	transform:scale(1.1);
}

#news3 .texte3{
	position:absolute;
	color:black;
	top:50px;
	left:250px;
	font-size: 18px;
	text-decoration:none;
	transition:0.2s;
	z-index: 20;
} 

#news3 .texte3:hover {
	text-decoration:underline;
}    

#news4 {
    overflow: hidden;
    width:90%;
	max-width:570px;
    height:100px;
    position:relative;
    padding:8px;
	margin:auto;
	border-radius:10px;
	background-color:black;
	left:300px;
	top:-80px;
}

#news4 img  {
	width:150px;
	height:auto;
	position:absolute;
	top:5px;
	left:20px;
	z-index:1;
	transition:transform 0.4 ease;
}

#news4:hover img{
	transform:scale(1.1);
}

#news4 .texte4{
    white-space: nowrap;
	position:absolute;
	color:white;
	top:50px;
	left:250px;
	font-size: 18px;
	text-decoration:none;
	transition:0.2s;
	z-index: 20; 
}

#news4 .texte4:hover {
	text-decoration:underline;
}

/* ========================================================= */
/*fond de la Navigation*/
header {
    background-image:url("fond.jpg");
    padding:50px                 
}

nav a {
      text-decoration:none;
	  color:white;
}

/* ========================================================= */
/*boite ou il y a les videos*/
.carousel {
	position: relative;
	top:80px;
    width:95%;
	max-width:1200px; 
    overflow: hidden;
    margin: auto;
	background-image:url("fond.jpg");
}

.videos{ 
    display: flex;
    transition: transform 0.4s ease;
	z-index:600;
}

/*taille et forme des videos*/
iframe {
	width:300px;
	flex-shrink: 0;
	border-radius: 10px;
}

/* emplacement et style du bouton*/
button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
	z-index:700;
}

/*creation de la fleche a gauche*/
.prev::before {
    content: "";
    border: solid white;
    border-width: 0 4px 4px 0;
    display: inline-block;
    padding: 8px;
    transform: rotate(135deg); 
}

/*creation de la fleche a droite*/
.next::before {
    content: "";
    border: solid white;
    border-width: 0 4px 4px 0;
    display: inline-block;
    padding: 8px;
    transform: rotate(-45deg); 
}

/*positionnement du bouton*/
.prev { left: 5px; }
.next { right: 5px; }

/* ========================================================= */
.box{
	background-image:url("fond.jpg");
	width:100%;
	height:500px;
	top:-1500px;
}

.textevid{
	color:white;
	position: relative;
	top:50px;
	font-weight:bold;
	font-size:30px;
}

/* ========================================================= */
/* ===================== RESPONSIVE ======================== */
/* ========================================================= */



/* ===== TABLETTE & MOBILE ===== */
@media screen and (max-width: 900px) {

	#news1,
	#news2,
	#news3,
	#news4 {
		left: 0;
		right: 0;
		top: 0;
		margin-bottom: 15px;
	}

	#news1 img,
	#news2 img,
	#news3 img,
	#news4 img {
		position: relative;
		left: 0;
		top: 0;
		display: block;
		margin: auto;
	}

	#news1 .texte1,
	#news2 .texte2,
	#news3 .texte3,
	#news4 .texte4 {
		position: relative;
		left: 0;
		top: 10px;
		text-align: center;
		white-space: normal;
	}
}

/* ===== TELEPHONE ===== */
@media screen and (max-width: 600px) {

	

	.videos {
		flex-direction: column;
		align-items: center;
	}

	iframe {
		margin-bottom: 15px;
	}

	.textevid {
		font-size: 22px;
		text-align: center;
	}
}
/* espace entre les blocs news */
#news1,
#news2,
#news3,
#news4 {
	margin-bottom: 25px;
}
/* ========================================================= */
/* alignement des news par paire */
.ligne-news {
	display: flex;
	justify-content: center;
	gap: 40px; /* espace entre les 2 news */
	margin-bottom: 30px;
}
@media screen and (max-width: 900px) {

	.ligne-news {
		flex-direction: column;
		align-items: center;
		gap: 20px;
	}
}
#news1,
#news2,
#news3,
#news4 {
	left: 0;
	right: 0;
	top: 0;
}

	