/**
 * Accueil AFMED — mise en page congrès.
 * Charte : mêmes jetons que afmed-branding.css.
 */

.afmed-home #main,
.afmed-home .afmed-home-main {
	padding: 0;
	background: var(--afmed-surface);
}

.afmed-home .header-advertise,
.afmed-home #breaking-news {
	display: none;
}

.afmed-home .middle-header-wrapper {
	padding: 14px 0;
}

.afmed-wrap {
	width: min(1160px, calc(100% - 40px));
	margin: 0 auto;
}

.afmed-kicker {
	margin: 0 0 10px;
	font-family: var(--afmed-sans-cond);
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--afmed-cyan);
}

.afmed-kicker--navy {
	color: var(--afmed-navy);
}

.afmed-section {
	padding: 72px 0 64px;
}

.afmed-section--paper {
	background: var(--afmed-paper);
}

.afmed-section__head {
	max-width: 680px;
	margin-bottom: 36px;
}

.afmed-section__head h2,
.afmed-hero__title,
.afmed-join h2 {
	font-family: var(--afmed-serif);
	font-weight: 600;
	letter-spacing: -0.02em;
	color: var(--afmed-ink);
	margin: 0 0 12px;
}

.afmed-section__head h2 {
	font-size: clamp(28px, 2.6vw, 36px);
	line-height: 1.25;
}

.afmed-section__head p {
	margin: 0;
	color: var(--afmed-ink-soft);
	font-size: 18px;
	line-height: 1.65;
}

.afmed-section__more {
	margin: 28px 0 0;
}

.afmed-section__more a {
	font-weight: 600;
	font-size: 17px;
}

/* Hero */

.afmed-hero {
	position: relative;
	color: #fff;
	min-height: clamp(420px, 58vh, 560px);
	display: flex;
	align-items: center;
	background-color: var(--afmed-navy-deep);
	background-image:
		linear-gradient(105deg, rgba(10, 31, 92, 0.82) 0%, rgba(11, 18, 32, 0.55) 52%, rgba(11, 18, 32, 0.72) 100%),
		var(--afmed-hero-image);
	background-size: cover;
	background-position: center 30%;
	padding: 72px 0 80px;
}

.afmed-hero__inner {
	max-width: 680px;
	margin-left: 0;
	margin-right: auto;
}

.afmed-slider {
	position: relative;
	background: var(--afmed-paper);
	color: var(--afmed-ink);
}

.afmed-slider__viewport {
	position: relative;
	min-height: clamp(520px, 72vh, 680px);
}

.afmed-slider__slide {
	position: relative;
	min-height: clamp(520px, 72vh, 680px);
	display: flex;
	align-items: center;
	padding: 56px 0 88px;
	background-color: #d8dee4;
	background-image:
		linear-gradient(105deg, rgba(243, 246, 248, 0.94) 0%, rgba(243, 246, 248, 0.72) 42%, rgba(20, 24, 32, 0.22) 100%),
		var(--afmed-hero-image);
	background-size: cover;
	background-position: center 28%;
}

.afmed-slider__slide[hidden] {
	display: none;
}

.afmed-slider__slide.is-active {
	animation: afmed-slide-in 0.55s ease;
}

