/** =============== Global =============== **/ 
html, body {
	height: 100%;
}
:where(.wp-site-blocks) > * {
	margin-block-start: 0;
}

.naiv-dev-tool {
	display: none;
}

#absolute-center {
	width: 20px;
	height: 20px;
	border: 2px solid red;
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%,-50%);
	z-index: 9999;
}
#absolute-center:before {
	content: '';
	width: 100dvw;
	height: 2px;
	background: yellow;
	border: 2px dotted green;
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%,-50%);
	z-index: 9999;
}
#absolute-center:after {
	content: '';
	width: 2px;
	height: 100dvh;
	background: violet;
	border: 2px dotted blue;
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%,-50%);
	z-index: 9999;
}

/** =============== Specific =============== **/ 

/** ======= Menu boussole =======**/ 
html { 
	--menu-top-margin: 1.5rem;
	--menu-bottom-height: 43px; /**36**/

	--total-menu-area-height: calc(
		(var(--menu-bottom-height) * 1.75)
		+ (var(--menu-top-margin) * 2)
	);
}

main > .entry-content:first-child {
	margin-block-start: var(--total-menu-area-height);
}

#menu-boussole-overlay {
	position:fixed;
	z-index: 20;
	top: var(--menu-top-margin);
	left:0;
	width:100%;
	max-width: 100dvw;
}

.text-logo {
	margin-left:11px;
	display:inline-block;
	position:absolute;
	z-index:-1;
	top: 50%;
	left: 50%;
	transform:translate(-50%, -50%);
	
}
.text-logo .left {
	margin-right: 100px;
}
.text-logo {
	font-size: 25px;
	font-family: zenjirou;
	font-weight: 700;
	letter-spacing: 5.5px;
	font-style: italic;
	color:#DBD2C9;
	/*text-transform: uppercase;*/
	/* --shd-w:1px;
	--shd-c:#DBD2C9;
	text-shadow: 
		-1px 0 var(--shd-w) var(--shd-c), 0 1px var(--shd-w) var(--shd-c), 1px 0 var(--shd-w) var(--shd-c), 0 -1px var(--shd-w) var(--shd-c), 
		-1px 0 var(--shd-w) var(--shd-c), 0 1px var(--shd-w) var(--shd-c), 1px 0 var(--shd-w) var(--shd-c), 0 -1px var(--shd-w) var(--shd-c), 
		-1px 0 var(--shd-w) var(--shd-c), 0 1px var(--shd-w) var(--shd-c), 1px 0 var(--shd-w) var(--shd-c), 0 -1px var(--shd-w) var(--shd-c), 
		-1px 0 var(--shd-w) var(--shd-c), 0 1px var(--shd-w) var(--shd-c), 1px 0 var(--shd-w) var(--shd-c), 0 -1px var(--shd-w) var(--shd-c);
 */
}
.text-logo .caps {
	font-size: 36px;
}

.text-logo .big-caps {
	font-size: 42px;
	color:#8A0000;
}

#menu-boussole-container {
	margin-left:auto;
	margin-right:auto;
	
	transition: max-width 0.5s ease, padding 0.25s ease;  
	width: 0;
	max-width:0;
	padding-left: 0;
}
#menu-boussole-container.expanded {
	width:fit-content;
	max-width:1200px;
	padding-left: 12px;
}

#responsive-menu-selector {
	display: none;
}

#menu-boussole-red {
	margin-top: calc(var(--menu-bottom-height) * 0.75);
}
	
#menu-boussole-red .menu-items {
	display:flex;
	width: fit-content;
	max-width: 100%;
	margin-left: auto;
	margin-right: auto;
	height: var(--menu-bottom-height);
	color:white;
	padding-left: 0;
	
}

#menu-b-left, #responsive-menu-selector {
	width: fit-content;
	max-width: 100%;
	align-content: center;
	overflow-x: clip;
	overflow-y: visible;
	height: calc(var(--menu-bottom-height) * 1.75);
	margin-top:calc(-0px - var(--menu-bottom-height) * 0.75);
	text-align:right;
	white-space: nowrap;
}

html {
	--compass-width:95px;
}

#menu-b-center {
	position:relative;
	width: 0;
	align-content: center;
	padding: 0px;
}
#menu-b-center .img {
	background-image:url("/naiv/assets/images/love-compass.webp");
	background-size: contain;
	background-position: center;
	background-rpeat: no-repeat;
	width:var(--compass-width);
	height:var(--compass-width);
	position:absolute;
	top: 10%;
	left: 100%;
	transform: translate(-50%, -50%);
}
#menu-b-center .img:hover { 
	filter: brightness(1.1);
}


