* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	text-decoration: none;
	color: black;
}

body {
	font-family: Arial, Helvetica, sans-serif;
}

.stepper {
	position: fixed;
	left: 30px;
	top: 50%;
	transform: translateY(-50%);
	display: flex;
	flex-direction: column;
	align-items: center;
	z-index: 10;
}

.step {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
}

.step-circle {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: bold;
	font-size: 1rem;
}

.step.active .step-circle {
	background: linear-gradient(135deg, #a8d5b5, #4a9e6b);
	color: white;
}

.step.inactive .step-circle {
	background: #e5e5e5;
	color: #aaa;
}

.step.active span {
	color: #4a9e6b;
	font-weight: bold;
	font-size: 0.75rem;
}

.step.inactive span {
	color: #aaa;
	font-size: 0.75rem;
}

.step-line {
	width: 3px;
	height: 40px;
	background: #e5e5e5;
}

.step-line.done {
	background: linear-gradient(to bottom, #a8d5b5, #4a9e6b);
}

#grid-top-infos {
	display: grid;
	height: 100px;
	grid-template-columns: 50% 50%;
	padding: 0 10%;
	background: linear-gradient(
		-45deg,
		rgba(255, 255, 255, 1) 0%,
		rgba(237, 237, 237, 1) 90%,
		rgba(232, 232, 232, 1) 100%
	);
}

#grid-top-infos div {
	height: 100px;
	display: flex;
	justify-content: center;
	align-items: center;
}

#grid-top-infos div:nth-child(1) {
	display: flex;
	justify-content: start;
}

#grid-top-infos div:nth-child(2) {
	display: flex;
	justify-content: end;
}

#grid-top-infos a {
	margin-top: 25px;
	padding: 15px;
	border-radius: 25px;
	border: 1.5px solid #7f7f7f;
	align-self: flex-start;
	color: #7f7f7f;
	transition: transform 0.3s;
}

#grid-top-infos a:hover {
	transform: scale(1.05);
}

#grid-scenario {
	margin: 0 10%;
	height: 10vh;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
}

#grid-scenario div {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	padding: 0 20px;
	margin: 10px;
	border-radius: 20px;
	gap: 5px;
	cursor: pointer;
	transition:
		opacity 0.2s,
		border 0.2s,
		transform 0.15s;
}

#grid-scenario div:hover {
	transform: scale(1.03);
}

#grid-scenario div[data-scenario="optimiste"] {
	background: linear-gradient(135deg, #d4edda, #a8d5b5);
}

#grid-scenario div[data-scenario="optimiste"].active {
	background: linear-gradient(135deg, #5bc65f, #5bc65f);
	box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.1);
	p {
		color: white;
	}
}

#grid-scenario div[data-scenario="median"] {
	background: linear-gradient(135deg, #fde8c8, #f8c97a);
}

#grid-scenario div[data-scenario="median"].active {
	background: linear-gradient(135deg, #ff6a1a, #ff6a1a);
	box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.1);
	p {
		color: white;
	}
}

#grid-scenario div[data-scenario="pessimiste"] {
	background: linear-gradient(135deg, #fcd5d5, #f4a0a0);
}

#grid-scenario div[data-scenario="pessimiste"].active {
	background: linear-gradient(135deg, #ff3835, #ff3835);
	box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.1);
	p {
		color: white;
	}
}

#grid-resultat {
	margin: 0 10%;
	display: grid;
	grid-template-columns: 30% 70%;
	height: 70vh;
	overflow: hidden;
	gap: 10px;
	padding: 10px;
}

#grid-resultat > div {
	margin: 0;
	min-height: 0;
}

#timeline {
	display: grid;
	grid-template-columns: 1fr;
	grid-template-rows: repeat(4, 1fr);
}

#timeline > div {
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 0 20px;
	margin: 10px 0 10px;
	border-radius: 20px;
	border: 1.5px solid #e5e5e5;
	box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.05);
	cursor: pointer;
	transition:
		background 0.2s,
		transform 0.15s;
}

#timeline > div:hover {
	transform: scale(1.03);
}

#timeline > div.active {
	box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.15);
}

#infos {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	padding: 0 20px;
	margin: 10px;
	border-radius: 20px;
	border: 1.5px solid #e5e5e5;
}