@keyframes afmed-slide-in {
	from {
		opacity: 0.35;
		transform: translateX(18px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.afmed-slider__slide.is-active {
		animation: none;
	}
}

.afmed-slider__tools {
	position: absolute;
	left: 50%;
	bottom: 20px;
	transform: translateX(-50%);
	width: min(1160px, calc(100% - 40px));
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 10px;
	z-index: 3;
	margin: 0;
}

.afmed-slider__dots {
	display: flex;
	gap: 8px;
}

.afmed-slider__dots button {
	width: 10px;
	height: 10px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(20, 20, 20, 0.28);
	cursor: pointer;
}

.afmed-slider__dots button[aria-current="true"] {
	background: var(--afmed-navy);
	box-shadow: 0 0 0 2px var(--afmed-cyan);
}

.afmed-slider__btn {
	width: 42px;
	height: 42px;
	padding: 0;
	border: 1px solid var(--afmed-line);
	border-radius: var(--afmed-radius-sm);
	background: var(--afmed-surface);
	color: var(--afmed-navy);
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
}

.afmed-slider__btn:hover,
.afmed-slider__btn:focus-visible {
	border-color: var(--afmed-navy);
	background: var(--afmed-navy);
	color: #fff;
}

.afmed-next__poster--photo {
	aspect-ratio: 4 / 5;
}

.afmed-next__poster--photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.afmed-next {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(240px, 0.7fr);
	gap: 40px;
	align-items: center;
}

.afmed-next__num {
	margin: 0 0 4px;
	font-family: var(--afmed-serif);
	font-size: clamp(72px, 10vw, 112px);
	font-weight: 600;
	line-height: 0.85;
	letter-spacing: -0.04em;
	color: var(--afmed-navy);
}

.afmed-next__num sup {
	font-size: 0.35em;
	top: -0.7em;
}

.afmed-next__slogan {
	margin: 0 0 12px;
	font-family: var(--afmed-sans-cond);
	font-size: 16px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--afmed-cyan);
}

.afmed-next__open {
	margin: 0 0 22px;
	font-weight: 600;
	color: var(--afmed-ink-soft);
}

.afmed-slider .afmed-hero__title {
	color: var(--afmed-ink);
}

.afmed-slider .afmed-hero__lead,
.afmed-slider .afmed-hero__edition {
	color: var(--afmed-ink-soft);
}

.afmed-slider .afmed-btn--solid {
	background: var(--afmed-navy);
	color: #fff !important;
}

.afmed-slider .afmed-btn--solid:hover {
	background: var(--afmed-navy-hover);
	color: #fff !important;
}

.afmed-slider .afmed-btn--ghost {
	color: var(--afmed-navy) !important;
	border-color: var(--afmed-navy);
}

.afmed-slider .afmed-btn--ghost:hover {
	background: var(--afmed-navy);
	color: #fff !important;
}

.afmed-next__poster {
	margin: 0;
	border-radius: var(--afmed-radius);
	overflow: hidden;
	box-shadow: 0 24px 50px rgba(0, 0, 0, 0.35);
	border: 1px solid rgba(255, 255, 255, 0.16);
	background: #0b1220;
}

.afmed-next__poster img {
	width: 100%;
	height: auto;
	display: block;
}

.afmed-next-bar {
	background: var(--afmed-surface);
	color: var(--afmed-ink);
	padding: 22px 0;
	border-top: 1px solid var(--afmed-line);
	border-bottom: 1px solid var(--afmed-line);
}

.afmed-next-bar__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
}

.afmed-next-bar__item strong {
	display: block;
	font-family: var(--afmed-sans-cond);
	font-size: 13px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--afmed-cyan);
	margin-bottom: 4px;
}

.afmed-next-bar__item span {
	display: block;
	font-size: 15px;
	line-height: 1.4;
}

.afmed-hero__edition {
	margin: 0 0 14px;
	font-size: 17px;
	font-weight: 500;
	color: rgba(255, 255, 255, 0.88);
}

.afmed-hero__title {
	color: #fff;
	font-size: clamp(32px, 5vw, 48px);
	line-height: 1.15;
	margin-bottom: 18px;
}

.afmed-hero__lead {
	margin: 0 0 28px;
	font-size: 19px;
	line-height: 1.65;
	color: rgba(255, 255, 255, 0.92);
	max-width: 40rem;
}

.afmed-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.afmed-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 12px 20px;
	font-family: var(--afmed-sans);
	font-size: 16px;
	font-weight: 600;
	letter-spacing: 0.01em;
	text-decoration: none;
	border-radius: var(--afmed-radius-sm);
	line-height: 1.35;
	transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.afmed-btn:hover {
	transform: translateY(-2px);
}

