@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap');

/* Variables de thème */
:root {
	--primary: #0b6efd;
	--accent: #6c63ff;
	--bg: #f6f8fb;
	--card: #ffffff;
	--text: #0f172a;
	--muted: #6b7280;
	--success: #16a34a;
	--radius: 12px;
	--shadow-sm: 0 4px 12px rgba(16,24,40,0.06);
	--shadow-md: 0 12px 36px rgba(16,24,40,0.08);
}

/* Reset minimal */
* , *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }

/* Augmenter légèrement la taille de base pour une meilleure lisibilité */
html { font-size: 18px; }

body {
	margin: 0;
	font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial;
	background: linear-gradient(180deg, var(--bg), #eef4ff 100%);
	color: var(--text);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	line-height: 1.6;
	scroll-behavior: smooth;
}

/* Container central */
.container {
	max-width: 1000px;
	margin: 0 auto;
	padding: 0 1.5rem;
}

/* Navigation */
.navbar {
	position: sticky;
	top: 0;
	background: linear-gradient(135deg, rgba(11,110,253,0.95), rgba(108,99,255,0.9));
	padding: 1rem 0;
	box-shadow: var(--shadow-md);
	z-index: 100;
	backdrop-filter: blur(8px);
}

.nav-container {
	max-width: 1000px;
	margin: 0 auto;
	padding: 0 1.5rem;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.logo {
	font-size: 1.4rem;
	font-weight: 700;
	color: #fff;
	letter-spacing: 0.5px;
}

.nav-menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 1.5rem;
	flex-wrap: wrap;
}

.nav-link {
	color: #fff;
	text-decoration: none;
	font-weight: 600;
	transition: opacity .2s ease, text-shadow .2s ease;
	font-size: 1.05rem; /* un peu plus grand pour lisibilité */
}

.nav-link:hover {
	opacity: 0.8;
	text-shadow: 0 0 8px rgba(255,255,255,0.3);
}

/* Sections */
.section {
	padding: 3rem 0;
	border-bottom: 1px solid rgba(11,110,253,0.1);
}

.section h2 {
	font-size: 2.2rem;
	margin-top: 0;
	margin-bottom: 2rem;
	text-align: center;
	color: var(--text);
}

/* Hero Section */
.hero {
	background: linear-gradient(135deg, rgba(11,110,253,0.08), rgba(108,99,255,0.06));
	padding: 5rem 0;
	text-align: center;
	min-height: 400px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.hero h1 {
	font-size: 2.8rem;
	margin: 0 0 0.5rem;
	color: var(--text);
	font-weight: 700;
}

.subtitle {
	font-size: 1.25rem;
	color: var(--muted);
	margin-bottom: 2rem;
}

.notice {
	display: inline-block;
	background: linear-gradient(90deg, rgba(255,243,205,0.95), rgba(255,250,235,0.95));
	border-left: 4px solid var(--primary);
	color: #1f2937;
	padding: 0.45rem 0.85rem;
	border-radius: 8px;
	font-weight: 700;
	font-size: 1.05rem;
	margin-bottom: 1rem;
}

/* Buttons */
.btn {
	display: inline-block;
	padding: 0.75rem 1.5rem;
	border-radius: 8px;
	border: none;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none;
	transition: transform .12s ease, box-shadow .12s ease;
	font-size: .95rem;
}

.btn-primary {
	background: linear-gradient(90deg, var(--primary), var(--accent));
	color: white;
	box-shadow: 0 8px 24px rgba(11,110,253,0.12);
}

.btn-primary:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 32px rgba(11,110,253,0.18);
}

.btn-small {
	padding: 0.5rem 1rem;
	font-size: .85rem;
}

/* À propos */
.about-content {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
}

.about-text p {
	font-size: 1rem;
	line-height: 1.8;
	color: #334155;
}

.skills {
	background: var(--card);
	padding: 1.5rem;
	border-radius: var(--radius);
	box-shadow: var(--shadow-sm);
	margin-top: 1.5rem;
}

.skills h3 {
	margin-top: 0;
	color: var(--text);
}

.skill-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 0.75rem;
}

.skill-list li {
	background: linear-gradient(135deg, rgba(11,110,253,0.08), rgba(108,99,255,0.06));
	padding: 0.5rem 1rem;
	border-radius: 6px;
	color: var(--primary);
	font-weight: 600;
}

