/*
Theme Name: g-storefront
Template:   storefront
*/
body {
    font-family: 'Montserrat', sans-serif;
    color: #5e5e5e;
}
h1, h2, h3, h4, h5, h6, .wc-block-grid__product-title {
    color: #5e5e5e;
}
h1.entry-title{
    text-align: center;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
}
h1{
    font-weight: 700;
}
h2 {
    font-size: 22px;
    font-weight: 700;
}
h3 {
    font-size: 20px;
    font-weight: 700;
}
.posts-list article{

    border-radius:5px;
    width: 100%;
    padding: 15px;
    margin:10px 0

}
button:focus,
button:active,
a:focus,
a:active {
    outline: none;
}
.hentry .entry-content  .posts-list a {
    text-decoration:none;
}
a {
    color: #6e6e6e;
}

.posts-list .post img {
    width: 150px;
    height: 150px;
    object-fit: cover;
}

@media(max-width: 568px) {
    .col-full {
        margin-left: 12px;
        margin-right: 12px;
        padding: 0
    }
    .posts-list .post img{
        width: 100% !important;
    }
    .posts-list .post-thumbnail{
        width: 100%;
    }
    .posts-list .post-thumbnail {
        width: 100%;
        max-width: 100%;
        height: auto;
        display: block;
        object-fit: cover; /* Pour garder les proportions */
    }
    h1{
        font-size: 22px;
    }
    h2 {
        font-size: 18px;
    }
    h3 {
        font-size: 17px;
    }
}

.posts-list .post {
    display: flex;
    flex-direction: column; /* Mobile : image au-dessus */
    gap: 1rem; /* espace entre image et contenu */
    margin-bottom: 2rem;
    background-color: #fffaf4;
    display: flex;
    align-items: center;
}

.posts-list .post .post-thumbnail {
    flex-shrink: 0;

}
.hentry .posts-list .wp-post-image {
    margin-bottom:0;
}


.main-navigation ul li a {
    padding: 6px 0 6px 10px;
    display: block;
    font-weight: 600px;
}
@media (min-width: 768px) {
    .posts-list .post {
        flex-direction: row; /* Desktop : image à gauche */
        align-items: center;
    }

    .main-navigation ul.menu>li>a,.main-navigation ul.nav-menu>li>a {
        padding: 4px 12px;
        font-weight: 600;
    }
}
#site-navigation{
    margin-bottom: 15px;
}
.site-footer{
    background-color:transparent;
    padding: 8px !important;
}
.logo-footer {
    float: right;
}
.site-header .site-branding img {
    height: auto;
    max-width: 450px;
    max-height: none
}
/* Masquer la barre latérale */
#secondary {
    display: none;
}

/* Mettre le contenu sur toute la largeur */
#primary {
    width: 100%;
    max-width: 100%;
}


.hentry .entry-header{
    border-bottom: none;
    margin-bottom: 25px;
}
.hentry .featured-image img {
    max-height: 300px !important;
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: center;
    display: block;
    margin-bottom: 0;
}

.citation {
    font-style: italic;
    position: relative;
    text-align: center;
}
.citation::before {
    content: "« ";
}
.citation::after {
    content: " »";
}

.entry-content .intro {
    text-align: justify;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 40px;
    padding: 20px;
    background-color: #f9f4ed;
}
.entry-content .intro p:last-child{
    margin-bottom: 0;
}



.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 30px 0;
    flex-wrap: wrap;
    font-family: 'Segoe UI', sans-serif;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 8px 14px;
    border: 1px solid #ffecd4;
    border-radius: 2px;
    margin: 2px !important;
    text-decoration: none;
    color: #333;
    font-size: 16px;
    background-color: #fff;
    box-sizing: border-box;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.pagination .page-numbers:hover {
    background-color: #ffecd4;
    border-color: #d77f13;
    color: #000;
}

/* Pas d'effet sur la page active */
.pagination .current {
    background-color: #d77f13;
    color: #fff;
    font-weight: bold;
    border: 1px solid #d77f13;
    cursor: default;
    pointer-events: none;
    transition: none;
}
.hentry .entry-content a {
    text-decoration: none;
}

