:root {
	--primary-color: #2d3436;
	--secondary-color: #0984e3;
	--accent-color: #00b894;
	--background-color: #ffffff;
	--text-color: #2d3436;
	--section-bg: #f5f6fa;
	--transition: all 0.3s ease;
}
/* Reset et styles de base */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}
body {
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
	line-height: 1.6;
	color: var(--text-color);
	background-color: var(--background-color);
	margin: 0;
	padding: 0;
}
/* Navigation */
.navbar {
	position: fixed;
	top: 0;
	width: 100%;
	background-color: rgba(255, 255, 255, 0.95);
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
	z-index: 1000;
	padding: 1rem 0;
}
.nav-content {
	max-width: 1200px;
	margin: 0 auto;
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 0 2rem;
}
.logo-uca {
	justify-content: left;
	height: 60px;
	width: auto;
}
.nav-links {
	display: flex;
	gap: 2rem;
	list-style: none;
}
.nav-links a {
	text-decoration: none;
	color: var(--text-color);
	font-weight: 500;
	transition: var(--transition);
}
.nav-links a:hover {
	color: var(--secondary-color);
}
/* Hero Section */
.hero {
	height: 100vh;
	background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
	display: flex;
	align-items: center;
	justify-content: center;
	color: white;
	padding: 2rem;
	padding-top: 150px;
}
.hero-content {
	text-align: center;
	max-width: 800px;
}
.profile-image {
	width: 320px;
	height: 320px;
	border-radius: 50%;
	border: 4px solid white;
	margin-bottom: 2rem;
	object-fit: cover;
}
.hero h1 {
	font-size: 3.5rem;
	margin-bottom: 1rem;
}
.subtitle {
	font-size: 1.5rem;
	opacity: 0.9;
	margin-bottom: 2rem;
}
/* Sections communes */
.section {
	padding: 5rem 2rem;
	max-width: 1200px;
	margin: 10vh auto;
}
.section-title {
	font-size: 2.5rem;
	margin-bottom: 3rem;
	text-align: center;
	position: relative;
	padding-top: 2%;
}
.section-title::after {
	content: '';
	position: absolute;
	bottom: -10px;
	left: 50%;
	transform: translateX(-50%);
	width: 100px;
	height: 4px;
	background-color: var(--secondary-color);
}
/* Grilles */
.about-grid,.skills-grid,.experience-grid,.other-grid {
	display: grid;
	gap: 2rem;
}

.project-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 50px;
	margin-right: 32px;
	margin-left: 32px;
	align-items:flex-start;
	
}

 .project-title {
	margin-bottom: 8px;
	font-size: 1.5em;
	color: #007bff;
	line-height: 30px; 
}




/* Cards */
.about-card,.experience-card,.project-card,.CV-card {
	background-color: var(--section-bg);
	padding: 2rem;
	border-radius: 10px;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
	transition: var(--transition);
}
/* Timeline */
.experience-grid,.timeline {
	position: relative;
	max-width: 800px;
	margin: 0 auto;
}
.experience-card,.timeline-item {
	position: relative;
	margin-bottom: 2rem;
	padding: 2rem;
	background: var(--section-bg);
	border-radius: 10px;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.experience-date,.timeline-date {
	position: absolute;
	top: -10px;
	left: 20px;
	background: var(--secondary-color);
	color: white;
	padding: 0.5rem 1rem;
	border-radius: 20px;
	font-size: 0.9rem;
}
/* Skills */
.skill-bar {
	margin-bottom: 1.5rem;
}
.skill-name {
	display: block;
	margin-bottom: 0.5rem;
}
.progress-bar {
	height: 20px;
	background-color: #e0e0e0;
	border-radius: 5px;
	overflow: hidden;
}
.progress {
	height: 100%;
	background-color: var(--secondary-color);
	transition: width 1s ease-in-out;
}
/* Projects */
.project-image {
	width: 100%;
	height: 350px;
	object-fit:cover;
	border-radius: 10px 10px 0 0;
}
.project-tags {
	display: flex;
	gap: 0.5rem;
	margin-top: 2rem;
	margin-bottom: 2rem;
	flex-wrap: wrap
}
.tag {
	background: var(--accent-color);
	color: white;
	padding: 0.3rem 0.8rem;
	border-radius: 15px;
	font-size: 0.8rem;

}

/* Link that wraps a project card to make whole card clickable */
.project-link {
	display: block;
	color: inherit;
	text-decoration: none;
	-webkit-tap-highlight-color: transparent; /* remove grey overlay on mobile */
}
/* Prevent background/text selection highlight inside project cards */
.project-link, .project-link *:not(.tag) {
	background: transparent !important;
	-webkit-tap-highlight-color: transparent;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}
.project-link:focus { outline: none; }
.project-link .project-card {
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.project-link:hover .project-card {
	transform: translateY(-6px);
	box-shadow: 0 10px 20px rgba(0,0,0,0.12);
}
.project-link:active .project-card {
	transform: translateY(-2px);
}
/* Buttons */
.social-link {
	display: inline-block;
	padding: 0.5rem 1rem;
	border-color: #2d3436;
	border-width: 1px;
	border-style: solid;
	border-radius: 5%;
	text-decoration: none;
	margin: 0.5rem;
	background-color: rgba(255, 255, 255, 0.1);
	text-decoration: none;
	font-weight: bold;
	color: #0077b5;
	font-size: 1rem;
}
.social-link:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
	text-decoration: underline;
}
.cta-button {
	display:inline-block;
	align-items: center;
	gap: 0.5rem;
	padding: 0.5rem 1rem;
	border-radius: 5px;
	text-decoration: none;
	color: rgb(0, 0, 0);
	transition: var(--transition);
	border: #2d3436;
	margin-bottom: 2%;
}
.cta-button {
	background-color: var(--accent-color);
}
.cta-button:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}
/* Footer */
footer {
	text-align: center;
	padding: 2rem;
	background-color: var(--primary-color);
	color: white;
	margin-top: 7%;
}