/* Certifications: style encadré pour Pix et En cours */
.certifications {
	margin-top: 1rem;
}
.certifications h3 {
	margin: 0 0 0.5rem 0;
}
.cert-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	gap: 0.75rem;
	flex-wrap: wrap;
}
.cert {
	display: inline-block;
	padding: 0.45rem 0.85rem;
	border: 2px solid rgba(0,0,0,0.08);
	border-radius: 8px;
	font-weight: 700;
	background: #fff;
}
.cert-complete {
	border-color: #16a34a; /* vert */
	background: rgba(22,163,74,0.06);
	color: #164e2a;
}
.cert-pending {
	border-color: #f59e0b; /* orange */
	background: rgba(245,158,11,0.06);
	color: #7a4300;
}

/* Timeline (Parcours) */
.timeline {
	position: relative;
	padding: 2rem 0;
}

.timeline::before {
	content: '';
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	width: 2px;
	height: 100%;
	background: linear-gradient(180deg, var(--primary), var(--accent));
}

.timeline-item {
	margin-bottom: 2rem;
	display: flex;
	gap: 2rem;
	position: relative;
}

.timeline-item:nth-child(odd) {
	flex-direction: row-reverse;
}

.timeline-date {
	flex: 0 0 160px;
	font-weight: 700;
	color: var(--primary);
	font-size: 1rem;
	text-align: center;
}

.timeline-content {
	flex: 1;
	background: var(--card);
	padding: 1.5rem;
	border-radius: var(--radius);
	box-shadow: var(--shadow-sm);
}

.timeline-content h3 {
	margin-top: 0;
	color: var(--text);
	margin-bottom: 0.5rem;
}

.timeline-content p {
	margin: 0.25rem 0;
	color: var(--muted);
	font-size: 0.95rem;
}

/* Projets Grid */
.projects-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 2rem;
}

.project-card {
	background: var(--card);
	border-radius: var(--radius);
	padding: 1.5rem;
	box-shadow: var(--shadow-sm);
	transition: transform .2s ease, box-shadow .2s ease;
	display: flex;
	flex-direction: column;
}

.project-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow-md);
}

.project-header {
	border-bottom: 2px solid var(--primary);
	padding-bottom: 0.75rem;
	margin-bottom: 0.75rem;
}

.project-card h3 {
	margin: 0;
	color: var(--text);
	font-size: 1.18rem;
}

.project-card p {
	flex: 1;
	color: var(--muted);
	margin-bottom: 1rem;
	line-height: 1.6;
}

.project-card .btn {
	align-self: flex-start;
}

/* Contact Section */
.contact-section {
	background: linear-gradient(135deg, rgba(11,110,253,0.04), rgba(108,99,255,0.02));
}

.contact-intro {
	text-align: center;
	color: var(--muted);
	font-size: 1.1rem;
	margin-bottom: 2rem;
}

.contact-content {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 2rem;
}

.contact-info {
	background: var(--card);
	padding: 1.5rem;
	border-radius: var(--radius);
	box-shadow: var(--shadow-sm);
}

.contact-info h3 {
	margin-top: 0;
	color: var(--text);
}

.info-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.info-list li {
	padding: 0.9rem 0;
	border-bottom: 1px solid #f1f5f9;
	color: var(--muted);
	font-size: 1.05rem;
}

.info-list li:last-child {
	border-bottom: none;
}

.info-list a {
	color: var(--primary);
	text-decoration: none;
	font-weight: 600;
}

.info-list a:hover {
	text-decoration: underline;
}

/* Formulaire de contact */
.contact-form {
	background: var(--card);
	padding: 1.5rem;
	border-radius: var(--radius);
	box-shadow: var(--shadow-sm);
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}

