/* Bandeau Unil.IA, repris d'AI_GO (proposition V2, état par défaut : logo et chapeau actuels).
   Composant maison, jetons du DS seulement. À charger après assets/css/styles.css (build du DS).
   Toutes les règles sont limitées au bandeau (.app-hero et ses descendants) : rien ne touche la page hôte.
   Section : <section class="hero hero-noimage app-hero bg-primary text-white pt-6 pb-12 mb-0"> (utilitaires DS). */

/* Colonne de 1340px et marges latérales de 1,5rem, comme le contenu d'AI_GO. */
.app-hero .page { font-family: var(--typography-family-primary); max-width: 1340px; margin: 0 auto; padding-left: var(--spacings-6); padding-right: var(--spacings-6); }

/* Chapeau à la taille actuelle d'AI_GO (17 px) ; option n° 22 : retirer font-size (taille DS, 23 px). */

.app-hero h1 {
    margin: 0 !important;
}

.app-hero .unil-logo {
  display: block;
  box-sizing: border-box;
  height: auto;
  width: 205px;
  max-width: 100%;
  vertical-align: bottom;
}


.app-hero .hero-subtitle { font-size: var(--typography-paragraph-font-size-300); max-width: 52rem; }

/* Logo à la taille actuelle d'AI_GO (boîte de 2.75rem, viewBox 0 0 860 400) ; option n° 21 : voir README. */
.app-hero .app-logo { height: 2.75rem; color: var(--brand-neutral-0); display: inline-block; }
.app-hero .app-logo svg { height: 100%; width: auto; display: block; }
.app-hero .app-logo:focus-visible { outline: 2px solid var(--brand-neutral-0); outline-offset: 2px; }

.header-title {
  color: var(--brand-neutral-0);
  font-size: var(--typography-heading-font-size-400);
  line-height: var(--typography-heading-lh-400);
  font-weight: 700;
}

/* Langues : FR EN à droite, langue courante en gras soulignée. */
.app-hero .lang-nav { display: flex; gap: var(--spacings-3); }
.app-hero .lang-nav a { color: var(--brand-neutral-0); text-decoration: none; font-weight: 400; line-height: 1.2; }
.app-hero .lang-nav a[aria-current="true"] { font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.app-hero .lang-nav a:focus-visible { outline: 2px solid var(--brand-neutral-0); outline-offset: 2px; }
/* Au tactile, cible de 44 px ; la marge négative garde « EN » ferré à droite. */
@media (pointer: coarse) {
  .app-hero .lang-nav { gap: 0; }
  .app-hero .lang-nav a { min-height: 44px; min-width: 44px; display: inline-flex; align-items: center;
                          justify-content: center; padding: 0 var(--spacings-3); }
  .app-hero .lang-nav a:last-child { margin-right: calc(-1 * var(--spacings-3)); }
}
