/* Correctif local du positionnement des bandeaux Corpus et Biblium.
   Référence esthétique : Éditions Savoy. Version 20261108-r2.
   CSS délibérément limité aux deux sites, sans modification de navigation ni de contenu. */
@media (min-width:1151px) {
  html body .site-header .header-inner.savoy-unified-host:has(> .savoy-unified-family[data-savoy-reference="editions"]) {
    display:flex!important;
    width:min(calc(100% - 48px),1280px)!important;
    max-width:1280px!important;
    min-width:0!important;
    margin-left:auto!important;
    margin-right:auto!important;
    padding:8px 0!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:18px!important;
  }
  html body .site-header .header-inner.savoy-unified-host > .savoy-unified-family[data-savoy-reference="editions"] {
    order:1!important;
    flex:0 1 auto!important;
    margin-right:0!important;
    min-width:0!important;
  }
  html body .site-header .header-inner.savoy-unified-host > nav.main-nav {
    order:2!important;
    display:flex!important;
    flex:0 0 auto!important;
    width:auto!important;
    margin-left:auto!important;
    margin-right:0!important;
    justify-content:flex-end!important;
    text-align:right!important;
  }
  html body.savoy-family-integrated .savoy-biblium-family__inner.savoy-unified-host {
    display:flex!important;
    width:min(calc(100% - 48px),1280px)!important;
    max-width:1280px!important;
    min-width:0!important;
    margin-left:auto!important;
    margin-right:auto!important;
    padding:8px 0!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:18px!important;
  }
  html body.savoy-family-integrated .savoy-biblium-family__inner.savoy-unified-host > .savoy-unified-family[data-savoy-reference="editions"] {
    order:1!important;
    flex:0 1 auto!important;
    margin-right:0!important;
    min-width:0!important;
  }
  html body.savoy-family-integrated .savoy-biblium-family__inner.savoy-unified-host > .biblium-navigation {
    order:2!important;
    display:block!important;
    position:static!important;
    grid-column:auto!important;
    grid-row:auto!important;
    flex:0 0 auto!important;
    width:auto!important;
    min-width:0!important;
    margin-left:auto!important;
    margin-right:0!important;
    padding:0!important;
    align-self:center!important;
    text-align:right!important;
  }
  html body.savoy-family-integrated .savoy-biblium-family__inner.savoy-unified-host > .biblium-navigation > nav {
    display:flex!important;
    flex-flow:row nowrap!important;
    width:auto!important;
    justify-content:flex-end!important;
    align-items:center!important;
    text-align:right!important;
  }
}
@media (max-width:1150px) {
  /* Native dropdown is self-contained: it must work even when an old JS readiness
     flag is absent. It remains fixed at the right of the header. */
  html body.corpus-unified.collection-portal .site-header .header-inner.savoy-unified-host {
    position:relative!important;
    margin-left:auto!important;
    margin-right:auto!important;
    justify-content:space-between!important;
  }
  html body.corpus-unified.collection-portal .site-header .header-inner.savoy-unified-host > nav.main-nav,
  html:not(.savoy-responsive-ready) body.corpus-unified.collection-portal .site-header .header-inner.savoy-unified-host > nav.main-nav {
    display:none!important;
    width:auto!important;
  }
  html body.corpus-unified.collection-portal .site-header .header-inner.savoy-unified-host > details.savoy-native-menu {
    display:block!important;
    position:absolute!important;
    top:12px!important;
    right:12px!important;
    left:auto!important;
    width:auto!important;
    margin:0!important;
    z-index:100!important;
  }
  html body.savoy-family-integrated .savoy-biblium-family__inner.savoy-unified-host > .biblium-navigation {
    display:none!important;
  }
  html body.savoy-family-integrated .savoy-biblium-family__inner.savoy-unified-host {
    position:relative!important;
    margin-left:auto!important;
    margin-right:auto!important;
  }
  html body.savoy-family-integrated .savoy-biblium-family__inner.savoy-unified-host > details.savoy-biblium-mobile-menu {
    display:block!important;
    position:absolute!important;
    top:12px!important;
    right:12px!important;
    left:auto!important;
    width:auto!important;
    margin:0!important;
    z-index:100!important;
  }
}
@media (max-width:700px) {
  html body.corpus-unified.collection-portal .site-header .header-inner.savoy-unified-host > details.savoy-native-menu,
  html body.savoy-family-integrated .savoy-biblium-family__inner.savoy-unified-host > details.savoy-biblium-mobile-menu {
    top:11px!important;
    right:10px!important;
  }
}
/* CORPUS_HEADER_ARMOIRIES_TRIAL_20261109
   Signature du Corpus : SVG canonique de la maison Savoy.
   Décoratif et sans changement de dimensions ni de navigation. */