.image{
	position: absolute;
	height: 100px;
	width: auto;
	border-radius: 10px;
	right: 40%;
}
.descript-grid{
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 2rem;
	border: #0984e3;
	border-width: 2rem;
	background-color: var(--section-bg);
	padding: 2rem;
	border-radius: 10px;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
	transition: var(--transition);
	margin-top: 10px;
}
.titlescomp{
	color: var(--secondary-color);
	display:block;
	position: relative;
	text-align: center;
	padding: 2rem;
	font-size: xx-large;
}
.tips {
	background-color: #ddffdd;
	border-left: 6px solid #04AA6D;
	margin: 2rem;
	margin-bottom: 15px;
	padding: 4px 12px;
}
.info {
	background-color: #e7f3fe;
	border-left: 6px solid #2196F3;
	margin: 2rem;
	margin-bottom: 15px;
	padding: 4px 12px;
}
.clearfix::after {
	content: "";
	clear: both;
	display: table;
}
.logolinkedin{
	position: relative;
	height: 2rem;
	width: 2rem;
	display:flex;
	bottom: -3rem;
	left: -2rem;
}
.CV_image{
	margin: auto;
	width: 80%;
}
.CV-card{
	display:block;
	text-align: center;
	box-sizing: content-box;
	margin-left: 15%;
	margin-right: 15%;
}

.posimg {
	position:relative;
	border: 1px solid #ddd;
	border-radius: 4px;
	padding: 5px;
	left: 1rem;
	width: 150px;
	float: right;
	margin: 2%;
}
h2 {
	text-align: center;
	color: #333;
	margin-bottom: 2rem;
}
.other-cards {
	gap: 1rem;
	justify-content: center;
	border: 5rem;
}
.other-card {
	background-color: white;
	border: 2px solid #ddd;
	border-radius: 8px;
	width: 250px;
	padding: 1rem;
	box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
	text-align: center;
}
.other-card h3 {
	font-size: 1.25rem;
	margin-bottom: 0.5rem;
}
.interest-image {
	width: 80%;
	height: auto;
	object-fit: cover auto;
	border-radius: 4px;
	margin-bottom: 0.5rem;
}
.other-card p {
	font-size: 1rem;
	color: #555;
}
.other-card ul{
	margin: 10px;
	padding: 2px;
	text-align:start;
}
/* Section Contact */
#contact-card {
	padding: 2rem;
	background-color: #f9f9f9;
	border: 2px solid #ddd;
	border-radius: 8px;
	margin: 2rem auto;
	max-width: 800px;
}
#contact {
	margin-top: 2%;
	padding-top: 5%;
}
.info {
	text-align: center;
	font-size: 1rem;
	color: #555;
	margin-bottom: 2rem;
	background-color: #e8f4ff;
	padding: 1rem;
	border-left: 4px solid #007bff;
	border-radius: 4px;
}
.contact-container {
	display: flex;
	justify-content: space-around;
	gap: 1rem;
	flex-wrap: wrap;
}
.contact-card {
	background-color: white;
	border: 1px solid #ddd;
	border-radius: 8px;
	padding: 1rem;
	text-align: center;
	width: 300px;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.contact-card h3 {
	font-size: 1.2rem;
	color: #333;
	margin-bottom: 0.5rem;
}
.contact-card p {
	font-size: 1rem;
	color: #007bff;
	font-weight: bold;
}
.contact-card a {
	text-decoration: none;
	color: #0077b5;
}
.contact-card a:hover {
	text-decoration: underline;
}
.social-content {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	margin-top: 0.5rem;
}
.social-logo {
	width: 35px;
	height: auto;
	margin: 0;
}
.social-gh {
	width: 24px;
	height: 24px;
}
ul.langues {
	list-style-type: none;
}
.img-forma{
	height: auto;
	width: 30%;
	border-radius: 5%;
}
.img-langues{
	height: 100px;
	width: auto;
	border-radius: 2%;
	object-position: center;
}
.divers{
	background-color: var(--section-bg);
	padding: 2rem;
	border-radius: 10px;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
	transition: var(--transition);
}
.divers img{
	width: 20%;
	height: auto;
	border-radius: 5%;
	border-color: var(--secondary-color);
	border-width: 10px;
	margin: 5px;
}
.divers p{
	text-align: left;
}

img#agrandir{
	transition: all 0.5s ease-in-out;
}