#image {
	margin: 10px;
	border: 1.5px solid #e5e5e5;
	border-radius: 20px;
	overflow: hidden;
	display: flex;
	justify-content: center;
}

#image > img {
	width: 100%;
}

#texte {
	margin: 10px;
	border: 1.5px solid #e5e5e5;
	border-radius: 20px;
	text-align: justify;
	overflow: hidden;
	padding: 20px;
}

#infos > div:nth-child(1) {
	height: 80px;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

#infos > div:nth-child(2) {
	display: flex;
	justify-content: end;
	align-items: center;
}

#code_rcp > p {
	background: linear-gradient(135deg, #fde8c8, #f8c97a);
	padding: 10px;
	border-radius: 25px;
}

#description {
	overflow-y: auto;
	height: 100%;
	min-height: 0;
	overflow-x: hidden;
}

#description img {
	max-width: 100%;
	height: auto;
	display: block;
}

#personnage-profile p {
	text-align: right;
}

#profile img {
	width: 50px;
	height: 50px;
	object-fit: cover;
	border-radius: 100px;
}

#profile {
	gap: 20px;
}

#impacts {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	grid-template-rows: 35px 1fr;
	gap: 10px;
	margin: 20px 10px 0px 10px;
	border: 1.5px solid #e5e5e5;
	border-radius: 20px;
	padding: 20px;
	box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.05);
}

#impacts > span {
	grid-column: 1 / -1;
	grid-row: 1;
}

.impact-card {
	border: 1.5px solid #e5e5e5;
	border-radius: 20px;
	padding: 20px;
	box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.05);
	background: linear-gradient(135deg, #fde8c8, #f8c97a);
}

.impact-titre {
	font-weight: bold;
	margin-bottom: 5px;
}

#impacts-titre {
	font-weight: bold;
	font-size: 1.5rem;
	margin-bottom: 5px;
	margin: 0px 0px 5px 0px;
}

#timeline > div {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 0 20px;
}

.timeline-sub {
	color: #7f7f7f;
}

.timeline-badge {
	background: #66bd75;
	color: white;
	padding: 10px 20px;
	border-radius: 20px;
}

#message-fin {
	border: 1.5px solid #e5e5e5;
	border-radius: 20px;
	padding: 20px;
	box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.05);
	margin: 20px 10px 10px 10px;
	text-align: center;
}

#message-fin-titre {
	font-weight: bold;
	font-size: 1.5rem;
	margin-bottom: 5px;
}

#message-fin p {
	margin: 20px 0px 20px 0px;
}

#message-fin span {
	font-weight: bold;
}

#sources-scientifiques {
	text-align: left;
	border: 1.5px solid #e5e5e5;
	border-radius: 20px;
	background-color: #66bd75;
	padding: 20px 20px 25px 20px;
	margin-bottom: 20px;
}

#sources-scientifiques > span,
#sources-scientifiques > p,
#sources-scientifiques strong {
	color: white;
}

#sources-scientifiques > a {
	display: inline-block;
	border-radius: 20px;
	padding: 10px;
	color: #4a9e6b;
	background-color: white;
	box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
	transition: transform 0.3s;
}

#sources-scientifiques > a:hover {
	transform: scale(1.03);
}

#message-fin-boutons {
	display: flex;
	flex-direction: column;
	align-items: center;
}

#message-fin-boutons > a {
	border: 1.5px solid #e5e5e5;
	border-radius: 20px;
	padding: 10px;
	display: flex;
	flex-direction: column;
	width: 40%;
}

#message-fin-boutons > a:nth-child(1) {
	margin-bottom: 20px;
	background: linear-gradient(135deg, #a8d5b5, #4a9e6b);
	color: white;
	font-weight: bold;
	padding: 15px 40px 15px 40px;
	border-radius: 25px;
	box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
	transition: transform 0.3s;
}

#message-fin-boutons > a:nth-child(2) {
	background: white;
	color: #7f7f7f;
	border: 1.5px solid #e5e5e5;
	padding: 15px 40px;
	border-radius: 25px;
	transition: transform 0.3s;
}

#message-fin-boutons > a:hover {
	transform: scale(1.03);
}