html body.corpus-unified .site-header .savoy-unified-family[data-savoy-reference="editions"] > a.savoy-link--corpus::after {
  content:"";
  display:block;
  position:absolute;
  top:30px;
  right:8px;
  width:20px;
  height:24px;
  background:transparent url("/assets/armoiries-savoy.svg") center / contain no-repeat;
  pointer-events:none;
}
@media(max-width:1150px) {
  html body.corpus-unified .site-header .savoy-unified-family[data-savoy-reference="editions"] > a.savoy-link--corpus::after {
    top:31px;
    left:130px;
    right:auto;
    width:16px;
    height:20px;
  }
}
@media(max-width:700px) {
  html body.corpus-unified .site-header .savoy-unified-family[data-savoy-reference="editions"] > a.savoy-link--corpus::after {
    left:104px;
  }
}
@media(max-width:350px) {
  html body.corpus-unified .site-header .savoy-unified-family[data-savoy-reference="editions"] > a.savoy-link--corpus::after {
    top:5px;
    left:auto;
    right:7px;
    width:13px;
    height:17px;
  }
}

/* CORPUS_MENU_TWO_LEVELS_TRIAL_20261109
   Essai reversibile : quatre liens institutionnels sur la ligne superieure,
   puis identite du Corpus + sa navigation; mobile = 4 liens + menu local natif.
   CSS only: pas de modification des URL, des couvertures ni des ouvrages.
*/
html body.corpus-unified:is(.collection-portal,.in-volume) .site-header .header-inner.savoy-unified-host {
  box-sizing:border-box!important;
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  grid-template-rows:35px 60px!important;
  width:min(calc(100% - 48px),1280px)!important;
  max-width:1280px!important;
  min-width:0!important;
  min-height:95px!important;
  margin-inline:auto!important;
  padding:0!important;
  gap:0 12px!important;
  align-items:center!important;
  justify-content:stretch!important;
  position:relative!important;
}
html body.corpus-unified:is(.collection-portal,.in-volume) .site-header .header-inner.savoy-unified-host > .savoy-unified-family[data-savoy-reference="editions"] {
  grid-column:1 / -1!important;
  grid-row:1!important;
  display:flex!important;
  flex-flow:row nowrap!important;
  align-items:center!important;
  justify-content:flex-end!important;
  box-sizing:border-box!important;
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  height:35px!important;
  min-height:35px!important;
  padding:0!important;
  margin:0!important;
  gap:clamp(10px,1.5vw,23px)!important;
  border-bottom:1px solid #e1dcd1!important;
}
html body.corpus-unified:is(.collection-portal,.in-volume) .site-header .savoy-unified-family[data-savoy-reference="editions"] > a {
  display:inline-flex!important;
  box-sizing:border-box!important;
  flex:0 0 auto!important;
  align-items:center!important;
  justify-content:center!important;
  align-self:center!important;
  width:auto!important;
  min-width:0!important;
  max-width:none!important;
  min-height:31px!important;
  height:31px!important;
  margin:0!important;
  padding:0 2px!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  color:#655f51!important;
  font:600 11px/1.1 'Savoy Source Sans 3',Arial,sans-serif!important;
  letter-spacing:.02em!important;
  text-transform:none!important;
  white-space:nowrap!important;
  overflow:visible!important;
  text-decoration:none!important;
}
html body.corpus-unified:is(.collection-portal,.in-volume) .site-header .savoy-unified-family[data-savoy-reference="editions"] > a:hover {
  color:#244439!important;
  background:transparent!important;
  text-decoration:underline!important;
  text-underline-offset:3px!important;
}
html body.corpus-unified:is(.collection-portal,.in-volume) .site-header .savoy-unified-family[data-savoy-reference="editions"] > a.savoy-link--corpus {
  color:#244439!important;
  font-weight:750!important;
}
html body.corpus-unified:is(.collection-portal,.in-volume) .site-header .savoy-unified-family[data-savoy-reference="editions"] > a > * {
  display:none!important;
}
html body.corpus-unified:is(.collection-portal,.in-volume) .site-header .savoy-unified-family[data-savoy-reference="editions"] > a::after {
  content:none!important;
  display:none!important;
}
html body.corpus-unified:is(.collection-portal,.in-volume) .site-header .savoy-unified-family[data-savoy-reference="editions"] > a:nth-child(1)::before {
  content:"Éditions"!important;
}
html body.corpus-unified:is(.collection-portal,.in-volume) .site-header .savoy-unified-family[data-savoy-reference="editions"] > a:nth-child(2)::before {
  content:"Corpus"!important;
}
html body.corpus-unified:is(.collection-portal,.in-volume) .site-header .savoy-unified-family[data-savoy-reference="editions"] > a:nth-child(3)::before {
  content:"Biblium"!important;
}
html body.corpus-unified:is(.collection-portal,.in-volume) .site-header .savoy-unified-family[data-savoy-reference="editions"] > a:nth-child(4)::before {
  content:"Pierre-Alain"!important;
}
html body.corpus-unified:is(.collection-portal,.in-volume) .site-header .header-inner.savoy-unified-host::before {
  content:"Corpus Savoy"!important;
  box-sizing:border-box!important;
  display:flex!important;
  grid-column:1!important;
  grid-row:2!important;
  align-items:center!important;
  justify-content:flex-start!important;
  width:auto!important;
  min-width:0!important;
  min-height:49px!important;
  padding:0 0 0 43px!important;
  margin:0!important;
  color:#2b332a!important;
  font:400 clamp(22px,2vw,27px)/1 'Savoy EB Garamond',Georgia,serif!important;
  letter-spacing:-.02em!important;
  white-space:nowrap!important;
  background:transparent url("/assets/armoiries-savoy.svg") 4px center / 26px 38px no-repeat!important;
  pointer-events:none!important;
}
html body.corpus-unified:is(.collection-portal,.in-volume) .site-header .header-inner.savoy-unified-host > nav.main-nav {
  grid-column:2!important;
  grid-row:2!important;
  order:0!important;
  display:flex!important;
  flex:0 0 auto!important;
  align-items:center!important;
  justify-content:flex-end!important;
  position:static!important;
  min-height:48px!important;
  width:auto!important;
  margin:0!important;
  padding:0!important;
  gap:clamp(10px,1.1vw,19px)!important;
}
html body.corpus-unified:is(.collection-portal,.in-volume) .site-header .header-inner.savoy-unified-host > details.savoy-native-menu {
  display:none!important;
}
@media(max-width:1150px) {
  html body.corpus-unified:is(.collection-portal,.in-volume) .site-header .header-inner.savoy-unified-host {
    grid-template-rows:35px 58px!important;
    min-height:93px!important;
  }
  html body.corpus-unified:is(.collection-portal,.in-volume) .site-header .header-inner.savoy-unified-host > nav.main-nav {
    display:none!important;
  }
  html body.corpus-unified:is(.collection-portal,.in-volume) .site-header .header-inner.savoy-unified-host > details.savoy-native-menu {
    display:block!important;
    position:relative!important;
    grid-column:2!important;
    grid-row:2!important;
    justify-self:end!important;
    align-self:center!important;
    top:auto!important;
    right:auto!important;
    left:auto!important;
    z-index:100!important;
    width:auto!important;
    min-width:0!important;
    margin:0!important;
  }
}
@media(max-width:700px) {
  html body.corpus-unified:is(.collection-portal,.in-volume) .site-header .header-inner.savoy-unified-host {
    display:grid!important;
    grid-template-columns:minmax(0,1fr) auto!important;
    grid-template-rows:34px 55px!important;
    width:calc(100% - 24px)!important;
    min-height:89px!important;
    padding:0!important;
    gap:0!important;
  }
  html body.corpus-unified:is(.collection-portal,.in-volume) .site-header .header-inner.savoy-unified-host > .savoy-unified-family[data-savoy-reference="editions"] {
    display:flex!important;
    flex-flow:row nowrap!important;
    align-items:center!important;
    justify-content:space-between!important;
    height:34px!important;
    min-height:34px!important;
    max-height:34px!important;
    padding:0!important;
    gap:3px!important;
    border-bottom:1px solid #e1dcd1!important;
  }
  html body.corpus-unified:is(.collection-portal,.in-volume) .site-header .savoy-unified-family[data-savoy-reference="editions"] > a {
    display:inline-flex!important;
    flex:0 0 auto!important;
    width:auto!important;
    max-width:none!important;
    min-width:0!important;
    height:32px!important;
    min-height:32px!important;
    padding:0 2px!important;
    margin:0!important;
    border:0!important;
    font-size:11px!important;
    letter-spacing:0!important;
  }
  html body.corpus-unified:is(.collection-portal,.in-volume) .site-header .header-inner.savoy-unified-host::before {
    min-height:54px!important;
    padding-left:34px!important;
    font-size:22px!important;
    background-position:0 center!important;
    background-size:21px 32px!important;
  }
  html body.corpus-unified:is(.collection-portal,.in-volume) .site-header .header-inner.savoy-unified-host > details.savoy-native-menu {
    display:block!important;
    grid-column:2!important;
    grid-row:2!important;
    position:relative!important;
    right:auto!important;
    top:auto!important;
    width:auto!important;
    margin:0!important;
    justify-self:end!important;
  }
}
@media(max-width:350px) {
  html body.corpus-unified:is(.collection-portal,.in-volume) .site-header .savoy-unified-family[data-savoy-reference="editions"] > a {
    font-size:10px!important;
    letter-spacing:0!important;
  }
  html body.corpus-unified:is(.collection-portal,.in-volume) .site-header .header-inner.savoy-unified-host::before {
    font-size:21px!important;
  }
}

