/* ============================================================ */
/* GENERAL RESET & BODY STYLES                                   */
/* ============================================================ */
@font-face {
	font-family: 'WreckedShip';
	src: url('/projects/bestiary/public/fonts/WreckedShip.ttf') format('truetype');
	font-weight: normal;
	font-style: normal;
}

@font-face {
	font-family: 'Caladea';
	src: url('/projets/bestiary/public/fonts/Caladea-Regular.ttf') format('truetype');
	font-weight: normal;
	font-style: normal;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
	background-color: #121212;
	color: #f5f5f5;
	overflow-x: hidden;
	scroll-behavior: smooth;
	background-image: url("/assets/images/electricalBG.png");
	background-size: contain;
	background-repeat: repeat;
	-webkit-tap-highlight-color: transparent;
	scrollbar-width: thin;
	scrollbar-color: #ff6600 rgba(40, 40, 40, 0.8);
}

a {
	color: inherit;
	text-decoration: none;
}

h1,
h2,
h3,
h4 {
	margin: 0.5em 0;
}

.highlight {
	color: #ffffff;
}

.variantHiglight,
.variantHiglight:hover {
	color: #ff6600;
}

.main {
	display: flex;
	flex-direction: column;
	align-items: center;
}

/*============================================================ */
/* CUSTOM SCROLLBARS                                           */
/* ============================================================ */

/* Chrome, Edge, Safari */
::-webkit-scrollbar {
	width: 10px;
	height: 10px;
}

::-webkit-scrollbar-track {
	background: rgba(40, 40, 40, 0.8);
	border-radius: 10px;
}

::-webkit-scrollbar-thumb {
	background: #ff6600;
	border-radius: 10px;
	box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.4);
	transition: background 0.3s ease, box-shadow 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
	background: #ff8533;
	/* orange un peu plus clair au hover */
	box-shadow: 0 0 6px rgba(255, 102, 0, 0.8);
}

/* ============================================================ */
/* LINKS                                        */
/* ============================================================ */
.links {
	position: fixed;
	bottom: 20px;
	right: 20px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	z-index: 15;
}

.links i {
	font-size: 1.5rem;
	cursor: pointer;
}

/* ============================================================ */
/* TITLE & AVATAR                                               */
/* ============================================================ */
.home {
	width: 100%;
	height: 100vh;
	display: flex;
	justify-content: space-around;
	align-items: center;
	flex-direction: column;
}

.titleAndName {
	text-align: center;
}

.titleAndName h1 {
	font-size: 2.8rem;
	/* un peu plus grand */
}

.titleAndName h2 {
	font-size: 2rem;
	/* un peu plus grand */
}

#myselfPict {
	display: block;
	margin: 0 auto;
	width: 850px;
	max-width: 90%;
	border-radius: 50%;
}

/* ============================================================ */
/* MENU STYLES                                                  */
/* ============================================================ */
.menu {
	text-align: center;
	margin: 0;
	width: 100%;
}

.menu .burger {
	display: none;
	font-size: 2rem;
	background: none;
	border: none;
	color: #ff6600;
	cursor: pointer;
	position: absolute;
	top: 20px;
	right: 20px;
	z-index: 50;
}

.menu ul {
	list-style: none;
	display: flex;
	justify-content: space-around;
	flex-wrap: wrap;
	width: 100%;
}

.menu li {
	padding: 12px 18px;
	cursor: pointer;
	border-radius: 5px;
	transition: background-color 0.3s;
	font-size: 2rem;
}

.menu li.highlight:hover {
	background-color: rgba(255, 102, 0, 0.2);
}

.menu li.selected {
	background-color: rgba(255, 102, 0, 0.4);
}

/* ============================================================ */
/* PAGE SECTIONS                                               */
/* ============================================================ */
.page-section {
	max-width: 1100px;
	width: 90%;
	padding: 20px;
	background-color: rgba(30, 30, 30, 0.8);
	border-radius: 10px;
	animation: fadeIn 1s ease;
	margin-bottom: 1em;
}

