/* ==========================================
   1. DÉBLOCAGE DE LA STRUCTURE GLOBALE (PARENT)
   ========================================= */
.site-content,
#content {
    max-width: 1400px !important; 
    width: 95% !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* ==========================================
   2. ÉLARGISSEMENT DU TEXTE ET DES EN-TÊTES
   ========================================= */
.entry-content, 
.entry-summary, 
.page-content,
.entry-header {
    max-width: 100% !important;  
    width: 100% !important;        
    margin-left: auto !important;  
    margin-right: auto !important; 
    float: none !important;        
}

/* ==========================================
   3. CENTRAGE DES TITRES
   ========================================= */
.entry-title, 
.entry-header h1, 
.page-title {
    text-align: center !important; 
}

/* ==========================================
   4. BLOCAGE DE LA COUPURE DES MOTS
   ========================================= */
body, p {
    -webkit-hyphens: none !important; 
    -moz-hyphens: none !important;    
    -ms-hyphens: none !important;     
    hyphens: none !important;         
    word-break: normal !important;    
}

/* ==========================================
   5. PHOTOS INDIVIDUELLES : LIBERTÉ TOTALE
   ========================================= */
.entry-content .wp-block-image, 
.page-content .wp-block-image {
    max-width: 100%;                  
    margin-left: auto !important;     
    margin-right: auto !important;  
    display: block;
}

/* ==========================================
   6. RÉPARATION ET RÉACTIVATION DES GALERIES
   ========================================= */
/* Force le bloc galerie à utiliser la disposition en grille flexible de WordPress */
.wp-block-gallery, 
ul.wp-block-gallery,
figure.wp-block-gallery {
    display: flex !important;
    flex-wrap: wrap !important; /* Permet aux images de se placer côte à côte */
    gap: 16px !important;       /* Espace propre entre les colonnes */
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Redonne le contrôle aux colonnes choisies dans votre éditeur (ex: 3 colonnes = flex-grow) */
.wp-block-gallery .wp-block-image {
    flex-grow: 1 !important;
    flex-basis: calc(25% - 16px); /* Base par défaut flexible */
    margin: 0 !important;
}

/* S'assure que les images dans les colonnes restent proportionnelles et nettes */
.wp-block-gallery .wp-block-image img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    object-fit: cover !important; 
}

/* ==========================================
   7. SÉCURITÉ ET RÉPARATION DES SMILEYS
   ========================================= */
img.wp-smiley, 
img.emoji,
img[src*="s.w.org/images/core/emoji"] {
    width: 1.2em !important;
    max-width: 1.2em !important;
    height: 1.2em !important;
    max-height: 1.2em !important;
    display: inline-block !important; 
    margin: 0 0.07em !important;
    vertical-align: -0.1em !important;
    box-shadow: none !important;
    border: none !important;
}

/* Force l'affichage de l'image mise en avant sur les pages fixes */
.page .entry-thumbnail, 
.page .post-thumbnail {
    display: block !important;
    width: 100% !important;
    max-width: 1400px !important; /* Aligné sur la largeur de votre site */
    margin-left: auto !important;
    margin-right: auto !important;
    margin-bottom: 2em !important;
}

.page .entry-thumbnail img,
.page .post-thumbnail img {
    width: 100% !important;
    height: auto !important;
}
/* 1. Assure la sécurité du menu */
.site-header-container {
    position: relative;
    z-index: 9999 !important;
}

/* 2. Écrase le grand espace blanc natif de Resonar */
.site-main {
    padding-top: 0 !important;
}

.page-header, .entry-header {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* 3. Supprime les marges du tout premier bloc de la page */
.entry-content > *:first-child {
    margin-top: 0 !important;
    padding-top: 0 !important;
}