.form-group {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.form-group label {
	font-weight: 600;
	color: var(--text);
	font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
	padding: 0.75rem;
	border: 1px solid #e6edf3;
	border-radius: 8px;
	font-family: inherit;
	font-size: 0.95rem;
	transition: border-color .15s ease, box-shadow .15s ease;
}

.form-group input:focus,
.form-group textarea:focus {
	outline: none;
	border-color: var(--accent);
	box-shadow: 0 4px 16px rgba(108,99,255,0.1);
}

.form-group textarea {
	resize: vertical;
	min-height: 100px;
}

/* Footer */
.footer {
	background: linear-gradient(135deg, #0f172a, #1a2542);
	color: #fff;
	padding: 2rem 0;
	text-align: center;
	margin-top: 3rem;
}

.footer p {
	margin: 0.5rem 0;
	font-size: 0.95rem;
}

/* Liens rapides dans le footer */
.footer-links {
	text-align: center;
	margin-top: 0.6rem;
}
/* Par défaut (sur fond clair) : rendre les liens visibles */
.footer-links a {
	color: var(--primary);
	text-decoration: none;
	font-weight: 700;
	padding: 0.15rem 0.35rem;
}
.footer-links a:hover {
	text-decoration: underline;
}
/* Si le même bloc est placé dans le footer (fond sombre), utiliser une couleur claire */
.footer .footer-links a {
	color: rgba(255,255,255,0.9);
}

.docs-title {
	margin: 0 0 0.25rem 0;
	color: var(--text);
	font-weight: 700;
}

/* Responsive */
@media (max-width: 768px) {
	.nav-menu {
		gap: 0.8rem;
		font-size: 1rem; /* garder taille lisible sur mobile */
	}

	.hero h1 {
		font-size: 2rem;
	}

	.hero {
		padding: 3rem 0;
	}

	.section h2 {
		font-size: 1.6rem;
	}

	.timeline::before {
		left: 0;
	}

	.timeline-item {
		flex-direction: column-reverse !important;
		gap: 0.5rem;
	}

	.timeline-date {
		flex: 1;
		text-align: left;
		font-size: 0.95rem;
	}

	.contact-content {
		grid-template-columns: 1fr;
	}

	.projects-grid {
		grid-template-columns: 1fr;
	}
}

/* Bouton CV encadré dans la section À propos */
.about-actions {
	display: flex;
	gap: 1rem;
	align-items: center;
	justify-content: center; /* centrer le bouton CV */
}

.cv-box {
	display: inline-block;
	padding: 0.95rem 1.6rem; /* plus grand */
	border-radius: 12px;
	border: 2px solid var(--primary);
	color: var(--primary);
	font-weight: 800;
	text-decoration: none;
	background: #fff;
	box-shadow: 0 10px 28px rgba(11,110,253,0.08);
	transition: transform .14s ease, background .14s ease, color .14s ease, box-shadow .14s ease;
	font-size: 1.12rem; /* taille de texte augmentée */
}

.cv-box:hover {
	transform: translateY(-3px) scale(1.02);
	background: linear-gradient(90deg, var(--primary), var(--accent));
	color: #fff;
	box-shadow: 0 18px 40px rgba(11,110,253,0.18);
}

/* Section Thème avec cartes */
.theme-section {
	background: var(--bg);
}

.cards-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 2rem;
	margin-top: 2rem;
}

.theme-card {
	background: var(--card);
	border-radius: var(--radius);
	padding: 2rem 1.5rem;
	box-shadow: var(--shadow-sm);
	border: 2px solid rgba(11,110,253,0.15);
	transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

.theme-card:hover {
	transform: translateY(-6px);
	box-shadow: var(--shadow-md);
	border-color: var(--primary);
}

.card-icon {
	width: 80px;
	height: 80px;
	border-radius: 50%;
	background: linear-gradient(135deg, rgba(11,110,253,0.12), rgba(108,99,255,0.1));
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 1.25rem;
	border: 2px solid rgba(11,110,253,0.2);
}

.icon-emoji {
	font-size: 2.4rem;
	display: block;
}

.card-title {
	font-size: 1.15rem;
	font-weight: 700;
	color: var(--text);
	margin: 0 0 0.5rem 0;
	line-height: 1.4;
}

.card-date {
	color: var(--primary);
	font-weight: 600;
	font-size: 0.95rem;
	margin: 0 0 1rem 0;
}

.card-text {
	color: var(--muted);
	font-size: 0.95rem;
	line-height: 1.7;
	margin-bottom: 1.5rem;
	flex: 1;
}

.card-source {
	display: inline-block;
	background: #f1f5f9;
	color: #475569;
	padding: 0.5rem 0.85rem;
	border-radius: 6px;
	font-size: 0.85rem;
	font-weight: 500;
}

.card-source a {
	color: var(--primary);
	text-decoration: none;
	font-weight: 600;
	transition: color .15s ease;
}

.card-source a:hover {
	color: var(--accent);
	text-decoration: underline;
}

/* Responsive pour les cartes */
@media (max-width: 768px) {
	.cards-grid {
		grid-template-columns: 1fr;
		gap: 1.5rem;
	}

	.card-icon {
		width: 70px;
		height: 70px;
	}

	.icon-emoji {
		font-size: 2rem;
	}

	.card-title {
		font-size: 1.05rem;
	}
}

/* Fin du portfolio.css */