@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(20px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* ============================================================ */
/* ABOUT ME SUBMENU & CONTENT                                    */
/* ============================================================ */
.aboutMeMenu ul {
	display: flex;
	gap: 10px;
	list-style: none;
	margin: 10px 0;
	flex-wrap: wrap;
}

.aboutMeMenu li {
	padding: 7px 12px;
	font-size: 1rem;
	cursor: pointer;
	border-radius: 10px;
}

.aboutMeMenu li:hover {
	background-color: rgba(255, 102, 0, 0.24);
}

.aboutMeMenu li.selected {
	background-color: rgba(255, 102, 0, 0.4);
}

[data-subcontent] {
	display: none;
}

[data-subcontent].selected {
	display: block;
}

/* ============================================================ */
/* Presentation                                                 */
/* ============================================================ */
.presentationWrapper {
	width: 100%;
}

.presentationWrapper img {
	width: 100%;
	height: 300px;
	object-fit: cover;
	border-radius: 15px;
}

/* ============================================================ */
/* GALLERY & LIGHTBOX                                          */
/* ============================================================ */
.gallery {
	display: flex;
	gap: 15px;
	flex-wrap: wrap;
}

.galleryItem {
	background-color: rgba(46, 46, 46, 0.753);
	border-radius: 15px;
	box-shadow: #121212 0 0 10px;
}

.galleryItem.selected,
.galleryItem:hover {
	background-color: rgba(85, 84, 84, 0.753);
	box-shadow: #121212 0 0 15px;
}

.galleryItem:hover {
	transform: scale(1.1);
}

.galleryItem img {
	width: 100px;
	height: 100px;
	object-fit: cover;
	cursor: pointer;
	border-radius: 5px;
	transition: transform 0.3s;
}

.hobbyImages {
	display: none;
}

.hobbyImages.selected {
	display: block;
	position: relative;
	width: 100%;
	height: 450px;
}

.hobbyImages img {
	height: 450px;
	object-fit: cover;
	border-radius: 5px;
	transition: opacity 0.5s ease;
}

.hobbyImages[data-hobby="paints"] img,
.hobbyImages[data-hobby="boardGames"] img {
	position: absolute;
	width: 100%;
}

.guitarWrapper {
	height: 100%;
	display: flex;
	gap: 0.5em;
	width: 100%;
}

.guitarWrapper img {
	margin: 0;
	height: 100%;
}

.guitarWrapper p {
	height: 100%;
	overflow-y: auto;
}

.hobbyImages img.map {
	width: 100%;
	object-fit: contain;
}

/* Galerie spécifique aux jeux vidéo */
.hobbyImages[data-hobby="videoGames"] .gallery {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
	gap: 15px;
	justify-items: center;
	align-items: center;
}

.hobbyImages[data-hobby="videoGames"] img {
	width: 80px;
	height: auto;
	object-fit: contain;
	transition: transform 0.3s ease;
}

.hobbyImages[data-hobby="videoGames"] img:hover {
	transform: scale(1.1);
}

/* ============================================================ */
/* SECTION CONTAINERS                                         	*/
/* ============================================================ */
.wrapper {
	display: flex;
	gap: 10px;
	justify-content: space-between;
	margin-top: 20px;
	width: 100%;
	height: 405px;
}

.subContainer {
	background-color: rgba(40, 40, 40, 0.8);
	padding: 15px;
	border-radius: 10px;
	width: 32%;
	text-align: center;
	height: 100%;
	box-shadow: #121212 0 0 10px;
	position: relative;
	transition: all 0.3s ease;
	overflow: hidden;
}

.subContainer h4 {
	position: relative;
	height: 2.5em;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	margin: 0;
	margin-bottom: 0.3em;
}

.bannerContainer img {
	width: 100%;
	height: 300px;
	object-fit: cover;
	border-radius: 15px;
	margin: 0 auto;
}

.expandBtn {
	position: absolute;
	top: 0.5em;
	right: 0.5em;
	cursor: pointer;
	font-size: 1.2rem;
	padding: 5px;
	transition: transform 0.5s ease;
}

.expandBtn:hover {
	transform: scale(1.2) rotate(360deg);
}

.subContainer.expanded {
	width: 100% !important;
	z-index: 10;
}

.wrapper.collapsed .subContainer:not(.expanded) {
	width: 0 !important;
	padding: 0;
	opacity: 0;
	overflow: hidden;
}

#skills .content {
	width: 100%;
	height: calc(100% - 2em);
	overflow-y: scroll;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.subContainer.expanded .content {
	white-space: normal;
	text-overflow: clip;
	word-break: break-word;
	text-align: left;
}

/* ============================================================ */
/* SKILLS SECTION                                              */
/* ============================================================ */

/* ============================================================ */
/* MODE FERMÉ : items 90% centrés + ellipsis                   */
/* ============================================================ */
.content .skillGrid {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: center;
	margin-top: 10px;
	margin-bottom: 10px;
}

.skillItem {
	background-color: rgba(255, 255, 255, 0.1);
	padding: 6px 10px;
	border-radius: 8px;
	font-size: 0.9rem;
	font-weight: 600;
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-width: 120px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	width: 100%;
}

.skillTitle {
	display: flex;
	justify-content: space-between;
	gap: 0.3em;
	width: 100%;
}

.content .skillGrid .skillItem span:first-child {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* ============================================================ */
/* MODE OUVERT : cards 100% + description visible              */
/* ============================================================ */

.subContainer.expanded .content .skillGrid {
	justify-content: flex-start;
}

.subContainer.expanded .content .skillGrid .skillCard {
	width: 100%;
}

.subContainer.expanded .skillItem {
	display: flex;
	flex-direction: column !important;
	/* titre + étoiles sur une ligne */
	align-items: flex-start;
	justify-content: space-between;
	white-space: normal;
	overflow: visible;
	text-overflow: clip;
}

.subContainer.expanded .content .skillTitle {
	justify-content: flex-start;
}

.subContainer.expanded .skillDesc {
	display: block;
	margin-top: 6px;
	opacity: 0.9;
	font-size: 0.9rem;
	line-height: 1.35;
	width: 100%;
}

/* ============================================================ */
/* Skill level                                                 */
/* ============================================================ */
.skillLevel {
	display: inline-block;
	padding: 4px 10px;
	border-radius: 20px;
	font-size: 0.8rem;
	font-weight: 600;
	color: #fff;
	margin-left: 10px;
}

/* Couleurs par niveau */
.skillLevel.beginner {
	background: #b0bec5; /* gris clair */
}

.skillLevel.novice {
	background: #4fc3f7; /* bleu clair */
}

.skillLevel.intermediate {
	background: #81c784; /* vert */
}

.skillLevel.proficient {
	background: #ffb74d; /* orange */
}

.skillLevel.advanced {
	background: #e57373; /* rouge */
}


/* ============================================================ */
/* SKILL CARDS                                                  */
/* ============================================================ */
.subContainer .skillCard {
	width: 100%;
}

.subContainer.expanded .skillCard {
	width: 100%;
}

.subContainer .skillCard .skillItem {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.subContainer.expanded .skillCard .skillItem {
	flex-direction: row;
	align-items: center;
	white-space: normal;
	overflow: visible;
	text-overflow: clip;
}

.subContainer .skillDesc {
	display: none;
}

/* ============================================================ */
/* SLIDER                                                   */
/* ============================================================ */
.slider {
	position: relative;
	overflow: visible;
	width: 100%;
	display: flex;
	justify-content: center;
}

.slider .slides {
	position: relative;
	overflow: hidden;
	width: 100%;
	display: flex;
	gap: 15px;
	scroll-behavior: smooth;
	transition: transform 0.3s ease;
	box-sizing: border-box;

}

.slider .subContainer {
	flex: 0 0 calc(33.333% - 10px);
	/* 3 visibles */
	box-sizing: border-box;
}

.slider .subContainer.expanded {
	flex: 0 0 100%;

	box-sizing: border-box;
}

.slider:has(.subContainer.expanded) .subContainer:not(.expanded) {
	flex: 0 0 0;
	opacity: 0;
	overflow: hidden;
}

.wrapper:has(.subContainer.expanded),
.slides:has(.subContainer.expanded) {
	gap: 0;
}

/* ================= SLIDER BUTTONS ================= */
.slider-btn {
	position: absolute;
	top: 50%;
	background: rgba(255, 255, 255, 0.15);
	color: #fff;
	border: none;
	padding: 10px 10px;
	cursor: pointer;
	border-radius: 50%;
	z-index: 20;
	transition: background 0.3s;
}

.slider-btn:hover {
	background: rgba(255, 255, 255, 0.35);
}

.slider-btn.prev {
	left: 0px;
	transform: translate(-50%, -50%);
}

.slider-btn.next {
	right: 0px;
	transform: translate(50%, -50%);
}

/* Responsive : sur mobile → 1 visible */
@media (max-width: 768px) {
	.slider .subContainer {
		flex: 0 0 100%;
		transform: translate(-50%, 0);
	}
}

/* Responsive : tablette → 2 visibles */
@media (min-width: 769px) and (max-width: 1024px) {
	.slider .subContainer {
		flex: 0 0 calc(50% - 10px);
	}
}

/* ============================================================ */
/* Experiences  / Degrees                                       */
/* ============================================================ */
#experiences .subContainer,
#degrees .subContainer {
	border-radius: 1rem;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
	box-sizing: border-box;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	display: flex;
	flex-direction: column;
	gap: 1em;
}

#experiences .subContainer h4,
#degrees .subContainer h4 {
	min-height: 2.5em;
}

#experiences .content,
#degrees .content {
	display: grid;
	gap: 1em;
	width: 100%;
	height: calc(100% - 3em);
	overflow: hidden;
}

