/*
Theme Name: PW
Template: twentytwentyone
Author: ED - Palms-Web
Author URI: https://palms-web.com/
Description: Theme enfant de pw
Version: 0.1.0.1686683424
Updated: 2024-01-27 21:10:24
*/

/*GENERAL*/

html {
scroll-behavior: smooth;
}

.clearfix {
clear: both;
overflow: hidden;
}

html,
body {
background: #0248ac;
}

#main {
width: 100%;
background: white;
}

#hero {
width: 100%;
background: #0248ac;
padding: 20px;
}

#liste-produit,
#liste-article,
#page,
#faq,
#article-hero,
#article,
#article-suggestions,
#product-hero,
#product-author,
#details {
width: 100%;
max-width: 1200px;
padding: 20px;
}

h1 {
font-size: 1.8rem;
color: #0248ac;
border-bottom: 3px solid #0248ac;
padding: 0 0 10px;
margin: 10px 0;
}

h2 {
font-size: 1.8rem;
color: #0248ac;
border-bottom: 3px solid #0248ac;
padding: 0 0 10px;
margin: 30px 0 10px 0;
}

h2 i {
color: #b22222;
}

h3 {
font-size: 1rem;
font-weight: 600;
margin: 10px 0;
}

p {
font-size: 1rem;
margin: 10px 0;
}

tr,
a {
font-size: 1rem;
}

#page ul,
#page ol,
#article ul,
#article ol {
padding: 0 0 0 20px;
margin: 0;
}

#page li,
#article li {
font-size: 1rem;
margin: 10px 0;
}

/*PUB*/

.section-pub {
width: 100%;
background: #e3f3ff;
padding: 20px 10px;
margin: 10px 0;
}

.section-pub > div {
width: 100%;
max-width: 1200px;
}

/*LISTES*/

.list {
list-style: none;
padding: 0;
margin: 0 -10px;
}

.list-item {
position: relative;
float: left;
width: calc((100% / 4) - 20px);
border: 1px solid #c9cfd8;
border-radius: 5px;
padding: 10px;
margin: 10px;
}

.list-item-books {
min-height : 600px;
}

.list-item img {
border-radius: 5px;
margin: 0 0 10px 0;
}

.list-item-news {
width: calc((100% / 2) - 20px);
}

.list-title {
font-size: 1rem;
font-weight: 600;
margin: 0;
}

.list-title a {
text-decoration: none;
}

.list-title a::after {
content: "";
position: absolute;
inset: 0;
}

.list-discover {
position: absolute;
bottom: 10px;
width: calc(100% - 20px);
min-height: 50px;
color: white;
font-weight: 600;
background: #0098ff;
border-radius: 5px;
margin: 10px 0 0 0px;
}

/*HEADER*/

#header {
min-height: 100px;
background: #0248ac;
border-bottom: 5px solid #0098ff;
padding: 20px;
}

#header a {
font-family: "Righteous", sans-serif;
font-weight: 400;
font-style: normal;
font-size: 2rem;
color: white;
text-decoration: none;
}

#header button {
background: none;
border: none;
padding: 0;
margin: 0;
}

#header i {
font-size: 25px;
color: white;
}

#modal-menu .modal-content {
border: none;
background: #0098ff;
padding: 20px;
}

#modal-menu nav a {
color: white;
text-decoration: none;
padding: 10px 0;
}

/*HOME*/

#hero > * {
max-width: 1200px;
}

#hero h1 {
font-family: "Righteous", sans-serif;
font-weight: 400;
font-style: normal;
font-size: 4rem;
color: white;
margin: 30px 0;
}

#hero h2 {
font-size: 1.2rem;
color: white;
border: 0;
padding: 0;
margin: 0 0 10px 0;
}

#hero p {
font-size: 1.2rem;
color: white;
margin: 0 0 30px 0;
}

/*ARCHIVE*/

#archive {
width: 100%;
max-width: 1200px;
padding: 20px;
}

#archive-description {
margin: 0 0 10px 0;
}

#archive-menu {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
overflow-x: auto;
-webkit-overflow-scrolling: touch;
-ms-scroll-snap-type: x mandatory;
scroll-snap-type: x mandatory;
white-space: nowrap;
list-style: none;
padding: 0;
margin: 0;
gap: 1rem;
scrollbar-width: none;
-ms-overflow-style: none;
}

#archive-menu::-webkit-scrollbar {
display: none;
}

#archive-menu li {
min-height: 50px;
-webkit-box-flex: 0;
-ms-flex: 0 0 auto;
flex: 0 0 auto;
background-color: #f7f9fb;
cursor: pointer;
scroll-snap-align: start;
white-space: nowrap;
border-radius: 5px;
padding: 10px;
margin: 0;
}

