/* VARIABLES ----------------------------------------------------------------------------------- */
:root {
    --couleur-noir: #000;
    --couleur-gris-text: #333;
    --couleur-gris-survol: rgba(50, 50, 50, 0.1);
    --couleur-gris-ombre-page: #999;
    --couleur-gris-fonce: darkgrey;
    --couleur-gris-clair: lightgray;
    --couleur-gris-critiques: #ddd;
    --couleur-gris-tres-clair: rgb(238, 238, 238);
    --couleur-blanc: #fff;
    --couleur-bordeaux: rgb(108, 38, 48);
    --couleur-bordeaux-clair: rgba(108, 38, 48, 0.6);
}

/* GENERAL ----------------------------------------------------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    min-height: 100vh;
}

body,
textarea,
input {
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    color: var(--couleur-gris-text);
}

h1,
h2,
h3 {
    margin-bottom: 20px;
}

ul {
    display: flex;
    justify-content: space-around;
    list-style: none;
    margin-bottom: 0;
    margin-top: 0;
}

a {
    text-decoration: none;
    color: inherit;
}

input:focus,
textarea:focus,
button:focus {
    outline: none;
}

*::selection {
    background-color: var(--couleur-gris-clair);
}

.flex-it {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.font-xsmall {
    font-size: x-small;
}

.font-small {
    font-size: small;
}

.text-right {
    text-align: right;
}

@media (max-width: 768px) {
    h2 {
        font-size: 20px;
    }

    p {
        font-size: 14px;
    }
}

/* STRUCTURE ----------------------------------------------------------------------------------- */
header {
    text-align: center;
}

header h1 {
    margin: 0;
    padding-top: 10px;
}

header p[title] {
    margin: 0;
    color: var(--couleur-bordeaux-clair);
}

.ws-title {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
}

.ws-title h1 {
    padding: 0
}

.logo-lw {
    width: 100px;
    margin-right: -20px;
}

.logo {
    display: flex;
    align-items: center;
}

.page .logo img,
.logo img {
    margin: 10px;
}

main.container {
    max-width: 1200px;
    padding: 0 20px;
    margin: auto;
    display: flex;
}

main.container p {
    padding: 0 0 10px 0;
    text-align: justify;
}

main.container p.signature {
    text-align: right;
}

article {
    display: flex;
    margin: 0;
    flex-direction: column;
    /* height: calc(100vh - 200px); */
}

i {
    color: var(--couleur-bordeaux);
}

.book-style-container {
    width: 100%;
}

footer {
    padding: 5px;
}

.scroll-top {
    display: none;
    justify-content: center;
    width: 100%;
    color: var(--couleur-bordeaux);
    font-weight: bold;
    margin-bottom: 10px;
}

.link-top {
    width: 64px;
}

@media (max-width: 768px) {
    .scroll-top {
        display: flex;
        align-items: center;
    }
}

.arrow-up {
    width: 32px;
    height: 32px;
    fill: var(--couleur-bordeaux);
    margin-left: 15px;
}

/* MENU ----------------------------------------------------------------------------------- */
nav {
    bottom: -25px;
    display: flex;
    justify-content: space-around;
}

.tab {
    display: flex;
    justify-content: space-around;
    position: relative;
    bottom: -25px;
    margin-bottom: 0;
    margin-top: 0;
    width: 100%;
}

nav.disp-on-resp {
    justify-content: space-around;
    position: relative;
    margin: 0 27px;
    flex-wrap: nowrap;
    align-items: normal;
}

.menu {
    background-color: var(--couleur-gris-clair);
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    padding: 15px 15px 10px;
    margin-top: 10px;
    margin-bottom: 25px;
    font-weight: bold;
}

@media (max-width: 1024px) {
    .menu {
        background-color: #E4C8A2 ;
    }
}

@media (max-width: 768px) {
    nav {
        bottom: -10px;
    }
    .menu {
        font-size: 12px;
        margin-bottom: 10px;
        padding: 10px 10px;
    }

}

@media (max-width: 480px) {
    nav {
        margin-right: 10px;
    }
    .menu {
        font-size: 8px;
        padding: 10px 5px;
    }
}

.menu:hover {
    cursor: pointer;
    margin-top: 0;
}

.menu.active {
    background-color: var(--couleur-bordeaux);
    color: white;
    margin-bottom: 0;
    margin-top: 0;
}

