@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600&family=Raleway:ital,wght@0,300;0,400;0,600;0,700;1,400&display=swap');

:root {
	--primary: #1c4b96;
	--primary-hover: #143770;
	--bg-light: #f8fafc;
	--text-main: #1e293b;
	--text-muted: #64748b;
	--card-bg: #ffffff;
	--card-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
	--card-shadow-hover: 0 8px 20px rgba(28, 75, 150, 0.12);
	--transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
	scroll-behavior: smooth;
}

html, body {
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	background-color: var(--bg-light);
	font-family: "Raleway", sans-serif;
	font-size: 16px;
	color: var(--text-main);
}

.legend {
	font-size: 12px;
	color: var(--text-muted);
	padding: 0 !important;
}

header {
	display: none;
}

section {
	width: 100%;
	padding: 60px 0;
	box-sizing: border-box;
}

.clear {
	width: 100%;
	height: 0;
	clear: both;
}

.spacer, .spacer-e {
	width: 100%;
	height: 20px;
	clear: both;
}

/* Grilles & Colonnes */
.float-left10 { float: left; width: 10%; }
.float-left20 { float: left; width: 20%; }
.float-left30 { float: left; width: 30%; }
.float-left50 { float: left; width: 50%; }
.float-left70 { float: left; width: 70%; }

.width10 { width: 10%; }
.width20 { width: 20%; }
.width30 { width: 30%; }
.width40 { width: 40%; }
.width50 { width: 50%; }
.width60 { width: 60%; }
.width70 { width: 70%; }
.width80 { width: 80%; }
.width90 { width: 90%; }

.nowrap {
	white-space: nowrap;
}

.section-title {
	width: 100%;
	padding-bottom: 10px;
	border-bottom: 3px solid var(--primary);
	color: var(--primary);
	font-weight: 700;
	font-size: 1.5rem;
	text-transform: uppercase;
	margin-bottom: 30px;
	letter-spacing: 1px;
}

.MainContent {
	max-width: 1190px;
	width: 90%;
	margin: 0 auto;
}

.display-middle {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}

/* Hero Section - Photo moins foncée */
#intro, .frame1 {
	background: linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.35)), url('images/bg_nb.jpg');
	background-position: center;
	background-size: cover;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	width: 100%;
	height: 100vh;
	color: #ffffff;
	padding: 0;
}

#intro h1, .frame1 h1 {
	font-weight: 700;
	text-transform: uppercase;
	margin: 10px 0;
}

.FrameTitle {
	font-size: 4rem;
	letter-spacing: 2px;
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.subTitle {
	font-size: 1.3rem;
	font-weight: 300;
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.animation-top {
	position: relative;
	animation: animationtop 0.7s ease-out;
}

@keyframes animationtop {
	from { top: -50px; opacity: 0; }
	to { top: 0; opacity: 1; }
}

/* Transitions au Scroll */
.reveal {
	opacity: 0;
	transform: translateY(30px);
	transition: var(--transition);
}

.reveal.active {
	opacity: 1;
	transform: translateY(0);
}

/* Frames Globales */
.frame2, .frame3, .frame5, .frame6, .frame7 {
	background-color: #ffffff;
	color: var(--text-main);
}

.frame3, .frame5 {
	background-color: var(--bg-light);
}

/* A propos */
.a-propos-description-title {
	font-size: 1.8rem;
	font-weight: 700;
	line-height: 1.3;
	color: var(--primary);
}

#a-propos-data {
	padding-left: 50px;
	box-sizing: border-box;
}

.a-propos-data-title, .experiences-data-title {
	font-size: 1rem;
	font-weight: 700;
	float: left;
	color: var(--text-main);
}

.a-propos-data-content, .experiences-data-content {
	float: left;
	color: var(--text-muted);
}

.a-propos-data-content ul, .experiences-data-content ul {
	margin: 0;
	padding: 0;
}

.a-propos-data-content li, .experiences-data-content li {
	margin-bottom: 15px;
}

/* Cards : Connaissances & Compétences (Refonte subtile) */
.row-container {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	width: 100%;
}

.row-block {
	flex: 1 1 calc(33.333% - 16px);
	min-width: 280px;
	box-sizing: border-box;
}

.row-block-content {
	width: 100%;
	height: 100%;
	background-color: var(--card-bg);
	border-radius: 8px;
	padding: 16px 20px;
	box-sizing: border-box;
	box-shadow: var(--card-shadow);
	transition: var(--transition);
	border: 1px solid #e2e8f0;
}

.row-block-content:hover {
	transform: translateY(-3px);
	box-shadow: var(--card-shadow-hover);
	border-color: rgba(28, 75, 150, 0.3);
}

.BlocContent {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
}

.BlocContent-content {
	font-weight: 600;
	font-size: 0.95rem;
	color: var(--text-main);
}

.BlocContent-date {
	font-size: 0.75rem;
	font-weight: 600;
	color: var(--primary);
	background: #edf2f7;
	padding: 4px 8px;
	border-radius: 4px;
	white-space: nowrap;
}

/* Texte défilant */
.frame4 {
	background-color: var(--primary);
	color: #ffffff;
	padding: 30px 0;
	overflow: hidden;
}

.TXTcontainerDefilant {
	white-space: nowrap;
	overflow: hidden;
	box-sizing: border-box;
}

.textDefilant {
	display: inline-block;
	padding-left: 100%;
	animation: scroll 40s linear infinite;
	font-weight: 700;
	font-size: 2rem;
	color: rgba(255, 255, 255, 0.9);
	text-transform: uppercase;
	letter-spacing: 2px;
}

@keyframes scroll {
	0% { transform: translate3d(0, 0, 0); }
	100% { transform: translate3d(-100%, 0, 0); }
}

/* Listes Personnalisées */
.PlusList ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.PlusList li {
	position: relative;
	padding-left: 25px;
	margin-bottom: 10px;
	font-weight: 600;
}

.PlusList li::before {
	content: "+";
	position: absolute;
	left: 0;
	color: var(--primary);
	font-weight: bold;
	font-size: 1.2rem;
}

/* Parcours : Conservation de l'effet d'origine au survol */
.BorderList ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.BorderList ul li {
	position: relative;
	left: 0;
	color: var(--text-main);
	margin: 8px 0;
	border-left: 3px solid var(--primary);
	border-radius: 0 6px 6px 0;
	transition: 0.4s ease;
	cursor: pointer;
	overflow: hidden;
	background: #ffffff;
	box-shadow: var(--card-shadow);
}

.BorderList ul li:hover {
	left: 8px;
	box-shadow: var(--card-shadow-hover);
}

.BorderList ul li span {
	position: relative;
	padding: 10px 14px;
	display: block;
	box-sizing: border-box;
	z-index: 1;
	transition: 0.4s ease;
}

.BorderList ul li:hover span {
	color: #ffffff;
}

.BorderList ul li:hover span .legend {
	color: #e2e8f0;
}

.BorderList ul li:before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: var(--primary);
	transform: scaleX(0);
	transform-origin: left;
	transition: 0.4s ease;
}