/* SAVOY_HOME_LOGO_HITAREA_20261109 -- associe le logo de seconde ligne au lien d'accueil deja existant.
   Les quatre destinations du bandeau institutionnel restent inchangees. */
html body .savoy-unified-host > .savoy-unified-family {position:static!important;}
html body.corpus-unified:is(.collection-portal,.in-volume) .site-header .savoy-unified-host > .savoy-unified-family[data-savoy-reference='editions'] > a.savoy-link--corpus {position:static!important;}
html body.corpus-unified:is(.collection-portal,.in-volume) .site-header .savoy-unified-host > .savoy-unified-family[data-savoy-reference='editions'] > a.savoy-link--corpus::after {
  content:""!important;
  display:block!important;
  position:absolute!important;
  top:35px!important;
  left:0!important;
  width:235px!important;
  max-width:calc(100% - 70px)!important;
  height:60px!important;
  background:transparent!important;
  opacity:1!important;
  border:0!important;
  pointer-events:auto!important;
  cursor:pointer!important;
  z-index:5!important;
}
@media(max-width:700px) {
  html body.corpus-unified:is(.collection-portal,.in-volume) .site-header .savoy-unified-host > .savoy-unified-family[data-savoy-reference='editions'] > a.savoy-link--corpus::after {
    top:34px!important;
    height:55px!important;
    max-width:calc(100% - 64px)!important;
  }
}