/* PAGE ----------------------------------------------------------------------------------- */
.page {
    display: flex;
    width: 100%;
    box-shadow: 0px 7px 15px 2px var(--couleur-gris-fonce);
    border-radius: 20px;
    margin-bottom: 2rem;
    min-height: 450px;
}

.page-left {
    background-image: linear-gradient(270deg, var(--couleur-gris-ombre-page) 0%, var(--couleur-gris-tres-clair) 4%);
    padding: 8%;
    width: 100%;
    border-top-left-radius: 20px;
    border-bottom-left-radius: 20px;
}

.page-right {
    border-bottom-right-radius: 20px;
    border-top-right-radius: 20px;
    background-image: linear-gradient(90deg, var(--couleur-gris-fonce) 0%, var(--couleur-gris-tres-clair) 4%);
    padding: 8%;
    width: 100%;
}

@media (min-width: 1024px) {
    .page-left.standalone {
        background: var(--couleur-gris-tres-clair);
        border-radius: 20px;
    }
}

@media (max-width: 1024px) {
    .page {
        flex-direction: column;
        box-shadow: none;
    }

    .page.empty {
        min-height: 0;
    }

    .page.merge-page {
        box-shadow: none;
        box-shadow: 0px 7px 15px 2px var(--couleur-gris-fonce);
    }

    .page-left {
        margin-bottom: 2rem;
        padding: 4%;
        padding-top: 6%;
        box-shadow: 0px 7px 15px 2px var(--couleur-gris-fonce);
        border-radius: 0;
        background: linear-gradient( 0.25turn, #836d1b, #f2e7bf 2%, #f2e7bf 98%, #836d1b 100% );
    }
    
    .page-right {
        padding: 4%;
        box-shadow: 0px 7px 15px 2px var(--couleur-gris-fonce);
        border-radius: 0;
        background: linear-gradient( 0.25turn, #836d1b, #f2e7bf 2%, #f2e7bf 98%, #836d1b 100% );
    }

    .page-left.merge-page {
        box-shadow: 0px 7px 15px 0px var(--couleur-gris-fonce);
        border-bottom-right-radius: 0;
        margin-bottom: 0;
        box-shadow: none;
    }
    
    .page-right.merge-page {
        border-top-right-radius: 0;
        box-shadow: none;
    }
}

@media (max-width: 768px) {
    .page-left {
        padding-top: 4%;
    }
}

.nav-previous-page,
.nav-next-page {
    position: relative;
    height: 100%;
    width: 0;
    display: flex;
}

@media (max-width: 1024px) {
    .nav-previous-page,
    .nav-next-page {
        display: none;
    }
}

.nav-previous-page {
    left: -34px;
}

.nav-next-page {
    left: 4px;
}

.nav-previous-page a,
.nav-next-page a {
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 10px;
}
.nav-previous-page a:hover,
.nav-next-page a:hover {
    border-radius: 2px;
    background-color: var(--couleur-gris-survol);
}

.page img {
    max-width: 100%;
}

.cover-img.inline {
    text-align: start;
    float: left;
    margin-right: 1rem;
}

.cover-img {
    text-align: center;
}

.book-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 5px;
}

.link a {
    padding: 5px;
}
.link a:hover {
    background-color: var(--couleur-gris-survol);
    border-radius: 2px;
}

.book-page {
    display: flex;
    flex-direction: column;
    /* justify-content: space-between; */
}

.book-page div:not(:first-child)  {
    margin-top: 20px;
}

.books-display > a.square-img {
    height: 300px;
    width: 300px;
}

.square-img-resp {
    max-width: 250px;
}

.critiques {
    padding-top: 10px;
}

.critique-text {
    /* background-color: var(--couleur-gris-critiques); */
    padding: 2px 5px;
    border-radius: 10px;
}

.insp-title {
    text-align: center;
    margin-bottom: 45px;
}

.poesie .insp-title {
    text-align: left;
}

.poesie p {
    font-family: system-ui;
}

.inspifirstpage {
    display: flex;
    flex-direction: column;
}

.inspifirstpage h2:first-child {
    margin-top: 32px
}

.inspifirstpage h2 {
    font-size: 42px;
}

/* ---- Books cover display ---- */

.cover {
    display: flex;
    align-items: center;
}

.books-display {
    display: flex;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
}

.books-display a {
    padding: 0 10px;
}

.books-display img:hover {
    cursor: pointer;
    /* zoom en mode pc au survol des couvertures (onglet oeuvres) */
    transform: scale(150%);
    transition-duration: 300ms;
}

.books-display > a {
    width: 48%;
}

.disp-on-resp .books-display > a {
    width: 100%;
}


.disp-on-resp {
    display: none;
}

.hidden {
    display: none !important
}

@media (max-width: 1024px) {
    .parchment.hide-on-resp, .hide-on-resp {
        display: none; 
    }

    .disp-on-resp {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
    }

    .books-display img:hover {
        cursor: default;
        transform: none;
    }

    .books-display {
        width: 48%;
    }

    .cover-img.books-display img {
        max-height: 300px;
    }
}

/* ----------------------------- */

/* LIENS ----------------------------------------------------------------------------------- */
aside {
    flex-flow: column;
    height: 125px;
    justify-content: space-between;
    margin-top: 125px;
    padding: 0;
}

aside ul {
    flex-flow: column;
    padding: 0;
    height: 125px;
    justify-content: space-between;
}

aside li {
    background-color: var(--couleur-blanc);
    padding: 3px;
    padding-left: 0;
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
    border: 1px solid black;
    border-left: 0;
    height: 50px;
    width: 50px;
    text-align: right;
}

aside .thebookedition {
    background-color: var(--couleur-noir);
}

aside img {
    height: 42px;
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }
    aside {
        margin: 0 40px 10px auto;
    }
    aside li {
        border-bottom-left-radius: 5px;
        border-top-right-radius: 0px;
    }
    aside, aside ul {
        height: auto;
    }
    .page:last-child {
        margin-bottom: 0;
        min-height: 0;
    }
}

