/*
Theme Name: Astra Child
Template: astra
*/

/* ============================================
   CORRECTIFS ÉDITEUR GUTENBERG — THÈME ENFANT
   ============================================ */

/* 1. MAJUSCULES — ciblé éditeur uniquement */
.editor-styles-wrapper *,
.editor-styles-wrapper *::before,
.editor-styles-wrapper *::after {
    text-transform: none !important;
}

/* 2. TEXTE SUR UNE LIGNE */
.editor-styles-wrapper p,
.editor-styles-wrapper .wp-block-paragraph,
.editor-styles-wrapper li,
.editor-styles-wrapper span,
.editor-styles-wrapper div {
    white-space: normal !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
}

/* 3. STRUCTURE BLOCS GUTENBERG */
.editor-styles-wrapper .block-editor-block-list__layout {
    display: block !important;
}

.editor-styles-wrapper .block-editor-block-list__block {
    white-space: normal !important;
    width: 100% !important;
}

/* 4. PHOTOS TROP GRANDES dans l'éditeur */
.editor-styles-wrapper img,
.editor-styles-wrapper figure img,
.editor-styles-wrapper .wp-block-image img {
    max-width: 100% !important;
    height: auto !important;
}

/* 5. CORRECTIF SPÉCIFIQUE SPECTRA (UAGB) */
.editor-styles-wrapper .uagb-container-inner-blocks-wrap,
.editor-styles-wrapper .uagb-columns__inner-col {
    white-space: normal !important;
    flex-wrap: wrap !important;
}