#menu-boussole-container .item-container {
	display: inline-block;
	text-align: center;
	min-width: 150px;
	position: relative;
	overflow-y: visible;
	/**border-left: 2px solid black;**/
	margin-top: -2px;
}
#menu-boussole-container .item-container:first-child {
	border-left: 0px solid transparent;
}

#menu-boussole-container .item-container > div {
	
}

#menu-boussole-container .item-container > a > * {
	padding-left: 10px;
	padding-right: 10px;
}

#menu-boussole-container .item-container:last-child .in-menu {
	padding-left: 15px;
	padding-right: 55px;
}

#menu-boussole-container .item-container > a {
	text-decoration: none;
}

#menu-boussole-container .item-day, #menu-boussole-container .item-label {
	font-style: italic;
}

#menu-boussole-container .item-day {
	position:relative;
	font-family:mistral;
	font-size:1.2em;
	line-height: calc(var(--menu-bottom-height) * 0.75 - 1px);
	letter-spacing: 2px;
}

#menu-boussole-container .item-label {
	/**border-top: 2px solid black;**/
	margin-top: -2px;
	margin-bottom: 2px;
	position:relative;
}

#menu-boussole-container .in-menu .svg-bg {
    position: absolute;
    width: 100%;
    height: 100%;
	left: 0;
	top: 0;
    z-index: -1;
}

#menu-boussole-container .item-day .svg-bg {
	transform: rotate(180deg);
}

#menu-boussole-container .item-container:first-child .item-day .svg-bg {
	transform: scaleY(-1);
}
#menu-boussole-container .item-container:last-child .item-label .svg-bg {
	transform: scaleX(-1);
}

/** CELL BG COLOR **/

#menu-boussole-container .item-day .svg-bg {
	color: #4E5C72;
}

#menu-boussole-container .item-label .svg-bg {
	color: #FFF2CC;
}
#menu-boussole-container .Jeudi .item-label .svg-bg {
	color: #8A0000;
}

#menu-boussole-container .item-container:hover .item-day,
#menu-boussole-container .item-container:hover .item-label {
	filter: brightness(1.1);
}

/** CELL TXT COLOR **/

#menu-boussole-container .item-day .txt-content {
	color:#C1D0D9;
}

#menu-boussole-container .item-descr .txt-content {
	color: #D6ACAA;
}

#menu-boussole-container .item-descr {
	border-top: 2px solid black;
	position: absolute;
	bottom: 2px;
	transform: translateY(100%);
	width:100%;
	white-space: normal;
	visibility:hidden;
	background-image:url("/naiv/assets/images/calmenu-darkblue-bannerextended.svg");
	background-size: contain;
	background-position: center;
	
	font-family:creative-over;
	font-size:14px;
	letter-spacing: 2px;
}

#menu-boussole-container .item-descr .number {
	font-family:shikamaru;
}

#menu-boussole-container .item-container  .item-descr {
	margin-left: 0px;
	padding:10px;
	box-sizing: border-box;
}

#menu-boussole-container .item-container:hover .item-descr {
	visibility: visible;
}


#shining  {
  pointer-events: none;
  position: absolute;
  top: -50%;
  left: 50%;
  width: 60px;
  height: 60px;
  transform: translate(-50%, -7%);
  border-radius: 100%;
  overflow: hidden;
}

/*---
  shine animation
---*/

@keyframes shine {
  20% {
	opacity: 0;
    top: -110%;
    left: -210%;
  }
  23% {
	opacity: 1;
    top: -110%;
    left: -210%;
  }

  35% {
	opacity: 1;
    top: -30%;
    left: -30%;
  }
  
  100% {
	opacity: 0;
    top: -30%;
    left: -30%;
  }
}

#shining: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%
  );
}



