@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Space+Mono&display=swap');

:root {
    --btn-bg-color: #8F802E;
    --btn-bg-color-hover: #BFAC3D;   
}

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

html,body{
    background-color: #f5f5f5;
    scrollbar-width: auto; 
    scrollbar-color: #888 #f1f1f1;
    scroll-behavior: smooth;
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1; 
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #888; 
    border-radius: 10px;
    border: 2px solid #f1f1f1;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

nav{
    display: flex;
    flex: 1;
    justify-content: space-between;
    align-items: center;
}

nav div button.closeBtn{
    position: absolute;
    display: none;
}

nav .categories .navigation,
nav .categories,
nav .aPropos{
    display: flex;
    justify-content: center;
    align-items: center;
}

nav .categories .navigation,
nav .categories{
    gap: 30px;
}

nav .categories a, 
nav .aPropos a{
    font-family: "Poppins" sans-serif;
    text-transform: uppercase;
    font-size: 18px;
    border-radius: 30px;
    padding: 5px 10px;
    text-decoration: none;
    color: #000;
    border: 2px solid #ccc;
    cursor: pointer;
}

nav .categories a.active, 
nav .aPropos a,
.presentationLivre div.acheterLivre button,
footer > button,
#btn-mode-ecriture{
    color: #fff;
    border: 2px solid var(--btn-bg-color);
    background-color: var(--btn-bg-color);
}

nav .categories a.active:active,
nav .aPropos a:active,
.presentationLivre div button:active,
footer > button:active,
#btn-mode-ecriture:active,
#btn-envoyer:active,
nav .categories a.active:hover, 
nav .aPropos a:hover,
.presentationLivre div button:hover,
footer > button:hover,
#btn-mode-ecriture:hover,
#btn-envoyer:hover{
    color: #fff;
    background-color: var(--btn-bg-color-hover);
    border: 2px solid var(--btn-bg-color);
    transform: scale(1.1);
    transition: all 0.3s ease;
}


nav .categories button{ 
    font-family: "Poppins" sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    padding: 5px;
    border: 2px solid #ccc;
    background-color: #fff;
    border-radius: 30px;
    cursor: pointer;   
}

.container{
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100vh;
    width: 100%;
    background-color: #f5f5f5;
    padding: 20px;
}

main{
    display: flex;
    flex: 5;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: 20px;
    gap:30px;
}

.presentationLivre{
    display: flex;
    flex: 1;
    height: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 40px;
    gap: 30px;
}

.presentationLivre .descriptionLivre{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.presentationLivre img{
    height: 250px;
    width: 200px;
    object-fit: cover;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.presentationLivre p,
.presentationLivre div.citation q,
.presentationLivre div.acheterLivre p,
.messages textarea,
.messages p,
footer p{
    font-family: "Poppins", serif;
    font-size: 16px;
}

.presentationLivre div.citation,
.presentationLivre div.acheterLivre{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    align-self: flex-start;
    justify-content: center;
}

.presentationLivre p,
.presentationLivre div.citation,
.presentationLivre div.acheterLivre{
    text-align: justify;
}

.presentationLivre div.acheterLivre{
    gap: 10px;
}

.presentationLivre div.citation span{
    font-weight: 900;
    color: #5d5d5d;
}

.presentationLivre div.citation q{
    padding-left: 10px;
    border-left: 4px solid var(--btn-bg-color);
    color: #757575;
    font-style: italic;
}

.presentationLivre div.citation q span{
    font-weight: 900;
    text-transform: uppercase;
    color: #5d5d5d;
}

.presentationLivre div.acheterLivre button,
footer > button,
#btn-mode-ecriture,
#btn-envoyer{
    font-size: 15px;
    border-radius: 30px;
    padding: 5px 10px;
    text-decoration: none;
    cursor: pointer;
}

.presentationLivre div.acheterLivre button,
#btn-mode-ecriture,
#btn-envoyer{
    width: 150px;
}

footer > button{
    width: 130px;
}

#btn-envoyer{
    color: var(--btn-bg-color);
    border: 2px solid var(--btn-bg-color);
}

.messages{
    display: flex;
    flex: 1;
    height: 100%;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0 40px;
    gap: 20px;
}

.messages textarea{
    width: 455px;
    height: 455px;
    resize: none;
    outline: none;
    padding: 20px;
    border-radius: 30px;
    overflow: auto;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    scrollbar-width: auto; 
    scrollbar-color: #888 #f1f1f1;
    scroll-behavior: smooth;
}

