#postalwrapper {
	font-size: var(--std-font-size);
	max-width: 100%;
	width: 100%;
	height: 100%;
	overflow: hidden;
	display: grid;
	place-items: center;
	position: absolute;
	top: 0;
	left: 0;
	z-index:0;
}

@keyframes changingMap {
  0% {
	-webkit-filter: brightness(50%); 
    filter: brightness(50%);
  }
  50% {
    -webkit-filter: brightness(75%); 
    filter: brightness(75%);
  }
  100% {
	-webkit-filter: brightness(50%); 
    filter: brightness(50%);
  }
}

#postalform {
	--postal-height:620px;
	width:fit-content;
	height:fit-content;
	--wp--style--global--content-size: 100%;
	position: relative;
	/**top: 50%;
	left:50%;
	transform: translate(-50%, -50%);**/
	box-shadow: 12px 16px 26px 0px #3d3d3d;
}
#flip {
	width:75px;
	height:75px;
	content:'';
	background-image: url("/naiv/assets/icons/arrow-rotate.svg");
	background-size: contain;
	background-repeat: no-repeat;
	position: absolute;
	bottom: 0;
	right: 0;
	transform: translateX(50%);
	z-index:9;
	filter: drop-shadow(0 0 3px #FFF) drop-shadow(0 0 3px #FFF) ;
}

.side {
	width:100%;
	height:100%;
}



/* ============= RECTO ============ */

#recto {
	display: flex;
	width: 1000px;
	height: var(--postal-height);
	background-image: url("/naiv/assets/images/postalcard.webp");
	background-size: cover;
	background-repeat: no-repeat;
}


#recto .left {
	height:100%;
	width: var(--postal-height);
}

#recto .right {
	position:relative;
	height:100%;
	width: calc(100% - var(--postal-height));
}

#recto .left img {
	height:100%;
}

#clickable-stamp {
	position:absolute;
	top: 1%;
	right: 1.85%;
	width: 32.5%;
	height: 27%;
	rotate: 1deg;
}

#clickable-stamp .shining-container {
	position: absolute;
	width:100%;
	height:100%;
	overflow:hidden;
}

#clickable-stamp .shining-container::after {
	animation-duration: 7s;
	animation-name: shine;
	animation-iteration-count: infinite;
	content: " ";
	position: absolute;
	top: -110%;
	left: -210%;
	width: 200%;
	height: 200%;
	opacity: 0;
	transform: rotate(30deg);
	background: rgba(255, 255, 255, 0.13);
	background: linear-gradient( to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0) 77%, rgba(255, 255, 255, 0.7) 92%, rgba(255, 255, 255, 0.0) 100% );
}

#recto .infos {
	display: block;
	position: absolute;
	width: 87%;
	right: 7%;
	top: 42.25%;
}

#recto .infos .text,
#recto .infos .text *
 {
	font-family: mistral;
	color: #0f1741;
	font-size: 24px;
	line-height: 2.1em;
	word-spacing: 3px;
	letter-spacing: 2px;
}

#postalform .text.date {
	position:absolute;
	top:-50%;
	right:50%;
	
	width:125px;
	height:125px;
	background: url("/naiv/assets/images/oblit.webp");
	background-size: cover;
	background-repeat: no-repeat;
}

#postalform .text.date input {
	border: 0;
	font-family: typedeer;
	font-size: 13px;
	height:100%;
	width:100%;
	text-align:center;
}

#postalform #genre {
	width: 80px;
	height: 33px;
	background: rgba(100, 100, 100, 0.15);
	border-radius: 7px;
	border: 1px solid gray;
}

#postalform #nom {
	width:calc(100% - 125px);
}
#postalform input, #postalform textarea {
	background: transparent;
	padding: 0;
	height: 30px;
}

#postalform input, #postalform textarea {
	background: transparent;
	padding: 0;
	height: 30px;
}

#postalform #nom, #postalform #texte-perso-editor {
	border:2px dotted grey;
}