.afmed-btn--solid {
	background: #fff;
	color: var(--afmed-navy-deep) !important;
}

.afmed-btn--solid:hover {
	background: var(--afmed-paper);
	color: var(--afmed-navy) !important;
}

.afmed-btn--ghost {
	background: transparent;
	color: #fff !important;
	border: 1px solid rgba(255, 255, 255, 0.45);
}

.afmed-btn--ghost:hover {
	border-color: #fff;
	color: #fff !important;
}

/* Chiffres */

.afmed-stats {
	background: var(--afmed-navy-deep);
	color: #fff;
	padding: 36px 0;
}

.afmed-stats__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px 20px;
}

.afmed-stat strong {
	display: block;
	font-family: var(--afmed-serif);
	font-size: 32px;
	font-weight: 600;
	letter-spacing: -0.02em;
	line-height: 1.1;
	margin-bottom: 6px;
}

.afmed-stat span {
	display: block;
	font-size: 15px;
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.82);
}

/* Parcours des quatre journées */

.afmed-journey__rail {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 8px;
	margin: 0 0 22px;
}

.afmed-journey__tab {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	padding: 12px 14px;
	border: 1px solid var(--afmed-line);
	border-radius: var(--afmed-radius-sm);
	background: var(--afmed-surface);
	color: var(--afmed-ink);
	text-align: left;
	cursor: pointer;
	font: inherit;
	transition: border-color 0.2s ease, background 0.2s ease;
}

.afmed-journey__tab:hover,
.afmed-journey__tab:focus-visible {
	border-color: var(--afmed-navy);
}

.afmed-journey__tab.is-active {
	background: var(--afmed-navy);
	border-color: var(--afmed-navy);
	color: #fff;
}

.afmed-journey__num {
	flex-shrink: 0;
	width: 32px;
	height: 32px;
	display: grid;
	place-items: center;
	border: 1px solid currentColor;
	font-family: var(--afmed-sans-cond);
	font-size: 15px;
	font-weight: 700;
}

.afmed-journey__tab-text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.afmed-journey__tab-text strong {
	font-family: var(--afmed-sans-cond);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.25;
}

.afmed-journey__tab-text em {
	font-style: normal;
	font-size: 12px;
	opacity: 0.78;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.afmed-journey__stage {
	background: var(--afmed-surface);
	border: 1px solid var(--afmed-line);
	border-radius: var(--afmed-radius);
	overflow: hidden;
	box-shadow: var(--afmed-shadow-soft);
}

.afmed-journey__panel {
	display: grid;
	grid-template-columns: 1.15fr 1fr;
	min-height: 340px;
}

.afmed-journey__panel[hidden] {
	display: none;
}

.afmed-journey__visual {
	margin: 0;
	background: #0b1220;
	overflow: hidden;
}

.afmed-journey__visual img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.afmed-journey__copy {
	padding: 36px 32px;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.afmed-journey__when {
	margin: 0 0 10px;
	font-family: var(--afmed-sans-cond);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--afmed-cyan);
}

.afmed-journey__copy h3 {
	font-family: var(--afmed-serif);
	font-size: clamp(26px, 3vw, 34px);
	line-height: 1.2;
	margin: 0 0 14px;
}

.afmed-journey__copy p {
	margin: 0 0 22px;
	color: var(--afmed-ink-soft);
	font-size: 17px;
	line-height: 1.7;
}

.afmed-btn--navy {
	align-self: flex-start;
	background: var(--afmed-navy);
	color: #fff !important;
}

.afmed-btn--navy:hover,
.afmed-btn--navy:focus-visible {
	background: var(--afmed-navy-hover);
	color: #fff !important;
}

/* Jours (page édition) */

.afmed-days__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0;
	border-top: 1px solid var(--afmed-line);
}

