/*!
* Template WP et MR @author: IAD Territoire Digital
* Dernière mise à jour : 31/07/2021
*/

/*
Fonts
*/

@import url('https://fonts.googleapis.com/css?family=Roboto:400,500,600,700');

/*
Rem : Font Roboto
400 : regular
500 : medium
600 : semi-bold
700 : bold
*/

/* Temporaire */
/**********/
#nb_etoile{
    font-size: 20px;
    top: 5px;
    position: relative;
}

/* Règles */
/**********/

.d-none {
	display: none !important;
}

/* Couleurs /*
/************/
:root {
  --main-color: rgba(213,8,3,1);
  --main-color-opacity: rgba(213,8,3,0.3);

}

.bg-color-contr {background: var(--main-color)} /* définir la couleur ici */
.color-contr {color: var(--main-color)} /* définir la couleur ici */

/*
#performance(rouge):#D50803/rgba(213,8,3,1)
#demography(bleu):#1d81a2/rgba(29,129,162,1)
#highlights(orange):#da9100/rgba(218,145,0,1)
#values(vert):#00A64C/rgba(0,166,76,1)

.performance (red) : #D50803
.green : #008000
.blue : #023D7D
.orange : #F6931E
.gold : #FFD700
.highlights (brown gold) : #da9100  / rgb(218,145,0)
.demography: #1d81a2
.value: #00A64C
*/

/* Texte */
/*********/
body{
    font-size: 16px;
}

.txt-left {text-align: left} /*N'est pas une bonne pratique Web*/

h1, h2, h3, h4, h5, h6, dd {
    font-family: 'Roboto', sans-serif;
}

h1 {
    margin-left: 2rem;
    margin-right: 2rem;
    margin-bottom: 0.5rem;
}

p {
	font-size: 1em; /*16px*/
    /*font-size: 0.875em; 14px*/
}

.unique_barre{
    font-size: 16px;
    position: absolute;
    top: 3px;
    color: rgba(202,202,202,1);
    left: 2px;
}

/* Alignements et espacements */ 
/******************************/

.align-items-end {
  align-items: flex-end !important;
}

.align-items-center {
  align-items: center !important;
}

.align-items-left {
  align-items: left !important;
}

.p-1 {
  padding: 0.25rem !important;
}

/*.col-4 {
  flex: 0 0 auto;
  width: 33.3333333333%;
}*/

.col-sm-2 {
	flex: 0 0 auto;
	width: 16.6666666667%;
	}

.col-3 {
  flex: 0 0 auto;
  width: 25%;
}

.col-6 {
  flex: 0 0 auto;
  width: 50%;
}

.row {
  --bs-gutter-x: 0rem;
  --bs-gutter-y: 0rem;
  align-items: left;
  display: flex;
  flex-wrap: wrap;
  margin-top: calc(var(--bs-gutter-y) * -1);
  margin-right: calc(var(--bs-gutter-x) / -2);
  margin-left: calc(var(--bs-gutter-x) / -2);
}

/* Grilles et structures */
/*************************/

.page-container {
    max-width: 960px;
    margin: auto;
}

.container {
  width: 100%;
  padding-right: var(--bs-gutter-x, 0.75rem);
  padding-left: var(--bs-gutter-x, 0.75rem);
  margin-right: auto;
  margin-left: auto;
}

body {
    background: #ECEAE3;
    color: #000;
    font-family: 'Roboto', sans-serif;
    padding-top: 20px;
    padding-bottom: 20px; 
}

/* Header */
/**********/

#header {
	position:relative;
	background-image: linear-gradient(black, black), url("../img/wp_img.jpg");
    background-blend-mode: saturation;
    background-size:cover;
	background-position:top; /*top,center,bottom*/
    flex: 0 0 auto; /*diminue hauteur et largeur image*/
    /*height: 60vw;*/
    max-height: 600px;
    min-height: 193px;
    min-width: 320px;
    color: #FFF;
/*    filter: grayscale(80%);
    -webkit-filter: grayscale(80%);
    -moz-filter: grayscale(80%);
    -ms-filter: grayscale(80%);
    -o-filter: grayscale(80%);*/
}