#postalform #texte-perso-editor {
	text-align: left;
	height: 260px;
	width:90%;
	overflow:hidden;
	resize:none;
	margin-left: 15px;
	
	white-space: pre-wrap;  /* permet de garder les retours à la ligne et de wrap le texte */
	word-wrap: break-word;  /* coupe les mots trop longs */
	overflow-wrap: break-word; /* norme moderne */
}

/* ============= VERSO ============ */

#verso {
	position:relative; 
}

#verso {
	width: 1000px;
	height: var(--postal-height);
	background-image: url("/naiv/assets/images/washi.webp");
	background-size: cover;
	background-repeat: no-repeat;
}

#verso:before {
	content:'';
	position:absolute;
	width:100%;
	height:100%;
}

#verso .main{
	box-sizing: border-box;
	width: 100%;
	height:90%;
	padding:20px;
}
#verso .infos{
	position:relative;
	z-index: 2;
	border-top: 2px dashed #ad9c63;
	width: 100%;
	height:40px;
	padding-top: 14px;
	padding-bottom: 14px;
}

.infos{
	text-align:center;
}

.infos a {
	text-decoration: none;
}

.infos .titre{
	font-family: zenjirou;
	text-transform: uppercase;
	font-size: 20px;
	color: #893437;
}
.infos .sous-titre{
	font-size: 18px;
	color: #555;
}
.infos .sous-titre{
	font-size: 18px;
	color: #555;
}

#verso .infos .arw {
	width: 1em;
	rotate: -90deg;
	color: #893437;
}

.citations .saison {
	margin-top:20%;
	display:none;
}

.cit-zone {
	/**background-image: url("/naiv/assets/images/greybox.svg");
	background-size: 100% 100%;
	background-repeat: no-repeat;**/
	z-index: 1;
	position: absolute;
	left:50%;
	top:50%;
	transform:translate(-50%,-50%);
	width: 440px;
	padding: 40px;
}
#cit-svg-bg {
  color: var(--cit-color);
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
}

.citTxt {
	width:fit-content;
	color:white;
	font-size:20px;
	text-align: left;
	
	position:relative;
	left: 50%;
	transform: translateX(-50%);
}

.citTxt .line {
	/*white-space: nowrap;*/
}

/* ============ LISTE DEROULANTE ================= */

/* ---------- Border ---------- */

#dropdownBtn .border-top,
#dropdownBtn .border-bottom {
	position: absolute;
	left: 0;
	content: '';
	height: 2px;
	width: 100%;
	-webkit-mask: url("/naiv/assets/images/border.svg");
	mask: url("/naiv/assets/images/border.svg");
	mask-position-x: 0%;
	mask-position-y: 0%;
	mask-size: auto 100%;
	mask-position: center;
	mask-repeat: repeat-X;
	background-color: var(--border-color);
}


#dropdownBtn .border-top {
	bottom: 5px;
}

#dropdownBtn .border-bottom {
	top: 5px;
}

/* ---------- Autre ---------- */
	
	.option-titre {
		/*background-color:#e7dcc2; var(--optn-bg-color);*/
		color: var(--optn-not-selected-color);
	}
	
	#ddbtn-svg-bg{
		width: 100%;
		height:100%;
		position: absolute;
		top: 0;
		left: 0;
	}
	
	#dropdownTxt {
		position: relative;
		width: 100%;
		text-align: center;
		display: inline-block;
	}
	
    .dropdown {
		text-align:right;
		position: relative;
		top:40px;
		left:50%;
		width: 80%;
		transform: translateX(-50%);
		z-index: 8;
    }
	
	#ddbtn-svg-arw {
		width: 0.55em;
		height: 0.55em;
		display: inline-block;
		position: absolute;
		right: 20px;
		top: 50%;
		transform: translateY(-50%);
    }

    .dropdown-button {
		padding: 10px;
		border: 1px solid transparent; /*#ccc;*/
		background-color: transparent; /*#f9f9f9;*/
		position: relative;
		left: 100%;
		transform: translateX(-100%);
    }

    .dropdown-content {
      position: absolute;
      top: 100%;
      left: 0;
      right: 0;
      /**border: 1px solid #ccc;**/
      background-image:url("/naiv/assets/images/dropdown.svg");
	  background-size: 100% 100%;
	  background-position: center;
	  background-repeat: no-repeat;
	  
      max-height: 160px; /* 4 items * 40px height/item */
      overflow-y: auto;
      display: none;
      z-index: 8;
	  
	  scrollbar-width: thin;
	  scrollbar-color: rgba(102,102,102,0.7) rgba(231,220,194,0.9);
    }

    .dropdown-content .titre {
		padding: 10px;
		line-height: 20px;
		box-sizing: border-box;
		font-style:italic;
	}

    .dropdown-content .titre:hover {
		background-color: var(--optn-bg-color);
		color: var(--optn-color);
    }

    .dropdown.open .dropdown-content {
      display: block;
    }