/* FORMULAIRE ----------------------------------------------------------------------------------- */

.contact-form {
    display: flex;
    width: 100%;
}

.input-name {
    margin-bottom: 5px;
}

.resp-info-fileds {
    flex-direction: column;
    align-items: normal;
}

.contact-field {
    margin-bottom: 10px;
    display: flex;
    flex-flow: column;
}

.contact-field label {
    margin-bottom: 5px;
    font-weight: bold;
}

.contact-field input,
textarea {
    border: 0;
    border-bottom: 1px solid var(--couleur-bordeaux);
    padding: 5px 8px;
    font-size: 1rem;
}

.contact-field textarea {
    min-height: 300px;
    width: 100%;
    resize: vertical;
}

.btn {
    margin-top: 10px;
    padding: 10px;
    max-width: 150px;
    font-weight: bold;
    border-radius: 5px;
    border: 1px solid var(--couleur-gris-text);
    background-color: var(--couleur-bordeaux);
    color: white;
    align-self: flex-end;
}

.btn:hover {
    background-color: var(--couleur-gris-fonce);
    border: 1px solid var(--couleur-bordeaux);
}


/* Parment roll responsive ----------------------- */

.responsive-contact {
    display: none;
}

.parchment {
    display: flex;
    width: 100%;
    /* min-height: 300px; */
}

.roll {
    display: none;
	position: relative;
	overflow: hidden;
	margin: 0 auto;
	width: 30px;
    margin-top: -10px;
	border-radius: 50px/25px;
    margin-bottom: 1.5rem;
    background-image: linear-gradient(270deg, #836d1b 0%, #f2e7bf 35%);
}

.roll.right-roll {
    background-image: linear-gradient(90deg, #836d1b 0%, #f2e7bf 35%);
}

.scnd-roll {
    margin-top: -10px;
    margin-bottom: -10px;
}

@media (max-width: 1024px) {
    .responsive-contact {
        display: block;
    }

    .roll {
        display: block;
    }

    .parchment.empty  {
        display: none;
    }
}

@media (max-width: 530px) {
    .page {
        margin-bottom: 0;
    }

    nav {
        margin-bottom: 10px;
    }

    .parchment {
        flex-direction: column;
        margin-bottom: 1.5rem;
    }

    article .page:last-child .parchment:last-child {
        margin-bottom: 0;
    }

    .roll {
        height: 20px;
        width: calc(100% + 20px);
        border-radius: 20px/25px;
        margin-bottom: 0;
        margin-left: -10px;
        background-image: linear-gradient(0deg, #836d1b 0%, #f2e7bf 35%);
    }
    
    .roll.right-roll {
        background-image: linear-gradient(180deg, #836d1b 0%, #f2e7bf 35%);
    }

    .page-left, .page-right {
        background: linear-gradient( 0deg, #836d1b, #f2e7bf 2%, #f2e7bf 98%, #836d1b 100% );
        margin-bottom: 10px;
    }

    nav.disp-on-resp {
        margin: 10px 2px;
    }

}