#archive-menu li a {
text-decoration: none;
}

#resultat {
width: 100% !important;
}

#resultat p {
width: 100%;
border-radius: 5px;
background: #f7f9fb;
padding: 20px 10px;
}

#pagination {
width: 100%;
border-radius: 5px;
background: #f7f9fb;
padding: 20px;
margin: 20px 0;
}

/*FAQ*/

#faq h3 {
margin: 0;
}

#faq button {
color: white;
background: #0098ff;
}

#faq ul {
padding: 0 0 0 15px;
margin: 0;
}

#faq ul li {
font-size: 1rem;
margin: 5px 0;
}

#faq .accordion-body {
padding: 10px 20px;
}

#faq .accordion-button:after {
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E") !important;
}

/*AUTEUR*/

.page-template-page-index-auteur section ul {
list-style: none;
padding: 10px 0 0 0 !important;
margin: 0 !important;
}

.page-template-page-index-auteur section li {
width: 100%;
min-height: 50px;
background-color: #f7f9fb;
border-radius: 5px;
padding: 10px;
margin: 10px 0;
}

.page-template-page-index-auteur section li a {
text-decoration: none;
}

/*ARTICLE*/

#article-hero img {
max-width: inherit !important;
border-radius: 5px;
margin: 10px 0;
}

#sommaire {
background: #f7f9fb;
border-radius: 5px;
padding: 5px 20px 20px 20px;
margin: 0 0 20px 0;
}

#article #partage > button {
width: calc((100% / 3) - 10px);
font-size: 1rem;
color: white;
background: #0098ff;
border: 0;
border-radius: 5px;
padding: 10px;
}

/*PRODUIT*/

#product-hero > div:first-of-type {
width: calc(30% - 10px);
border: 1px solid #c9cfd8;
border-radius: 5px;
padding: 10px;
}

#product-hero > div:last-of-type {
width: calc(70% - 10px);
border: 1px solid #c9cfd8;
border-radius: 5px;
padding: 10px;
}

.bloc-avis {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
gap: 10px;
font-size: 18px;
line-height: 1;
}

.etoiles-wrap {
position: relative;
display: inline-block;
font-size: 22px;
line-height: 1;
}

.etoiles {
letter-spacing: 2px;
white-space: nowrap;
}

.etoiles-fond {
color: #d9d9d9;
}

.etoiles-plein {
color: #f28c28;
position: absolute;
top: 0;
left: 0;
overflow: hidden;
width: 0;
}

.avis-count {
font-size: 16px;
}

#achat {
min-height: 50px;
background: #b22222;
border-radius: 5px;
padding: 10px;
margin: 20px 0;
}

#achat a {
color: white;
text-decoration: none;
}

#details table {
width: 100%;
border-collapse: collapse;
margin: 20px 0 0 0;
}

#details td {
border: none;
}

#details tr:nth-child(odd) {
  background-color: #e3f3ff;
}

/*FOOTER*/

#fil {
width: 100%;
background: #0248ac;
padding: 20px 10px;
}

#fil * {
color: white;
}

#footer {
background: #19293f;
padding: 10px;
}

#footer * {
color: white;
font-size: 0.8rem;
text-decoration: none;
}

#footer ul {
list-style: none;
padding: 0;
margin: 0;
}

#footer > div:first-of-type {
border-bottom: 1px solid white;
padding: 0 0 10px 0;
margin: 0 0 10px 0;
}

#footer-social li {
margin: 0 10px 0 0;
}

#footer-menu li {
margin: 0 0 0 10px;
}

/*RESPONSIVE*/

@media screen and (max-width: 1000px) {

.list-item {
width: calc((100% / 2) - 20px);
}
}

@media screen and (max-width: 500px) {

.list-item,
#liste-article .list-item {
width: calc((100% / 1) - 20px);
}

.list-item-books {
min-height: inherit;
}

.list-discover {
width: 100%;
position: inherit;
bottom: inherit;
margin: 20px 0 0 0;
}

#article #partage>button {
width: 100%;
margin: 10px 0 0 0;
}

#product-hero>div:first-of-type {
width: 100%;
margin: 0 0 20px 0;
}

#product-hero>div:last-of-type {
width: 100%;
}

#achat {
margin: 20px 0 0 0;
}

#footer>div:first-of-type {
-webkit-box-pack: center !important;
-ms-flex-pack: center !important;
justify-content: center !important;
}

#footer>div:last-of-type {
-webkit-box-orient: vertical;
-webkit-box-direction: reverse;
-ms-flex-direction: column-reverse;
flex-direction: column-reverse;
}

#partage,
#product-hero,
#footer-menu {
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
-ms-flex-direction: column;
flex-direction: column;
}

footer li {
margin: 5px !important;
}
}