.messages .actions{
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

footer{
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    flex: 1;
    gap: 10px;
}

.navigation a{
    text-decoration: none;
}

.navigation span.right,
.navigation span.left{
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    color:  #989898;
    font-weight: bold;
    top: 50%;
    transform: translateY(-50%);
    font-size: 80px;
    border: none;
    background-color: transparent;
    cursor: pointer;
    transition: color 0.3s ease;
}

.navigation span.right:active,
.navigation span.left:active,
.navigation span.right:hover,
.navigation span.left:hover{
    color: #000;
}

.navigation span.left {
    left: 0;
}

.navigation span.right {
    right: 0;
}

.navigation span.left::after,
.navigation span.right::after {
    font-family: 'Arial', sans-serif !important;
    position: absolute;
    bottom: 90%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 13px;
    color: #555;
    font-weight: normal;
    letter-spacing: normal;
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}

.navigation span.left::after {
    content: "Précédent";
}

.navigation span.right::after {
    content: "Suivant";
}

.navigation span.left:active::after,
.navigation span.right:active::after,
.navigation span.left:hover::after,
.navigation span.right:hover::after{
    opacity: 1;
}

.menu {
    position: absolute;
    display: none;
}





@media screen and (max-width: 1430px) {
    .presentationLivre img{
        height: 240px;
        width: 190px;
    }
    .presentationLivre{
        gap: 20px;
    }
    .presentationLivre p .break{
        display: none;
    }
    .messages textarea{
        width: 405px;
        height: 425px;
    }
}

@media screen and (max-width: 1310px) {
    main{
        gap: 20px;
    }
    .presentationLivre div.citation q,
    .presentationLivre div.acheterLivre p{
        font-size: 15px;
    }
}

@media screen and (max-width: 1260px) {
    main{
        gap: 10px;
    }
    .presentationLivre div.acheterLivre p{
        font-size: 14px;
    }
}

@media screen and (max-width: 1180px) {
    main{
        gap: 0px;
    }
    .presentationLivre p,
    .presentationLivre div.citation q,
    .presentationLivre div.acheterLivre p,
    .messages textarea,
    .messages p,
    footer p{
        font-size: 15px;
    }
    nav .categories a, 
    nav .aPropos a{
        font-size: 17px;
    }
    .presentationLivre img{
        height: 220px;
        width: 170px;
    }
    .messages textarea{
        width: 420px;
        height: 440px;
    }
}

@media screen and (max-width: 1130px) {
    .presentationLivre p,
    .presentationLivre div.citation q,
    .presentationLivre div.acheterLivre p,
    .messages textarea,
    .messages p{
        font-size: 14px;
    }
    .presentationLivre img{
        height: 220px;
        width: 170px;
    }
    .messages textarea{
        width: 400px;
        height: 420px;
    }
}

@media screen and (max-width: 1050px) {
    .presentationLivre img{
        height: 220px;
        width: 170px;
    }
    .messages textarea{
        width: 380px;
        height: 400px;
    }
}

@media screen and (max-width: 1000px) {
    .container{
        gap: 20px;
        height: 100%;
        width: 100%;
    }
    main{
        flex-direction: column;
        gap: 50px;
    }
    nav .categories a, 
    nav .aPropos a{
        font-size: 18px;
    }
    nav .categories .navigation,
    nav .categories{
        gap: 20px;
    }
    .presentationLivre{
        gap: 30px;
    }
    .presentationLivre p .break{
        display: block;
    }
    .presentationLivre .descriptionLivre{
        gap: 30px;
    }
    .presentationLivre,
    .messages{
        width: 80%;
    }
    .presentationLivre p,
    .presentationLivre div.citation q,
    .presentationLivre div.acheterLivre p,
    .messages textarea,
    .messages p,
    footer p{
        font-size: 16px;
    }
    .presentationLivre img{
        height: 280px;
        width: 240px;
    }
    .messages{
        gap: 30px;
    }
    .messages textarea{
        width: 500px;
        height: 540px;
    }
    .navigation span.right,
    .navigation span.left{
        position: fixed;
    }
    .navigation span.right{
        right: 10px;
    }
    .navigation span.left{
        left: 10px;
    }

}

@media screen and (max-width: 880px) {
    nav .categories a,
    nav .aPropos a{
        font-size: 17px;
    }
    nav .categories .navigation{
        gap: 10px;
    }
}

@media screen and (max-width: 800px) {
    nav .categories #auth-btn span.btn-text{
        display: none;
    }
    nav .categories #auth-btn span.material-symbols-outlined{
        font-size: 20px;
    }
    .presentationLivre img{
        height: 260px;
        width: 220px;
    }
    .messages textarea{
        width: 460px;
        height: 560px;
    }
}

