@font-face {
	font-family: 'Mulish';
	src: url('/fonts/Mulish-VariableFont_wght.ttf') format('truetype');
	font-weight: 200 900; font-style: normal; font-display: swap;
}
@font-face {
	font-family: 'Mulish';
	src: url('/fonts/Mulish-Italic-VariableFont_wght.ttf') format('truetype');
	font-weight: 200 900; font-style: italic; font-display: swap;
}

@font-face {
	font-family: 'Crimson Pro'; font-style: normal; font-weight: 400; /* Regular weight */
	src: url('/fonts/CrimsonPro-Regular.ttf') format('truetype');
	font-display: swap; /* Ensures text is visible during font loading */
}
@font-face {
	font-family: 'Crimson Pro'; font-style: normal; font-weight: 600; /* SemiBold weight */
	src: url('/fonts/CrimsonPro-SemiBold.ttf') format('truetype');
	font-display: swap; /* Ensures text is visible during font loading */
}

/* FUNCTION ******************************************************************************************************/

.clear { clear: both; }

html { font-size:100%; box-sizing:border-box; }*,*:before,*:after { box-sizing:inherit; }
html { -ms-text-size-adjust:100%; -webkit-text-size-adjust:100%; }
body { margin: 0; padding: 0; overflow-y: scroll; background-color: rgb(0,0,150); }

#to-the-top {
	width: 40px; height: 40px; display: none; position: fixed; bottom: 20px; right: 30px; z-index: 99; font-size: 24px;
	border: none; outline: none; background-color: #000055; color: white; cursor: pointer; border-radius: 4px;
}

/* BKG ********************************************************************************/

#fix-background-container { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -2;
background-image: url("/images/bkg.jpg"); background-size: cover; background-position: center; background-repeat: no-repeat; }

/* Page Title **********************************************************************************************/

.title-and-mode { position: relative; width: 100%; }

.page-title { width: 100%; height: auto; }
.page-title img { display: block; height: 5.5rem; margin: 0 auto; }

.mode-wrapper-under-title { position: absolute; top: calc(100% + 2rem); left: 0.5rem; z-index: 1; width: 17.5rem; height: auto; padding: 1rem; border-radius: 0 0 1rem 1rem; background-color: rgba(0,0,125,0.4); }

/* HOME PAGE *************************************************************************/

.home-under-banner {
    --outer-margin: 1rem;
    --main-gap: 2rem;
    --inner-gap: 1rem;

    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--main-gap); align-items: start; width: 100%; box-sizing: border-box; padding: 0.4rem var(--outer-margin) 0; }

.home-under-banner-right { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--inner-gap); align-items: start; min-width: 0; margin: 0; padding: 0; }
.home-under-banner a { display: block; min-width: 0; margin: 0; padding: 0; }
.home-under-banner img { display: block; width: 100%; height: auto; }

.home-content { width: 100%; display: flex; flex-direction: row; }
.home-content-left { width: 50%; height: auto; padding: 1.5rem 1rem 1rem 1rem; }
.home-content-right { display: flex; flex-direction: column; width: 50%; padding: 1.5rem 1rem 1rem 1rem; }

/* NEW BANNER WITH CIRCLE *************************************************************************/

.banner-with-circle { position: relative; display: block; width: 100%; isolation: isolate; }
.banner-with-circle > .banner-circle { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; overflow: visible; }
.banner-with-circle > img { position: relative; display: block; width: 100%; height: auto; z-index: 1; }

.banner-width-100 { aspect-ratio: 3000 / 430; }
.banner-width-50 { aspect-ratio: 1500 / 430; }

/* NEW ADVERTISING *************************************************************************/
.home-advertising{ width: 100%; aspect-ratio: 1417 / 3189; height: auto; display: flex; flex-direction: column; align-items: center; padding-top: 2rem; background-image: url("images/plr-advertising-bkg.png"); background-repeat: no-repeat; background-position: top center; background-size: 100% 100%; overflow: hidden; }

/* Make all inner images responsive by default */
.home-advertising img{ display: block; height: auto; }