.BorderList ul li:hover:before {
	transform: scaleX(1);
}

/* Réalisations : Bouton discret style ghost */
.toggle-realisations-wrapper {
	text-align: center;
	margin: 30px 0;
}

.btn-toggle-discrete {
	background: transparent;
	color: var(--text-muted);
	border: 1px solid #cbd5e1;
	border-radius: 20px;
	padding: 8px 18px;
	font-size: 0.85rem;
	font-weight: 600;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	transition: var(--transition);
}

.btn-toggle-discrete:hover {
	color: var(--primary);
	border-color: var(--primary);
	background-color: #ffffff;
}

.btn-toggle-discrete .icon {
	font-size: 1rem;
	line-height: 1;
	transition: var(--transition);
}

.btn-toggle-discrete.active .icon {
	transform: rotate(45deg);
}

#realisation {
	display: none;
	opacity: 0;
	transition: opacity 0.4s ease-in-out;
}

#realisation.show {
	display: block;
	opacity: 1;
}

.photo-wall {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 20px;
	width: 100%;
}

.photo-card {
	background: var(--card-bg);
	border-radius: 8px;
	overflow: hidden;
	box-shadow: var(--card-shadow);
	transition: var(--transition);
	height: 200px;
}

.photo-card:hover {
	transform: translateY(-5px);
	box-shadow: var(--card-shadow-hover);
}

.photo-card img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: var(--transition);
}

.photo-card:hover img {
	transform: scale(1.05);
}

/* Formulaire de Contact */
.contactform label {
	font-weight: 600;
	margin-bottom: 8px;
	display: block;
}

.contactform input[type=text],
.contactform input[type=tel],
.contactform textarea {
	width: 100%;
	padding: 14px 18px;
	margin-bottom: 20px;
	box-sizing: border-box;
	border: 2px solid #e2e8f0;
	border-radius: 8px;
	font-family: inherit;
	transition: var(--transition);
	background: #ffffff;
}

.contactform input[type=text]:focus,
.contactform input[type=tel]:focus,
.contactform textarea:focus {
	border-color: var(--primary);
	outline: none;
	box-shadow: 0 0 0 3px rgba(28, 75, 150, 0.15);
}

.contactform input[type=button] {
	background-color: var(--primary);
	color: #ffffff;
	min-width: 200px;
	padding: 14px 28px;
	border: none;
	border-radius: 8px;
	font-weight: 700;
	cursor: pointer;
	transition: var(--transition);
}

.contactform input[type=button]:hover {
	background-color: var(--primary-hover);
	transform: translateY(-2px);
}

.form_error_msg, .ErrorMessage {
	font-weight: bold;
	color: #e11d48;
	margin-bottom: 10px;
}