img#agrandir:hover{
	-ms-transform: scale(3.5);
	/* IE 9 */

	-webkit-transform: scale(3.5);
	/* Safari 3-8 */
	transform: scale(3.5);
}
.image-button {
	display: flex;
	align-items: center;
	padding: 10px 20px;
	background-color: #4CAF50;
	color: white;
	border: none;
	border-radius: 5px;
	cursor: pointer;
	font-size: 16px;
}
.button-image {
	width: 20px;
	height: 20px;
	margin-right: 10px;
}
.image-button:hover {
	background-color: #45a049;
}
.logo-mail{
	border-color: #555;
	margin: 2px;
	width: 20px;
	height: auto;
}

.bouton-forma {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	margin-top: 0.5rem;
}

/* Styles pour le bouton hamburger */
.menu-toggle {
	display: none;
	flex-direction: column;
	cursor: pointer;
	position: fixed;
	top: 15px;
	right: 20px;
	z-index: 1100;
}

.bar {
	width: 30px;
	height: 4px;
	background-color: var(--text-color);
	margin: 5px 0;
	transition: 0.3s;
}

@media (max-width: 870px) {
	.menu-toggle {
		display: flex;
	}
	.nav-links {
		display: none;
		flex-direction: column;
		background-color: rgb(255, 255, 255, 0.95);
		position: absolute;
		top: 60px;
		right: 20px;
		width: 200px;
		box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
		z-index: 1000;
		padding-top: 8px;
		padding-bottom: 8px;
		border-radius: 15px;
	}

	.project-grid {
	display:grid;
	grid-template-columns: repeat(1, 1fr);
	gap: 50px;
	margin-right: 32px;
	margin-left: 32px;
	align-items:flex-start;
	
	}

	.nav-links.active {
		display: flex;
	}

	.img-forma{
	height: 120px;
	width: auto;
	border-radius: 20%;
	object-fit:contain;
	}	

	.navbar {
		position: fixed;
		width: 100%;
		z-index: 1000;
	}
	.nav-links {
		flex-direction: column;
		text-align: center;
	}
	.hero h1 {
		font-size: 2.5rem;
	}
	.section-title {
		font-size: 2rem;
	}
	.timeline-item {
		margin-left: 0;
	}
	.timeline-item::before {
		display: none;
	}
}

/* Ajoute ces styles à la fin de ton fichier styles.css */

.toggle-button {
    background-color: var(--secondary-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 0.5rem;
    transition: var(--transition);
}

.toggle-button:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.skill-description {
    margin-top: 1rem;
    padding: 1rem;
    background-color: #f9f9f9;
    border-radius: 10px;
    border: 1px solid #ddd;
    transition: var(--transition);
}

.skill-description h2 {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.skill-description p {
    color: var(--text-color);
    line-height: 1.6;
}

.langue-card,.skills-card {
	background-color: var(--section-bg);
	padding: 2rem;
	border-radius: 10px;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
	transition: var(--transition);
}

.disabled-button {
    color: gray;
    text-decoration: none;
	cursor: url("assets/cursor-blocked.cur"), not-allowed;
	display:inline-block;
	align-items: center;
	gap: 0.5rem;
	padding: 0.5rem 1rem;
	border-radius: 5px;
	transition: var(--transition);
	border: #2d3436 solid 2px;
	margin-bottom: 2%;
}

.alert {
	display: block;
	background-color: #e79d9d;
	border-left: 6px solid #ff0000;
	margin: 2rem;
	margin-bottom: 15px;
	padding: 4px 12px;

}

/* Carousel projets : affiche un projet à la fois */
.projects-carousel {
	position: relative;
	max-width: 1000px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	gap: 1rem;
}
.carousel-track {
	flex: 1 1 auto;
	position: relative;
}
.carousel-slide {
	display: none;
}
.carousel-slide.active {
	display: block;
}
.carousel-btn {
	background: var(--primary-color);
	color: white;
	border: none;
	padding: 0.5rem 0.9rem;
	font-size: 2rem;
	line-height: 1;
	border-radius: 6px;
	cursor: pointer;
	transition: var(--transition);
	width: 48px;
	height: 48px;
	display: flex;
	align-items: center;
	justify-content: center;
}
.carousel-btn:hover { transform: translateY(-3px); }
.carousel-counter {
	position: absolute;
	right: 0;
	bottom: -40px;
	font-weight: bold;
	color: var(--text-color);
}

/* Responsive : boutons plus petits sur mobile */
@media (max-width: 870px) {
	.carousel-btn { font-size: 1.4rem; width: 40px; height: 40px; }
	.carousel-counter { bottom: -50px; }
}
