/* styles.css */
body {
	margin: 0;
	font-family: Arial, sans-serif;
	line-height: 1.6;
}
p, .list{
	font-size: 24px;
	text-align: justify;
	padding: 0 22%;
	width: 56%;
}
.center{
	text-align: center;
}
.no-text-deco{
	text-decoration: none;
    color: inherit;
}
.asterism{
	font-size: 14px;
	line-height:14px;
	width: 92%;
	padding-left: 20px;
	padding-right: 20px;
	margin-bottom: 0px;
}
.display-none{
	 display: none;
}
/* Barre de navigation */
.custom-navbar {
	position: fixed;
	top: 0;
	width: 100%;
	background-color: #fff; /* Couleur de fond blanche */
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Ombre discrÃ¨te */
	z-index: 1000;
}

.navbar-container {
	max-width: 1600px;
	height:30px;
	margin: 0 auto;
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1rem 2rem;
}

.navbar-logo {
	font-size: 1.5rem;
	font-weight: bold;
	color: #333;
	text-decoration: none;
}

.navbar-links {
	list-style: none;
	display: flex;
	margin: 0;
	padding: 0;
}

.navbar-links li {
	margin: 0 1rem;
}

.navbar-links a {
	text-decoration: none;
	font-size: 22px;
	font-family: 'Source Sans Pro', sans-serif;
	font-weight: 300;
	color: #333;
	transition: color 0.3s ease;
}

.navbar-links a:hover {
	color: #007bff; /* Couleur d'accent au survol */
}

.hamburger {
	display: none;
	cursor: pointer;
	font-size: 30px;
	color: #333;
}

.hamburger div {
	width: 30px;
	height: 3px;
	background-color: #333;
	margin: 6px 0;
	transition: 0.4s;
}

.hamburger.active div:nth-child(1) {
	transform: rotate(-45deg);
	position: relative;
	top: 9px;
}

.hamburger.active div:nth-child(2) {
	opacity: 0;
}

.hamburger.active div:nth-child(3) {
	transform: rotate(45deg);
	position: relative;
	top: -9px;
}

.language-switcher {
    margin: 0 1rem;
    font-size: 22px;
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: 300;
    color: #333;
}

.language-switcher a {
    text-decoration: none;
    color: #333;
    transition: color 0.3s ease;
}

.language-switcher a:hover {
    color: #007bff; /* Couleur d'accent au survol */
}


.language-switcher select {
    font-size: 18px;
    font-family: 'Source Sans Pro', sans-serif;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #fff;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.language-switcher select:hover {
    border-color: #007bff;
}

/* Sections */
.section {
	padding: 5rem 2rem;
	text-align: center;
}

.section-alt {
	background-color: #f4f4f4;
}

.section-title {
	color:#444444;
	font-size:60px;
}

.home-page{
	position: relative;
	display: flex;
	justify-content: center;
	align-items: center;
	margin-top: 60px;
}
.home-page::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height:100%;
	background-image: url('../images/background.webp');
	background-repeat: no-repeat;
	background-size: 100% auto;
	background-position: top center;
	opacity: 0.4;
	z-index: -1;
}

/* Home page */
.home-content {
	text-align: center;
	z-index: 1;
}
.home-title{
	font-size:65px;
	color:#444444;
	font-family: 'Source Sans Pro', sans-serif;
	padding-left:20px;
	padding-right:20px;
	text-decoration:underline;
}

.home-subtitle{
	font-size:50px;
	color:#444444;
	font-family: 'Source Sans Pro', sans-serif;
	padding-left:20px;
	padding-right:20px;
}