.afmed-day {
	padding: 28px 28px 28px 0;
	border-bottom: 1px solid var(--afmed-line);
}

.afmed-day:nth-child(odd) {
	padding-right: 36px;
	border-right: 1px solid var(--afmed-line);
}

.afmed-day:nth-child(even) {
	padding-left: 36px;
}

.afmed-day__meta {
	display: block;
	font-family: var(--afmed-sans-cond);
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--afmed-cyan);
	margin-bottom: 8px;
}

.afmed-day h3 {
	font-family: var(--afmed-serif);
	font-size: 22px;
	margin-bottom: 10px;
}

.afmed-day p {
	margin: 0;
	color: var(--afmed-ink-soft);
	font-size: 17px;
	line-height: 1.65;
}

.afmed-photos {
	list-style: none;
	margin: 0 0 36px;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
}

.afmed-photos a {
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: var(--afmed-paper);
}

.afmed-photos img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Implication */

.afmed-story--banner {
	margin-bottom: 22px;
	padding: 18px 22px;
	display: block;
}

.afmed-story--banner p + p,
.afmed-story--banner .afmed-story__label {
	margin-bottom: 6px;
}

.afmed-carousel {
	position: relative;
}

.afmed-carousel__toolbar {
	display: flex;
	justify-content: flex-end;
	gap: 8px;
	margin-bottom: 12px;
}

.afmed-carousel__btn {
	width: 42px;
	height: 42px;
	padding: 0;
	border: 1px solid var(--afmed-line) !important;
	background: var(--afmed-surface) !important;
	color: var(--afmed-navy) !important;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	border-radius: var(--afmed-radius-sm);
}

.afmed-carousel__btn:hover:not(:disabled) {
	background: var(--afmed-navy) !important;
	border-color: var(--afmed-navy) !important;
	color: #fff !important;
}

.afmed-carousel__btn:disabled {
	opacity: 0.35;
	cursor: default;
}

.afmed-carousel__viewport {
	overflow: hidden;
}

.afmed-carousel__track {
	display: flex;
	gap: 22px;
	transition: transform 0.35s ease;
	will-change: transform;
}

.afmed-carousel__slide {
	flex: 0 0 calc(50% - 11px);
	min-width: 0;
}

.afmed-carousel__dots {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 16px;
}

.afmed-carousel__dots button {
	width: 9px;
	height: 9px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--afmed-line);
	cursor: pointer;
}

.afmed-carousel__dots button[aria-current="true"] {
	background: var(--afmed-navy);
}

.afmed-story {
	display: flex;
	flex-direction: column;
	background: var(--afmed-surface);
	border: 1px solid var(--afmed-line);
	border-radius: var(--afmed-radius);
	overflow: hidden;
	box-shadow: var(--afmed-shadow-soft);
}

.afmed-story__media {
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: var(--afmed-paper);
}

.afmed-story__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.afmed-story__body,
.afmed-story--note {
	padding: 20px 22px 22px;
}

.afmed-story__label {
	margin: 0 0 8px;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--afmed-navy);
}

.afmed-story h3 {
	font-family: var(--afmed-serif);
	font-size: 21px;
	margin-bottom: 10px;
}

.afmed-story h3 a {
	color: var(--afmed-ink);
	text-decoration: none;
}

.afmed-story h3 a:hover {
	color: var(--afmed-navy);
}

.afmed-story p {
	margin: 0;
	color: var(--afmed-ink-soft);
	font-size: 16px;
	line-height: 1.65;
}

.afmed-story--note {
	background: var(--afmed-navy-deep);
	border-color: var(--afmed-navy-deep);
	color: #fff;
	justify-content: center;
}

.afmed-story--note .afmed-story__label,
.afmed-story--note h3,
.afmed-story--note p {
	color: #fff;
}

.afmed-story--note p + p {
	margin-top: 16px;
}