@media screen and (max-width: 700px) {
    nav .categories a,
    nav .aPropos a{
        font-size: 16px;
    }
    nav .categories .navigation{
        gap: 5px;
    }
    nav .categories{
        gap: 15px;
    }
    .presentationLivre img{
        height: 240px;
        width: 200px;
    }
    .messages textarea{
        width: 400px;
        height: 500px;
    }
}

@media screen and (max-width: 700px) {
    nav .categories a,
    nav .aPropos a{
        font-size: 15px;
    }
    .presentationLivre p,
    .presentationLivre div.citation q,
    .presentationLivre div.acheterLivre p,
    .messages textarea,
    .messages p,
    footer p{
        font-size: 15px;
    }
    .presentationLivre img{
        height: 230px;
        width: 190px;
    }
    .messages textarea{
        width: 380px;
        height: 480px;
    }
}


@media screen and (max-width: 650px) {
    .container{
        padding-right: 0px;
        padding-left: 0px;
    }
    main{
        margin-top: 30px;
    }
    .container div.menu {
        position: fixed;
        display: flex;
        justify-content: center;
        align-items: center;
        background-color: #2c3e50;
        padding: 3px;
        color: #fff;
        right: 10px;
        top: 10px;
        cursor: pointer;
        border-radius: 5px;
        transition: all 0.3s ease;
    }
    .container div.menu:active,
    .container div.menu:hover{
        background-color: #44617d;
    }
    .container div.menu span{
        font-size: 40px;
    }
    nav{
        display: none;
        padding-top: 40px;
        padding-bottom: 10px;
        padding-left: 20px;
        padding-right: 50px;
        position: fixed;
        top: 0;
        right: 0;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        background-color: #2c3e50;
        gap: 10px;
    }
    nav .categories #auth-btn span.btn-text{
        display: block;
    }
    nav .categories .navigation,
    nav .categories,
    nav .aPropos{
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
    }
    nav .categories .navigation{
        gap: 8px;
    }
    nav .categories{
        gap: 20px;
    }
    nav .categories a,
    nav .aPropos a{
        text-align: center;
        width: 170px;
        font-size: 17px;
        color: #f5f5f5;
        border: none;
        transition: all 0.3s ease;
    }
    nav .aPropos a{
        background-color: transparent;
    }
    nav .categories a.active:active,
    nav .categories a:active,
    nav .aPropos a:active,
    nav .categories a.active:hover,
    nav .categories a:hover,
    nav .aPropos a:hover{
        background-color: var(--btn-bg-color-hover);
        border: none;
        transform: scale(1.1);
    }
    nav div button.closeBtn{
        display: flex;
        align-items: center;
        justify-content: center;
        top: 10px;
        right: 10px;
        border-radius: 50%;
        border: none;
        cursor: pointer;
        transition: all 0.3s ease;
    }
    nav div button.closeBtn span{
        font-size: 30px;
    }
    nav #auth-btn{
        transition: all 0.3s ease;
    }
    nav #auth-btn:active,
    nav div button.closeBtn:active,
    nav #auth-btn:hover,
    nav div button.closeBtn:hover{
        transform: scale(1.2);
    }
    .presentationLivre img{
        height: 220px;
        width: 180px;
    }
    .messages textarea{
        width: 350px;
        height: 450px;
    }
}

@media screen and (max-width: 600px) {
    .presentationLivre p,
    .presentationLivre div.citation q,
    .presentationLivre div.acheterLivre p,
    .messages textarea,
    .messages p,
    footer p{
        font-size: 14px;
    }
    .container div.menu span{
        font-size: 35px;
    }
    .presentationLivre img{
        height: 190px;
        width: 150px;
    }
    .messages textarea{
        width: 320px;
        height: 420px;
        font-size: 13px;
    }
    .navigation span.right{
        right: 0px;
    }
    .navigation span.left{
        left: 0px;
    }
    .navigation span.right,
    .navigation span.left{
        font-size: 75px;
    }
}

@media screen and (max-width: 500px) {
    .container div.menu span{
        font-size: 30px;
    }
    .container{
        gap: 0px;
    }
    main{
        padding: 10px;
    }
    .presentationLivre,
    .messages{
        width: 95%;
        padding: 0px;
    }
    .presentationLivre img{
        height: 180px;
        width: 140px;
    }
    .messages textarea{
        width: 300px;
        height: 400px;
    }
    .navigation{
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    .navigation span.right,
    .navigation span.left{
        position: static;
        margin-top: 40px;
    }
    .navigation span.right{
        margin-right: 10px;
    }
    .navigation span.left{
        margin-left: 10px;
    }
    footer{
        margin-left: 20px;
        margin-right: 20px;
    }
}