/* Data Story Section */
.subtitle-data-story {
	color:#444444;
	font-size:32px;
	font-family: 'Source Sans Pro', sans-serif;
	padding-top:80px;
}
.graph-title {
	text-align:center;
	margin:0px;
	font-size:30px;
	font-family: 'Source Sans Pro', sans-serif;
}

	/* Style de la barre de navigation sous le titre Datastory */
	.datastory-navigation {
		background-color: #d1d1d1;
		padding: 10px;
		margin-bottom: 20px;
		border-radius: 5px;
		width: 80%;
		max-width: 1000px;
		margin-left: auto;
		margin-right: auto;
		align-items: center;
	}

	.datastory-navigation ul {
		list-style: none;
		padding: 0;
		margin: 0;
		display: flex;
		gap: 15px;
		justify-content: center;
	}

	.datastory-navigation ul li {
		display: inline;
		position: relative;
	}

	.datastory-navigation ul li:not(:last-child) {
		border-right: 2px solid #444444;
		padding-right: 15px;
	}

	.datastory-navigation ul li a {
		text-decoration: none;
		color: #007bff;
		font-weight: bold;
		transition: color 0.3s ease;
		align-items: center;
	}

	.datastory-navigation ul li a:hover {
		color: #0056b3;
	}

	/* Change in-site navbar for small screen */
	@media screen and (max-width: 950px) {
		.datastory-navigation ul {
			display: block;
			text-align: center;
			align-items: center;
		}

		.datastory-navigation ul li {
			display: block;
			margin: 10px 0;
		}
		
		.datastory-navigation ul li:not(:last-child) {
			border-right: 0px solid #444444;
		}

		.datastory-navigation {
			width: 90%;
		}
	}


	/* Rep-Dem Presidenial Results graph by states */
	.graph-dem-rep-by-state {
		display: inline-block;
		border: 2px solid grey;
		padding: 20px;
		background-color:#e0e0e0;
		border-radius: 15px;
	}

	.dem-rep-graph-by-state {
		width: 875px;
		height: 500px;
		border:none;
		border-radius: 10px;
		box-shadow: 0 8px 12px rgba(0, 0, 0, 0.3);
	}

	.year-buttons {
		margin-bottom: 15px;
		text-align: center;
	}

	.year-buttons button {
		background: linear-gradient(135deg, #007bff, #0056b3);
		color: #fff;
		border: none;
		border-radius: 30px;
		padding: 10px 20px;
		margin: 0.5rem;
		font-size: 1rem;
		font-weight: bold;
		text-transform: uppercase;
		cursor: pointer;
		box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
		transition: all 0.3s ease;
		outline: none;
	}

	.year-buttons button:hover {
		background: linear-gradient(135deg, #0056b3, #003f7f);
		box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
		transform: translateY(-2px);
	}

	.year-buttons button:active {
		background: #003f7f;
		box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
		transform: translateY(1px);
	}
	
	/* Flourish Graphs */
	.graph-div {
		width: 100%; /* Utiliser toute la largeur */
		max-width: 1200px; /* Limite la largeur totale à 875px */
		margin: 0 auto; /* Centrer le conteneur */
		display: flex;
		flex-wrap: wrap;
	}
	.graph {
		flex: 1 1 50%;
		box-sizing: border-box;
		padding: 10px;
		text-align: center;
	}
	/* Media query pour les écrans plus petits */
	@media (max-width: 1100px) {
	  .graph {
		flex: 1 1 80%;
	  }
	  
	}

	
/* Cacher tous les graphiques par défaut */
.graph-container {
	display: none;
}

/* Afficher le graphique sélectionné */
.graph-container.active {
	display: block;
}

/* Style pour le slider */
#year-slider-container {
	margin: 20px 0;
	text-align: center;
}
#year-slider {
	width: 50%;
}
.graph-beer-style {
	width:50%;
	margin-left:25%;
}

#year-slider {
	width: 50%;
}
.graph-beer-style {
	width:50%;
	margin-left:25%;
}
@media screen and (max-width: 1200px) {
	#year-slider {
		width: 70%;
	}
	.graph-beer-style {
		width:70%;
		margin-left:15%;
	}
}
@media screen and (max-width: 900px) {
	#year-slider {
		width: 80%;
	}
	.graph-beer-style {
		width:80%;
		margin-left:10%;
	}
}
@media screen and (max-width: 900px) {
	#year-slider {
		width: 90%;
	}
	.graph-beer-style {
		width:100%;
		margin-left:0%;
	}
}

		.div-graph-consumption-type {
			width: 100%;
			display: flex;
			flex-wrap: wrap;
			gap: 10px;
			max-width: 1300px;
			justify-content: center;
			margin: 0 auto;
		}

		.graph-consumption-type {
			flex: 1 1 calc(33.33% - 10px);
			max-width: calc(33.33% - 10px);
			box-sizing: border-box;
		}
	/* Media query pour les écrans de moins de 1000px */
	@media screen and (max-width: 1000px) {
		.graph-consumption-type {
			flex: 1 1 80%;
			max-width: 80%;
		}
	}

/* Reference Section */
.reference-category {
    margin-bottom: 2rem;
}

.reference-category h3 {
    font-size: 35px;
    margin-bottom: 1rem;
    color: #555;
}

.reference-category ul {
    list-style-type: none;
    padding: 0;
}

.reference-category li {
    margin-bottom: 40px;
    line-height: 1.6;
}

.reference-category a {
    color: #007bff;
    text-decoration: none;
}

.reference-category a:hover {
    text-decoration: underline;
}

.data-link{
	color : #909497;
	font-size:18px;
	margin-top:-25px;
}

/* Team Section */
.team-container {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 2rem;
	margin-top: 2rem;
	grid-auto-rows: minmax(10	0px, auto); /* Définit une hauteur minimum pour les items */
}

.team-member {
	text-align: center;
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
	overflow: hidden;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	display: flex;
	flex-direction: column; /* Utilisation de flexbox */
	justify-content: space-between;
}

