@import url('./projects/project_details_base.css');
@import url('./tag_logos.css');

.project-hero {
	background: radial-gradient(circle at 15% 30%, rgba(0, 255, 65, 0.15) 0%, transparent 45%),
				radial-gradient(circle at 85% 70%, rgba(0, 255, 65, 0.1) 0%, transparent 45%),
				linear-gradient(135deg, #0f1f12 0%, #000 100%);
}

.hero-content .hero-subtitle {
	color: #fff;
	font-size: 1.2rem;
	margin: -1rem 0 2rem;
}

.project-section .section-intro {
	max-width: 900px;
	margin: -1rem auto 2.5rem;
	text-align: center;
}

/***** EXPÉRIENCES (frise) *****/
/* --tl-pad : espace à gauche des cartes (colonne des dates + ligne)
   --tl-line : position de la ligne depuis le bord gauche de la frise */
.timeline {
	--tl-pad: 9rem;
	--tl-line: 7.6rem;
	position: relative;
	max-width: 1100px;
	margin: 0 auto;
	padding-left: var(--tl-pad);
}

.timeline::before {
	content: '';
	position: absolute;
	top: 0.5rem;
	bottom: 0.5rem;
	left: var(--tl-line);
	width: 2px;
	background: rgba(0, 255, 65, 0.3);
}

.timeline-item {
	position: relative;
	margin-bottom: 2.5rem;
	padding: 1.5rem 2rem;
	background: rgba(0, 255, 65, 0.05);
	border: 2px solid rgba(0, 255, 65, 0.2);
	border-radius: 12px;
	transition: all 0.3s ease;
}

.timeline-item:last-child {
	margin-bottom: 0;
}

/* Rond centré sur la ligne : on vise le centre de la ligne (--tl-line + 1px depuis la frise),
   en partant de l'intérieur de la carte (décalé de --tl-pad et de sa bordure de 2px),
   puis translateX(-50%) recentre le rond quelle que soit sa taille */
.timeline-item::before {
	content: '';
	position: absolute;
	top: 1.9rem;
	left: calc(var(--tl-line) - var(--tl-pad) - 1px);
	width: 12px;
	height: 12px;
	border: 2px solid #00ff41;
	border-radius: 50%;
	background: #1a1a1a;
	box-shadow: 0 0 10px rgba(0, 255, 65, 0.6);
	transform: translateX(-50%);
}

/* Date à gauche de la ligne, à hauteur du rond */
.timeline-date {
	position: absolute;
	top: 1.45rem;
	left: calc(-1 * var(--tl-pad) - 2px);
	width: calc(var(--tl-line) - 1.2rem);
	text-align: right;
	line-height: 1.2;
}

.timeline-year {
	display: block;
	color: #00ff41;
	font-size: 1.4rem;
	font-weight: 700;
	text-shadow: 0 0 10px rgba(0, 255, 65, 0.4);
}

.timeline-months {
	display: block;
	margin-top: 0.3rem;
	color: #aaa;
	font-size: 0.8rem;
	white-space: nowrap;
}

.timeline-item:hover {
	border-color: #00ff41;
	box-shadow: 0 10px 30px rgba(0, 255, 65, 0.2);
}

.timeline-head {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: baseline;
	gap: 0.5rem 1.5rem;
	margin-bottom: 1rem;
}

.timeline-head h4 {
	color: #00ff41;
	font-size: 1.4rem;
	margin: 0;
}

.project-section .timeline-meta {
	color: #aaa;
	font-size: 1rem;
	margin: 0;
	text-align: left;
}

.project-section .timeline-item p {
	font-size: 1.05rem;
	line-height: 1.7;
	margin-bottom: 1rem;
}

.timeline-link {
	display: inline-block;
	margin-top: 0.5rem;
	color: #00ff41;
	font-weight: 600;
	text-decoration: none;
	border-bottom: 2px solid transparent;
	transition: all 0.3s ease;
}

.timeline-link:hover {
	border-bottom-color: #00ff41;
	text-shadow: 0 0 10px rgba(0, 255, 65, 0.8);
}

/***** ÉTIQUETTES *****/
.tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.tags li {
	padding: 0.45rem 1rem;
	border: 1px solid rgba(0, 255, 65, 0.4);
	border-radius: 999px;
	color: #e6e6e6;
	font-size: 0.95rem;
	background: rgba(0, 0, 0, 0.3);
}

/***** FORMATION *****/
.education-list {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.2rem;
	max-width: 1100px;
	margin: 0 auto;
}

.project-section .education-list + .skill-intro {
	margin-top: 3rem;
}

.project-section .skill-intro.orientation-intro {
	max-width: 730px;
	text-align: center;
}

.education-badge {
	display: inline-block;
	margin-bottom: 0.8rem;
	padding: 0.25rem 0.8rem;
	border-radius: 999px;
	background: rgba(0, 255, 65, 0.15);
	border: 1px solid rgba(0, 255, 65, 0.5);
	color: #00ff41;
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.5px;
	text-transform: uppercase;
}

/* Années d'orientation : plus discrètes que les diplômes */
.education-orientation {
	grid-template-columns: repeat(2, 1fr);
	max-width: 730px;
}

.education-orientation .education-item {
	background: transparent;
	border-style: dashed;
	opacity: 0.75;
}

.project-section .education-item .education-learned {
	margin-top: 0.8rem;
	color: #00ff41;
	font-size: 0.9rem;
}

.education-orientation .education-item:hover {
	opacity: 1;
}

.education-item.current {
	border-color: #00ff41;
	box-shadow: 0 0 20px rgba(0, 255, 65, 0.25);
}

.project-section .education-item .education-years {
	color: #aaa;
	font-size: 0.95rem;
	margin-top: 0.5rem;
}

/***** COMPÉTENCES TECHNIQUES *****/
.skill-groups {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1.5rem;
	max-width: 1100px;
	margin: 0 auto;
}

.project-section .skill-intro {
	max-width: 1100px;
	margin: 0 auto 1.2rem;
	color: #ccc;
	font-size: 1.05rem;
	text-align: left;
}

.skill-groups + .skill-intro {
	margin-top: 3rem;
}

.skill-group {
	background: rgba(0, 255, 65, 0.05);
	border: 2px solid rgba(0, 255, 65, 0.2);
	border-radius: 12px;
	padding: 1.5rem;
	transition: all 0.3s ease;
}

.skill-group:hover {
	border-color: #00ff41;
	transform: translateY(-5px);
}

.skill-group h4 {
	color: #00ff41;
	font-size: 1.2rem;
	margin: 0 0 1rem;
}

/***** CE QUE J'AI APPRIS EN ENTREPRISE (liste compacte) *****/
.learned-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1rem 1.5rem;
	max-width: 1100px;
	margin: 0 auto;
}