.afmed-story--note a {
	color: #fff;
	font-weight: 600;
}

/* Mémoire scientifique */

.afmed-archive__head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 28px;
}

.afmed-archive__head .afmed-section__head,
.afmed-archive__head > div {
	max-width: 680px;
}

.afmed-archive__head h2 {
	font-family: var(--afmed-serif);
	font-weight: 600;
	font-size: clamp(28px, 2.6vw, 36px);
	line-height: 1.25;
	margin: 0 0 12px;
}

.afmed-archive__head p:last-child {
	margin: 0;
	color: var(--afmed-ink-soft);
	font-size: 18px;
	line-height: 1.65;
}

.afmed-archive__count {
	flex-shrink: 0;
	margin: 0;
	padding: 12px 16px;
	border: 1px solid var(--afmed-line);
	border-radius: var(--afmed-radius-sm);
	font-family: var(--afmed-sans-cond);
	font-size: 13px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--afmed-ink-soft);
	background: var(--afmed-surface);
}

.afmed-archive__count strong {
	display: block;
	font-family: var(--afmed-serif);
	font-size: 32px;
	font-weight: 600;
	letter-spacing: -0.03em;
	text-transform: none;
	color: var(--afmed-navy);
	line-height: 1;
	margin-bottom: 6px;
}

.afmed-archive__stage {
	display: grid;
	grid-template-columns: 0.92fr 1.08fr;
	align-items: stretch;
	min-height: 520px;
	border: 1px solid var(--afmed-line);
	background: var(--afmed-surface);
	overflow: hidden;
	border-radius: var(--afmed-radius);
	box-shadow: var(--afmed-shadow-soft);
}

.afmed-archive__poster {
	position: relative;
	display: block;
	min-height: 520px;
	overflow: hidden;
	background: #0b1220;
	color: #fff;
	text-decoration: none;
}

.afmed-archive__poster img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transform: scale(1.02);
	transition: transform 0.8s ease;
}

.afmed-archive__poster::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(10, 31, 92, 0.08) 20%, rgba(11, 18, 32, 0.78) 100%);
	pointer-events: none;
}

.afmed-archive__poster:hover img,
.afmed-archive__poster:focus-visible img {
	transform: scale(1.08);
}

.afmed-archive__poster-meta {
	position: absolute;
	left: 28px;
	right: 28px;
	bottom: 28px;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 6px;
}

.afmed-archive__poster-meta em {
	font-family: var(--afmed-sans-cond);
	font-style: normal;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--afmed-cyan);
}

.afmed-archive__poster-meta strong {
	font-family: var(--afmed-serif);
	font-size: clamp(26px, 2.6vw, 34px);
	font-weight: 600;
	line-height: 1.15;
	color: #fff;
}

.afmed-archive__poster-meta span {
	margin-top: 8px;
	font-weight: 600;
	font-size: 15px;
	color: #fff;
}

.afmed-archive__poster-meta span::after {
	content: " →";
	display: inline-block;
	transition: transform 0.25s ease;
}

.afmed-archive__poster:hover .afmed-archive__poster-meta span::after,
.afmed-archive__poster:focus-visible .afmed-archive__poster-meta span::after {
	transform: translateX(4px);
}

