/**
 * Frontend styles — HPK PanneauPocket Connect
 */

:root {
	--hpk-pp-primary: #0066cc;
	--hpk-pp-secondary: #004499;
	--hpk-pp-text: #333333;
	--hpk-pp-button: #ffffff;
}

/* Floating widget */
.hpk-pp-floating {
	position: fixed;
	bottom: var(--hpk-pp-floating-bottom, 20px);
	z-index: 99999;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.hpk-pp-floating--bottom-right {
	right: var(--hpk-pp-floating-right, 20px);
	left: auto;
}

.hpk-pp-floating--bottom-left {
	left: var(--hpk-pp-floating-left, 20px);
	right: auto;
}

.hpk-pp-toggle {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border: none;
	border-radius: 50%;
	background: var(--hpk-pp-button, #ffffff);
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
	cursor: pointer;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	padding: 0;
}

.hpk-pp-toggle:hover {
	transform: scale(1.05);
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.hpk-pp-toggle img {
	width: 32px;
	height: 32px;
	object-fit: contain;
}

.hpk-pp-panel {
	position: absolute;
	bottom: 70px;
	right: 0;
	width: var(--hpk-pp-panel-width, 330px);
	height: var(--hpk-pp-panel-height, 518px);
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
	overflow: hidden;
	opacity: 0;
	transform: translateY(10px);
	transition: opacity 0.25s ease, transform 0.25s ease;
}

.hpk-pp-floating--bottom-left .hpk-pp-panel {
	right: auto;
	left: 0;
}

.hpk-pp-floating.is-open .hpk-pp-panel {
	opacity: 1;
	transform: translateY(0);
}

.hpk-pp-panel[hidden] {
	display: block !important;
	visibility: hidden;
	pointer-events: none;
}

.hpk-pp-floating.is-open .hpk-pp-panel[hidden] {
	visibility: visible;
	pointer-events: auto;
}

.hpk-pp-close {
	position: absolute;
	top: 8px;
	right: 8px;
	z-index: 2;
	width: 32px;
	height: 32px;
	border: none;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.5);
	color: #fff;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}

.hpk-pp-panel iframe {
	width: 100%;
	height: 100%;
	border: none;
	display: block;
}

/* Iframe embed */
.hpk-pp-iframe-wrap {
	max-width: 100%;
	overflow: hidden;
}

.hpk-pp-iframe-wrap--widget iframe {
	display: block;
}

.hpk-pp-iframe-wrap--widgetTv {
	position: relative;
	width: 100%;
	min-height: 518px;
	height: 70vh;
}

.hpk-pp-iframe-wrap--widgetTv iframe {
	position: relative;
	height: 100%;
	width: 100%;
	z-index: 10;
	border: none;
	display: block;
}

.hpk-pp-error {
	color: #b32d2e;
	padding: 12px;
	background: #fcf0f1;
	border-left: 4px solid #b32d2e;
}

/* News layouts */
.hpk-pp-news {
	color: var(--hpk-pp-text, #333);
}

.hpk-pp-news--grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 20px;
}

.hpk-pp-news-item {
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	overflow: hidden;
	transition: box-shadow 0.2s ease;
}

.hpk-pp-news-item:hover {
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.hpk-pp-news-item--alert {
	border-left: 4px solid #d63638;
}

.hpk-pp-news-item--info {
	border-left: 4px solid var(--hpk-pp-primary, #0066cc);
}

.hpk-pp-news-thumb img {
	width: 100%;
	height: auto;
	display: block;
}

.hpk-pp-news-body {
	padding: 16px;
}

.hpk-pp-news-title {
	margin: 0 0 8px;
	font-size: 1.1rem;
}

.hpk-pp-news-title a {
	color: var(--hpk-pp-primary, #0066cc);
	text-decoration: none;
}

.hpk-pp-news-title a:hover {
	color: var(--hpk-pp-secondary, #004499);
}

.hpk-pp-news-date {
	display: block;
	font-size: 0.85rem;
	color: #666;
	margin-bottom: 8px;
}

.hpk-pp-news-type {
	display: inline-block;
	font-size: 0.7rem;
	font-weight: 700;
	padding: 2px 8px;
	border-radius: 4px;
	background: var(--hpk-pp-primary, #0066cc);
	color: #fff;
	margin-bottom: 8px;
}

.hpk-pp-news-type--alert {
	background: #d63638;
}

.hpk-pp-news-excerpt {
	font-size: 0.9rem;
	line-height: 1.5;
}

/* List layout */
.hpk-pp-news--list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.hpk-pp-news--list .hpk-pp-news-item {
	display: flex;
	gap: 16px;
	padding: 16px;
	margin-bottom: 12px;
}

.hpk-pp-news--list .hpk-pp-news-thumb {
	flex-shrink: 0;
	width: 80px;
}

.hpk-pp-news--list .hpk-pp-news-thumb img {
	border-radius: 4px;
}

/* Compact layout */
.hpk-pp-news--compact {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.hpk-pp-news-compact-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 12px;
	text-decoration: none;
	color: var(--hpk-pp-text, #333);
	border-radius: 6px;
	transition: background 0.15s ease;
}

.hpk-pp-news-compact-item:hover {
	background: #f0f4f8;
}

.hpk-pp-news-compact-item .hpk-pp-news-title {
	flex: 1;
	font-weight: 500;
}

.hpk-pp-pagination {
	margin-top: 20px;
	text-align: center;
}

.hpk-pp-pagination .page-numbers {
	display: inline-block;
	padding: 6px 12px;
	margin: 0 2px;
	text-decoration: none;
	color: var(--hpk-pp-primary, #0066cc);
	border: 1px solid #ddd;
	border-radius: 4px;
}

.hpk-pp-pagination .page-numbers.current {
	background: var(--hpk-pp-primary, #0066cc);
	color: #fff;
	border-color: var(--hpk-pp-primary, #0066cc);
}

/* Mobile */
@media (max-width: 768px) {
	.hpk-pp-floating .hpk-pp-panel {
		width: var(--hpk-pp-panel-width-mobile, 92vw);
		height: var(--hpk-pp-panel-height-mobile, 75vh);
		right: 0;
		left: auto;
		max-width: calc(100vw - 40px);
	}

	.hpk-pp-floating--bottom-left .hpk-pp-panel {
		left: 0;
		right: auto;
	}

	.hpk-pp-news--grid {
		grid-template-columns: 1fr;
	}
}

/* Post attachments (PanneauPocket documents) */
.hpk-pp-post-documents {
	margin-top: 2rem;
	padding-top: 1.5rem;
	border-top: 1px solid #e5e5e5;
}

.hpk-pp-post-documents__title {
	margin: 0 0 1rem;
	font-size: 1.25rem;
}

.hpk-pp-post-document {
	margin: 0 0 1rem;
}

.hpk-pp-post-document--image img {
	display: block;
	max-width: 100%;
	height: auto;
	border-radius: 6px;
}

.hpk-pp-post-document--pdf a,
.hpk-pp-post-document--file a {
	display: inline-flex;
	align-items: center;
	padding: 0.5rem 0.875rem;
	background: #f5f7fa;
	border: 1px solid #dde3ea;
	border-radius: 6px;
	color: var(--hpk-pp-primary, #0066cc);
	text-decoration: none;
	font-weight: 500;
}

.hpk-pp-post-document--pdf a:hover,
.hpk-pp-post-document--file a:hover {
	background: #eef3f9;
}

.hpk-pp-news-doc-image {
	display: block;
	width: 100%;
	height: auto;
	object-fit: cover;
}

.hpk-pp-agenda {
	display: grid;
	gap: 1rem;
}

.hpk-pp-agenda--grid {
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.hpk-pp-agenda__item {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	overflow: visible;
}

.hpk-pp-agenda__link {
	display: flex;
	gap: 1rem;
	color: inherit;
	text-decoration: none;
	padding: 0.875rem;
}

.hpk-pp-agenda--grid .hpk-pp-agenda__link {
	flex-direction: column;
}

.hpk-pp-agenda__media {
	flex: 0 0 140px;
	width: 140px;
	overflow: visible;
}

.hpk-pp-agenda--grid .hpk-pp-agenda__media {
	flex: none;
	width: 100%;
}

.hpk-pp-agenda__media img {
	display: block;
	width: 140px !important;
	max-width: 140px !important;
	height: auto !important;
	max-height: none !important;
	object-fit: contain;
	object-position: center top;
	position: static !important;
	margin: 0 !important;
	border-radius: 8px;
}

.hpk-pp-agenda--grid .hpk-pp-agenda__media img {
	width: 100% !important;
	max-width: 100% !important;
}

.hpk-pp-agenda__body {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	min-width: 0;
}

.hpk-pp-agenda__date {
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--hpk-pp-primary, #0066cc);
}

.hpk-pp-agenda__title {
	font-size: 1.05rem;
	font-weight: 700;
	line-height: 1.3;
}

.hpk-pp-agenda__excerpt {
	display: block;
	font-size: 0.95rem;
	line-height: 1.55;
	color: var(--hpk-pp-text, #333);
	white-space: pre-line;
	overflow: visible;
}

.hpk-pp-agenda__empty,
.hpk-pp-agenda__none {
	margin: 0;
}

.hpk-pp-agenda__filters {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-bottom: 1rem;
}

.hpk-pp-agenda__filter {
	border: 1px solid #d5deea;
	background: #fff;
	color: var(--hpk-pp-primary, #0066cc);
	border-radius: 999px;
	padding: 0.4rem 0.85rem;
	font-size: 0.85rem;
	font-weight: 600;
	cursor: pointer;
}

.hpk-pp-agenda__filter.is-active {
	background: var(--hpk-pp-primary, #0066cc);
	border-color: var(--hpk-pp-primary, #0066cc);
	color: #fff;
}

.hpk-pp-agenda__open {
	display: flex;
	align-items: flex-start;
	gap: 1rem;
	width: 100%;
	margin: 0;
	padding: 0.875rem;
	border: 0;
	background: transparent;
	color: inherit;
	text-align: left;
	cursor: pointer;
	font: inherit;
	line-height: normal;
	overflow: visible;
	box-sizing: border-box;
}

.hpk-pp-agenda--grid .hpk-pp-agenda__open {
	flex-direction: column;
}

.hpk-pp-agenda__more {
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--hpk-pp-primary, #0066cc);
}

.hpk-pp-agenda-modal[hidden] {
	display: none;
}

.hpk-pp-agenda-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1.5rem;
}

.hpk-pp-agenda-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.72);
}

.hpk-pp-agenda-modal__dialog {
	position: relative;
	z-index: 1;
	width: min(920px, 100%);
	max-height: min(88vh, 900px);
	overflow: auto;
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.hpk-pp-agenda-modal__close {
	position: sticky;
	top: 0.75rem;
	float: right;
	margin: 0.75rem 0.75rem 0 0;
	width: 40px;
	height: 40px;
	border: 0;
	border-radius: 999px;
	background: #f1f5f9;
	color: #0c2340;
	font-size: 1.6rem;
	line-height: 1;
	cursor: pointer;
	transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.hpk-pp-agenda-modal__close:hover,
.hpk-pp-agenda-modal__close:focus-visible {
	background: #0c2340;
	color: #fff;
	transform: scale(1.08);
	outline: none;
}

.hpk-pp-agenda__full {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
	gap: 1.25rem;
	padding: 1.25rem 1.5rem 1.5rem;
}

.hpk-pp-agenda__full-image {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 12px;
	cursor: zoom-in;
}

.hpk-pp-agenda__full-image.is-zoomed {
	position: fixed;
	z-index: 100001;
	top: 50%;
	left: 50%;
	width: min(92vw, 1100px);
	max-height: 90vh;
	object-fit: contain;
	transform: translate(-50%, -50%);
	background: rgba(15, 23, 42, 0.92);
	padding: 1rem;
	border-radius: 12px;
	cursor: zoom-out;
}

.hpk-pp-agenda__full-date {
	margin: 0 0 0.35rem;
	font-weight: 700;
	color: var(--hpk-pp-primary, #0066cc);
}

.hpk-pp-agenda__full-title {
	margin: 0 0 0.75rem;
	font-size: 1.45rem;
	line-height: 1.25;
}

.hpk-pp-agenda__full-text p {
	margin: 0 0 0.75rem;
}

body.hpk-pp-agenda-open {
	overflow: hidden;
}

.hpk-pp-slider {
	position: relative;
	color: #0c2340;
}

.hpk-pp-slider__viewport {
	overflow: hidden;
}

.hpk-pp-agenda--slider.hpk-pp-slider__track {
	display: flex;
	gap: 0;
	transition: transform 320ms ease;
}

.hpk-pp-agenda--slider .hpk-pp-agenda__item {
	flex: 0 0 100%;
	width: 100%;
	min-width: 100%;
	background: transparent;
	border: 0;
}

.hpk-pp-agenda--slider .hpk-pp-agenda__open {
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: nowrap !important;
	align-items: center;
	gap: 1.15rem;
	min-height: 240px;
	padding: 0.5rem 3.4rem 1.8rem;
}

.hpk-pp-agenda--slider .hpk-pp-agenda__media {
	flex: 0 0 210px !important;
	width: 210px !important;
	max-width: 210px !important;
	overflow: hidden;
}

.hpk-pp-agenda--slider .hpk-pp-agenda__media img {
	width: 210px !important;
	max-width: 210px !important;
	height: auto !important;
	max-height: none !important;
	object-fit: contain;
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 8px 18px rgba(12, 35, 64, 0.16);
}

.hpk-pp-agenda--slider .hpk-pp-agenda__body {
	flex: 1 1 auto;
	min-width: 0;
	position: relative;
}

.hpk-pp-agenda--slider .hpk-pp-agenda__title {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	font-size: 1.05rem;
	line-height: 1.25;
}

.hpk-pp-agenda--slider .hpk-pp-agenda__excerpt {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	white-space: normal;
	margin-top: 0.2rem;
	font-size: 0.88rem;
	line-height: 1.4;
}

.hpk-pp-slider__nav,
.hpk-pp-slider__dot {
	appearance: none;
	box-sizing: border-box;
	margin: 0;
	padding: 0 !important;
	border: 0 !important;
	cursor: pointer;
	line-height: 0 !important;
}

.hpk-pp-slider__nav::before,
.hpk-pp-slider__nav::after {
	content: none !important;
	display: none !important;
}

.hpk-pp-slider__nav {
	position: absolute;
	top: 0;
	bottom: 1.5rem;
	z-index: 2;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 42px !important;
	height: 42px !important;
	min-width: 42px !important;
	min-height: 42px !important;
	max-width: 42px !important;
	margin-top: auto !important;
	margin-bottom: auto !important;
	border-radius: 50% !important;
	background: #fff !important;
	color: #0c2340 !important;
	box-shadow: 0 2px 10px rgba(12, 35, 64, 0.18);
	font-size: 0 !important;
	transition: background 160ms ease, color 160ms ease;
}

.hpk-pp-slider__nav svg {
	display: block;
	width: 18px;
	height: 18px;
	flex: 0 0 18px;
}

.hpk-pp-slider__nav--prev {
	left: 0;
}

.hpk-pp-slider__nav--next {
	right: 0;
}

.hpk-pp-slider__nav:hover,
.hpk-pp-slider__nav:focus-visible {
	background: #0c2340 !important;
	color: #fff !important;
	outline: none;
}

.hpk-pp-slider__dots {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0.15rem;
	display: flex;
	justify-content: center;
	gap: 0.4rem;
}

.hpk-pp-slider__dot {
	width: 8px !important;
	height: 8px !important;
	min-height: 0;
	border-radius: 999px;
	background: rgba(12, 35, 64, 0.28);
}

.hpk-pp-slider__dot.is-active,
.hpk-pp-slider__dot:hover,
.hpk-pp-slider__dot:focus-visible {
	background: #0c2340;
	outline: none;
}

@media (prefers-reduced-motion: reduce) {
	.hpk-pp-slider__track,
	.hpk-pp-agenda-modal__close,
	.hpk-pp-slider__nav {
		transition: none;
	}
}

@media (max-width: 720px) {
	.hpk-pp-agenda__full {
		grid-template-columns: 1fr;
	}

	.hpk-pp-agenda--slider .hpk-pp-agenda__open {
		padding-right: 2.4rem;
		padding-left: 2.4rem;
	}

	.hpk-pp-agenda--slider .hpk-pp-agenda__media,
	.hpk-pp-agenda--slider .hpk-pp-agenda__media img {
		flex-basis: 132px !important;
		width: 132px !important;
		max-width: 132px !important;
	}
}

.hpk-pp-actus {
	position: relative;
	color: #002749;
}

.hpk-pp-actus__viewport {
	overflow: hidden;
	cursor: grab;
	touch-action: pan-y;
}

.hpk-pp-actus.is-dragging .hpk-pp-actus__viewport {
	cursor: grabbing;
	user-select: none;
}

.hpk-pp-actus__track {
	display: flex;
	transition: transform 320ms ease;
}

.hpk-pp-actus__slide {
	flex: 0 0 33.333%;
	width: 33.333%;
	min-width: 33.333%;
	padding: 0 12px;
	box-sizing: border-box;
}

.hpk-pp-actus__card {
	display: flex;
	flex-direction: column;
	height: 100%;
	background: transparent;
	color: inherit;
	text-decoration: none;
	cursor: pointer;
	text-align: left;
}

.hpk-pp-actus__media {
	position: relative;
	aspect-ratio: 3 / 2;
	overflow: hidden;
	border-radius: 28px;
	background: #e7eef5;
}

.hpk-pp-actus__media img {
	position: absolute !important;
	inset: 0;
	display: block;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	max-height: none !important;
	object-fit: cover !important;
	object-position: center;
	margin: 0 !important;
	border-radius: 0 !important;
	-webkit-user-drag: none;
	user-select: none;
}

.hpk-pp-actus__media::before {
	content: '';
	position: absolute;
	z-index: 2;
	top: 0;
	left: -75%;
	width: 50%;
	height: 100%;
	background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.35) 100%);
	transform: skewX(-25deg);
	transition: left 0.75s ease;
	pointer-events: none;
}

.hpk-pp-actus__card:hover .hpk-pp-actus__media::before,
.hpk-pp-actus__card:focus-visible .hpk-pp-actus__media::before {
	left: 125%;
}

.hpk-pp-actus__body {
	position: relative;
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 32px 4px 0;
}

.hpk-pp-actus__date {
	position: absolute;
	top: -48px;
	right: 34px;
	z-index: 1;
	width: 99px;
	margin: 0;
	padding: 0;
	background: transparent;
	box-shadow: none;
	text-align: center;
	line-height: 1;
}

.hpk-pp-actus__day {
	display: block;
	background: #ffc942;
	color: #404a3d;
	font-size: 34px;
	font-weight: 800;
	line-height: 1.4;
	letter-spacing: -0.34px;
	border-radius: 4px 4px 0 0;
}

.hpk-pp-actus__month {
	display: block;
	margin: 0;
	background: #63ab52;
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	line-height: 28px;
}

.hpk-pp-actus__meta {
	margin: 0 0 10px;
	padding-left: 7px;
	color: #636d6c;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.6;
}

.hpk-pp-actus__title {
	align-self: flex-start;
	max-width: 100%;
	margin: 0 0 16px;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.35;
	letter-spacing: -0.34px;
	color: #002749;
	background-image: linear-gradient(to right, #0268ad, #0268ad 50%, #002749 50%);
	background-size: 200% 100%;
	background-position: 100% 0;
	-webkit-background-clip: text;
	background-clip: text;
	transition: background-position 0.5s ease;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.hpk-pp-actus__card:hover .hpk-pp-actus__title,
.hpk-pp-actus__card:focus-visible .hpk-pp-actus__title {
	background-position: 0 0;
	-webkit-text-fill-color: transparent;
}

.hpk-pp-actus__more {
	position: relative;
	align-self: flex-start;
	width: auto;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: auto;
	padding: 0;
	color: #0268ad !important;
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
	font-weight: 800;
	font-size: 16px;
	line-height: 1.75;
	text-decoration: none;
}

.hpk-pp-actus__more::after {
	content: '';
	position: absolute;
	left: auto;
	right: 0;
	bottom: 0;
	width: 0;
	height: 1px;
	background: currentColor;
	transition: width 0.35s ease, left 0.35s ease, right 0.35s ease;
}

.hpk-pp-actus__more svg {
	display: block;
	width: 12px;
	height: 12px;
	flex: 0 0 12px;
}

.hpk-pp-actus__card:hover .hpk-pp-actus__more::after,
.hpk-pp-actus__card:focus-visible .hpk-pp-actus__more::after {
	left: 0;
	right: auto;
	width: 100%;
}

.hpk-pp-actus__dots {
	position: static;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	margin: 48px 0 0;
}

.hpk-pp-actus__dot {
	position: relative;
	width: 22px !important;
	height: 22px !important;
	min-width: 22px !important;
	min-height: 22px !important;
	line-height: 0 !important;
	padding: 0 !important;
	border: thin solid #529149 !important;
	border-radius: 50%;
	background: transparent !important;
	color: transparent;
	cursor: pointer;
	transition: color 0.25s ease;
}

.hpk-pp-actus__dot::before {
	content: '';
	position: absolute;
	inset: 2px;
	border-radius: inherit;
	background: currentColor;
}

.hpk-pp-actus__dot::after {
	content: none !important;
}

.hpk-pp-actus__dot.is-active,
.hpk-pp-actus__dot:hover,
.hpk-pp-actus__dot:focus-visible {
	color: #529149;
	outline: none;
}

.hpk-pp-actus__empty {
	margin: 0;
}

@media (max-width: 1024px) {
	.hpk-pp-actus__slide {
		flex-basis: 50%;
		width: 50%;
		min-width: 50%;
	}
}

@media (max-width: 700px) {
	.hpk-pp-actus__slide {
		flex-basis: 100%;
		width: 100%;
		min-width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hpk-pp-actus__track,
	.hpk-pp-actus__media::before,
	.hpk-pp-actus__more::after,
	.hpk-pp-actus__title {
		transition: none;
	}
}

.elementor-widget.hpk-pp-une-skip,
.elementor-element.hpk-pp-une-skip,
.e-con.hpk-pp-une-skip,
#pxl-page-title.hpk-pp-une-skip,
.hpk-pp-une-skip {
	display: none !important;
	height: 0 !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	overflow: hidden !important;
	visibility: hidden !important;
}

.hpk-pp-une {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 36px;
	max-width: none;
	margin: 0;
	padding: 0;
	color: #002749;
}

.hpk-pp-une__hero {
	display: block;
	width: 100%;
	height: auto;
	margin: 0 0 18px;
	border-radius: 18px;
	object-fit: cover;
	aspect-ratio: 16 / 9;
}

.hpk-pp-une__article .hpk-pp-une__title {
	margin: 0 0 6px;
}

.hpk-pp-une__meta {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 14px;
	color: #636d6c;
	font-size: 15px;
}

.hpk-pp-une__sep {
	width: 1px;
	height: 14px;
	background: #c5cdc8;
}

.hpk-pp-une__label {
	color: #63ab52;
	font-weight: 600;
}

.hpk-pp-une__title {
	margin: 0 0 18px;
	color: #002749;
	font-size: 34px;
	line-height: 1.2;
	font-weight: 700;
}

.hpk-pp-une__lead {
	margin: 0 0 16px;
	color: #4d5c56;
	font-size: 18px;
	line-height: 1.55;
}

.hpk-pp-une__text p,
.hpk-pp-une__text div {
	margin: 0 0 0.85rem !important;
	font-size: 17px;
	line-height: 1.55;
	color: #243028;
}

.hpk-pp-une__text p:last-child {
	margin-bottom: 0 !important;
}

.hpk-pp-une__text a {
	color: #0268ad !important;
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.hpk-pp-une__gallery {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 22px;
}

.hpk-pp-une__shot {
	display: block;
	width: 148px !important;
	height: 110px !important;
	min-height: 0;
	margin: 0;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 10px;
	overflow: hidden;
	background: #e7eeea;
	cursor: zoom-in;
	line-height: 0;
}

.hpk-pp-une__shot img {
	display: block;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	object-fit: cover;
	border-radius: 0;
	transition: transform 0.25s ease;
}

.hpk-pp-une__shot:hover img,
.hpk-pp-une__shot:focus-visible img {
	transform: scale(1.06);
}

.hpk-pp-une__lightbox {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	padding: 28px 16px;
	background: rgba(0, 18, 28, 0.86);
}

.hpk-pp-une__lightbox[hidden] {
	display: none !important;
}

.hpk-pp-une__lightbox img {
	display: block;
	width: auto !important;
	height: auto !important;
	max-width: min(1080px, calc(100vw - 140px)) !important;
	max-height: calc(100vh - 72px) !important;
	object-fit: contain;
	border-radius: 8px;
	background: #fff;
}

.hpk-pp-une__lightbox-close,
.hpk-pp-une__lightbox-prev,
.hpk-pp-une__lightbox-next {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 0;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 999px !important;
	background: #fff !important;
	color: #002749 !important;
	cursor: pointer;
	line-height: 1;
}

.hpk-pp-une__lightbox-close {
	position: absolute;
	top: 16px;
	right: 16px;
	width: 42px !important;
	height: 42px !important;
	font-size: 28px;
}

.hpk-pp-une__lightbox-prev,
.hpk-pp-une__lightbox-next {
	flex: 0 0 auto;
	width: 44px !important;
	height: 44px !important;
	font-size: 32px;
}

.hpk-pp-une__lightbox-prev[hidden],
.hpk-pp-une__lightbox-next[hidden] {
	display: none !important;
}

body.hpk-pp-lightbox-open {
	overflow: hidden;
}

.hpk-pp-une__back {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	margin: 0 0 16px;
	color: #0268ad;
	font-weight: 700;
	text-decoration: none;
}

.hpk-pp-une__back:hover,
.hpk-pp-une__back:focus-visible {
	text-decoration: underline;
}

.hpk-pp-une__list {
	display: grid;
	gap: 16px;
}

.hpk-pp-une__card {
	display: grid;
	grid-template-columns: 148px minmax(0, 1fr);
	gap: 18px;
	align-items: center;
	padding: 14px;
	border: 1px solid #e4ebe6;
	border-radius: 16px;
	background: #fff;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.hpk-pp-une__card:hover {
	border-color: #c5ddc0;
	box-shadow: 0 8px 24px rgba(0, 39, 73, 0.06);
}

.hpk-pp-une__thumb {
	display: block;
	width: 148px;
	height: 104px;
	border-radius: 12px;
	overflow: hidden;
	background: #e7eef5;
}

.hpk-pp-une__thumb img {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover;
	margin: 0 !important;
}

.hpk-pp-une__date {
	margin: 0 0 4px;
	color: #636d6c;
	font-size: 13px;
}

.hpk-pp-une__card-title {
	margin: 0 0 6px;
	font-size: 20px;
	line-height: 1.3;
	font-weight: 700;
}

.hpk-pp-une__card-title a {
	color: #002749;
	text-decoration: none;
}

.hpk-pp-une__card:hover .hpk-pp-une__card-title a {
	color: #0268ad;
}

.hpk-pp-une__excerpt {
	margin: 0 0 10px;
	color: #4d5c56;
	font-size: 15px;
	line-height: 1.5;
}

.hpk-pp-une__more {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	color: #0268ad;
	font-weight: 800;
	text-decoration: none;
}

.hpk-pp-une__more svg {
	width: 12px;
	height: 12px;
}

.hpk-pp-une__card:hover .hpk-pp-une__more {
	text-decoration: underline;
}

.hpk-pp-une__side {
	position: sticky;
	top: var(--hpk-pp-sticky-top, 100px);
	align-self: start;
	z-index: 3;
	max-height: calc(100vh - var(--hpk-pp-sticky-top, 100px) - 16px);
	overflow-x: hidden;
	overflow-y: auto;
	overscroll-behavior: contain;
	background: #f3f7f4;
	border-radius: 18px;
	padding: 22px 18px;
}

.hpk-pp-une__search {
	display: flex;
	align-items: center;
	gap: 8px;
	background: #fff;
	border-radius: 12px;
	padding: 8px 12px;
	margin-bottom: 22px;
}

.hpk-pp-une__search input {
	flex: 1;
	border: 0;
	background: transparent;
	font: inherit;
	color: #002749;
	min-width: 0;
	padding: 6px 0;
}

.hpk-pp-une__search:focus-within {
	box-shadow: 0 0 0 2px #0268ad;
}

.hpk-pp-une__search input:focus {
	outline: none;
}

.hpk-pp-une__search button {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px !important;
	height: 36px !important;
	min-height: 0;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 8px !important;
	background: transparent !important;
	color: #002749 !important;
	cursor: pointer;
}

.hpk-pp-une__search svg {
	width: 18px;
	height: 18px;
}

.hpk-pp-une__recent h2 {
	margin: 0 0 16px;
	padding-left: 12px;
	border-left: 3px solid #0268ad;
	font-size: 20px;
	color: #002749;
}

.hpk-pp-une__recent ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 16px;
}

.hpk-pp-une__recent a,
.hpk-pp-une__result {
	display: flex;
	gap: 12px;
	align-items: center;
	color: inherit;
	text-decoration: none;
}

.hpk-pp-une__recent img,
.hpk-pp-une__result img {
	width: 72px !important;
	height: 72px !important;
	object-fit: cover;
	border-radius: 8px;
	flex: 0 0 72px;
}

.hpk-pp-une__recent small,
.hpk-pp-une__result small {
	display: block;
	color: #636d6c;
	font-size: 13px;
	margin-bottom: 4px;
}

.hpk-pp-une__recent strong,
.hpk-pp-une__result strong {
	display: block;
	color: #002749;
	font-size: 16px;
	line-height: 1.3;
}

.hpk-pp-une__empty {
	margin: 0;
	color: #636d6c;
}

@media (max-width: 900px) {
	.hpk-pp-une {
		grid-template-columns: 1fr;
	}

	.hpk-pp-une__side {
		position: static;
		top: auto;
		max-height: none;
		overflow: visible;
	}

	.hpk-pp-une__title {
		font-size: 28px;
	}

	.hpk-pp-une__card {
		grid-template-columns: 112px minmax(0, 1fr);
	}

	.hpk-pp-une__thumb {
		width: 112px;
		height: 84px;
	}
}
