/**
 * css/single-speaker.css
 * Nouveau style pour la fiche intervenant/formateur.
 */

/* Override : pas de padding-bottom:40px hérité de main p sur cette page */
#page-speaker p,
main #page-speaker p,
.sp-page p {
	padding-bottom: 0 !important;
}

:root {
	--sp-primary: #F64522;
	--sp-primary-light: #FFF2EE;
	--sp-primary-dark: #dd3614;
	--sp-text: #1a1a2e;
	--sp-text-muted: #6b7280;
	--sp-text-faint: #9ca3af;
	--sp-border: #e5e7eb;
	--sp-border-soft: #f3f4f6;
	--sp-bg-soft: #fafafa;
	--sp-radius: 12px;
	--sp-radius-sm: 8px;
	--sp-transition: 180ms ease;
	--sp-hero-bg: linear-gradient(135deg, #FFF2EE 0%, #FFE8D6 50%, #EEF5FF 100%);
}

.sp-page {
	max-width: 1100px;
	margin: 0 auto;
	padding: 32px 24px 80px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif;
	color: var(--sp-text);
	line-height: 1.6;
}

/* ═══════════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════════ */
.sp-page__hero {
	background: #fff;
	border-radius: 20px;
	padding: 40px;
	margin-bottom: 40px;
	position: relative;
	overflow: hidden;
}
.sp-page__hero-inner {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 32px;
	align-items: center;
	position: relative;
	z-index: 1;
}
.sp-page__photo {
	width: 240px;
	height: auto;
	border-radius: 24px;
	overflow: hidden;
	background: #fff;
	flex-shrink: 0;
}
.sp-page__photo img {
	width: 100%;
	height: auto;
	display: block;
}
.sp-page__photo-placeholder {
	width: 100%;
	aspect-ratio: 1 / 1;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, #FFF2EE 0%, #FFE8D6 100%);
	color: var(--sp-primary);
}
.sp-page__identity {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

/* Ligne "Dr Prénom Nom" - préfixe inline avec le nom */
.sp-page__name {
	font-size: clamp(28px, 4vw, 48px);
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: -0.02em;
	margin: 0;
	color: var(--sp-text);
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 0.4em;
}
.sp-page__prefix {
	font-size: inherit;
	font-weight: inherit;
	line-height: inherit;
	color: inherit;
	text-transform: none;
	letter-spacing: inherit;
	padding: 0;
	background: none;
	box-shadow: none;
	display: inline;
}
.sp-page__tagline {
	font-size: 17px;
	line-height: 1.6;
	color: var(--sp-text-muted);
	max-width: 620px;
	margin-top: 8px;
}

/* Social */
.sp-page__social {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	margin-top: 16px;
}
.sp-page__social-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px; height: 40px;
	background: #fff;
	border: 1px solid rgba(0,0,0,.05);
	border-radius: 50%;
	color: var(--sp-text);
	transition: all var(--sp-transition);
	box-shadow: 0 2px 6px rgba(0,0,0,.05);
}
.sp-page__social-link svg { width: 18px; height: 18px; display: block; }
.sp-page__social-link:hover {
	background: var(--sp-primary);
	color: #fff;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(246,69,34,.25);
}

/* ═══════════════════════════════════════════════════════════════
   SECTIONS
   ═══════════════════════════════════════════════════════════════ */
.sp-page__body {
	display: flex;
	flex-direction: column;
	gap: 28px;
}
.sp-section {
	background: #fff;
	border: 1px solid var(--sp-border);
	border-radius: var(--sp-radius);
	padding: 28px 32px;
	transition: box-shadow var(--sp-transition);
}
.sp-section:hover {
	box-shadow: 0 4px 20px rgba(0,0,0,.04);
}
.sp-section__title {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--sp-text);
	margin: 0 0 24px;
	padding-bottom: 14px;
	border-bottom: 1px solid var(--sp-border-soft);
}
.sp-section__title::before {
	content: "";
	display: inline-block;
	width: 10px; height: 10px;
	background: var(--sp-primary);
	border-radius: 50%;
	flex-shrink: 0;
}
.sp-section__content {
	font-size: 16px;
	line-height: 1.7;
	color: var(--sp-text);
}
.sp-rich p { margin: 0 0 14px; }
.sp-rich p:last-child { margin-bottom: 0; }
.sp-rich strong { color: var(--sp-text); font-weight: 700; }
.sp-rich a { color: var(--sp-primary); text-decoration: underline; text-underline-offset: 3px; }
.sp-rich a:hover { color: var(--sp-primary-dark); }
.sp-rich ul, .sp-rich ol { margin: 0 0 14px; padding-left: 24px; }
.sp-rich li { margin-bottom: 6px; }

