/*
Theme Name: Excellium RH
Theme URI: https://new.excelliumrh.com/
Description: Thème FSE du site vitrine Excellium RH Consulting. Généré depuis la charte Claude Design.
Author: Pulsar Agency
Version: 0.1.0
Requires PHP: 8.1
Requires at least: 7.0
Text Domain: excellium-rh
*/

/* -------------------------------------------------------------------------
 * Reset FSE : alignfull doit vraiment couvrir 100vw meme sous un parent
 * layout:constrained. La regle par defaut de WP (useRootPaddingAwareAlignments)
 * n'est efficace que si le padding root est propage — ce qui n'est pas notre
 * cas car nos blocs custom ont leur propre padding.
 * ---------------------------------------------------------------------- */
.wp-site-blocks .alignfull,
main.alignfull > .alignfull,
main .entry-content > .alignfull {
    margin-inline-start: calc(50% - 50vw);
    margin-inline-end:   calc(50% - 50vw);
    max-width: 100vw;
    width:     100vw;
}

/* Anti-scrollbar horizontal quand alignfull s'etend sur 100vw et une
 * scrollbar verticale reduit la largeur reelle du viewport. */
html, body { overflow-x: hidden; }
body      { background: #F6F5F1; }

/* Kill le blockGap 24px que WP applique entre sections top-level : dans la
 * maquette, chaque section colle a la precedente ; l'aeration vient de son
 * padding-top / bottom interne, pas d'une marge externe. */
main .entry-content > * + *,
main > .wp-block-group > * + * {
    margin-block-start: 0 !important;
}

/* Le main.has-global-padding recupere un margin-top / bottom du root
 * (useRootPaddingAwareAlignments: true). Kill : le header colle directement
 * au hero, le footer colle directement a la derniere section. */
.wp-site-blocks { padding: 0 !important; }
.wp-site-blocks > main.wp-block-group,
main.wp-block-group.has-global-padding {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}
/* WP core injecte margin-block-start:24px sur tout enfant direct de
 * .wp-site-blocks via useRootPaddingAwareAlignments. Le footer heritait
 * 24px du body-color paper visible entre la derniere section et le navy. */
.wp-site-blocks > footer,
.wp-site-blocks > .wp-block-template-part[data-type="footer"],
main + footer {
    margin-top: 0 !important;
    margin-block-start: 0 !important;
}