/* ============ FLOATING KANJI ET LECTURE INTERGRALE ================= */

.fk-kanj-pc {
	font-size:2em;
}

/* -------- FLOATING KO --------- */

.floating-ko {
	z-index: 7;
	position: absolute;
	top: 0;
	right: 0;
	right: -10px;
	transform: translateY(-100%);
}

.ko-info, .sekki-info {
	color:#222222;
}
.ko-info {
	visibility: hidden;
	pointer-events: none;
	position:absolute;
	white-space: nowrap;
	padding-left: 10px;
}

.floating-ko:hover .ko-info {
	visibility: visible;
	pointer-events: auto;
}

.ko-info > div {
	width: fit-content;
	padding:3px;
	padding-left:10px;
	padding-right:10px;
	background-size: 100% 100%;
	background-repeat: no-repeat;
}

.ko-info > .ko-transcript {
	background-image: url("/naiv/assets/images/cartouches/cartouche.svg");
}

.ko-info > .ko-translate {
	background-image: url("/naiv/assets/images/cartouches/cartouche-2.svg");
	margin-left:15px;
	margin-top: -0px;
	
}

.main-fh:hover .ko-info {
	display:inline-block;
}

.main-fh:hover:after {
	content:'';
	position:absolute;
	top:50%;
	left:50%;
	transform:translate(-50%,-50%);
	background-image: url("/naiv/assets/icons/speaker.svg");
	background-position: center;
	background-repeat: no-repeat;
	background-size: auto 75px;
	width: 100%;
	height: 100%;
}
.winter-text .main-fh:hover:after {
	filter:invert(1);
}


/* -------- FLOATING SEKKI --------- */

.floating-sekki {
	position:absolute;
	left: -10px;
	bottom: 0;
	transform: translateX(-100%);
	z-index: 7;
	margin-block-start: 0;
	display:block;
}

.fs-kanji {
	writing-mode: vertical-rl;
	text-orientation: upright;
	letter-spacing: 7px;
}

.sekki-info {
	visibility: hidden;
	pointer-events: none;
	display:inline-block;
	position:absolute;
	white-space: nowrap;
	bottom:0;
	right: 2.5em;
	width:100px;
	height:100px;
	box-sizing: border-box;
	text-align:center;
	font-size: var(--wp--preset--font-size--medium);
	padding-top: 3px;
	padding-left: 10px;
	padding-right: 10px;
	
	background-size: 100%;
	background-repeat: no-repeat;
    background-image: url("/naiv/assets/images/cartouches/cartouche-sq.svg");
	font-size:15px;
} 

.floating-sekki:hover .sekki-info {
	visibility: visible;
	pointer-events: auto;
}

.sekki-transcript, .sekki-translate {
	word-wrap: break-word;      /* IE 5.5-7 */
	white-space: -moz-pre-wrap; /* Firefox 1.0-2.0 */
	white-space: pre-wrap;      /* current browsers */
}

.sekki-transcript-wrapper {
	height: calc(100% - 45px);
}
.sekki-transcript {
	position:absolute;
	top:50%;
	left:50%;
	transform:translate(-50%, -50%);
	text-align:center;
	font-size: 1.2em;
}

.floating-sekki .ms-eye-btn {
	margin-left: 50%;
	transform: translateX(-50%);
}

