/* Accueil : sections alternées or / bleu (fond-jour.js). Les couleurs sont posées par le script. */
html[data-ink="dark"] .rail__logo .logo-encre,
.entete[data-ink="dark"] .entete__logo .logo-encre{opacity:0}
html[data-ink="dark"] .rail__logo .logo-blanc,
.entete[data-ink="dark"] .entete__logo .logo-blanc{opacity:1}

/* Mobile : la phrase passe au-dessus du titre pour laisser le couple visible */
@media (max-width:640px){
  .hero__contenu{display:flex;flex-direction:column}
  .hero__devise{order:-1;margin-top:0;margin-bottom:var(--space-lg)}
}

/* Mobile : titre plus petit pour libérer la place du couple */
@media (max-width:640px){
  .hero h1{font-size:1.6rem}
}

/* Mobile : cadrage décalé pour rapprocher l'homme du bord droit */
@media (max-width:640px){
  html body #brxe-74bz6j, html body #brxe-74bz6j img{object-position:35% 40%}
}

/* Héros mobile, option B : photo entière en haut, texte sur bloc bleu nuit. Bureau inchangé. */
@media (max-width:640px){
  html body #brxe-gazazt{min-height:0;height:auto;display:flex;flex-direction:column;background:#273338}
  html body .hero__photo{position:relative;inset:auto;height:58svh;z-index:auto}
  html body .hero__photo::after,
  html body .hero::after{display:none}
  html body .hero__contenu{position:relative;padding:var(--space-xl) var(--gutter) calc(var(--crete-h) + var(--space-xl));background:#273338}
  html body .hero__devise{margin-top:var(--space-md)}
}

/* Héros mobile, option B : texte plus haut, et ligne de crête laiton au-dessus du bloc bleu. */
@media (max-width:640px){
  html body .hero__contenu{padding-top:var(--space-md)}
  html body .hero__devise{margin-top:0}
  html body .hero__contenu::before{content:"";position:absolute;left:0;right:0;bottom:100%;height:calc(var(--crete-h) + 2px);background:var(--laiton);-webkit-mask:var(--crete-masque) center bottom / 100% 100% no-repeat;mask:var(--crete-masque) center bottom / 100% 100% no-repeat;pointer-events:none}
  html body .hero__contenu::after{content:"";position:absolute;left:0;right:0;bottom:100%;height:var(--crete-h);background:#273338;-webkit-mask:var(--crete-masque) center bottom / 100% 100% no-repeat;mask:var(--crete-masque) center bottom / 100% 100% no-repeat;pointer-events:none}
}
