/* Même grammaire dans les blocs natifs et le site. */
.sgf-hero-photo, .sgf-contact-photo { position:absolute; inset:0; margin:0; width:100%; height:100%; z-index:-2; }
.sgf-hero-photo img, .sgf-contact-photo img { width:100%; height:100%; object-fit:cover; filter:grayscale(1); }
/* sizes="auto" utilise la largeur réellement couverte, y compris sur un téléphone vertical. */
.sgf-contact-photo { display:flex; justify-content:center; overflow:hidden; }
.sgf-contact-photo img { flex:none; width:auto; min-width:100%; max-width:none; }
.sgf-hero .wp-block-buttons { gap:.75rem; }
.sgf-hero .wp-block-button__link { padding:.9rem 1.6rem; border:1px solid var(--or); border-radius:var(--rayon); background:var(--or); color:var(--noir); font:600 .8125rem/1.2 var(--sans); letter-spacing:.1em; text-transform:uppercase; }
.sgf-hero .is-style-outline .wp-block-button__link { color:white; border-color:white; background:transparent; }
.sgf-stats__list > .wp-block-group { display:flex; flex-direction:column; gap:.2rem; }
.sgf-stats__list > .wp-block-group + .wp-block-group { border-left:1px solid #333; padding-left:1.25rem; }
.sgf-stats__list p { margin:0; }
.sgf-hero, .sgf-band { margin-block:0; }
.sgf-intro__grid > .wp-block-group { min-width:0; }
.sgf-disclosures { font-size:.85rem; line-height:1.65; margin-block:2rem; }
.sgf-disclosures p:last-child { margin-bottom:0; }
.sgf-footer__logos { display:flex; gap:2rem; align-items:center; flex-wrap:wrap; margin-block:2rem; }
.sgf-footer__logos .wp-block-image { width:160px; margin:0; }
.sgf-footer__logos img { max-height:100px; width:100%; object-fit:contain; }
.sgf-footer .sgf-footer__brand { color:white; }
.sgf-footer .sgf-disclosures { color:#cfccc4; }
.sgf-page-intro { padding-top:2rem; }
.editor-styles-wrapper .is-root-container > .sgf-hero,
.editor-styles-wrapper .is-root-container > .sgf-section,
.editor-styles-wrapper .is-root-container > .sgf-band { max-width:none; }
.editor-styles-wrapper .sgf-hero-photo, .editor-styles-wrapper .sgf-contact-photo { z-index:0; }
.editor-styles-wrapper .sgf-hero__inner, .editor-styles-wrapper .sgf-band__inner { position:relative; z-index:1; }
.editor-styles-wrapper .sgf-hero::before, .editor-styles-wrapper .sgf-band::before { z-index:1; pointer-events:none; }

.editor-styles-wrapper .sgf-stats { position:relative; z-index:1; }
.editor-styles-wrapper .sgf-hero-photo:focus-within, .editor-styles-wrapper .sgf-contact-photo:focus-within { z-index:2; }
@media(max-width:700px) {
 .sgf-stats__list > .wp-block-group:nth-child(3) { border-left:0; padding-left:0; }
}
/* L’éditeur ajoute une position relative aux images : préserver la couche de fond. */
.wp-block-image.sgf-hero-photo, .wp-block-image.sgf-contact-photo { position:absolute; margin:0; }
.sgf-footer .wp-block-group { max-width:none; }
/* Les blocs natifs ont leurs propres marges : les sections conservent le rythme du site. */
#contenu > .wp-block-group { margin-block:0; }
.sgf-hero-photo { opacity:.55; }
.sgf-hero > .sgf-hero__inner { position:relative; }
.editor-styles-wrapper .wp-block-image.sgf-hero-photo, .editor-styles-wrapper .wp-block-image.sgf-contact-photo { position:absolute; }

.editor-styles-wrapper .sgf-footer-content { background:var(--noir); color:#cfccc4; padding:2rem; max-width:none; }
.editor-styles-wrapper .sgf-footer-content a { color:#cfccc4; }
.editor-styles-wrapper .sgf-footer-content .sgf-footer__brand { color:white; }

/* Les couches absolues ne doivent pas créer l’espace entre blocs du haut de page. */
.sgf-hero > .sgf-hero__inner, .sgf-hero > .sgf-stats, .sgf-band > .sgf-band__inner { margin-block:0; }
/* Le décor injecté n’est pas un bloc éditorial : aucun espacement Gutenberg entre photo et tracé. */
.sgf-hero > .sgf-crete { margin:0; }
.sgf-stats__list > .wp-block-group, .sgf-intro__grid > *, .sgf-brand-logos > * { margin-block:0; }
/* Les blocs Image partagent leurs dimensions avec l’éditeur. */
.sgf-brand-logos { --logo-height:56px; display:flex; align-items:center; gap:1.25rem; }
.sgf-brand-logos .wp-block-image { margin:0; line-height:0; }
.sgf-brand-logos img { display:block; height:var(--logo-height); width:auto; max-width:none; }
.sgf-anne-brand { padding-left:1.25rem; border-left:1px solid var(--or); }
.editor-styles-wrapper .sgf-brand-logos { padding:1rem; background:var(--noir); }
/* Le bloc Image impose height:auto dans le canevas. Donner aux marques leur largeur de prévisualisation. */
.editor-styles-wrapper .sgf-logo-ia img { width:calc(var(--logo-height) * 1.507); }
.editor-styles-wrapper .sgf-logo-sommet img { width:calc(var(--logo-height) * 430 / 319); }
.sgf-header__inner { min-height:95px; }
.sgf-nav-button { display:none; width:44px; height:44px; align-items:center; justify-content:center; padding:0; color:white; border:0; background:transparent; cursor:pointer; }
.sgf-menu-icon { width:23px; height:17px; background:linear-gradient(currentColor,currentColor) top / 100% 2px no-repeat,linear-gradient(currentColor,currentColor) center / 100% 2px no-repeat,linear-gradient(currentColor,currentColor) bottom / 100% 2px no-repeat; }
.sgf-nav-button[aria-expanded="true"] .sgf-menu-icon { background:linear-gradient(45deg,transparent 45%,currentColor 46% 54%,transparent 55%),linear-gradient(-45deg,transparent 45%,currentColor 46% 54%,transparent 55%); }
@media (min-width:1200px) {
 /* Au redimensionnement, le bouton reste accessible tant qu’il détient le focus. */
 .sgf-menu-open .sgf-nav-button, .sgf-nav-button:focus { display:inline-flex; }
}
@media (max-width:1199px) {
 .sgf-header__inner { min-height:63px; }
 .sgf-brand-logos { --logo-height:42px; }
 .sgf-js .sgf-nav-button { display:inline-flex; margin-left:auto; }
 .sgf-js .sgf-nav { display:none; position:absolute; inset:calc(100% + 1px) 0 auto; height:calc(100dvh - 64px - var(--wp-admin--admin-bar--height, 0px)); padding:1.25rem var(--gouttiere) 2rem; background:var(--noir); overflow-y:auto; overscroll-behavior:contain; }
 .sgf-menu-open { overflow:hidden; }
 .sgf-menu-open .sgf-nav { display:block; }
 .sgf-js .sgf-nav__list { display:flex; flex-direction:column; }
 .sgf-js .sgf-nav__list > li { border:0; border-bottom:1px solid #333; }
 .sgf-js .sgf-nav__list > li > a { display:block; padding:1rem .25rem; text-align:left; font-size:1rem; letter-spacing:.1em; }
}
@media (max-width:359px) {
 .sgf-brand-logos { --logo-height:38px; }
}
