html {
	scroll-behavior: smooth;
}

body {
    font-family: 'Arial', sans-serif;
	line-height: 1.6;
    margin: 0 auto;
    height: 100vh;
	background-color: #ffffff;
	color: #333;
	padding: 20px;
	padding-left: 100px; /* adapte si besoin */
	padding-right: 100px; /* adapte si besoin */
}

body.dark-mode {
	background-color: #1e1e1e;
	color: #e4e4e4;
}

body.dark-mode .section,
body.dark-mode .intro-paragraph {
	background-color: #2a2a2a;
}

body.dark-mode .nav-button {
	background-color: #444;
	color: #f0f0f0;
}

body.dark-mode .nav-button:hover {
	background-color: #666;
}

body.dark-mode .job-title-header {
	color: #e4e4e4;
}

body.dark-mode a {
	color: #aad4ff;
}

#theme-toggle {
	cursor: pointer;
}

.theme-toggle-icon {
	background: none;
	border: none;
	padding: 0;
	margin-right: 10px;
	margin-top: 5px;
	cursor: pointer;
	width: 30px;
	height: 30px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.theme-toggle-icon img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	transition: filter 0.2s ease;
}

.theme-toggle-icon:hover img {
	filter: brightness(1.2);
}

body.dark-mode .theme-toggle-icon {
	border-color: #f0f0f0;
}

header{
	display: flex;
    font-family: "Helvetica", sans-serif;
	justify-content: space-between;
    font-size: clamp(30px, 5vw + 1rem, 75px);
	align-items: center;
	padding: 5px 30px;
}

.header-left {
	display: flex;
	align-items: center;
	gap: 20px; /* espace entre image et titre */
}

.page-title {
	font-size: 1.9rem;
	color: #465c88;
	margin: 0;
}

body.dark-mode .page-title {
	color: #63c8ff
}

.job-title-header {
	font-family: "Helvetica", sans-serif;
	color: rgba(0, 0, 0, 0.6);
	font-size: 1rem;
	margin-top: 5px;
	margin-bottom: 0;
}



.cursor {
	  display: inline-block;
	  width: 3px;
	  height: 1em;
	  background-color: currentColor;
	  margin-left: 5px;
	  animation: blink 0.8s steps(1) infinite;
	  vertical-align: middle;
	  transform: translateY(-0.1em);
  }

@keyframes blink {
	50% {
	opacity: 0;
	}
}





img {
	display: block;
	max-inline-size: 100%;
}


h2 {
	color: #465c88;
	margin-top: 1.2em;
	border-bottom: 1px solid #ccc;
	font-size: 1.4em;
}

body.dark-mode h2 {
	color: #63c8ff
}

.main-container {
	max-width: 750px;
	margin: 0 auto;
	padding: 0 20px;
	padding-bottom: 500px;
}

.section {
	margin: 200px 0;
	background-color: #e9e3df;
	  border-radius: 12px;
	  padding: 30px;
	  margin-top: 40px;
	  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.profile-image {
	width: 150px;
	clip-path: circle();
}


.top-buttons {
	position: fixed;
	top: 20px;
	right: 20px;
	display: flex;
	flex-wrap: wrap; /* permet d'éviter les chevauchements */
	gap: 10px;
	z-index: 1000;
	justify-content: flex-end;
	transition: transform 0.4s ease, opacity 0.4s ease;
	will-change: transform, opacity;
}

.top-buttons.hidden {
	transform: translateY(-50px);
	opacity: 0;
	pointer-events: none;
}

.nav-button {
	background-color: #ff7a30;
	border: none;
	color: white;
	padding: 10px 20px;
	text-align: center;
	text-decoration: none;
	font-size: 16px;
	border-radius: 5px;
	white-space: nowrap; /* empêche le texte de couper */
}

/* Hover style */
.nav-button:hover {
	background-color: #2a4759;
}

.social-icon {
	color: #465c88;
	transition: color 0.2s;
	text-decoration: none;
}
.social-icon:hover {
	color: #333333;
}


.intro-paragraph {
  margin-top: 100px;
  margin-bottom: 400px;
  font-size: 1.05rem;
  line-height: 1.8;
  background-color: #e9e3df;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.job-title {
  font-weight: bold;
}

.job-dates {
  font-style: italic;
  color: #555;
}

body.dark-mode .job-dates {
	color: #58a0c8
}

.two-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

.two-columns > div {
  flex: 1;
  min-width: 250px;
}


/* Icônes fixes en bas à gauche */
.socials {
	position: fixed;
	bottom: 20px;
	left: 10px;
	display: flex;
	flex-direction: column;
	gap: 15px;
	z-index: 1000;
	align-items: center;
}

.socials .social-icon {
	font-size: 1rem;
	color: #2a4759;
	text-decoration: none;
	transition: color 0.3s;
}

.socials .social-icon:hover {
	color: #000000;
}

body.dark-mode .socials .social-icon {
	color: #e4e4e4
}

body.dark-mode .socials .social-icon:hover {
	color: #63c8ff
}


.skills-list {
  display: column;
  gap: 10px 30px;
  list-style-type: disc;
  padding-left: 20px;
  max-width: 600px;
  margin: 30px auto;
}

.skills-list li {
  margin-bottom: 10px;
}

.project-img {
	margin: auto;
	width: 150px;
	border-radius: 8px;
	cursor: pointer;
}

.project-img:hover {
	transform: scale(1.03);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}


#back-to-top {
	color: #2a4759;
	font-size: 24px;
	text-decoration: none;
	text-align: center;
	transition: opacity 0.3s ease, color 0.3s;
	opacity: 0;
	pointer-events: none;
}

#back-to-top:hover {
	color: #000000;
}

body.dark-mode #back-to-top {
	color: #e4e4e4
}

body.dark-mode #back-to-top:hover {
	color: #63c8ff
}

#back-to-top.visible {
	opacity: 1;
	pointer-events: auto;
}



/* Lightbox cachée par défaut */
.lightbox {
  display: none;
  position: fixed;
  padding-top: 50px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.8);
}

/* Image en grand au centre */
.lightbox-content {
  display: block;
  margin: auto;
  max-width: 90%;
  max-height: 80%;
}

/* Bouton fermer */
.close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: white;
  font-size: 40px;
  cursor: pointer;
}
.close:hover {
  color: #ccc;
}

/* Responsive : réduire la taille des icônes et l'espacement sur mobile */
@media (max-width: 600px) {
	.profile-image {
		display: none;
	}
	.socials {
		bottom: 15px;
		left: 8px;
		gap: 10px;
	}
	.socials .social-icon {
		font-size: 1rem;
	}
	body {
		padding-left: 50px;
		padding-right: 50px;
	}
	.top-buttons {
		top: 15px;
		right: 15px;
		flex-direction: column;
		align-items: flex-end;
	}
	.nav-button {
		padding: 8px 16px;
		font-size: 14px;
	}
}