.team-member:hover {
	transform: translateY(-10px);
	box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.member-name {
	font-size: 1.4rem;
	margin: 1rem 0 0;
	color: #444444;
}

.member-domain {
	font-size: 14px;
	color: #777;
	margin: 0 0 0.5rem;
	flex-grow: 1;
}

.member-social-links {
	display: flex;
	justify-content: center;
	gap: 30px;
	margin-top: 10px;
	padding: 10px;
	background-color: #e0e0e0;
}


.social-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 8px 4px 8px 8px;
	border-radius: 15px;
	text-decoration: none;
	color: white;
	font-size: 20px;
	transition: background-color 0.3s;
}

.social-button.github {
	background-color: #333;
}

.social-button.mail {
	background-color: #007BFF;
}

.social-button:hover {
	opacity: 0.8;
}

.social-button i {
	margin-right: 5px;
}



/* Footer */
.footer {
	background-color: #222;
	color: white;
	text-align: center;
	padding: 1rem 0;
}


/* The nav bar became an hamburger item from 930px*/
@media (max-width: 980px) {
	.navbar-links {
		display: none;
		flex-direction: column;
		width: 100%;
		text-align: center;
		background-color: #fff;
		position: absolute;
		top: 60px;
		left: 0;
		z-index: 999;
	}
	
	.navbar-links.active {
		display: flex;
	}

	.hamburger {
		display: block;
	}
}

/* Home page for different screen size */
@media (max-width: 1500px) {
	.home-title{
		font-size:58px;
	}
	.home-subtitle{
		font-size:45px;
	}
}
@media (max-width: 1200px) {
	.home-title{
		font-size:47px;
	}
	.home-subtitle{
		font-size:35px;
	}
}
@media (max-width: 850px) {
	.home-title{
		font-size:40px;
	}
	.home-subtitle{
		font-size:29px;
	}
}
@media (max-width: 600px) {
	.home-title{
		font-size:30px;
	}
	.home-subtitle{
		font-size:23px;
	}
	.home-page::before {
		background-image: url('../images/background_mobile_1.webp');
	}
}

/* Data story for different screen size */
@media (max-width: 1400px) {
	.dem-rep-graph-by-state {
		width: 700px;
		height: 400px;
	}
}
@media (max-width: 1200px) {
	.dem-rep-graph-by-state {
		width: 700px;
		height: 400px;
	}
}
@media (max-width: 1000px) {
	.subtitle-data-story {
		font-size:30px;
	}
	.graph-title {
		font-size:27px;
	}
	.year-buttons button {
		padding: 10px 10px;
		margin: 0.2rem;
		font-size: 1rem;	
	}
}
@media (max-width: 800px) {
	.dem-rep-graph-by-state {
		width: 525px;
		height: 300px;
	}
	.year-buttons button {
		padding: 10px 10px;
		margin: 0.2rem;
		font-size: 1rem;	
	}
}

@media (max-width: 750px) {
	.dem-rep-graph-by-state {
		width: 437px;
		height: 250px;
	}
}

@media (max-width: 550px) {
	.dem-rep-graph-by-state {
		width: 350px;
		height: 200px;
	}
}

@media (max-width: 450px) {
	.dem-rep-graph-by-state {
		width: 262px;
		height: 150px;
	}
}

@media (max-width: 450px) {
	.dem-rep-graph-by-state {
		width: 175px;
		height: 100px;
	}
}

/* Global Style Ajustment with screen size */
@media (max-width: 1600px) {
	p, .list {
		font-size: 24px;
		padding: 0 19%;
		width: 62%;
	}
	.section {
		padding: 5rem 2rem;
	}
	.section-title {
		font-size:58px;
	}
}
@media (max-width: 1400px) {
	p, .list {
		font-size: 24px;
		padding: 0 16%;
		width: 68%;
	}
	.section {
		padding: 5rem 2rem;
	}
	.section-title {
		font-size:52px;
	}
}
@media (max-width: 1200px) {
	p, .list {
		font-size: 22px;
		padding: 0 14%;
		width: 72%;
	}
	.section {
		padding: 3rem 2rem;
	}
	.section-title {
		font-size:47px;
	}
}
@media (max-width: 1000px) {
	p, .list {
		font-size: 21px;
		padding: 0 9%;
		width: 82%;
	}
	.section {
		padding: 2rem 1rem;
	}
	.section-title {
		font-size:40px;
	}
	.reference-category h3 {
		font-size: 30px;
	}
}
@media (max-width: 800px) {
	p, .list {
		font-size: 21px;
		padding: 0 5%;
		width: 90%;
	}
}
@media (max-width: 600px) {
	p, .list {
		font-size: 19px;
		padding: 0 3%;
		width: 94%;
	}
	.section {
		padding: 1rem 1rem;
	}
	.section-title {
		font-size:30px;
	}
		.reference-category h3 {
		font-size: 25px;
	}
}