.ms-eye-btn {
	display: inline-block; /* S'assure que le span se comporte comme un élément de type bloc */
	width: 30px; /* Largeur de l'icône, ajuste-la selon la taille de ton image */
	height: auto; /* Hauteur de l'icône */
	content: url('/naiv/assets/icons/eye-btn.svg'); /* Chemin vers ton fichier SVG */
	margin-bottom: 5px;
	filter: invert(22%) sepia(99%) saturate(1658%) hue-rotate(340deg) brightness(88%) contrast(76%);
}
div:hover > .ms-eye-btn {
	filter: invert(36%) sepia(10%) saturate(2554%) hue-rotate(166deg) brightness(99%) contrast(87%);
}

/* -------- FLOATING SEKKI --------- */
#lpi {
	position: absolute;
	width: 100%;
	left: 0;
	bottom: -20px;
	transform: translateY(100%);
	text-align: center;
}
#lpi a {
	text-decoration:none;
}
#lpi span {
	font-style: italic;
	color: #893437;
}
#lpi .arw {
	position: relative;
	display: block;
	width: 20px;
	top: 10px;
	left:50%;
	transform: translateX(-50%);

	color: #893437;
}

/* ====================== MENU ENVOI =========================== */

.blur-popup-bg {
	filter: blur(2px);
}

#pew {
	max-width: 100dvw;
}

#pew .popup {
	max-width: 100%;
}

#pew .popup .content {
	overflow-x: hidden;
	width: 100%;
	height: 100%;
	position: relative;
}

#pew {
	background: rgba(0,0,0,0.5);
	width: 100%;
	height: 100%;
	position: fixed;
	top: 0;
	left: 0;
	max-width: 100%;
	
	
}

#pew * {
	font-family:congenial;
}

#pew .popup {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%,-50%) scale(0.8);
	width:1280px;
	height:720px;
	background-image:url("/naiv/assets/images/enveloppe.webp");
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	padding: 30px;
}

#pew .popup #closeAffran {
	position: absolute;
	top: 1px;
	right: 1px;
	transform: translate(50%,-50%);
	width: 15px;
	height: 15px;
	
	background-color: white;
	background-image: url("/naiv/assets/icons/cross.svg");
	background-size: 60%;
	background-position: center;
	background-repeat: no-repeat;
	border: 1px #999 solid;
	border-radius: 100%;
	
	color: transparent;
	font-size: 0;
}

#pew h3 {
	font-size:30px;
	text-align:center;
	margin-top:30px;
	margin-bottom:20px;
	font-family: slicker;
	color: #003DA5;
}

#pew .affranchissement {
	display: flex;
	flex-direction: row;
	justify-content: center;
	gap: 40px;
}
#pew .timbre {
	width:100px;
	background-size: contain;
	background-position: center;
	background-repeat: no-repeat;
	aspect-ratio:9/14;
	position: relative;
	filter: drop-shadow(1px 1px 1px #212426);
}

#pew .timbre .labelwrapper {
	font-size: 24px;
	width: 100%;
	text-align: center;
	position: absolute;
	bottom: 35px;
	left: 50%;
	transform: translate(-50%,50%);
	padding: 10px;
	box-sizing: border-box;
	line-height: 1;
}
#pew .timbre .label {
	color: #fff;
	text-shadow:
		0px 0px 2px #000, 
		0px 0px 2px #000, 
		0px 0px 2px #000, 
		0px 0px 2px #000,
		0px 0px 2px #000;
}


#pew .trimbre-wrapper {
	padding:15px;
	width: 130px;
	box-sizing: border-box;
}

#pew .trimbre-wrapper.selected {
	--bodrer-width:4px;
	border: var(--bodrer-width) #212426 dashed;
	padding:calc(15px - var(--bodrer-width));
}

#pew .out-label {
	text-align: center;
	font-family: slicker;
	color: #003DA5;
	margin-left:-15px;
	margin-right:-15px;
}

#pew #stm1 {
	background-image:url("/naiv/assets/images/stamp/1.webp");
}
#pew #stm2 {
	background-image:url("/naiv/assets/images/stamp/2.webp");
}
#pew #stm3 {
	background-image:url("/naiv/assets/images/stamp/3.webp");
}


#pew .destinataire {
	margin-top: 50px;
}