/* Bannière supérieure */
/***********************/

.bansup {
	background-color: rgba(255,255,255,0.9);
    flex: 0 0 auto; /*diminue la hauteur et la largeur du bandeau*/
    /*height: 13vw;*/
    min-height: 50px;
    max-height: 95px;
	margin:-2rem;
}

p.pre-title {
    display: flex;
    padding:2rem;
    padding-bottom: 1rem;
    padding-top: 1rem;
    margin-bottom:-.5rem;
    font-size: .875em;
    justify-content: space-between;
}


/* Catégorie du WP (ex:Performance) */
/************************************/

p.category-title {
    margin-top:40% !important;
    margin-bottom: 22px !important;
    position:relative;
    display: inline-block;
    width: 120px;
	height: 18px;
    margin-left: -2rem;
    padding-left: 2rem;
    font-weight: 500;
	font-size: 0.875em;
    /*line-height: 1.15em;*/
	/*vertical-align: middle;*/

}

/* Titre du WP */
/***************/

.baninf { /* bandeau inférieur */
    display: flex;
    background-color: rgba(255,255,255,0.9);
    padding: 0.5rem;
    padding-left:2rem;
    flex: 0 0 auto;
    min-height: 10px;
    max-height: 75px;
    width: auto;
    margin:-2rem;
    justify-content: space-between;
    flex-wrap: wrap;
}

.title-wp{ /* titre */
    font-size: 1.5em;
    font-weight: bold;
	line-height: 1.25em;
}

.credit{ /* crédit photo */
    color: #212529;
    font-size: 0.750rem;
	margin-bottom: 0.5rem;
}


/* Main */
/********/

main {
    background: #FFF;
    margin: auto;
    min-width: 320px;
}

/* Réseaux sociaux */
/*******************/

.container-logo{
    background-color:rgba(217,217,217,0.5);
}

.logo-social{
	margin-left: 0.5rem;
}

img.logo-reseau{
    cursor: pointer;
    min-width:30px;
    display: block;
    margin-left: 0;
    margin-right: auto;
}

a.share-button { /* bouton twitter */
    display: inline-block;
    font-size: 1.825em;
    border: 0;
    line-height: 0.8em;
    padding: 0 0 0 5px;
}

a.share-button.twitter i {
    color: #1b95e0;
    display: inline-block;
    font-family: 'social-icons';
    font-style: normal;
}

/* Coordonnée et éditeurs */
/**************************/

.coord{
    margin: 0px;
    margin-top: 0.7rem !important;
    margin-bottom: 0.7rem !important;
	font-size: 1.125rem;
	line-height: 1.125rem;
	color:rgba(0,0,0,.5);
}

.trait-contact{
    height: 2px;
}

/* Article */
/***********/

article p { /* paragraphe standard */
  line-height: 1.4em;
  padding-left: 0rem;
  padding-right: 0rem;
}

article .chapo { /* chapeau */
    font-weight: 500;
}

.legend-gt .title { /* titre du tableau */
    font-weight: 600;
    margin-top: 1em;
    margin-bottom: 0;
}

.legend-gt .subtitle { /* sous-titre tableau */
    font-size: 0.825em; /*12px*/
}


/* Tableau */
/***********/

/* bloc tableau en dessous du titre */

.detail{
    font-size:0.825em;
	color: var(--main-color); 
}

.spleft{
     margin-left: .5rem;
}

.flagst{
	width: 28px;
	border: 1px solid rgb(189,189,189);
	border-radius: 4px;
	margin-bottom: 1px;
}	

.content-graphique, .content-tableau {
    margin: 0;
}

/* logo league*/
.logo_league{
    position: absolute;
    /* transform: translateY(-5.5px);
    top: 50%;  */
    top:28%;
    height: 12px;
}

/* txt apres logo league*/
div.tabulator-cell .txt-right-league{
    position: absolute;
    left:25px;
}

/* logo club*/
div.logoclub img{
    height: 19px;
}

/* bloc du filtre tabulator */
.filter-item {
    display: inline-flex;
    align-items: center;
    margin-right: 2rem;
}