.learned-item {
	padding: 0.8rem 1.2rem;
	border-left: 3px solid #00ff41;
	border-radius: 0 8px 8px 0;
	background: rgba(0, 255, 65, 0.04);
	transition: background 0.3s ease;
}

.learned-item:hover {
	background: rgba(0, 255, 65, 0.1);
}

.learned-item h4 {
	color: #00ff41;
	font-size: 1.05rem;
	margin: 0 0 0.3rem;
}

.project-section .learned-item p {
	color: #ccc;
	font-size: 0.95rem;
	line-height: 1.5;
	margin: 0;
	text-align: left;
}

.learned-origin {
	display: block;
	margin-top: 0.4rem;
	color: #888;
	font-size: 0.8rem;
}

/***** QUALITÉS *****/
.qualities-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1rem;
	max-width: 900px;
	margin: 0 auto;
}

.quality {
	padding: 1.2rem 1rem;
	border: 1px solid rgba(0, 255, 65, 0.25);
	border-radius: 12px;
	text-align: center;
	transition: all 0.3s ease;
}

.quality:hover {
	border-color: #00ff41;
	box-shadow: 0 0 20px rgba(0, 255, 65, 0.2);
}

.quality h4 {
	color: #00ff41;
	font-size: 1.3rem;
	margin: 0 0 0.4rem;
}

.project-section .quality p {
	color: #bbb;
	font-size: 0.9rem;
	line-height: 1.5;
	margin: 0;
	text-align: center;
}


@media (max-width: 1100px) {
	.learned-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 768px) {
	.learned-grid,
	.qualities-grid {
		grid-template-columns: 1fr;
	}

	.education-list,
	.education-orientation {
		grid-template-columns: 1fr;
	}

	.skill-groups {
		grid-template-columns: 1fr;
	}

	.timeline {
		--tl-pad: 5.2rem;
		--tl-line: 4.2rem;
	}

	.timeline-item {
		padding: 1.2rem;
	}

	.timeline-year {
		font-size: 1.1rem;
	}

	.timeline-months {
		font-size: 0.7rem;
	}
}