footer {
	width: 100%;
	padding: 20px 0;
	background-color: var(--primary);
	text-align: center;
	font-size: 0.9rem;
	color: #ffffff;
}

footer a {
	text-decoration: underline;
	color: #ffffff;
}

/* Responsive Design */
@media screen and (max-width: 1024px) {
	.FrameTitle { font-size: 3rem; }
	.subTitle { font-size: 1.1rem; }
	.float-left30, .float-left50, .float-left20, .float-left70 {
		float: none;
		width: 100%;
	}
	#a-propos-data { padding-left: 0; margin-top: 30px; }
	.row-block { flex: 1 1 calc(50% - 16px); }
	
	.experiences-data-title,
	.experiences-data-content {
		float: none;
		width: 100% !important;
	}

	.experiences-data-title {
		margin-top: 15px;
		margin-bottom: 5px;
	}

	.spacer-e {
		display: none;
	}
}

@media screen and (max-width: 640px) {
	.FrameTitle { font-size: 2.2rem; }
	.row-block { flex: 1 1 100%; }
	.photo-wall { grid-template-columns: repeat(auto-fill, minmax(100%, 1fr)); }
	.width90 { width: 100%; }
}

/* ==========================================
   VERSION IMPRESSION / CV A4 (1 PAGE)
   ========================================== */
@media print {
	@page {
		size: A4 portrait;
		margin: 8mm 10mm;
	}

	html, body {
		width: 100%;
		height: 100%;
		margin: 0 !important;
		padding: 0 !important;
		background: #ffffff !important;
		color: #1e293b !important;
		font-size: 11px !important;
		line-height: 1.25 !important;
		-webkit-print-color-adjust: exact !important;
		print-color-adjust: exact !important;
	}

	/* Masquer les sections non indispensables au CV papier */
	#intro, 
	#bandeau01, 
	.toggle-realisations-wrapper, 
	#realisation, 
	#contact, 
	footer, 
	header.intro,
	.spacer, 
	.spacer-e {
		display: none !important;
	}

	/* En-tête d'impression spécifique */
	.print-header {
		display: block !important;
		border-bottom: 2px solid #1c4b96;
		padding-bottom: 8px;
		margin-bottom: 12px;
	}

	.print-header h1 {
		font-size: 1.6rem !important;
		margin: 0 0 2px 0 !important;
		color: #1c4b96 !important;
		text-transform: uppercase;
		font-weight: 700;
	}

	.print-header .print-subtitle {
		font-size: 0.95rem !important;
		font-weight: 600;
		color: #475569;
		margin-bottom: 4px;
	}

	.print-header .print-contact {
		font-size: 0.8rem !important;
		color: #64748b;
	}

	/* Structuration des sections */
	section {
		padding: 0 !important;
		margin-bottom: 10px !important;
		page-break-inside: avoid;
		break-inside: avoid;
	}

	.MainContent {
		width: 100% !important;
		max-width: none !important;
		margin: 0 !important;
	}

	.section-title {
		font-size: 0.95rem !important;
		padding-bottom: 2px !important;
		margin-bottom: 8px !important;
		border-bottom: 2px solid #1c4b96 !important;
		color: #1c4b96 !important;
	}

	/* Section À propos */
	.a-propos-description-title {
		font-size: 0.9rem !important;
	}
	
	.a-propos-description-subtitle {
		font-size: 0.8rem !important;
	}

	#a-propos-data {
		padding-left: 15px !important;
	}

	.a-propos-data-title, .a-propos-data-content {
		font-size: 0.8rem !important;
	}

	.a-propos-data-content li {
		margin-bottom: 4px !important;
	}

	/* Cards Connaissances & Compétences */
	.row-container {
		gap: 6px !important;
	}

	.row-block {
		flex: 1 1 calc(33.333% - 6px) !important;
		min-width: 0 !important;
	}

	.row-block-content {
		padding: 4px 8px !important;
		border: 1px solid #cbd5e1 !important;
		box-shadow: none !important;
		border-radius: 4px !important;
		background: #f8fafc !important;
	}

	.BlocContent-content {
		font-size: 0.75rem !important;
	}

	.BlocContent-date {
		font-size: 0.65rem !important;
		padding: 1px 4px !important;
		background: #e2e8f0 !important;
	}

	/* Section Parcours */
	.PlusList li {
		padding-left: 14px !important;
		margin-bottom: 3px !important;
		font-size: 0.75rem !important;
	}

	.PlusList li::before {
		font-size: 0.9rem !important;
	}

	.experiences-data-title {
		font-size: 0.8rem !important;
	}

	.BorderList ul li {
		margin: 4px 0 !important;
		border-left: 2px solid #1c4b96 !important;
		box-shadow: none !important;
		background: transparent !important;
	}

	.BorderList ul li span {
		padding: 2px 6px !important;
		font-size: 0.78rem !important;
	}

	.legend {
		font-size: 0.7rem !important;
	}
}

/* En-tête masqué à l'écran */
.print-header {
	display: none;
}