.rgp-conges-modal,
.rgp-conges-notice {
	--rgp-accent: #3b5998;
	font-family: inherit;
}

.rgp-conges-modal {
	align-items: center;
	display: none;
	inset: 0;
	justify-content: center;
	padding: 24px;
	position: fixed;
	z-index: 999999;
}

.rgp-conges-modal.is-open,
.rgp-conges-modal.is-closing {
	display: flex;
}

.rgp-conges-modal__backdrop {
	background: rgba(10, 25, 54, 0.72);
	inset: 0;
	position: absolute;
}

.rgp-conges-modal__dialog {
	background: #fff;
	border: 3px solid var(--rgp-accent);
	border-radius: 14px;
	box-shadow: 0 24px 80px rgba(10, 25, 54, 0.34);
	color: #172554;
	max-height: calc(100vh - 48px);
	max-width: 620px;
	overflow: auto;
	padding: 38px;
	position: relative;
	text-align: center;
	width: 100%;
	z-index: 1;
}

.rgp-conges-modal__dialog:focus {
	outline: 3px solid rgba(59, 89, 152, 0.3);
	outline-offset: 3px;
}

.rgp-conges-modal__dialog--image {
	background: transparent;
	border: 0;
	border-radius: 14px;
	max-width: 760px;
	overflow: visible;
	padding: 0;
}

.rgp-conges-modal__image-wrap {
	background: #fff;
	border-radius: 14px;
	box-shadow: 0 24px 80px rgba(10, 25, 54, 0.34);
	overflow: hidden;
}

.rgp-conges-modal__image {
	display: block;
	height: auto;
	margin: 0;
	max-height: calc(100vh - 48px);
	object-fit: contain;
	width: 100%;
}

.rgp-conges-modal__dialog--image .rgp-conges-modal__close {
	background: rgba(10, 25, 54, 0.8);
	color: #fff;
	right: 10px;
	top: 10px;
	z-index: 2;
}

.rgp-conges-modal__dialog--image .rgp-conges-modal__close:hover,
.rgp-conges-modal__dialog--image .rgp-conges-modal__close:focus {
	background: #fff;
	color: #13264e;
}

.rgp-conges-modal .screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

.rgp-conges-modal__close {
	align-items: center;
	background: transparent;
	border: 0;
	border-radius: 50%;
	color: #172554;
	cursor: pointer;
	display: flex;
	font-size: 32px;
	height: 44px;
	justify-content: center;
	line-height: 1;
	padding: 0;
	position: absolute;
	right: 12px;
	top: 12px;
	width: 44px;
}

.rgp-conges-modal__close:hover,
.rgp-conges-modal__close:focus {
	background: #edf2fb;
	color: var(--rgp-accent);
}

.rgp-conges-modal__eyebrow,
.rgp-conges-notice__eyebrow {
	color: var(--rgp-accent);
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.rgp-conges-modal h2 {
	color: #172554;
	font-size: clamp(27px, 5vw, 40px);
	line-height: 1.15;
	margin: 9px 0 12px;
}

.rgp-conges-modal__dates {
	background: #edf2fb;
	border-radius: 999px;
	color: var(--rgp-accent);
	display: inline-block;
	font-size: 16px;
	font-weight: 800;
	margin-bottom: 15px;
	padding: 8px 16px;
}

.rgp-conges-modal__message {
	color: #34405b;
	font-size: 17px;
	line-height: 1.65;
}

.rgp-conges-modal__message p:last-child,
.rgp-conges-notice__message p:last-child {
	margin-bottom: 0;
}

.rgp-conges-modal__button {
	background: var(--rgp-accent);
	border: 2px solid var(--rgp-accent);
	border-radius: 6px;
	color: #fff;
	cursor: pointer;
	font-size: 16px;
	font-weight: 800;
	margin-top: 18px;
	padding: 12px 24px;
}

.rgp-conges-modal__button:hover,
.rgp-conges-modal__button:focus {
	background: #13264e;
	border-color: #13264e;
	color: #fff;
}

body.rgp-conges-modal-open {
	overflow: hidden;
}

.rgp-conges-modal.is-closing.rgp-conges-close--fade {
	animation: rgp-conges-close-fade 300ms ease-in both;
}

.rgp-conges-modal.is-closing.rgp-conges-close--zoom .rgp-conges-modal__dialog {
	animation: rgp-conges-close-zoom 300ms ease-in both;
}

.rgp-conges-modal.is-closing.rgp-conges-close--slide_down .rgp-conges-modal__dialog {
	animation: rgp-conges-close-slide-down 320ms ease-in both;
}

.rgp-conges-modal.is-closing.rgp-conges-close--slide_right .rgp-conges-modal__dialog {
	animation: rgp-conges-close-slide-right 320ms ease-in both;
}

.rgp-conges-modal.is-closing .rgp-conges-modal__backdrop {
	animation: rgp-conges-close-backdrop 320ms ease-in both;
}

.rgp-conges-notice {
	align-items: flex-start;
	background: #edf2fb;
	border: 3px solid var(--rgp-accent);
	border-left-width: 8px;
	border-radius: 10px;
	box-shadow: 0 8px 24px rgba(19, 38, 78, 0.1);
	color: #172554;
	display: flex;
	gap: 18px;
	margin: 28px 0;
	padding: 24px;
}

.rgp-conges-notice__icon {
	align-items: center;
	background: var(--rgp-accent);
	border-radius: 50%;
	color: #fff;
	display: flex;
	flex: 0 0 48px;
	font-size: 24px;
	height: 48px;
	justify-content: center;
	width: 48px;
}

.rgp-conges-notice h2 {
	color: #172554;
	font-size: clamp(22px, 3vw, 29px);
	line-height: 1.2;
	margin: 5px 0 9px;
}

.rgp-conges-notice__dates {
	color: var(--rgp-accent);
	font-size: 16px;
	font-weight: 800;
	margin-bottom: 8px;
}

.rgp-conges-notice__message {
	color: #34405b;
	font-size: 16px;
	line-height: 1.6;
}

@media (max-width: 600px) {
	.rgp-conges-modal {
		padding: 14px;
	}

	.rgp-conges-modal__dialog {
		padding: 34px 22px 26px;
	}

	.rgp-conges-notice {
		display: block;
		padding: 20px;
	}

	.rgp-conges-notice__icon {
		margin-bottom: 14px;
	}
}

@media (prefers-reduced-motion: no-preference) {
	.rgp-conges-modal.is-open .rgp-conges-modal__dialog {
		animation: rgp-conges-enter 180ms ease-out both;
	}

	@keyframes rgp-conges-enter {
		from {
			opacity: 0;
			transform: translateY(12px) scale(0.98);
		}
		to {
			opacity: 1;
			transform: translateY(0) scale(1);
		}
	}

	@keyframes rgp-conges-close-fade {
		from {
			opacity: 1;
		}
		to {
			opacity: 0;
		}
	}

	@keyframes rgp-conges-close-zoom {
		from {
			opacity: 1;
			transform: scale(1);
		}
		to {
			opacity: 0;
			transform: scale(0.72);
		}
	}

	@keyframes rgp-conges-close-slide-down {
		from {
			opacity: 1;
			transform: translateY(0);
		}
		to {
			opacity: 0;
			transform: translateY(90px);
		}
	}

	@keyframes rgp-conges-close-slide-right {
		from {
			opacity: 1;
			transform: translateX(0);
		}
		to {
			opacity: 0;
			transform: translateX(120px);
		}
	}

	@keyframes rgp-conges-close-backdrop {
		from {
			opacity: 1;
		}
		to {
			opacity: 0;
		}
	}
}