/* ═══════════════════════════════════════════════════════════════
   TIMELINE (parcours, formation)
   ═══════════════════════════════════════════════════════════════ */
.sp-timeline {
	list-style: none;
	padding: 0;
	margin: 0;
	position: relative;
}
.sp-timeline::before {
	content: "";
	position: absolute;
	left: 100px;
	top: 8px; bottom: 8px;
	width: 2px;
	background: var(--sp-border-soft);
}
.sp-timeline__item {
	display: grid;
	grid-template-columns: 100px 1fr;
	gap: 24px;
	padding: 0 0 24px;
	position: relative;
}
.sp-timeline__item::before {
	content: "";
	position: absolute;
	left: 94px;
	top: 6px;
	width: 14px; height: 14px;
	background: var(--sp-primary);
	border: 3px solid #fff;
	border-radius: 50%;
	box-shadow: 0 0 0 2px var(--sp-primary);
	z-index: 1;
}
.sp-timeline__item:last-child { padding-bottom: 0; }
.sp-timeline__date {
	font-size: 13px;
	font-weight: 600;
	color: var(--sp-primary);
	letter-spacing: .04em;
	padding-top: 2px;
	text-align: right;
	padding-right: 20px;
}
.sp-timeline__body {
	padding-left: 12px;
}
.sp-timeline__title {
	font-size: 16px;
	font-weight: 600;
	color: var(--sp-text);
	line-height: 1.4;
}
.sp-timeline__org {
	font-size: 14px;
	color: var(--sp-text-muted);
	margin-top: 3px;
}
.sp-timeline__desc {
	font-size: 14px;
	color: var(--sp-text-muted);
	line-height: 1.5;
	margin-top: 6px;
	padding-top: 6px;
	border-top: 1px dashed var(--sp-border-soft);
}

/* ═══════════════════════════════════════════════════════════════
   LISTES (sociétés, publications, conférences, custom)
   ═══════════════════════════════════════════════════════════════ */
.sp-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.sp-list__item {
	padding: 14px 16px;
	background: var(--sp-bg-soft);
	border: 1px solid var(--sp-border-soft);
	border-radius: var(--sp-radius-sm);
	transition: all var(--sp-transition);
	display: flex;
	flex-direction: column;
	gap: 3px;
}
.sp-list__item:hover {
	border-color: var(--sp-primary);
	background: var(--sp-primary-light);
}
.sp-list__link {
	display: flex;
	flex-direction: column;
	gap: 3px;
	color: inherit;
	text-decoration: none;
}
.sp-list__link::after {
	content: "↗";
	position: absolute;
	right: 16px;
	top: 14px;
	color: var(--sp-text-faint);
	font-size: 14px;
	opacity: 0;
	transition: opacity var(--sp-transition), transform var(--sp-transition);
}
.sp-list__item:hover .sp-list__link::after {
	opacity: 1;
	color: var(--sp-primary);
	transform: translate(2px, -2px);
}
.sp-list__item { position: relative; }
.sp-list__title {
	font-size: 15px;
	font-weight: 600;
	color: var(--sp-text);
	line-height: 1.4;
	padding-right: 24px;
}
.sp-list__meta {
	font-size: 13px;
	color: var(--sp-text-muted);
	font-weight: 400;
}
.sp-list__desc {
	font-size: 14px;
	color: var(--sp-text-muted);
	margin-top: 2px;
}
.sp-list__badge {
	display: inline-block;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--sp-primary);
	background: var(--sp-primary-light);
	padding: 3px 8px;
	border-radius: 4px;
	margin-right: 8px;
	vertical-align: middle;
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
	.sp-page { padding: 16px 16px 60px; }
	.sp-page__hero { padding: 24px; border-radius: 16px; }
	.sp-page__hero-inner {
		grid-template-columns: 1fr;
		gap: 20px;
		text-align: center;
	}
	.sp-page__photo { width: 140px; height: 140px; margin: 0 auto; }
	.sp-page__prefix { align-self: center; }
	.sp-page__social { justify-content: center; }
	.sp-section { padding: 20px 18px; }
	.sp-section__title { font-size: 12px; margin-bottom: 18px; }
	.sp-timeline::before { left: 8px; }
	.sp-timeline__item {
		grid-template-columns: 1fr;
		gap: 4px;
		padding-left: 30px;
	}
	.sp-timeline__item::before { left: 1px; }
	.sp-timeline__date {
		text-align: left;
		padding-right: 0;
		padding-top: 0;
	}
	.sp-timeline__body { padding-left: 0; }
}
