/* MIP Supervision – message aux visiteurs */

.mips-dialog {
	width: min(480px, calc(100vw - 32px));
	max-height: calc(100vh - 32px);
	margin: auto;
	padding: 0;
	border: 0;
	border-radius: 14px;
	background: #fff;
	color: #1d2327;
	font-family: inherit;
	box-shadow: 0 2px 4px rgba(17, 17, 17, 0.06), 0 24px 60px rgba(17, 17, 17, 0.22);
	overflow: auto;
}

.mips-dialog[open] {
	animation: mips-in 0.2s ease-out;
}

.mips-dialog::backdrop {
	background: rgba(17, 17, 17, 0.55);
}

/* Navigateurs sans <dialog> : affichage centré simple. */
.mips-dialog:not([open]) {
	display: none;
}

.mips-dialog__box {
	position: relative;
	padding: 32px 28px 24px;
	text-align: center;
}

.mips-dialog__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	margin-bottom: 14px;
	border-radius: 50%;
	background: #fde8f2;
	color: #c60275;
}

.mips-dialog .mips-dialog__title {
	margin: 0 0 12px;
	color: #1d2327;
	font-family: inherit;
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1.3;
}

.mips-dialog__text {
	margin: 0 0 24px;
	font-size: 0.975rem;
	line-height: 1.55;
}

.mips-dialog__text a {
	color: #c60275;
	text-decoration: underline;
}

.mips-dialog__actions {
	display: flex;
	flex-wrap: wrap-reverse;
	justify-content: center;
	gap: 10px;
}

.mips-dialog .mips-dialog__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 10px 20px;
	border: 1.5px solid #c60275;
	border-radius: 999px;
	font-family: inherit;
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.15s, color 0.15s;
}

.mips-dialog .mips-dialog__btn[hidden] {
	display: none;
}

.mips-dialog .mips-dialog__btn--primary {
	background: #c60275;
	color: #fff;
}

.mips-dialog .mips-dialog__btn--primary:hover {
	background: #a3025f;
	color: #fff;
}

.mips-dialog .mips-dialog__btn--secondary {
	background: #fff;
	color: #c60275;
}

.mips-dialog .mips-dialog__btn--secondary:hover {
	background: #fde8f2;
	color: #a3025f;
}

.mips-dialog .mips-dialog__close {
	position: absolute;
	top: 10px;
	right: 10px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #50575e;
	cursor: pointer;
}

.mips-dialog .mips-dialog__close:hover {
	background: #f0f0f1;
	color: #1d2327;
}

.mips-dialog :focus-visible {
	outline: 2px solid #c60275;
	outline-offset: 2px;
}

html.mips-is-open {
	overflow: hidden;
}

@keyframes mips-in {
	from {
		opacity: 0;
		transform: translateY(8px) scale(0.98);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.mips-dialog[open] {
		animation: none;
	}
}

@media (max-width: 480px) {
	.mips-dialog__box {
		padding: 28px 20px 20px;
	}

	.mips-dialog .mips-dialog__btn {
		width: 100%;
	}
}