.afmed-archive__list {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.afmed-archive__card {
	flex: 1;
	display: grid;
	grid-template-columns: 44px 1fr;
	gap: 14px;
	align-items: start;
	min-height: 0;
	padding: 22px 26px 20px 22px;
	border-bottom: 1px solid var(--afmed-line);
	border-left: 3px solid transparent;
	background: var(--afmed-surface);
	color: inherit;
	text-decoration: none;
	transition: background 0.25s ease, border-color 0.25s ease;
}

.afmed-archive__card:last-child {
	border-bottom: none;
}

.afmed-archive__card:hover,
.afmed-archive__card:focus-visible {
	background: var(--afmed-paper);
	border-left-color: var(--afmed-cyan);
}

.afmed-archive__index {
	padding-top: 2px;
	font-family: var(--afmed-serif);
	font-size: 20px;
	font-weight: 600;
	letter-spacing: -0.03em;
	color: var(--afmed-navy);
	line-height: 1;
}

.afmed-archive__card-body {
	display: flex;
	flex-direction: column;
	min-width: 0;
	height: 100%;
}

.afmed-archive__mark {
	align-self: flex-start;
	margin-bottom: 8px;
	padding: 3px 7px;
	border: 1px solid var(--afmed-navy);
	color: var(--afmed-navy);
	font-family: var(--afmed-sans-cond);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.12em;
}

.afmed-archive__card h3 {
	font-family: var(--afmed-serif);
	font-size: clamp(18px, 1.7vw, 22px);
	line-height: 1.3;
	margin: 0 0 8px;
	color: var(--afmed-ink);
}

.afmed-archive__card p {
	margin: 0 0 12px;
	color: var(--afmed-ink-soft);
	font-size: 15px;
	line-height: 1.5;
}

.afmed-archive__go {
	margin-top: auto;
	font-weight: 600;
	font-size: 15px;
	color: var(--afmed-navy);
}

.afmed-archive__go::after {
	content: " →";
	display: inline-block;
	transition: transform 0.25s ease;
}

.afmed-archive__card:hover .afmed-archive__go::after,
.afmed-archive__card:focus-visible .afmed-archive__go::after {
	transform: translateX(4px);
}

/* Ancien bloc science (page interne éventuelle) */

.afmed-science__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1px;
	background: var(--afmed-line);
	border: 1px solid var(--afmed-line);
}

.afmed-science__visual {
	grid-column: 1 / -1;
	margin: 0;
	aspect-ratio: 21 / 8;
	overflow: hidden;
	background: var(--afmed-navy-deep);
}

.afmed-science__visual img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.afmed-talk {
	background: var(--afmed-surface);
	padding: 20px 22px;
	display: flex;
	gap: 16px;
	align-items: flex-start;
}

.afmed-talk__thumb {
	flex: 0 0 72px;
	width: 72px;
	height: 72px;
	overflow: hidden;
	background: var(--afmed-paper);
}

.afmed-talk__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.afmed-talk__thumb--doc {
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--afmed-navy);
	color: #fff !important;
	font-family: var(--afmed-sans-cond);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-decoration: none;
}

.afmed-talk h3 {
	font-family: var(--afmed-serif);
	font-size: 19px;
	margin-bottom: 10px;
}

.afmed-talk h3 a {
	color: var(--afmed-ink);
	text-decoration: none;
}

.afmed-talk h3 a:hover {
	color: var(--afmed-navy);
}

.afmed-talk p {
	margin: 0;
	color: var(--afmed-ink-soft);
	font-size: 16px;
	line-height: 1.6;
}

/* Années */

.afmed-years {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.afmed-years a,
.afmed-years span {
	display: inline-block;
	padding: 10px 14px;
	border: 1px solid var(--afmed-line);
	background: var(--afmed-surface);
	color: var(--afmed-ink);
	text-decoration: none;
	font-family: var(--afmed-sans-cond);
	font-weight: 700;
	font-size: 16px;
	letter-spacing: 0.04em;
	border-radius: var(--afmed-radius-sm);
}

.afmed-years a:hover,
.afmed-years a.is-current {
	background: var(--afmed-navy);
	border-color: var(--afmed-navy);
	color: #fff !important;
}

.afmed-years span.is-disabled {
	border-style: dashed;
	background: var(--afmed-paper);
	color: #8a93a0;
	cursor: default;
}

/* Nouvelles */

.afmed-news__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
}

.afmed-news__item {
	background: var(--afmed-surface);
	border: 1px solid var(--afmed-line);
	border-radius: var(--afmed-radius);
	overflow: hidden;
	box-shadow: var(--afmed-shadow-soft);
}