#experiences .content {
	grid-template-columns: 1fr 1fr;
}

#experiences .content>div,
#degrees .content>div {
	border-radius: 0.75rem;
	flex: 1;
}

#experiences:has(.subContainer.expanded) .missions,
#experiences:has(.subContainer.expanded) .skills,
#degrees:has(.subContainer.expanded) .missions,
#degrees:has(.subContainer.expanded) .skills {
	height: 100%;
	overflow-y: scroll;
}

#experiences .titlesAndDate,
#degrees .titlesAndDate {
	grid-column: 1 / -1;
	/* prend toute la largeur */
	background: linear-gradient(135deg, rgba(54, 54, 54, 0.664), rgba(255, 255, 255, 0.1));
	/* background: linear-gradient(135deg, #007bff, #00c6ff); */
	color: white;
	border-radius: 0.75rem;
	padding: 0.5em;
	text-align: center;
}

#experiences .titlesAndDate h5,
#degrees .titlesAndDate h5 {
	margin: 0;
	font-size: 1.2em;
	font-weight: bold;
}

#experiences .titlesAndDate p,
#degrees .titlesAndDate p {
	margin: 0.2em 0 0;
	font-size: 0.9em;
	opacity: 0.9;
}

#experiences .content ul,
#degrees .content ul {
	margin-top: 0.5em;
	padding: 0;
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 0.2em;
}

