/*
Theme Name: Enigme Child theme
Theme URI: 
Description: Twenty Twenty Child Theme
Author: Elise BASTY
Template: twentytwentythree
Version: 1.0.0
*/

/**** FONT ****/

@font-face {
    font-family: 'old';
    src: url('fonts/oldnewspapertypes-webfont.eot');
    src: url('fonts/oldnewspapertypes-webfont.eot?#iefix') format('embedded-opentype'),
         url('fonts/oldnewspapertypes-webfont.woff2') format('woff2'),
         url('fonts/oldnewspapertypes-webfont.woff') format('woff'),
         url('fonts/oldnewspapertypes-webfont.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}


body {
	position: relative;	
	background-image: url('/wp-content/uploads/2023/06/bg-secret.jpg');
	background-repeat: no-repeat;
	background-position: center center;
	background-size: cover;
	font-family: 'old';	
}

body.home,
body.page-id-9,
body.page-id-30 {
	height: 100vh;
	overflow: hidden;
}


/****** MENU **********/
.menu-perso {
	position: absolute;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
	margin-top: 15px;
}
.menu-perso ul {
	list-style-type: none;
	padding-left: 0;
	margin-top: 0;
}
.menu-perso ul li {
	position: relative;
	text-transform: uppercase;
	font-family: 'old';
	font-size: 12px;
    letter-spacing: 2px;
	line-height: 30px;
	text-align: right;
    padding-right: 45px;
	transition: padding-right 1.5s;	
}
.menu-perso ul li:after {
	content: '';
	width: 30px;
	height: 1px;
	background-color: black;
	position: absolute; 
	right: 0;
	top: 50%;
	transition: width 1.5s;
}
.menu-perso ul li a:before {
	opacity: 0;
	transition: opacity 1.5s;
}
.menu-perso ul li:hover {
	padding-right: 85px;
}
.menu-perso ul li:hover a:before {
	content:'';
	background-image: url('/wp-content/uploads/2023/06/trait.png');
	background-size: contain;
	background-repeat: no-repeat;
	width: 40px;
	height: 7px;
	position: absolute; 
	left: 50%;
    top: 17px;
    transform: translate(-50%);
	opacity: 1;
}
.menu-perso ul li:hover:after {
	width: 70px;
}
.menu-perso ul li a {
	text-decoration: none;
	color: black;
	position: relative;
}
.home .menu-perso ul li.page-code {
	padding-right: 85px;
}
.home .menu-perso ul li.page-code:after {
	width: 70px;
}
body.page-id-30 .menu-perso ul li.page-indices {
	padding-right: 85px;	
}	
body.page-id-30 .menu-perso ul li.page-indices:after {
	width: 70px;
}

/* Responsive Menu */

@media only screen and (max-width : 1365px) {
	.menu-perso {
		position: absolute;
		right: 0;
		left: 50%;
		top: 0;
		transform: translate(-50%);
		margin-top: 30px;
		text-align: center;	
		width: 100%;	
	}
	.menu-perso ul {
		display: flex;
		flex-direction: row;
		align-items: flex-start;
		justify-content: center;
		width: 100%;
	}
	.menu-perso ul li {
		padding-top: 20px;
		padding-right: 0;
		flex-basis: 50%;
		width: 50%;
		flex-grow: 0;
	}
	.menu-perso ul li:after {
		width: 1px;
		height: 40px;
		top: 0;
	}
	.menu-perso ul li:first-child {		
		margin-right: 10px;
		text-align: right;
	}
	.menu-perso ul li:last-child {
		margin-left: 10px;
		text-align: left;
	}
	.menu-perso ul li:first-child a {
		padding-right: 15px;
	}
	.menu-perso ul li:last-child a {
		padding-left: 15px;
	}
	.menu-perso ul li:first-child:after {
		right: 0;
	}
	.menu-perso ul li:last-child:after {
		right: inherit;
		left: 0 !important;
	}
	.menu-perso ul li:hover:after,
	.home .menu-perso ul li.page-code:after,
	body.page-id-30 .menu-perso ul li.page-indices:after  	{
		width: 1px;
		height: 70px;
	}
	.menu-perso ul li:hover,
	.home .menu-perso ul li.page-code,
	body.page-id-30 .menu-perso ul li.page-indices	{
		padding-top: 50px;
		padding-right: 0;
	}
} 
@media only screen and (max-width : 768px) {
	.menu-perso {		
		background-image: url('/wp-content/uploads/2023/06/bg-secret.jpg');
		background-repeat: no-repeat;
		background-position: center center;
		background-size: 300%;
		z-index: 1000;
	}
}

/****************************************************/
/******************** FORMULAIRE ********************/
/****************************************************/

form.wpcf7-form .form-secret-code p {
text-align: center;}
form.wpcf7-form .form-secret-code label {
	text-align: center;
	font-size: 15px;
    letter-spacing: 5px;
    text-transform: uppercase;
}
form.wpcf7-form .form-secret-code label input.wpcf7-quiz {
	border: 0;
    border-bottom: 1px solid black;
    padding: 5px 0;
    text-align: center;
    background-color: transparent;
    width: 100%;
	line-height: 60px;
	font-size: 30px;
	font-family: 'old';
	letter-spacing: 10px;
}
form.wpcf7-form .form-secret-code label input.wpcf7-quiz:focus,
form.wpcf7-form .form-secret-code label input.wpcf7-quiz:focus-visible {
	border: 0;
    border-bottom: 1px solid black;
	outline: 0;
}
form.wpcf7-form .form-secret-code input[type="submit"] {
    background-color: black;
	color: white;
    border: 0;
    padding: 15px 25px;
    text-transform: uppercase;
	font-family: 'old';
	font-size: 11px;
    letter-spacing: 2px;
	margin-top: 10px;
	cursor: pointer;
}

form.wpcf7-form .form-secret-code input[type="submit"] + .wpcf7-spinner {
	display: none;
}

/* Message d'erreur */
.wpcf7-not-valid-tip {
	display:inline-block;
	position: relative;
	margin-top: 15px;
}
.wpcf7-not-valid-tip:before {
	content: '';
	background-image: url('/wp-content/uploads/2023/06/echec.png');
	position: absolute;
	left: -10px;
    top: 6px;
    width: 16px;
    height: 17px;
    background-size: contain;
    background-repeat: no-repeat;	
}
.wpcf7 form.invalid .wpcf7-response-output {
	display: none;
	text-align: center;
	color: #dc3232;
	position: relative;
	border: 0;
}

/* Message valide */
.wpcf7 form.sent .wpcf7-response-output {
	border: 0;
    color: #46b450;
    padding: 0;
	position: relative;
	text-align: center;
}

.wpcf7 form.sent .wpcf7-response-output:before {
	content: '';
	background-image: url('/wp-content/uploads/2023/06/valid.png');
	position: absolute;
	left: -10px;
    top: 6px;
    width: 16px;
    height: 17px;
    background-size: contain;
    background-repeat: no-repeat;
}



/****************************************************/
/****** HOME *****/
/****************************************************/

.home h1.wp-block-post-title {
	display: none;
}

.wp-site-blocks {
	height: 100vh;
	padding: 0;
}
header.wp-block-template-part,
footer.wp-block-template-part,
section.wp-block-template-part {
	display: none;
}

main.toto {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	height: 100%;
	margin-top: 0 !important;
	margin-block-start: 0;
}

.entry-content {
width: 50vw;}


body .is-layout-flow > * + * {
    margin-block-start: 0;
    margin-block-end: 0;
}


/****************************************************/
/***** PAGE MESSAGE DEVEROUILLE ****/
/****************************************************/

body.page-id-9 h1.wp-block-post-title {
	display: none;
}
body.page-id-9 p.has-text-align-center {
	margin-top: 0;
}



/****************************************************/
/***************** PAGE INDICES *********************/
/****************************************************/

body.page-id-30 main {
	overflow-y: auto;
	padding: 10vh 0;
}
body.page-id-30 .is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
	max-width: 100%;
}
body.page-id-30 .wp-block-columns .eb-accordion-container {
	/*margin-bottom: 50px;*/
	box-shadow: 2px 2px 13px rgba(0, 0, 0, 0.1);
}
body.page-id-30 .wp-block-columns .eb-accordion-container .eb-accordion-title-wrapper {
	background-image: none;
	background-color: white;
	position: relative;	
	padding-top: 50px;
	padding-bottom: 30px;
}

body.page-id-30 .wp-block-columns .eb-accordion-container .eb-accordion-title-wrapper:before {
	content: 'Indice';
	color: #dc3232;
	width: calc(100% - 40px);
    display: block;
    position: absolute;
    top: 20px;
    left: 20px;
    border-bottom: 1px solid #dc3232;
    font-size: 8px;
    letter-spacing: 4px;
    line-height: 19px;
    text-transform: uppercase;
}

body.page-id-30 .wp-block-columns .eb-accordion-container .eb-accordion-title-wrapper h3 {
	margin-top: 15px;
	flex: unset;
	flex-basis: 70%;
	color: black;
}
body.page-id-30 .wp-block-columns .eb-accordion-container .eb-accordion-title-wrapper  .eb-accordion-icon-wrapper  {
	flex-basis: 30%;
	position: relative;
    height: 20px;
}
body.page-id-30 .wp-block-columns .eb-accordion-container .eb-accordion-title-wrapper  .eb-accordion-icon-wrapper  .eb-accordion-icon {
	width: 100%;
	position: relative;
}

body.page-id-30 .wp-block-columns .eb-accordion-container .eb-accordion-icon:before {
	content: '';
	background-image: url('/wp-content/uploads/2023/06/arrow-r.png');
	background-size: contain;
	background-repeat: no-repeat;
	position: absolute;
	right: 0;
    top: 0;
    width: 50px;
    height: 25px;
}

.eb-flipbox-items-container {
	flex-direction: column-reverse;
	margin-top: -25px;
	cursor: pointer;
}

.eb-flipbox-items-container .eb-flipbox-icon-wrapper img {
	height: 27px !important;
	position: absolute;
    right: 20px;
    bottom: -40px;
}

.eb-flipbox-front .eb-flipbox-items-container .eb-flipbox-front-title-wrapper h3 {
	padding-top: 25px !important;
}
.eb-flipbox-items-container .eb-flipbox-front-content-wrapper {
	width: 90%;
}
.eb-flipbox-items-container .eb-flipbox-front-content-wrapper p.eb-flipbox-front-content{
	font-size: 9px;
	letter-spacing: 5px;
	text-transform: uppercase;
	line-height: 19px;
	border-bottom: 1px solid white;	
}

/* RESPONSIVE GLOBAL */

@media only screen and (max-width : 1365px) {
	body.page-id-30  main.toto {
		justify-content: flex-start;
}

@media only screen and (max-width : 767px) {
	.entry-content {
		width: 80vw;
	}
}

@media only screen and (max-width : 1199px) {
	.entry-content {
		width: 65vw;
	}
	body.page-id-30 main h1.wp-block-post-title {
		margin: 50px 0 !important;
	}
}

