@font-face {
	font-family: "IBM Plex Sans";
	src: url('Font/IBMPlexSans-VariableFont_wdth,wght.ttf') format('truetype');
	font-style: normal;
}
@font-face {
	font-family: "IBM Plex Sans";
	src: url('Font/IBMPlexSans-Italic-VariableFont_wdth,wght.ttf') format('truetype');
	font-style: italic;
}

html, body {
	background-color: #9ac4ee;
	background-image: url('Img/fond.png');
	background-repeat: repeat;
	background-size: auto;
	font-family: "IBM Plex Sans", Arial, sans-serif;
	min-height: 100vh;
	margin: 0;
}

/* ── LAYOUT ── */
#layout {
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 5vh 5vw;
	box-sizing: border-box;
}

/* ── FENÊTRE CV ── */
.win-cv {
	position: relative;
	width: 60vw;
	height: 68vh;
	max-width: 100%;
	background-color: #ffffff;
	border: 1px solid #817e7b;
	border-radius: 4px;
	padding: 0;
	display: flex;
	flex-direction: column;
	box-shadow: 0 8px 28px rgba(75, 86, 91, 0.18);
	overflow: hidden;
}

/* ── TITLEBAR ── */
.titlebar {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	height: 24px;
	background: #fffbf7;
	color: #1a1a1a;
	padding-left: 12px;
	font-size: 9pt;
	font-weight: 400;
	flex-shrink: 0;
	border-bottom: 1px solid #817e7b;
	box-sizing: border-box;
}

.titlebar-left {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 9pt;
}

/* ── FENÊTRE SCROLLABLE ── */
.win-scroll {
	overflow-y: auto;
	flex: 1;
	background: #faf8f5;
	display: flex;
	flex-direction: column;
	min-height: 0;
}

/* ── STATUSBAR ── */
.statusbar {
	background: #f8f5f2;
	border-top: 1px solid #565655;
	font-size: 9pt;
	color: #999;
	padding: 4px 12px;
	flex-shrink: 0;
}

a { color: #0000EE; text-decoration: underline; }
a:visited { color: #551A8B; }
a:active  { color: #FF0000; }

p { margin: 0 0 1px 0; }

/* ── CV HEADER (titre + intro) ── */
.cv-header {
	display: grid;
	grid-template-columns: 1fr 2fr;
	border-bottom: 1px solid #565655;
	flex-shrink: 0;
}
.cv-title {
	margin: 0;
	padding: 20px 14px;
	border-right: 1px solid #565655;
	display: flex;
	align-items: center;
	font-size: 38px;
	font-weight: 400;
	line-height: 1.1;
	color: #222;
}
.cv-intro {
	margin: 0;
	padding: 20px 14px;
	font-size: 9pt;
	line-height: 1.5;
	color: #222;
}
.cv-note {
	border-bottom: 1px solid #565655;
	display: flex;
	align-items: stretch;
	font-size: 9pt;
	line-height: 1.5;
	color: #222;
	flex-shrink: 0;
}
.cv-note-cell {
	margin: 0;
	padding: 6px clamp(8px, 2vw, 52px) 6px 14px;
	border-right: 1px solid #565655;
	display: flex;
	align-items: center;
	white-space: nowrap;
}
.cv-note-cell:last-child { border-right: none; }
.cv-contact-link {
	color: inherit;
	text-decoration: none;
}
.cv-contact-link.green {
	color: #c311c0;
}

/* ── CV PROFIL (photo + nom + bio) ── */
.cv-profile {
	display: flex;
	gap: 10px;
	align-items: stretch;
	margin-bottom: 12px;
}
.cv-photo {
	width: 90px;
	height: 106px;
	flex-shrink: 0;
	background: #cfe3fb;
	border-radius: 2px;
	object-fit: cover;
}
.cv-profile-text {
	min-width: 0;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
}
.cv-name {
	font-weight: 500;
	margin: 0 0 3px 0 !important;
}
.cv-bio {
	color: #626262;
	font-size: 9pt;
	margin: 0 !important;
}
.cv-divider {
	border: none;
	border-top: 1px solid #565655;
	margin: 14px -14px;
}

/* ── CV ── */
.cv-grid {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	flex: 1;
	min-height: 0;
	overflow-y: auto;
	font-size: 9pt;
	line-height: 1.5;
	color: #222;
}
.cv-col {
	padding: 16px 14px;
	border-right: 1px solid #565655;
}
.cv-col:last-child { border-right: none; }
.cv-heading {
	font-size: 11pt;
	font-weight: 500;
	margin: 0 0 10px 0;
	line-height: 1.1;
}
.cv-subheading {
	font-size: 10pt;
	font-weight: 500;
	margin: 14px 0 5px 0;
}
.cv-label {
	font-weight: 500;
	text-decoration: underline;
	margin: 10px 0 2px 0 !important;
}

.cv-row {
	display: flex;
	justify-content: space-between;
	margin-bottom: 1px;
}
.cv-entry { margin-bottom: 12px; }
.cv-date {
	color: #888;
	font-size: 8pt;
	margin: 0 0 1px 0 !important;
}
.cv-org {
	font-weight: 500;
	margin: 0 0 2px 0 !important;
}
.cv-desc {
	color: #626262;
	margin: 0 !important;
}
.cv-section-gap { margin-top: 16px; }

/* ── INTERMÉDIAIRE : cv-note en vertical avant le mobile complet ── */
@media (max-width: 1000px) and (min-width: 821px) {
	.cv-note {
		flex-direction: column;
	}
	.cv-note-cell {
		padding: 6px 14px;
		border-right: none;
		border-bottom: 1px solid #565655;
		white-space: normal;
	}
	.cv-note-cell:last-child { border-bottom: none; }
}

/* ── RESPONSIVE MOBILE ── */
@media (max-width: 820px) {
	html, body {
		background-size: cover;
		background-attachment: scroll;
	}

	#layout {
		padding: 62px 72px;
		align-items: flex-start;
	}

	.win-cv {
		width: 100%;
		height: auto;
		max-height: none;
	}

	.cv-header {
		grid-template-columns: 1fr;
	}
	.cv-title {
		border-right: none;
		border-bottom: 1px solid #565655;
	}

	.cv-note {
		flex-direction: column;
	}
	.cv-note-cell {
		padding: 6px 14px;
		border-right: none;
		border-bottom: 1px solid #565655;
	}
	.cv-note-cell:last-child { border-bottom: none; }

	.cv-grid {
		grid-template-columns: 1fr;
		overflow-y: visible;
	}

	.cv-col {
		border-right: none;
		border-bottom: 1px solid #565655;
	}
	.cv-col:last-child { border-bottom: none; }

	.win-scroll {
		max-height: none;
		overflow-y: visible;
	}
}