#experiences .content li,
#degrees .content li {
	width: 100%;
	background: rgba(255, 255, 255, 0.1);
	padding: 0.4em 0.8em;
	border-radius: 0.5em;
	font-size: 0.9em;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

#experiences h5,
#degrees h5 {
	margin-bottom: 0.5em;
	font-size: 1em;
	color: white;
	border-bottom: 1px solid #eee;
	padding-bottom: 0.3em;
}

/* ================================== */
/* Projects Card Style                */
/* ================================== */

.projectsBannerContainer {
	position: relative;
	border-radius: 20px;
	height: 250px;
	overflow: hidden;
	margin-bottom: 20px;
	cursor: pointer;
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.projectsBannerContainer:hover {
	transform: translateY(-5px);
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.55);
}

.projectsBannerContainer img {
	width: 100%;
	display: block;
	height: 250px;
	transition: transform 0.4s ease;
}

.projectsBannerContainer:hover img {
	transform: scale(1.05);
}

.projectDetails {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	text-align: center;
	padding: 2em;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.6) 50%, rgba(0, 0, 0, 0.85) 100%);
	color: #f1f1f1;
	opacity: 0;
	transform: translateY(20px);
	transition: opacity 0.4s ease, transform 0.4s ease;
	z-index: 10;
}

.projectsBannerContainer:hover .projectDetails {
	opacity: 1;
	transform: translateY(0);
}

.projectDetails h4 {
	font-size: 1.4rem;
	font-weight: 700;
	margin-bottom: 0.5em;
	color: #ffffff;
	text-shadow: 0px 2px 8px rgba(0, 0, 0, 0.6);
}

.projectDetails p {
	font-size: 0.95rem;
	line-height: 1.5;
	max-width: 90%;
	color: #e2e2e2;
}

.projectDetails h5 {
	margin-top: 1em;
	font-size: 1rem;
	font-weight: 600;
	color: #ffcc70;
}

.projectDetails ul {
	margin-top: 0.5em;
	list-style: none;
	padding: 0;
	display: flex;
	gap: 1em;
	flex-wrap: wrap;
	justify-content: center;
}

.projectDetails li {
	background: rgba(255, 255, 255, 0.08);
	padding: 0.4em 0.8em;
	border-radius: 8px;
	font-size: 0.85rem;
	color: #f8f8f8;
	transition: background 0.3s ease;
}

.projectDetails li:hover {
	background: rgba(255, 204, 112, 0.3);
}

/* ============================================================ */
/* Vélomobile                                       */
/* ============================================================ */

.velomobile {
	display: flex;
	flex-direction: column;
	align-items: center;
}

/* Overlay */
.velomobile .filter {
	width: 100%;
	height: 335px;
	position: absolute;
	display: flex;
	flex-direction: column;
	align-items: center;
	background-color: black;
	opacity: 0.65;
	z-index: 0;
}

