/*
 * AMSODE — C3 / CH04 EN
 *
 * FR04 est la référence.
 * Le DOM EN04 étant déjà identique, aucune refonte HTML.
 *
 * Cette feuille protège uniquement la géométrie du chapitre
 * contre les anciennes surcharges EN.
 */

@media screen {

    /* ---------------------------------------------------------
       CHAPITRE
       --------------------------------------------------------- */

    body.bk-en-reader #bk-04 {
        width: 100% !important;
        max-width: none !important;

        margin: 0 !important;

        box-sizing: border-box !important;
    }


    /*
     * Entête général du chapitre :
     * même gouttière que FR.
     */

    body.bk-en-reader #bk-04
    > .bk-chapter-heading {
        box-sizing: border-box !important;

        padding-left: 72px !important;
        padding-right: 72px !important;
    }


    /*
     * Le contenu Phase 4 possède déjà sa propre architecture.
     * On ne lui impose ni max-width EN,
     * ni centrage hérité des anciennes refontes.
     */

    body.bk-en-reader #bk-04
    .p4-page {
        width: 100% !important;
        max-width: none !important;

        margin: 0 !important;

        box-sizing: border-box !important;
    }


    /*
     * Gouttières Phase 4 :
     * même référence visuelle que FR.
     */

    body.bk-en-reader #bk-04
    :is(
        .p4-hero,
        .p4-section
    ) {
        box-sizing: border-box !important;

        padding-left: 72px !important;
        padding-right: 72px !important;
    }


    /*
     * Aucun ancien composant EN ne doit
     * réduire la largeur du chapitre.
     */

    body.bk-en-reader #bk-04
    :is(
        .bk-en-content,
        .en-guideline-section,
        .en-chapter-layout,
        .en-chapter-main
    ) {
        max-width: none !important;

        margin-left: 0 !important;
        margin-right: 0 !important;
    }


    /*
     * Les vraies grilles P4 gardent leurs règles natives.
     */

    body.bk-en-reader #bk-04
    :is(
        .p4-colour-grid,
        .p4-support-grid,
        .p4-type-grid,
        .p4-hierarchy-grid
    ) {
        width: 100% !important;
    }
}


/* -------------------------------------------------------------
   MOBILE
   ------------------------------------------------------------- */

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

    body.bk-en-reader #bk-04
    > .bk-chapter-heading,

    body.bk-en-reader #bk-04
    :is(
        .p4-hero,
        .p4-section
    ) {
        padding-left: 22px !important;
        padding-right: 22px !important;
    }
}
