.container-popup {
	position: fixed;
    top: 0;
    left: 0;
	width: 100%;
	height: 100vh;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 0px 1rem;
	z-index: 10000000;
	visibility: hidden;
}

.container-popup.open {
	visibility: visible;
}

.container-popup .column {
	flex: 1 0 0%;
}

.container-popup .popup-overlay {
	position: absolute;
    top: 0;
    left: 0;
	background-color: #00000000;
	width: 100%;
	height: 100%;
	transition: var(--Transition);
}

.container-popup.open .popup-overlay {
	background-color: #00000090;
}

.container-popup .popup-content {
	background-color: var(--ColorContainer);
	position: relative;
	gap: 0.75rem;
	margin: 0px;
	border-radius: 0.5rem;
	padding: 1.25rem;
	box-shadow: 0px 0px 10px rgb(0, 0, 0, 0.2);

	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	max-height: 100%;
	z-index: 10;
	overflow: auto;

	transform: translateY(0px);
	opacity: 1;
	transition: var(--Transition);
	max-height: 95dvh;
}

.container-popup .popup-content.popup-xl > *:nth-child(2) {
	flex: 1;
	max-height: calc(100% - 52px);
}

.container-popup .popup-content.popup-xl > *:nth-child(2) > div:first-child {
	flex: 1;
	max-height: calc(100% - 35px - 1rem);
}

.container-popup .popup-content.popup-xl > *:nth-child(2) > div:first-child > .column {
	flex: 1;
	max-height: 100%;
	justify-content: flex-start;
	overflow: auto;
}

.container-popup .popup-content.popup-xl .page-container {
	overflow: auto;
}

.page-container.display-editor {
    align-items: center;
    justify-content: center;
}

.container-popup:not(.open) .popup-content {
	opacity: 0;
	transform: translateY(2rem);
}

.container-popup .popup-content:not(.dialog) {
	min-width: 600px;
	max-width: 800px;
}

.container-popup .popup-content.popup-xl {
	width: 1000px;
	max-width: unset;
}

.container-popup .popup-content.popup-xs {
	min-width: unset;
	max-width: 600px;
}

.container-popup .popup-content.dialog {
	width: 300px;
}
.container-popup .popup-content.dialog p {
	text-align: center;
}
.container-popup .popup-content.dialog button {
	width: 100%;
}

.container-popup .popup-content .container-close-button {
	display: flex;
	gap: 0.5rem;
	width: 100%;
	padding-bottom: .5rem;
}

.container-popup .popup-content .container-close-button button {
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
	border-radius: 100%;
	margin-left: auto;
	background-color: var(--ColorRow);
	color: var(--ColorText);
	border: none;
}


.container-popup .popup-content .title, .container-popup .popup-content .title span {
	font-size: 1.5rem;
	margin: 0px;
}

.container-popup .popup-content .icon {
	font-size: 3rem;
}

.container-popup.open .popup-content[type='success'] .icon {
	animation: shake 0.3s ease-in-out 0s infinite normal both;
}

.container-popup .popup-content[type='erreur'] .title {
	color: #FECF08;
}

.container-popup .popup-content[type='success'] .title {
	font-family: var(--FontFocus);
}

.container-popup.open .popup-content[type='success'] .title {
	animation: scaleUp 0.5s ease-in 1 normal;
}

.container-popup.open .popup-content[type='success'] p:not(.icon) {
	animation: scaleUp 0.5s ease-in 0.2s 1 normal both;
}

.container-popup .container-img {
	width: 400px;
	max-height: 400px;
	margin: auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.container-popup .container-img img {
	max-width: 400px;
	max-height: 400px;
	object-fit: contain;
}

.container-popup .popup-content .tips {
	font-size: 0.875rem;
}

.container-popup .popup-content:not([type='success']) .msg-success {
	display: none;
}

.container-popup .popup-content #close-btn {
	background-color: var(--ColorText);
	border: solid 1px var(--ColorText);
	font-size: 0.875rem;
	cursor: pointer;
	color: var(--ColorContainer);
	padding: 0.75rem 1rem;
	border-radius: 0.5rem;
	font-weight: bold;
}

.container-popup .no-cropper .column.column-img {
	width: 0%;
	overflow: hidden;
	display: none;
}

.container-popup .no-cropper .column.column-form {
	width: 100% !important;
}

.container-popup form {
	align-items: flex-start;
}

.container-popup form .loader-envoi {
	display: none;
}

.container-popup form.sending .loader-envoi {
	position: absolute;
	width: 100%;
	height: 100%;
	background-color: #0000008f;
	display: flex;
	align-items: center;
	justify-items: center;
	z-index: 9;
	backdrop-filter: blur(2px);
	top: 0px;
	left: 0px;
}

.container-popup form.sending .loader-envoi .loader-content {
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: var(--Gap);
}

.container-popup form.sending .loader-envoi .loader-content div {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}
.container-popup form.sending .loader-envoi .loader-content div svg {
	width: 15% !important;
	height: unset !important;
}

.container-popup form.sending .loader-envoi .loader-content .loader-text {
	color: white;
}

.container-popup form.sending .loader-envoi .loader-content .loader-text::after {
	content: '';
	animation-name: loaderPoint;
	animation-duration: 3s;
	animation-iteration-count: infinite;
	animation-direction: normal;
	animation-fill-mode: both;
	animation-play-state: running;
}

@keyframes loaderPoint {

	0%,
	100% {
		content: '';
	}

	25% {
		content: '.';
	}

	50% {
		content: '..';
	}

	75% {
		content: '...';
	}
}

@keyframes scaleUp {

	0% {
		transform: scale(0);
	}

	50% {
		transform: scale(1.15);
	}

	100% {
		transform: scale(1);
	}
}

@keyframes shake {

	0%, 100% {
		transform: rotate(-3deg);
	}

	50% {
		transform: rotate(3deg);
	}
}

@keyframes gradientAnimation {
	0% {
	  background-position: 0% 0%;
	}
	100% {
	  background-position: 100% 0%;
	}
  }

@media screen and (max-width: 1000px) {
	.container-popup .popup-content.popup-xl {
		max-width: unset;
		min-width: unset;
		width: 100%;
	}
}

@media screen and (max-width: 800px) {
	.container-popup .popup-content:not(.dialog) {
		max-width: unset;
		min-width: unset;
		width: 100%;
	}
}

@media screen and (max-width: 650px) {	
	.container-popup .popup-content .preview-section {
		display: none;
	}
}

@media screen and (max-width: 400px) {	
	.container-popup .popup-content.dialog {
		width: 100%;
	}
}