/* Logo principal */
.velomobile .headLogo {
	width: 350px;
	height: auto;
	position: absolute;
	top: 35%;
	transform: translateY(-50%);
	z-index: 1;
	margin-top: 20px;
}

.velomobile .gifContainer {
	position: absolute;
	width: 100%;
	top: 75%;
	left: 0;
	z-index: 2;
	height: 2em;
}

.velomobile .line {
	width: 100%;
	height: 2px;
	background-color: white;
	position: absolute;
	left: 0;
	bottom: 0;
}

.velomobile .gif {
	width: 80px !important;
	height: auto;
	position: absolute;
	/* important pour que left fonctionne par rapport au container */
	left: 0;
	bottom: 2px;
	/* départ à gauche */
	animation: velomobile 7s infinite ease-in-out;
}

@keyframes velomobile {
	0% {
		left: 5%;
		transform: scaleX(1);
	}

	29% {
		left: 85%;
		transform: scaleX(1);
	}

	30% {
		transform: scaleX(-1);
	}

	59% {
		left: 5%;
		transform: scaleX(-1);
	}

	60% {
		transform: scaleX(1);
	}

	100% {
		left: 5%;
		transform: scaleX(1);
	}
}


/* ============================================================ */
/* SCROLL & ANIMATIONS                                         */
/* ============================================================ */
html {
	scroll-behavior: smooth;
}

@media (max-width: 768px) {
	.menu ul {
		flex-direction: column;
	}

	.wrapper {
		flex-direction: column;
		align-items: center;
	}

	.links {
		right: 20px;
	}

	.page-section {
		width: 100%;
	}

	.site-construction {
		left: 10px;
	}

	/* Menu vertical */
	.menu ul {
		flex-direction: column;
		gap: 10px;
	}

	/* Wrapper : empilement vertical */
	.wrapper {
		flex-direction: column;
		align-items: stretch;
		height: auto;
		/* supprime la hauteur fixe */
	}

	.subContainer {
		width: 100% !important;
		height: auto;
	}

	/* Hobby images */
	.hobbyImages,
	.hobbyImages img {
		height: auto;
		max-height: 250px;
		width: 100%;
	}

	/* Galerie spécifique aux jeux vidéo */
	.hobbyImages[data-hobby="videoGames"] .gallery {
		display: grid;
		grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
		gap: 15px;
		justify-items: center;
		align-items: center;
	}

	.hobbyImages[data-hobby="videoGames"] img {
		width: 80px;
		height: auto;
		object-fit: contain;
		transition: transform 0.3s ease;
	}

	.hobbyImages[data-hobby="videoGames"] img:hover {
		transform: scale(1.1);
	}

	/* Slider → 1 seule card visible */
	.slider .subContainer {
		flex: 0 0 100% !important;
		transform: none;
		/* retire le translate buggy */
	}

	/* Expériences / Diplômes en 1 colonne */
	#experiences .content,
	#degrees .content {
		grid-template-columns: 1fr;
	}

	.projectDetails {
		display: none;
	}
	
	.expandBtn {
		display: none;
	}
}

/* 💻 Tablettes */
@media (min-width: 769px) and (max-width: 1024px) {

	#myselfPict {
		max-width: 400px;
	}

	.wrapper {
		flex-direction: column;
		height: auto;
	}

	.subContainer {
		width: 100% !important;
		height: auto;
	}

	/* Slider → 2 cards visibles */
	.slider .subContainer {
		flex: 0 0 50%;
	}

	#experiences .content,
	#degrees .content {
		grid-template-columns: 1fr;
	}
}

/* Mobile / tablette */
@media (max-width: 1024px) {
	.menu ul {
		display: none;
		flex-direction: column;
		background-color: rgba(30, 30, 30, 0.95);
		position: absolute;
		top: 60px;
		right: 20px;
		width: 200px;
		border-radius: 10px;
		padding: 10px 0;
		gap: 10px;
		box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
		transition: all 0.3s ease;
	}

	.menu ul.active {
		display: flex;
	}

	.menu .burger {
		display: block;
	}

	.menu li {
		font-size: 1.5rem;
		text-align: center;
	}
	
	.projectDetails h4 {
		margin-bottom: 0.2em;
		margin-top: 0.2em;
	}

	.projectDetails h5 { 
		margin-top: 0.2em;
	}

	.projectDetails ul {
		margin-top: 0;
		  column-gap: 1rem;
		  row-gap: 0.2rem;   
	}
}