/*
Theme Name: Membershiply Child
Theme URI: https://superbthemes.com/membershiply/
Template: membershiply
Author: themeeverest
Description: Thème enfant de Membershiply
Version: 1.0
License: GNU General Public License v3 or later
License URI: https://www.gnu.org/licenses/gpl-3.0.en.html
Text Domain: membershiply-child
*/

/* ============================================
   TYPOGRAPHIE & STYLES GLOBAUX
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Nunito+Sans:wght@400;600;700&display=swap');

h1, h2, h3, h4, h5, h6 {
    /*font-family: 'Cormorant Garamond', Georgia, serif;*/
    font-family: 'Nunito Sans', sans-serif!important;
}

body,
p,
span,
li,
td,
th,
label,
input,
textarea,
select,
button {
    font-family: 'Nunito Sans', sans-serif;
}

a {
    text-decoration: none;
}

.site-info {
    display: none!important;
}

/* ============================================
   SIDEBAR MASQUÉE — CONTENU PLEINE LARGEUR
   ============================================ */

#secondary,
.widget-area {
    display: none !important;
}

.featured-content,
#primary,
.content-area {
    width: 100% !important;
    margin-right: 0 !important;
    float: none !important;
}

/* ============================================
   BLOG — GRILLE 3 COLONNES
   ============================================ */

.all-blog-articles .blogposts-list {
    flex: 1 1 30% !important;
    max-width: 30% !important;
    width: 30% !important;
    display: inline-block;
}

/* 2 colonnes sur tablette */
@media screen and (max-width: 900px) {
    .all-blog-articles .blogposts-list {
        flex: 1 1 46% !important;
        max-width: 46% !important;
        width: 46% !important;
    }
}

/* 1 colonne sur mobile */
@media screen and (max-width: 540px) {
    .all-blog-articles .blogposts-list {
        flex: 1 1 100% !important;
        max-width: 100% !important;
        width: 100% !important;
    }
}

/* ============================================
   HEADER NEWSLETTER SECTION
   ============================================ */

.header-newsletter-section {
    position: relative;
}

.newsletter-close-btn {
    position: absolute;
    top: 8px;
    right: 12px;
    background: none;
    border: none;
    font-size: 1.4rem;
    line-height: 1;
    color: #666;
    cursor: pointer;
    padding: 2px 6px;
    font-family: inherit;
    transition: color 0.2s ease;
    z-index: 10;
}

.newsletter-close-btn:hover {
    color: #111;
}

.header-newsletter-section {
    background-color: #f8f9fa;
    padding: 12px 0;
    margin-top: 0;
    margin-bottom: 20px;
    max-width: 100%;
    border-bottom: 1px solid #e9ecef;
}

.header-newsletter-section .newsletter-block {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 120px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 15px;
    background-color: transparent;
    border: none;
    box-shadow: none;
    border-radius: 0;
    width: 100%;
}

.header-newsletter-section .newsletter-promo-image-only {
    flex: 0 0 200px;
    flex-shrink: 0;
}

.header-newsletter-section .newsletter-promo-img {
    display: block;
    max-width: 100%;
    height: auto;
}

.header-newsletter-section .newsletter-content-stack {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.header-newsletter-section .newsletter-promo-text {
    margin-bottom: 0;
}

.header-newsletter-section .newsletter-promo-text h4 {
    margin: 0 0 5px 0;
    padding: 0;
    font-size: 0.95rem;
    line-height: 1.3;
    color: #333;
    font-weight: normal;
    text-align: left;
}

.header-newsletter-section .newsletter-promo-text h4:last-child {
    margin-bottom: 0;
}

.header-newsletter-section .newsletter-promo-text h4 em {
    font-style: italic;
    font-weight: bold;
    color: #135440;
}

.header-newsletter-section .newsletter-form-inline {
    display: flex;
    align-items: stretch;
    gap: 8px;
    width: 100%;
    max-width: 450px;
}

.header-newsletter-section .newsletter-form-inline input[type="email"] {
    flex-grow: 1;
    margin-bottom: 0;
    padding: 8px 12px;
    font-size: 0.9rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    min-height: 38px;
    min-width: 450px;
    box-sizing: border-box;
}

.header-newsletter-section .newsletter-form-inline button.newsletter-send {
    flex-shrink: 0;
    padding: 8px 18px;
    font-size: 0.9rem;
    border: none;
    background-color: #135440;
    color: white;
    cursor: pointer;
    border-radius: 4px;
    min-height: 38px;
    box-sizing: border-box;
}

.header-newsletter-section .newsletter-form-inline button.newsletter-send:hover {
    background-color: #0f4b38;
}

@media only screen and (max-width: 767px) {
    .header-newsletter-section .newsletter-block {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    .header-newsletter-section .newsletter-promo-image-only {
        flex-basis: auto;
        max-width: 120px;
    }
    .header-newsletter-section .newsletter-content-stack {
        width: 100%;
        max-width: 400px;
        align-items: center;
        text-align: center;
    }
    .header-newsletter-section .newsletter-promo-text h4 {
        text-align: center;
    }
    .header-newsletter-section .newsletter-form-inline {
        max-width: 100%;
        justify-content: center;
    }
    .header-newsletter-section .newsletter-form-inline input[type="email"] {
        min-width: 350px;
    }
}

@media only screen and (max-width: 480px) {
    .header-newsletter-section .newsletter-form-inline input[type="email"] {
        min-width: 200px;
    }
}

/* ============================================
   FOOTER REVUE PROMO
   ============================================ */

.footer-section.footer-revue-promo {
    background-color: #f8f9fa !important;
    padding-top: 30px !important;
    padding-bottom: 30px !important;
    border-top: 1px solid #e0e0e0 !important;
}

.custom-footer-layout .footer-section.footer-revue-promo:first-child {
    border-top: none !important;
}

.footer-section.footer-revue-promo .revue-promo-content {
    display: flex;
    align-items: center;
    gap: 35px;
}

.footer-section.footer-revue-promo .revue-promo-image {
    flex: 0 0 45%;
    max-width: 450px;
}

.footer-section.footer-revue-promo .revue-promo-image img {
    display: block;
    width: 100%;
    height: auto;
}

.footer-section.footer-revue-promo .revue-promo-details {
    flex: 1 1 50%;
}

.revue-promo-details h3 {
    color: black;
}

.site-footer p {
    color: darkslategrey !important;
}

.footer-section.footer-revue-promo .revue-promo-details a.button {
    display: inline-block !important;
    padding: 10px 20px !important;
    background-color: #135440 !important;
    color: white !important;
    text-decoration: none !important;
    border-radius: 4px !important;
    font-weight: bold !important;
    transition: background-color 0.2s ease !important;
    border: none !important;
    line-height: normal !important;
    font-size: 0.9em !important;
    text-align: center !important;
}

.footer-section.footer-revue-promo .revue-promo-details a.button:hover {
    background-color: #0f4b38 !important;
    color: white !important;
    text-decoration: none !important;
}

@media only screen and (max-width: 767px) {
    .footer-section.footer-revue-promo .revue-promo-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    .footer-section.footer-revue-promo .revue-promo-image {
        max-width: 180px;
        margin: 0 auto;
        flex-basis: auto;
    }
    .footer-section.footer-revue-promo .revue-promo-details {
        width: 100%;
        flex-basis: auto;
    }
    .footer-section.footer-revue-promo img {
        margin-bottom: 15px;
        margin-left: auto;
        margin-right: auto;
    }
}
