/* Aligne les pages FAQ / Lexique sur le gabarit pleine largeur de la bibliothèque. */
.as-fullwidth-main{background:#f6f2ec}

/* Le conteneur n'est plus plafonné à 1040 px : il occupe toute la largeur. */
.as-fullwidth-main .amc-faq,
.as-fullwidth-main .amc-lex{max-width:none;margin:0;padding:0 0 55px}

/* Héros pleine largeur : fond étendu, contenu centré à ~1080 px (comme la bibliothèque). */
.as-fullwidth-main .amc-faq-hero,
.as-fullwidth-main .amc-lex-hero{
	margin:0;
	border-radius:0;
	border-top:3px solid #ffa128;
	padding-left:max(18px,calc(50% - 540px));
	padding-right:max(18px,calc(50% - 540px));
}

/* Contenu sous le héros : même largeur utile que la bibliothèque. */
.as-fullwidth-main .amc-faq-list,
.as-fullwidth-main .amc-lex-alpha,
.as-fullwidth-main .amc-lex-list{
	width:min(1080px,calc(100% - 36px));
	margin-left:auto;
	margin-right:auto;
}
.as-fullwidth-main .amc-faq-list{padding-top:26px}
.as-fullwidth-main .amc-lex-alpha{padding-top:22px}

/* 2.0.24 — Ressources / Modèles de fiches / Bibliothèque documentaire
 * utilisent maintenant le même principe de gabarit que FAQ/Lexique :
 * en-tête -> contenu -> pied, sans l'enveloppe de page du thème qui ajoutait
 * des bandes blanches en haut et en bas. */
.as-content-gateway-page,
.as-content-gateway-page #page,
.as-content-gateway-page .site,
.as-content-gateway-page .wp-site-blocks{
	background:#f6f2ec;
}
.as-content-gateway-main{
	width:100%;
	max-width:none;
	margin:0;
	padding:0;
	background:#f6f2ec;
}
.as-content-gateway{
	width:100%;
	max-width:none;
	margin:0;
	padding:0;
}
.as-content-gateway > :first-child{margin-top:0!important}
.as-content-gateway > :last-child{margin-bottom:0!important}

/* Neutralise uniquement les marges de blocs imposées par le layout global du
 * thème autour du contenu. Les espacements internes propres aux sections sont
 * conservés. */
.as-content-gateway-page .as-content-gateway.is-layout-constrained,
.as-content-gateway-page .as-content-gateway > .is-layout-constrained{
	margin-block-start:0;
	margin-block-end:0;
}


/* 2.0.28 — Admissibilité : le fond du parcours doit occuper toute la page. */
.as-content-gateway-admissibilite,
.as-content-gateway-admissibilite #page,
.as-content-gateway-admissibilite .site,
.as-content-gateway-admissibilite .wp-site-blocks,
.as-content-gateway-admissibilite .as-content-gateway-main,
.as-content-gateway-admissibilite .as-content-gateway{background:#071d36!important;}
.as-content-gateway-admissibilite .as-content-gateway > *{max-width:none!important;width:100%!important;margin-left:0!important;margin-right:0!important;}
.as-content-gateway-admissibilite .wp-block-cover,
.as-content-gateway-admissibilite .wp-block-group.has-background{border-radius:0!important;}


/* 2.0.37 — Admissibilité : force uniquement l’image de fond choisie pour
 * cette page afin d’éviter que l’ancienne URL inline Gutenberg reprenne
 * le dessus au chargement. Aucun autre style du formulaire n’est modifié. */
.as-content-gateway-admissibilite .fond-formulaire-condo{
	background-image:url("admissibilite-background.png")!important;
}
