/* ==========================================================================
   CSS PARTAGÉ — Pages PHP natives migrées
   Chargé sur : single codes-promo + archive codes-promo + futures pages migrées
   Contient les styles communs : conteneur, neutralisation Astra
   ========================================================================== */


/* --------------------------------------------------------------------------
   Reprise de contrôle de la largeur Astra
   -------------------------------------------------------------------------- */

.single-codes-promo .ast-container,
.post-type-archive-codes-promo .ast-container,
.page .ast-container,
.single-post .ast-container {
    display: block !important;
    max-width: 100% !important;
    padding: 0 !important;
}

.single-codes-promo #content.site-content,
.post-type-archive-codes-promo #content.site-content,
.page #content.site-content,
.single-post #content.site-content {
    padding: 0 !important;
}

.single-codes-promo .brand-page,
.post-type-archive-codes-promo .brand-page {
    width: 100%;
    box-sizing: border-box;
}


/* --------------------------------------------------------------------------
   Conteneur principal de toutes les pages PHP natives
   -------------------------------------------------------------------------- */

.brand-page__container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 40px 24px 80px;
    box-sizing: border-box;
}

@media (max-width: 767px) {
    .brand-page__container {
        padding: 1.5rem 20px;
    }
}

/* ==========================================================================
   BREADCRUMB (commun à toutes les pages PHP natives)
   Utilisé sur : guides, articles, pages standards, cashback en hausse
   ========================================================================== */

.mcp-breadcrumb {
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    color: #64748b;
    margin: 0 0 30px 0;
    line-height: 1.4;
}

.mcp-breadcrumb a {
    color: #1c74f4;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.mcp-breadcrumb a:hover {
    text-decoration: underline;
}

.mcp-breadcrumb__sep {
    color: #cbd5e1;
    margin: 0 6px;
}

.mcp-breadcrumb__current {
    color: #64748b;
}

/* ==========================================================================
   TEMPLATE PAGE STANDARD (page.php — pages légales, contact, etc.)
   Chargé sur toutes les pages WP
   ========================================================================== */
.ast-single-post.ast-page-builder-template .site-main > article, .ast-page-builder-template .post-navigation{
    padding : 0 !important;
}

.mcp-page {
    background: #ffffff;
}

.mcp-page__container {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px 20px 60px;
    box-sizing: border-box;
}

.mcp-page__title {
    font-family: "Open Sans", sans-serif;
    font-size: 36px;
    font-weight: 700;
    line-height: 1.25;
    color: #1e293b;
    margin: 0 0 12px 0;
    padding: 0;
}

.mcp-page__date {
    font-family: "Open Sans", sans-serif;
    font-size: 13px;
    color: #94a3b8;
    margin: 0 0 30px 0;
    padding: 0;
    font-style: italic;
}

.mcp-page__date time {
    color: #64748b;
    font-weight: 500;
}

.mcp-page__content {
    font-family: "Open Sans", sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #334155;
}

.mcp-page__content h2 {
    font-size: 26px;
    font-weight: 700;
    color: #1e293b;
    margin: 40px 0 16px 0;
    line-height: 1.3;
}

.mcp-page__content h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1e293b;
    margin: 32px 0 12px 0;
    line-height: 1.4;
}

.mcp-page__content p {
    margin: 0 0 16px 0;
}

.mcp-page__content a {
    color: #1c74f4;
    text-decoration: underline;
}

.mcp-page__content a:hover {
    opacity: 0.8;
}

.mcp-page__content ul,
.mcp-page__content ol {
    margin: 0 0 16px 0;
    padding-left: 24px;
}

.mcp-page__content li {
    margin: 0 0 8px 0;
}

.mcp-page__content strong {
    color: #1e293b;
    font-weight: 700;
}

.mcp-page__content hr {
    border: none;
    border-top: 1px solid #e5e7eb;
    margin: 40px 0;
}


/* --------------------------------------------------------------------------
   Responsive — Template Page Standard
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {

    .mcp-page__container {
        padding: 20px 16px 40px;
    }

    .mcp-page__title {
        font-size: 28px;
    }

    .mcp-page__content {
        font-size: 15px;
    }

    .mcp-page__content h2 {
        font-size: 22px;
    }

    .mcp-page__content h3 {
        font-size: 18px;
    }
}


@media (max-width: 600px) {

    .mcp-page__container {
        padding: 16px 12px 40px;
    }

    .mcp-page__title {
        font-size: 24px;
    }
}