/** ======= Cal =======**/ 
#cal-overlay {
	position:fixed;
	z-index: 15;
	margin-block-start: 0;
	top:0;
	left:0;
	max-width:unset;
	width:100%;
	height:100%;
	visibility: hidden;
	opacity: 0;
	pointer-events: none; 
}
#cal-overlay.displayed {
	pointer-events: auto;
	visibility: visible;
	opacity: 1;
}
#cal-container {
	--cal-top-margin: calc(var(--menu-top-margin) * 2 + var(--menu-bottom-height) * 1.75);
	--cal-max-height:calc(100dvh - var(--cal-top-margin));
	--cal-padding: 70px;
	
	overflow: hidden;
	position:relative;
	top:var(--cal-top-margin);
	width:1300px;
	max-width:100dvw;
	margin-left:auto;
	margin-right:auto;
	background: url("/naiv/assets/images/book.webp"); /** no-repeat; **/
	background-size: cover;
	background-position: center center;
	border-radius: 25px;
} 
#entete-menu {
	margin-top: -35px;
	width: 100%;
	display: flex;
	flex-direction: row;
	justify-content: center;
	margin-bottom: 15px;
}

#entete-menu .light {
	color:#8A0000;
}

#entete-menu .left, #entete-menu .right {
	display: block;
	width: 50%;
	text-align: center;
	font-family: creative-over;
	letter-spacing:5px;
	font-size:15px;
	
	color: #253144;
}

#book-menu-row1 {
	position:absolute;
	width:calc(100% - 10px);
	height:0;
	margin: 0 calc(var(--cal-padding) /12);
	top: 50%;
}
#book-menu-row2 {
	position:absolute;
	width:calc(100% - 10px);
	height:0;
	margin: 0 calc(var(--cal-padding) /12);
	top: 90%;
}
.book-btn {
	background: none;
	border: none;
	background-size: contain;
	background-repeat: no-repeat;
	background-position: 50% 50%;
	/* put the height and width of your image here */
	height: 55px;
	width: 55px;
}
.book-btn span {
	display: none;
}
.book-btn.inactive {
	opacity: 0.4;
}


#book-btn-previous {
	transform: scale(-1, -1);
	background-image: url("/naiv/assets/icons/arrow.svg");
	float: left;
}
#book-btn-next{
	background-image: url("/naiv/assets/icons/arrow.svg");
	float:right;
}

#book-btn-start {
	transform: scale(-1, -1);
	background-image: url("/naiv/assets/icons/arrow2.svg");
	float: left;
}
#book-btn-end{
	
	background-image: url("/naiv/assets/icons/arrow2.svg");
	float:right;
}

#cal-micro {
	scrollbar-width: thin;
	scrollbar-color: rgba(102,102,102,0.7) rgba(255,255,255,0);
}

#cal-micro {
	max-height: calc(var(--cal-max-height) - var(--cal-padding) * 2);
	overflow: auto;
	padding: calc(var(--cal-padding) * 0.75) var(--cal-padding);
}
	
.bookpage {
	position:absolute;
	visibility: hidden;
	opacity: 0;
	pointer-events: none;
	margin-left:12px;
}
#cal-overlay.displayed .bookpage.displayed {
	pointer-events: auto;
	position:static;
	visibility: visible;
	opacity: 1;
}
	
.ligne {
	display: flex;
	flex-direction: row;
}
	
.onpage {
	position:relative;
	display: flex;
	flex-direction: row;
	width: 50%; 
	margin-top:5px;
	margin-bottom:5px;
}

a.fill-onpage {
	height: 100%;
	width: 100%;
	text-decoration: none;
	display: flex;
	flex-direction: row;
}
.simili-btn:hover {
	filter: saturate(1.5);
	background:rgba(0, 0, 0, 0.040);
	border:2px dashed rgba(0, 0, 0, 0.1);
	margin:-2px;
}

.p-b .simili-btn:hover {
	background-image: url("/naiv/assets/icons/speaker.svg");
	background-position: center;
	background-repeat: no-repeat;
	background-size: auto 75px;
}
	
.ligne:nth-child(odd) .onpage {
	background:rgba(0,0,0,0.05);
}
.onpage.p-a {
	margin-right:20px;
}
.onpage.p-b {
	margin-left:20px;
}  


.ligne.ligne-sekki {
	position:relative;
	margin-top:5px;
	margin-bottom:5px;
}
.ligne.ligne-sekki .onpage {
	background:unset;
	position:relative;
	/*font-weight:550;
	border-top:1px solid darkred;
	border-bottom:1px solid darkred;*/
}
.ligne.ligne-sekki .onpage:before,
.ligne.ligne-sekki .onpage:after {
	position:absolute;
	content:'';
	height:2px;
	width:100%;
	-webkit-mask: url("/naiv/assets/images/border.svg");
	mask: url("/naiv/assets/images/border.svg");
	mask-size: auto 100%;
	mask-position: center;
	mask-repeat: repeat-X;
	background-color: var(--border-color);
}
.sekki-svg-bg {
	position: absolute;
	height: 100%;
	width: 100%;
}