.afmed-news__item time,
.afmed-news__item h3 {
	padding-left: 16px;
	padding-right: 16px;
}

.afmed-news__item h3 {
	padding-bottom: 16px;
}

.afmed-news__item time {
	padding-top: 14px;
}

.afmed-news__media {
	display: block;
	margin-bottom: 0;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: var(--afmed-paper);
}

.afmed-news__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.afmed-news time {
	display: block;
	font-size: 14px;
	color: var(--afmed-ink-soft);
	margin-bottom: 6px;
}

.afmed-news h3 {
	font-family: var(--afmed-serif);
	font-size: 19px;
	margin: 0;
}

.afmed-news h3 a {
	color: var(--afmed-ink);
	text-decoration: none;
}

.afmed-news h3 a:hover {
	color: var(--afmed-navy);
}

/* Adhésion */

.afmed-join {
	background: var(--afmed-navy-deep);
	color: #fff;
	padding: 72px 0;
}

.afmed-join__inner {
	max-width: 680px;
}

.afmed-join h2 {
	color: #fff;
	font-size: clamp(28px, 3vw, 38px);
}

.afmed-join p {
	color: rgba(255, 255, 255, 0.88);
	margin: 0 0 24px;
	font-size: 18px;
	line-height: 1.65;
}

@media (max-width: 900px) {
	.afmed-next,
	.afmed-next-bar__grid {
		grid-template-columns: 1fr;
	}

	.afmed-next__poster {
		max-width: 320px;
	}

	.afmed-slider__slide {
		padding: 40px 0 96px;
		min-height: 0;
		background-image:
			linear-gradient(180deg, rgba(243, 246, 248, 0.94) 0%, rgba(243, 246, 248, 0.88) 62%, rgba(243, 246, 248, 0.7) 100%),
			var(--afmed-hero-image);
	}

	.afmed-slider__viewport {
		min-height: 0;
	}

	.afmed-slider__tools {
		justify-content: center;
	}

	.afmed-stats__grid,
	.afmed-photos,
	.afmed-news__grid {
		grid-template-columns: 1fr 1fr;
	}

	.afmed-carousel__slide {
		flex-basis: 100%;
	}

	.afmed-science__visual {
		aspect-ratio: 16 / 8;
	}

	.afmed-journey__rail {
		grid-template-columns: repeat(4, minmax(72px, 1fr));
		overflow-x: auto;
	}

	.afmed-journey__tab-text {
		display: none;
	}

	.afmed-journey__tab {
		justify-content: center;
		padding: 10px;
	}

	.afmed-journey__panel {
		grid-template-columns: 1fr;
		min-height: 0;
	}

	.afmed-journey__visual {
		aspect-ratio: 16 / 10;
	}

	.afmed-journey__copy {
		padding: 24px 20px 28px;
	}

	.afmed-days__list {
		grid-template-columns: 1fr;
	}

	.afmed-day,
	.afmed-day:nth-child(odd),
	.afmed-day:nth-child(even) {
		padding: 22px 0;
		border-right: none;
	}

	.afmed-archive__head {
		flex-direction: column;
		align-items: flex-start;
	}

	.afmed-archive__stage,
	.afmed-science__grid {
		grid-template-columns: 1fr;
		min-height: 0;
	}

	.afmed-archive__poster {
		aspect-ratio: 16 / 9;
		min-height: 0;
	}

	.afmed-archive__stage {
		min-height: 0;
	}

	.afmed-archive__card {
		flex: none;
	}
}

@media (max-width: 640px) {
	.afmed-hero {
		padding: 56px 0 48px;
	}

	.afmed-section,
	.afmed-join {
		padding: 48px 0;
	}

	.afmed-stats__grid,
	.afmed-photos,
	.afmed-news__grid {
		grid-template-columns: 1fr;
	}

	.afmed-stat strong {
		font-size: 28px;
	}
}