.boutons {
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	bottom: 0;
	margin-bottom:50px;
	
	display: flex;
	flex-direction: row;
	justify-content: center;
	gap: 40px;
}


.boutons .send-btn {
	box-shadow: 0px 0px 2px #212426;
	width: 265px;
	height: 50px;
	position:relative;
	background: var(--btn-main-color);
	display: flex;
	flex-direction: row;
	justify-content: center;
	gap: 0;
}

.boutons .send-btn a {
	height: 100%;
	width: 100%;
}

.boutons .send-btn,
.boutons .send-btn a {
	display: flex;
	flex-direction: row;
	justify-content: center;
	gap: 0;
	color: white;
}

.boutons .send-btn .icon {
	backgound:green;
	height:100%;
	aspect-ratio:1;
}

.boutons .send-btn .label-wrp {
	width:100%;
	height:100%;
	position: relative;
}

.boutons .send-btn .label {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	text-align:center;
	width:100%;
	white-space: nowrap;
}

#copy-btn #copy-link {
	width: 195px;
	height: 30px;
	background-color: rgba(255, 255, 255, 0.2);
	color:inherit;
	margin-left:5px;
}
#copy-btn .label {
	text-align: left;
}

#pew .boutons #mail-btn {
	--btn-main-color:#0063b0;
}
#pew .boutons #copy-btn {
	--btn-main-color:#36454F;
	width: 400px;
	position: relative;
}
#pew .boutons #wa-btn {
	--btn-main-color:#2CB742;
}


.boutons .send-btn .icon {
	background-size: auto 80%;
	background-position: center;
	background-repeat: no-repeat;
}

#wa-btn .icon {
	background-image:url("/naiv/assets/icons/wa-white.svg");
}
#copy-btn .icon {
	background-image:url("/naiv/assets/icons/link-white.svg");
	rotate:-45deg;
}
#mail-btn .icon {
	background-image:url("/naiv/assets/icons/mail-white.svg");
}

#copy-btn #copy-popup {
	position: absolute;
	top: 5px;
	padding: 6px 12px;
	background-color: #333;
	color: #fff;
	border-radius: 4px;
	font-size: 14px;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s, transform 0.3s;
	transform: translateY(-10px);
}

/* cute imput */

.form__group {
	position: relative;
	top: 50%;
	left: 50%;
	transform: translate(-50%,-50%);
	width: fit-content;
	
  position: relative;
  padding: 15px 0 0;
  margin-top: 10px;
  width: 340px;
}

.form__field {
	background: white;
	color: #242424;
	height: 23px;
	width: 340px;
	text-align:center;
	
  font-family: inherit;
  width: 100%;
  border: 0;
  border-bottom: 2px solid #9b9b9b;
  outline: 0;
  font-size: 1.3rem;
  padding: 7px 0;
  transition: border-color 0.2s;
}
.form__field::placeholder {
  color: transparent;
}
.form__field:placeholder-shown ~ .form__label {
  font-size: 1.2rem;
  cursor: text;
  top: 23px;
  color: #9b9b9b;
}

.form__label {
	text-align: center;
	width: 100%;
	margin-top: -6px;
	
  position: absolute;
  top: 0;
  display: block;
  transition: 0.2s;
  font-size: 1rem;
  color: #404040;
}


.form__field:focus {
  padding-bottom: 6px;
  font-weight: 500;
  border-width: 3px;
  border-image: linear-gradient(to right, #11998e, #38ef7d);
  border-image-slice: 1;
}
.form__field:focus ~ .form__label {
  position: absolute;
  top: 0;
  display: block;
  transition: 0.2s;
  font-size: 1rem;
  color: #11998e;
  font-weight: 700;
}

/* reset input */
.form__field:required, .form__field:invalid {
  box-shadow: none;
}

/* ====================== INVISIBLE =========================== */
	.invisible {
		visibility:hidden !important;
		position: absolute !important;
		pointer-events: none !important;
	}
	
	
.buttonOnEdit {
	cursor: url(/naiv/assets/cursors/clickable.svg) 0 0, default;
}

#reply-container {
	display:none;
}