.ligne.ligne-sekki .onpage:before {
	top:0;
}
.ligne.ligne-sekki .onpage:after {
	bottom:0;
}
	

.ligne.ligne-sekki .p-a {
	justify-content: center;
}
.ligne.ligne-sekki .p-b {
	justify-content: center;
}

.sub-line {
	width:50%;
}
	
.cell {
	padding-left:10px;
	padding-right:10px;
	
	width: 50%;
}
.subcell {
	width:100%;
}
.cell, .subcell {
	display:table;
	vertical-align: middle;
} 
.cell {
	display:table-cell;
	vertical-align:middle
}

.cell > * {
	width: 100%;
	position: relative;
	top: 50%;
	transform: translateY(-50%);
	display: inline-block;
}
.cell span {
	vertical-align: middle;
}
	
.cell.cell-key {
	width: auto;
}


.cell.cell-date {
	background:unset;
	padding-left:30px;
	padding-right:20px;
	width: 100%;
}
.subcell.cell-datefr {
	font-weight: bold;
}
.subcell.cell-datefr, .subcell.cell-daterep {
	color:#610101;
}
.subcell.cell-daterep {
	text-align: right;
	font-style: italic;
}
.cell.cell-jourrep {
	width: 100%;
}
.cell.cell-japanko {
	width: 50%;
}
.cell.cell-kofr {
	width: 50%;
}

.cell.cell-thumbnail {
	width:100px;
}
.cell.cell-thumbnail img {
	width:60px;
	height:60px;
}

.scotched-pic {
	border:5px white solid;
	box-sizing: border-box;
	rotate: 5deg; 
}

.scotch-wrapper {
	position: relative;
    top: 50%;
    transform: translateY(-50%);
    vertical-align: middle;
	width:fit-content;
}

.scotch-wrapper:after {
	position: absolute;
	width: 60px;
	right: -20px;
	top: 0;
	rotate: var(--scotch-rotate); 
	content: '';
	height: 15px;
	background-image: url("/naiv/assets/images/scotch/1.webp");
	background-size: contain;
	background-repeat: no-repeat;
}

.scotch-1:after {
	background-image: url("/naiv/assets/images/scotch/1.webp");
}
.scotch-2:after {
	background-image: url("/naiv/assets/images/scotch/2.webp");
}
.scotch-3:after {
	background-image: url("/naiv/assets/images/scotch/3.webp");
}
.scotch-4:after {
	background-image: url("/naiv/assets/images/scotch/4.webp");
}

.postal-card {
	position: absolute;
	z-index:15;
	left: calc(100% - 80px);
	top: 50%;
    transform: translateY(-50%);
	width: 400px;
	height: 250px;
	background-image: url("/naiv/assets/images/postalcard.webp");
	background-size: contain;
	background-repeat: no-repeat;
	rotate: 5deg; 
	display:none;
	box-shadow: 1px 3px 4px 0px #3d3d3d;
}

.sub-line:hover .postal-card {
	display:block;
}

.postal-card a {
	padding:0px;
	box-sizing: border-box;
}
.postal-card img {
	height:100%;
}
.postal-card .ipsumpostal {
  font-family: dream-script;
  font-size: 13px;
  line-height: 1.65em;
  display: block;
  position: absolute;
  width: 28%;
  right: 20px;
  top: 49%;
  word-spacing: 3px;
}
.postal-card .ipsumpostal .fisrtline {
	position: relative;
	left:7px;
}

.hovertextpostal {
	background-image: url("/naiv/assets/images/faire-signe.svg");
	background-size: contain;
	background-repeat: no-repeat;
	position: absolute;
	font-family: slicker;
	text-shadow: #176478 0 0 7px, #176478 0 0 7px, #176478 0 0 7px, #176478 0 0 7px, #176478 0 0 7px;
	font-size: 3em;
	line-height: 1em;
	color: white;
	rotate: -20deg;
	top: 50%;
	left:20px;
	transform: translateY(-50%);
	width: 100%;
	height: 40%;
}

/** OPTIMISATION **/
#cal-overlay .bookpage img {
	display:none;
}

#cal-overlay.displayed .bookpage.displayed img {
	display:block;
}
