/* =====================================================================
   ERP : ALIGNEMENT DU HÉROS SUR LE MENU   (2026-11-17)
   Le contenu du premier bloc de l'accueil (texte + image) commence au bord gauche du logo et finit au bord droit de « S'inscrire ».
   RIEN d'autre ne change dans l'ERP (ni couleurs, ni textes, ni image). Ne vise que la section qui contient le titre principal.
   Retour : RESTAURER-heros-modules.cmd  (choix : erp)
   ===================================================================== */

/* ---------- ALIGNEMENT SUR LE MENU ----------
   Le menu a le contenu du pied de page : 1100 px (marge 20 px, 16 px sous 1024 px, 12 px sous 421 px). */
/* barre UNIQUE du menu = pied de page : contenu 1100 px (162,5 -> 1262,5 px à 1440 px) => moitié = 550 px
   (le menu fixe aussi --amh-demi dans menu-unifie.css : valeur commune, ne pas la changer ici sans la session menu) */
:root { --amh-demi: 550px; }
/* marge latérale du menu (recopiée : 20 px >= 1024 px, 16 px jusqu'à 1023 px, 12 px jusqu'à 420 px, 8 px de 1024 à 1100 px hors français) */
:root { --h-m: 20px; }
@media (max-width: 1023px) { :root { --h-m: 16px; } }
@media (max-width: 420px) { :root { --h-m: 12px; } }
@media (min-width: 1024px) and (max-width: 1100px) { :root:has(#amu:not([data-amu-lang="fr"])) { --h-m: 8px; } }

section:has(> div.max-w-7xl > div.grid h1) > div.max-w-7xl {
    max-width: calc(2 * var(--amh-demi) + 2 * var(--amu-marge, var(--h-m))) !important;
    padding-left: var(--amu-marge, var(--h-m)) !important;
    padding-right: var(--amu-marge, var(--h-m)) !important;
}