.home-advertising-title-a { width: 70%; }
.home-advertising-title-b { width: 60%; }
.home-advertising-title-c { width: 60%; }
.home-advertising-book { width: 50%; }
.home-advertising-description-a { width: 70%; }
.home-advertising-description-b { width: 65%; }
.home-advertising-description-c { width: 50%; }

.spacing-item-1, .spacing-item-2, .spacing-item-3, .spacing-item-4, .spacing-item-5, .spacing-item-6, .spacing-item-7 { /*position: relative;*/ width: 100%; height: 1%; transition: height 0.2s ease; }

/* BLOG FEED / ARTICLES PREVIEW  *************************************************************************/

.article-wrapper { display: flex; flex-direction: row; }
.article-image-wrapper { width: 16rem; height: 16rem; display: flex; align-items: flex-start; }
.article-image { width: 16rem; height: 16rem; object-fit: cover; }

.article-titre-and-extract-wrapper { display: flex; flex-direction: column; justify-content: flex-start;	background-color: rgba(255,255,255,0.65); }
.article-titre-wrapper { height: 1.5rem; margin: 1.5rem 1.5rem 1.5rem 1.5rem; }
.article-titre { font-family: 'Mulish', sans-serif; letter-spacing: 0.06rem; font-size: 3rem; margin: 0;	text-align:justify; font-family: 'Mulish', sans-serif; font-weight: bold; font-size: 1.2rem;
 color: #000; }
.article-extract-wrapper { height: 9rem; margin: 0 3rem 0 1.5rem; }
.article-extract { font-family: 'Mulish', sans-serif; font-size: 0.8rem; line-height: 1.6rem; text-align:justify; font-family: 'Mulish', sans-serif; font-weight: bold; font-size: 1.2rem;
 color: #000; }
.continue-link-wrapper { height: 1.5rem; display:block; margin: 0 3rem 0 0.5rem; }
.article-link { font-family: 'Mulish', sans-serif; letter-spacing: 0.06rem; font-size: 1rem; color: rgba(0,60,0); display: block; bottom: 0; padding: 0 0 0.5rem 1rem; }

.articles-separator { width: 100%; height:4px; background-color: #000; margin: 1.3rem 0 1.3rem 0; }

  /* *********************************************************************************************************** */
 /* INSTRUCTION BANNER **************************************************************************************** */
/* *********************************************************************************************************** */

.instructions-banner { position:absolute; z-index: 1; width: 17.5rem; height: auto; top: 0.5rem; left:0.5rem; }

.instructions-banner-show-hide { float: left; width: 2rem; height: 1.2rem; display: flex; justify-content: center; border-top-left-radius: 0.5rem; border-top-right-radius: 0.5rem; background-color: rgba(0,0,125,0.7); }
.instructions-banner-show-hide img { width: 1.2rem; height: 1.2rem; opacity: 0.7; }

.instructions-hidden { display: none; }

.instructions-action { float:left; height: 3.2rem; width: 8rem; margin: 0; display: flex; align-items: center; justify-content: center; }
.instructions-action img { height: 2.8rem; width: auto; margin: auto; }
.instructions-equal { float:left; height: 3.2rem; width: 2.3rem; margin: 0; display: flex; align-items: center; justify-content: center; font-family: 'Mulish', sans-serif; font-style: 500; font-size: 2rem; color: rgba(200,200,255,0.6); }
.instructions-result { float: left; height: 3.2rem;  width: 5.2rem; margin: 0; display: flex; align-items: center; justify-content: center; }
.instructions-result img { height: 2.8rem; width: auto; margin: auto; }

.instructions-mouse-title { display: flex; justify-content: center; align-items: center; width: 100%; height: 2rem; margin: 1rem auto 0 auto; position: relative; }
.instructions-mouse-title img { height: 2rem; width: auto; z-index: 10; }
.instructions-mouse-title::before { content: ""; position: absolute; bottom: 50%; left: 0; width: 100%; height: 4px; background-color: rgba(255, 255, 255, 0.3); transform: translateY(50%); z-index: 1; }

.instructions-keyboard-title { display: flex; justify-content: center; align-items: center; width: 100%; height: 2rem; margin: 1rem auto; position: relative; }
.instructions-keyboard-title img { height: 2rem; width: auto; z-index: 10; }
.instructions-keyboard-title::before { content: ""; position: absolute; bottom: 50%; left: 0; width: 100%; height: 4px; background-color: rgba(255, 255, 255, 0.3); transform: translateY(50%); z-index: 1; }

.instructions-spacing { float: left; width: 100%; height: 1rem; }

.instructions-separator { float: left; width: 100%; height:4px; margin: 1rem 0 1rem 0; background-color: rgba(255,255,255,0.3); }
.instructions-commander { float: left; width: 100%; height: auto; font-family: 'Mulish', sans-serif; font-weight: 500; font-size: 0.8rem; color: #fff; letter-spacing: 0.1em; line-height: 2rem; text-align: center; background-color: rgb(0,0,125); }
.instructions-commander a { color: #fff; text-decoration: underline; }

  /* *********************************************************************************************************** */
 /* ROMAN ***************************************************************************************************** */
/* *********************************************************************************************************** */

.roman-container { width: 100%; display: flex; justify-content: space-between; gap: 20px; padding: 20px; }
.roman-bkg-wrapper { width: 100%; height: auto; background-size: cover; background-repeat: no-repeat; background-position: center; transition: background-image 1.5s ease-in-out; }
.roman-content { flex: 1; text-align: center; }

.roman-content1 { padding: 1rem 2rem 2rem 2rem; margin: 0; background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url("images/plr-ad-bkg.jpg"); background-position: center; background-size: cover; background-repeat: no-repeat; }

.roman-content2 { margin: 0; padding: 1rem 2rem 2rem 2rem; background-color: rgba(255,255,255,0.65); text-align:justify; font-family: 'Mulish', sans-serif; font-weight: bold; font-size: 1.2rem; color: #000; text-decoration: none; }

.plr-advertising-image { width: 20rem; }

.lire-extrait { z-index: 1000; top: 0; left: 0; margin: 5px; width: 128px; height: auto; }

.roman-book-name { width: 100%; text-align: center; }
.roman-book-title { font-family: 'Crimson Pro', serif; font-weight: 400; font-size: 3.5rem; color: #000; letter-spacing: 0.03em; line-height: 4.5rem; text-shadow: 3px 3px 6px rgb(0, 0, 0); }
.roman-book-subtitle { font-family: 'Crimson Pro', serif; font-weight: 400; font-size: 1.6rem; color: #000; letter-spacing: 0.06em; line-height: 2rem; }
.roman-text-commander { width: auto; text-align: center; margin: 1rem 0 0 0; font-family: 'Crimson Pro', serif; font-weight: 400; font-size: 1.5rem; color: #000; letter-spacing: 0.06em; line-height: 2rem; text-decoration: none; }
.roman-text-commander-link { width: auto; text-align: center; margin: 1rem 0 0 0; font-family: 'Crimson Pro', serif; font-weight: 400; font-size: 1.5rem; color: #444; letter-spacing: 0.06em; line-height: 2rem; text-decoration: none; }

.roman-separatior { width: 100%; height:4px; margin: 1.6rem auto 1.6rem auto; background-color: rgba(0,0,0,0.3); }

  /* ***************************************************************************************************************************** */
 /* EXTRAIT ********************************************************************************************************************* */
/* ***************************************************************************************************************************** */

.extrait-container { width: 100%; display: flex; flex-direction: column; align-items: center; }
.extrait-top-banner { position: relative; width: 100%; }
.selection-chapitre { display: flex; flex-direction: row; width: 100%; height: auto; gap: 0.9rem; justify-content: center; font-family: 'Mulish', sans-serif; line-height: 1.5rem; letter-spacing: 0.06rem; font-size: 0.8rem; }

.selection-chapitre-gap { padding: 2rem 0 2rem 0; }
.selection-next-gap { padding: 0 0 2rem 0; }

.selection-chapitre-button-actif {
  width: auto; margin: 0.5rem 0; padding: 0.2rem 0.6rem; display: inline-flex; gap: 0.5rem; justify-content: flex-start; align-items: center;
  border: 1px solid #333; border-radius: 0.6rem; text-decoration: none; color: inherit;
  background-color: #0000aa; color: white;
}

.selection-chapitre-button-actif:hover { background-color: white; color: #0000aa; }
.selection-chapitre-button-span-actif { margin: 0; }

.selection-chapitre-button {
	width: auto; margin: 0.5rem 0; padding: 0.2rem 0.6rem; display: inline-flex; gap: 0.5rem; justify-content: flex-start; align-items: center;
	border-radius: 0.6rem; text-decoration: none; color: inherit;
	background-color: rgba(0, 0, 0, 0.25); color: rgba(255, 255, 255, 0.75);
	cursor: default; user-select: none;
}

.selection-chapitre-button-span { margin: 0; }

#chapitres { scroll-margin-top: 6rem; }

main { max-width: 40rem; margin: 0 auto; }

.center { text-align: center; }

.page { margin-bottom: 3rem; padding: 4rem 4rem 1rem 4rem; background-color: #fbf3eb; min-height: 50rem; }

#texte .page p { margin-top: 0; margin-bottom: 0; font-size: 1.08rem; line-height: 1.7rem; text-align: justify; }
#texte .page p.continues { text-align-last: justify; }
#texte .page p.indent { text-indent: 1.5rem; }

.page-number { width: 4rem; display: block; /* Keep it on its own line */ text-align: center; color: #888; margin: 0.5rem auto 0 auto; }

#texte .page p.text-poem { width: 100%; margin-left: auto; margin-right: auto; font-style: italic; text-align: center; }

.poem{ max-width:30rem; margin:auto; padding:1.2rem 1rem; font-style:italic; }
.poem p{ margin:.35rem 0; text-align:center; }

.last-page-simplifie { margin-bottom: 3rem; padding: 1.5rem 0; background-color: #fbf3eb; }
.last-page-simplifie p { margin: 0.8rem; padding: 0; }

.separateur { width: 100%; margin: 1.5rem 0; display: flex; justify-content: center; }
.separateur img { height: 1.5rem; width: auto; display: block; }

  /* *********************************************************************************************************** */
 /* BIOGRAPHIE ************************************************************************************************ */
/* *********************************************************************************************************** */

.biographie-container { width: 70%; display: flex; justify-content: space-between; margin: 1rem auto 1rem auto; padding: 1rem 1rem 1rem 7rem; }
.biographie-content { flex: 1; text-align: center; }
.biographie-content-left { width: 100%; height: auto; background-color: rgb(0,0,0); text-align:justify; font-family: 'Mulish', sans-serif; font-weight: bold; font-size: 1rem; color: #333; text-decoration: none; }
.biographie-content-right { width: 100%; height: auto; background-color: rgba(255,255,255,0.9);	padding: 3rem; text-align:justify; font-family: 'Mulish', sans-serif; font-weight: bold; font-size: 1rem; color: #333; text-decoration: none; }

.biographie-image-wrapper-height { float:left; position: relative; width: calc(100% - 4rem); margin: 1rem 2rem 1rem 2rem; text-align: center; }
.biographie-image-wrapper-height:after { content: ""; display: block; padding-bottom: 100%; }
.biographie-image-height { position: absolute; height: 100%; width: auto; left: 50%; transform: translate(-50%,0); }

.biographie-image-wrapper-height-sourineige { float:left; position: relative; width: calc(100% - 4rem); margin: 1rem 2rem 1rem 2rem; text-align: center; }
.biographie-image-wrapper-height-sourineige:after { content: ""; display: block; padding-bottom: 75%; }
.biographie-image-height-sourineige { position: absolute; height: 100%; width: auto; left: 50%; transform: translate(-50%,0); }

.biographie-image-frame { border: 1px solid rgba(0, 0, 0, 0.4);}

  /* ***************************************************************************************************************************** */
 /* BOOK (and maybe MAGAZINE) 3D ******************************************************************************************************** */ 
/* ***************************************************************************************************************************** */

#loading-placeholder { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); text-align: center; font-family: Arial, sans-serif; color: #333; display: flex; flex-direction: column; align-items: center; z-index: 1; }
#content-frame { position: fixed; top: 0; left: 0; width: 100%; height: 100%; border: none; background: transparent; z-index: 0; display: block; }

  /* ***************************************************************************************************************************** */
 /* BOOK and MAGAZINE 2D ******************************************************************************************************** */ 
/* ***************************************************************************************************************************** */

.special-wrapping { display: flex; flex-direction: row; align-items: center; justify-content: center; max-width: fit-content; position: relative; left: 0; }

.cover { display: flex; align-items: center; justify-content: center; flex: 0; margin: 0; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); }
.cover img { height: calc(100vh - 4rem); max-height: calc(100vh - 4rem); width: auto; margin: 0; object-fit: contain; }
.blank { display: flex; align-items: center; justify-content: center; flex: 0; margin: 0; }
.blank img { height: calc(100vh - 4rem); max-height: calc(100vh - 4rem); width: auto; margin: 0; object-fit: contain; }

.page-last { display: flex; align-items: center; justify-content: center; flex: 0; margin: 0; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); }
.page-last img { height: calc(100vh - 4rem); max-height: calc(100vh - 4rem); width: auto; margin: 0; object-fit: contain; }

.vertical-line { width: 2px; background-color: #eee; height: 100%; }
.vertical-line-blank { width: 2px; margin: 0; height: 100%; }

.two-pages-wrapping { display: flex; flex-direction: row; align-items: center; justify-content: center; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); background-color: #fff; max-width: fit-content; position: relative; left: 0; }

.page-left, .page-right { display: flex; align-items: center; justify-content: center; flex: 0; margin: 0; }
.page-left img, .page-right img { display: block; height: calc(100vh - 4rem); max-height: calc(100vh - 4rem); width: auto; margin: 0; object-fit: contain; }

.vertical-line { width: 2px; margin: 0; background-color: #eee; height: 100%; }

.special-wrapping { height: calc(100vh - 4rem); box-sizing: border-box; margin: 0 0 2rem 0; }

.two-pages-wrapping { height: calc(100vh - 4rem); box-sizing: border-box; margin: 2rem 0; }

/* MAGAZINE 2D UNIQUE ********************************************************************************************************** */ 

.page-with-number {font-family: 'Mulish', sans-serif; font-weight: 400; font-size: 1.1rem; letter-spacing: 0.1rem; text-decoration: none; color: rgba(255,255,255,0.9); position: relative; width: 100%; max-height: 100%; margin: 0; padding: 0; line-height: 0; }	 
.page-number-left { position: absolute; bottom: 1.5rem; left: 1rem; z-index: 10; margin: 0; padding: 0; color: rgb(255,255,255); text-shadow: 0 0 2px rgba(0,0,0,0.8), 0 0 4px rgba(0,0,0,1); }
.page-number-right {	position: absolute; bottom: 1.5rem; right: 1rem; z-index: 10; margin: 0; padding: 0; color: rgb(255,255,255); text-shadow: 0 0 2px rgba(0,0,0,0.8), 0 0 4px rgba(0,0,0,1); }

  /* *********************************************************************************************************** */
 /* ILLUSTRATIONS ********************************************************************************************* */
/* *********************************************************************************************************** */

.illustrations-container-mini { width:1296px; margin: 2rem auto 0 auto; }
.illustration-mini { width:128px; height:auto; margin:6px; }
.illustrations-container-maxi { width:100%;}
.illustration-title-maxi {	width:auto; height:auto; margin: 4rem auto 1rem auto; font-family: 'Mulish', sans-serif; font-size: 1rem; color: #999; text-align: center; }
.illustration-maxi { display:block; margin:0 auto 3rem auto; clear:both; box-shadow: 0 6px 10px 0 rgba(0, 0, 0, 0.4), 0 8px 22px 0 rgba(0, 0, 0, 0.39); }

  /* *********************************************************************************************************** */
 /* VIDEOS **************************************************************************************************** */
/* *********************************************************************************************************** */

.videos-container-big-images-wrapper { margin-bottom: 2rem; }
.video-wrapper-max-width { max-width: 1120px; margin: 2rem auto 2rem auto; }
.video-wrapper { position: relative; padding-bottom: 56.25%; /* This is the ration 16:9 */ height: 0; margin-left: 2%; margin-right: 2%; }