/* label des listes */
label {
    font-size: 0.825em;
    font-weight: 600;
    margin: 0 0.5rem 0 0;
}

/* liste et zone de texte */
select, input[type="text"] {
   font-size: 0.825em !important;
   color: #212529;
   font-size:13.2px;

}

/* bouton */
button.btn {
    color: #FFF;
    font-size: 0.900em;
    border: 2px solid #D50803;
    background: #16212C;
    padding: 0.5rem;
    border-radius:4px 4px;
}
button:focus {outline:0;}

/* bouton déselectionné */
button.btn_deselect {
    color: #FFF;
    font-size: 0.825em;
    background: #16212C;
    padding: 0.5rem;
    border-radius:4px 4px;
}

div[data-max] {
    height: 14px !important;
    margin-top: 3px;
}

/* Image au niveau du tableau */
/**********/

@media (min-width: 768px) {
    .container-img-tableau {
        margin-right: 1rem;
    }
    
}

@media (max-width: 767px) {
    .container-img-tableau {
        margin: 1rem 0;
    }

}

/* Footer */
/**********/

footer {
    background: #FFF;
    border-top: 1px solid #C8C8C8;
    display: flex;
    min-height: 80px;
    min-width: 320px;
    flex-direction: column
}

footer p { /* éditeurs */
    font-size: 12px; /*12px*/
    margin-bottom: 0;
    color: #000;
    font-family: 'Work Sans', sans-serif;
}

footer .footer-logo {
    margin-left: auto;
}

.logo-fo-footer{ /* logo CIES dans pied de page */
    float:right;
}

.logo{ /* logo pied de page */
    margin:0.65rem;
}

.logo_sp{ /*espacement des logos du bas */
	margin-left: 0.5rem;
	margin-right: 0.5rem;
}

.container-article p.coord {
	margin:0px;
    margin-top:0.7rem !important;
    margin-bottom:0.7rem !important;
}
	
.container-img { /* conteneur logo et coord */
	margin-left: 2rem;
	margin-right: 1rem;
}

/* Responsive class */
/********************/

/* Default */

@media (max-width: 991px) { /* lorsque la page est plus petite que 991px, pas de padding */
    body {
        padding: 0;
    }

}

/* Medium screens */

@media (min-width: 768px) { /* lorsque la page est plus grande que 768px */
    
	.container-article p {
        margin-right: 2rem; /* marge droite pour paragraphe pour que les logos des réseaux sociaux s'affichent */
    }
	
	.container-logo-footer { /* container avec logo reseaux sociaux jusqu'a largeur de 767px */
		display:none;
	}
    
}

/* Small screens */

@media (max-width: 767px) {
	
	p {
    font-size: 0.875em; 14px
	}
	
	.container-img { /* container avec logo reseaux sociaux dans main à partir d'une largeur de 768px */
		/*margin: 1rem 0;*/
		display: none;
	}
	
	.container-logo-footer-big{ /* container sans logo reseaux sociaux à partir d'une largeur de 768px */
		display: none;
	}
	
	#header { /* header */
    }
	
}

@media (min-width: 768px) {

}

/* XS screens */

@media (max-width: 575px) {
	
	body {
		font-size: 1.6rem;
	}
	
	.title-wp{ /* diminue la taille du titre du wp */
		font-size: 1.75rem;
	}
    
	p.category-title { /* diminue la taille de la catégorie du wp */
		margin-bottom: 21px !important;
		font-size: 1em;
		width: 90px;
		height: 12px;
		font-size: 10px;
	}
	
    .credit { /* diminue la taille du crédit photo */
		font-size: 0.5rem;
		margin-bottom: 0.0rem;
	}
	
    
    #header { /* header */
        /*height: 165px;*/
		width: 100%;
    }
    
    p.pre-title { /* diminue la taille du numéro du wp */
		font-size: 0.75em; /*12px*/
	}
	
    footer .footer-logo {
		margin-left: 0;
		margin-bottom: 2rem;
	}
    
}

/* Tiny screens */

@media (max-width: 450px) {
	p.category-title {
		margin-top: 37% !important;
	}

}

