
/* 9.1.8 — Harmonisation des titres */
.gc-taverne-root .section-title h2,
.gc-taverne-root main > section > h2,
.gc-taverne-root main > section > header h2,
.gc-taverne-root .panel h2,
.gc-taverne-root .panel h3,
.gc-taverne-root .card h2,
.gc-taverne-root .card h3,
.gc-taverne-root .gc-home-adventurers-title h2,
.gc-taverne-root .gc-recruitment-title h2,
.gc-taverne-root .gc-shop-title,
.gc-taverne-root .gc-collection-title,
.gc-taverne-root .gc-ranking-title,
.gc-taverne-root .gc-jdr-title,
.gc-taverne-root .gc-quests-title{
  font-family:Georgia,"Times New Roman",serif!important;
  color:#d7a650!important;
  font-weight:700!important;
  letter-spacing:.015em;
}

/* Les grands titres restent élégants et cohérents */
.gc-taverne-root .section-title h2{
  font-size:29px!important;
}

/* IMPORTANT : titres des cartes de parties/JDR restent blancs */
.gc-taverne-root .game-card h3,
.gc-taverne-root .game-card h2,
.gc-taverne-root .gc-party-card h3,
.gc-taverne-root .gc-party-card h2,
.gc-taverne-root .party-card h3,
.gc-taverne-root .party-card h2,
.gc-taverne-root [data-party-card] h3,
.gc-taverne-root [data-party-card] h2,
.gc-taverne-root .gc-jdr-card h3,
.gc-taverne-root .gc-jdr-card h2,
.gc-taverne-root .gc-recruitment-card h3{
  color:#fff!important;
}

/* Image optionnelle devant un grand titre */
.gc-title-with-image{
  display:flex!important;
  align-items:center!important;
  gap:10px!important;
}
.gc-title-icon{
  display:block;
  flex:0 0 auto;
  width:38px;
  height:38px;
  object-fit:contain;
  object-position:center;
  filter:drop-shadow(0 0 7px rgba(215,166,80,.22));
}
.section-title .gc-title-icon{
  width:42px;
  height:42px;
}
@media(max-width:700px){
  .gc-title-icon,.section-title .gc-title-icon{width:30px;height:30px}
  .gc-taverne-root .section-title h2{font-size:21px!important}
}


/* 9.1.9 — titres plus fins et plus discrets */
.gc-taverne-root .section-title h2,
.gc-taverne-root main > section > h2,
.gc-taverne-root main > section > header h2,
.gc-taverne-root .panel h2,
.gc-taverne-root .panel h3,
.gc-taverne-root .card h2,
.gc-taverne-root .card h3,
.gc-taverne-root .gc-home-adventurers-title h2,
.gc-taverne-root .gc-recruitment-title h2,
.gc-taverne-root .gc-shop-title,
.gc-taverne-root .gc-collection-title,
.gc-taverne-root .gc-ranking-title,
.gc-taverne-root .gc-jdr-title,
.gc-taverne-root .gc-quests-title{
  font-weight:400!important;
  letter-spacing:.025em!important;
}

.gc-taverne-root .section-title h2{
  font-size:22px!important;
  line-height:1.15!important;
}

.gc-title-icon,
.section-title .gc-title-icon{
  width:32px!important;
  height:32px!important;
}

@media(max-width:700px){
  .gc-taverne-root .section-title h2{
    font-size:18px!important;
  }
  .gc-title-icon,
  .section-title .gc-title-icon{
    width:27px!important;
    height:27px!important;
  }
}


/* 9.1.10 — reprendre EXACTEMENT l'identité "Les Chroniques de la Taverne" */
.gc-taverne-root .section-title h2,
.gc-taverne-root main > section > h2,
.gc-taverne-root main > section > header h2,
.gc-taverne-root .panel h2,
.gc-taverne-root .panel h3,
.gc-taverne-root .card h2,
.gc-taverne-root .card h3,
.gc-taverne-root .gc-home-adventurers-title h2,
.gc-taverne-root .gc-recruitment-title h2,
.gc-taverne-root .gc-shop-title,
.gc-taverne-root .gc-collection-title,
.gc-taverne-root .gc-ranking-title,
.gc-taverne-root .gc-jdr-title,
.gc-taverne-root .gc-quests-title{
  font-family:inherit!important;
  color:#f3dfb5!important;
  font-weight:700!important;
  letter-spacing:0!important;
}

/* taille harmonisée mais plus discrète que la première tentative */
.gc-taverne-root .section-title h2{
  font-size:20px!important;
  line-height:1.08!important;
}

/* exception demandée : titres contenus dans les cartes de parties restent blancs */
.gc-taverne-root .game-card h3,
.gc-taverne-root .game-card h2,
.gc-taverne-root .gc-party-card h3,
.gc-taverne-root .gc-party-card h2,
.gc-taverne-root .party-card h3,
.gc-taverne-root .party-card h2,
.gc-taverne-root [data-party-card] h3,
.gc-taverne-root [data-party-card] h2,
.gc-taverne-root .gc-jdr-card h3,
.gc-taverne-root .gc-jdr-card h2,
.gc-taverne-root .gc-recruitment-card h3{
  color:#fff!important;
}

@media(max-width:700px){
  .gc-taverne-root .section-title h2{font-size:17px!important}
}


/* 9.1.11 — même identité "Les Chroniques de la Taverne" sur TOUTES les pages */
.gc-taverne-root .gc-feature-page-head h2,
.gc-taverne-root .gc-party-page-head h2,
.gc-taverne-root .gc-party-section-head h3,
.gc-taverne-root .quest-sidebar-head h2,
.gc-taverne-root .quest-toolbar h2,
.gc-taverne-root .ranking-page h2,
.gc-taverne-root .ranking-page h3,
.gc-taverne-root .gc-collection-page h2,
.gc-taverne-root .gc-collection-page h3,
.gc-taverne-root .gc-jdr-page h2,
.gc-taverne-root .gc-adventurers-page h2,
.gc-taverne-root .gc-shop-page h2,
.gc-taverne-root .gc-shop-category-head h3,
.gc-taverne-root .gc-public-profile-section > h3,
.gc-taverne-root .panel-head h3,
.gc-taverne-root .xp-reward-head h3{
  font-family:inherit!important;
  color:#f3dfb5!important;
  font-weight:700!important;
  letter-spacing:0!important;
}

/* Titres principaux de page : taille homogène */
.gc-taverne-root .gc-feature-page-head h2,
.gc-taverne-root .gc-party-page-head h2,
.gc-taverne-root #tab-parties > h2,
.gc-taverne-root #tab-adventurers > h2,
.gc-taverne-root #tab-jdr > h2{
  font-size:20px!important;
  line-height:1.08!important;
}

/* Sous-titres de section un peu plus petits */
.gc-taverne-root .gc-party-section-head h3,
.gc-taverne-root .panel-head h3,
.gc-taverne-root .quest-sidebar-head h2,
.gc-taverne-root .quest-toolbar h2,
.gc-taverne-root .gc-shop-category-head h3,
.gc-taverne-root .gc-public-profile-section > h3{
  font-size:17px!important;
  line-height:1.12!important;
}

/* Exceptions : le contenu des cartes de parties et JDR reste blanc */
.gc-taverne-root .game-card h2,
.gc-taverne-root .game-card h3,
.gc-taverne-root .gc-party-card h2,
.gc-taverne-root .gc-party-card h3,
.gc-taverne-root .party-card h2,
.gc-taverne-root .party-card h3,
.gc-taverne-root [data-party-card] h2,
.gc-taverne-root [data-party-card] h3,
.gc-taverne-root .gc-jdr-card h2,
.gc-taverne-root .gc-jdr-card h3,
.gc-taverne-root .jdr-card h2,
.gc-taverne-root .jdr-card h3,
.gc-taverne-root .gc-recruitment-card h2,
.gc-taverne-root .gc-recruitment-card h3{
  color:#fff!important;
}

@media(max-width:700px){
  .gc-taverne-root .gc-feature-page-head h2,
  .gc-taverne-root .gc-party-page-head h2,
  .gc-taverne-root #tab-parties > h2,
  .gc-taverne-root #tab-adventurers > h2,
  .gc-taverne-root #tab-jdr > h2{font-size:17px!important}
  .gc-taverne-root .gc-party-section-head h3,
  .gc-taverne-root .panel-head h3,
  .gc-taverne-root .quest-sidebar-head h2,
  .gc-taverne-root .quest-toolbar h2,
  .gc-taverne-root .gc-shop-category-head h3{font-size:15px!important}
}


/* 9.1.12 — couverture complète de toutes les pages frontend */

/* Tous les titres de pages et de sections de la Taverne */
.gc-taverne-root main > h1,
.gc-taverne-root main > h2,
.gc-taverne-root main > h3,
.gc-taverne-root .gc-view > h1,
.gc-taverne-root .gc-view > h2,
.gc-taverne-root .gc-view > h3,
.gc-taverne-root .gc-view > header h1,
.gc-taverne-root .gc-view > header h2,
.gc-taverne-root .gc-view > header h3,
.gc-taverne-root .gc-view .gc-feature-page-head h1,
.gc-taverne-root .gc-view .gc-feature-page-head h2,
.gc-taverne-root .gc-view .gc-feature-page-head h3,
.gc-taverne-root .gc-view .gc-party-page-head h1,
.gc-taverne-root .gc-view .gc-party-page-head h2,
.gc-taverne-root .gc-view .gc-party-page-head h3,
.gc-taverne-root .gc-view .gc-party-section-head h2,
.gc-taverne-root .gc-view .gc-party-section-head h3,
.gc-taverne-root .gc-view .section-title h2,
.gc-taverne-root .gc-view .section-title h3,
.gc-taverne-root .gc-view .panel-head h2,
.gc-taverne-root .gc-view .panel-head h3,
.gc-taverne-root .gc-view .quest-sidebar-head h2,
.gc-taverne-root .gc-view .quest-toolbar h2,
.gc-taverne-root .gc-view .gc-shop-category-head h2,
.gc-taverne-root .gc-view .gc-shop-category-head h3,
.gc-taverne-root .gc-view .gc-public-profile-section > h2,
.gc-taverne-root .gc-view .gc-public-profile-section > h3,
.gc-taverne-root .character-page > h2,
.gc-taverne-root .character-page .panel > h2,
.gc-taverne-root .character-page .panel > h3,
.gc-taverne-root .ranking-page > h2,
.gc-taverne-root .ranking-page > h3,
.gc-taverne-root .gc-collection-page > h2,
.gc-taverne-root .gc-collection-page > h3,
.gc-taverne-root .gc-jdr-page > h2,
.gc-taverne-root .gc-jdr-page > h3,
.gc-taverne-root .gc-giveaways-page > h2,
.gc-taverne-root .gc-giveaways-page > h3,
.gc-taverne-root .gc-shop-page > h2,
.gc-taverne-root .gc-shop-page > h3{
  font-family:inherit!important;
  color:#f3dfb5!important;
  font-weight:700!important;
  letter-spacing:0!important;
}

/* Grands titres */
.gc-taverne-root .gc-view > h2,
.gc-taverne-root .gc-view .gc-feature-page-head h2,
.gc-taverne-root .gc-view .gc-party-page-head h2,
.gc-taverne-root .section-title h2{
  font-size:20px!important;
  line-height:1.08!important;
}

/* Titres secondaires */
.gc-taverne-root .gc-view > h3,
.gc-taverne-root .gc-view .gc-party-section-head h3,
.gc-taverne-root .gc-view .panel-head h3,
.gc-taverne-root .gc-view .quest-sidebar-head h2,
.gc-taverne-root .gc-view .quest-toolbar h2,
.gc-taverne-root .gc-view .gc-shop-category-head h3,
.gc-taverne-root .gc-view .gc-public-profile-section > h3,
.gc-taverne-root .character-page .panel > h3{
  font-size:17px!important;
  line-height:1.12!important;
}

/* EXCEPTIONS : titres à l'intérieur des cartes de jeu/parties/JDR restent blancs */
.gc-taverne-root .game-card h1,
.gc-taverne-root .game-card h2,
.gc-taverne-root .game-card h3,
.gc-taverne-root .gc-party-card h1,
.gc-taverne-root .gc-party-card h2,
.gc-taverne-root .gc-party-card h3,
.gc-taverne-root .party-card h1,
.gc-taverne-root .party-card h2,
.gc-taverne-root .party-card h3,
.gc-taverne-root [data-party-card] h1,
.gc-taverne-root [data-party-card] h2,
.gc-taverne-root [data-party-card] h3,
.gc-taverne-root .gc-jdr-card h1,
.gc-taverne-root .gc-jdr-card h2,
.gc-taverne-root .gc-jdr-card h3,
.gc-taverne-root .jdr-card h1,
.gc-taverne-root .jdr-card h2,
.gc-taverne-root .jdr-card h3,
.gc-taverne-root .gc-recruitment-card h1,
.gc-taverne-root .gc-recruitment-card h2,
.gc-taverne-root .gc-recruitment-card h3,
.gc-taverne-root .quest-card h2,
.gc-taverne-root .quest-card h3,
.gc-taverne-root .achievement-card h2,
.gc-taverne-root .achievement-card h3,
.gc-taverne-root .gc-adventurer-card h2,
.gc-taverne-root .gc-adventurer-card h3{
  color:#fff!important;
}

/* Noms de personnages / pseudo : ne pas les transformer en titre de section */
.gc-taverne-root #profileName,
.gc-taverne-root #rankingPageName,
.gc-taverne-root #publicProfileName,
.gc-taverne-root #dashboardName,
.gc-taverne-root #collectionEquippedName{
  font-family:inherit!important;
  color:inherit!important;
}

/* Popups/formulaires : garder leur identité actuelle */
.gc-taverne-root .modal h2,
.gc-taverne-root .modal h3,
.gc-taverne-root [role="dialog"] h2,
.gc-taverne-root [role="dialog"] h3{
  color:inherit!important;
}

@media(max-width:700px){
  .gc-taverne-root .gc-view > h2,
  .gc-taverne-root .gc-view .gc-feature-page-head h2,
  .gc-taverne-root .gc-view .gc-party-page-head h2,
  .gc-taverne-root .section-title h2{font-size:17px!important}
  .gc-taverne-root .gc-view > h3,
  .gc-taverne-root .gc-view .gc-party-section-head h3,
  .gc-taverne-root .gc-view .panel-head h3{font-size:15px!important}
}


/* 9.1.13 — correctif exact pages Parties + Aventuriers */
.gc-taverne-root #partiesView .parties-toolbar h2,
.gc-taverne-root #characterView .adventurers-head h2{
  font-family:inherit!important;
  color:#f3dfb5!important;
  font-size:20px!important;
  font-weight:700!important;
  line-height:1.08!important;
  letter-spacing:0!important;
  margin:0!important;
}

/* l'image éventuelle devant ces deux titres */
.gc-taverne-root #partiesView .parties-toolbar > div:first-child,
.gc-taverne-root #characterView .adventurers-head > div:first-child{
  position:relative;
}
.gc-taverne-root #partiesView .parties-toolbar .gc-title-with-image,
.gc-taverne-root #characterView .adventurers-head .gc-title-with-image{
  display:flex!important;
  align-items:center!important;
  gap:10px!important;
}
.gc-taverne-root #partiesView .parties-toolbar .gc-title-icon,
.gc-taverne-root #characterView .adventurers-head .gc-title-icon{
  width:32px!important;
  height:32px!important;
  object-fit:contain!important;
}

@media(max-width:700px){
  .gc-taverne-root #partiesView .parties-toolbar h2,
  .gc-taverne-root #characterView .adventurers-head h2{
    font-size:17px!important;
  }
  .gc-taverne-root #partiesView .parties-toolbar .gc-title-icon,
  .gc-taverne-root #characterView .adventurers-head .gc-title-icon{
    width:27px!important;
    height:27px!important;
  }
}


/* 9.2.1 — avec une image : image + titre + sous-titre sur la même ligne */
.gc-title-inline-row{
  display:flex!important;
  align-items:center!important;
  gap:10px!important;
  width:100%;
  flex-wrap:nowrap!important;
}
.gc-title-inline-row h1,.gc-title-inline-row h2,.gc-title-inline-row h3{
  flex:0 0 auto!important;
  margin:0!important;
  white-space:nowrap!important;
}
.gc-title-inline-row > p{
  flex:1 1 auto!important;
  margin:0!important;
  padding-left:3px!important;
  min-width:0;
  color:var(--muted)!important;
  font-size:12px!important;
  white-space:nowrap!important;
  overflow:hidden;
  text-overflow:ellipsis;
}
.gc-title-inline-row .gc-title-icon{flex:0 0 auto!important}
@media(max-width:700px){
  .gc-title-inline-row{gap:7px!important;flex-wrap:wrap!important}
  .gc-title-inline-row > p{flex-basis:100%!important;padding-left:37px!important;white-space:normal!important}
}


/* 9.2.2 — ne plus pousser les boutons / supprimer les ellipses */

/* Bloc de titre : prend seulement l'espace restant à gauche */
.gc-taverne-root .section-title,
.gc-taverne-root #partiesView .parties-toolbar,
.gc-taverne-root #characterView .adventurers-head{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:18px!important;
}

/* Partie texte à gauche : peut se réduire sans écraser les actions */
.gc-taverne-root .section-title > div:first-child,
.gc-taverne-root #partiesView .parties-toolbar > div:first-child,
.gc-taverne-root #characterView .adventurers-head > div:first-child{
  flex:1 1 auto!important;
  min-width:0!important;
  max-width:none!important;
}

/* Quand une image est présente, image + contenu restent ensemble à gauche */
.gc-taverne-root .section-title > div:first-child.gc-title-with-image,
.gc-taverne-root #partiesView .parties-toolbar > div:first-child.gc-title-with-image,
.gc-taverne-root #characterView .adventurers-head > div:first-child.gc-title-with-image{
  display:flex!important;
  align-items:center!important;
  gap:10px!important;
  min-width:0!important;
}

/* Le texte titre + sous-titre a le droit de prendre plusieurs lignes */
.gc-taverne-root .section-title h2,
.gc-taverne-root .section-title p,
.gc-taverne-root #partiesView .parties-toolbar h2,
.gc-taverne-root #partiesView .parties-toolbar p,
.gc-taverne-root #characterView .adventurers-head h2,
.gc-taverne-root #characterView .adventurers-head p{
  overflow:visible!important;
  text-overflow:clip!important;
  white-space:normal!important;
  max-width:none!important;
}

/* Sous-titre : reste sur la même ligne que le titre si la place existe,
   mais passe proprement sur une ligne suivante sinon. */
.gc-taverne-root .section-title > div:first-child,
.gc-taverne-root #partiesView .parties-toolbar > div:first-child,
.gc-taverne-root #characterView .adventurers-head > div:first-child{
  flex-wrap:wrap!important;
}

.gc-taverne-root .section-title > div:first-child h2,
.gc-taverne-root #partiesView .parties-toolbar > div:first-child h2,
.gc-taverne-root #characterView .adventurers-head > div:first-child h2{
  flex:0 0 auto!important;
}

.gc-taverne-root .section-title > div:first-child p,
.gc-taverne-root #partiesView .parties-toolbar > div:first-child p,
.gc-taverne-root #characterView .adventurers-head > div:first-child p{
  flex:1 1 220px!important;
  min-width:160px!important;
  margin:0!important;
}

/* Bloc actions : ne se fait jamais pousser ni compresser */
.gc-taverne-root .gc-home-party-actions,
.gc-taverne-root .gc-parties-main-actions,
.gc-taverne-root .adventurer-search-wrap,
.gc-taverne-root .section-title > :last-child:not(:first-child){
  flex:0 0 auto!important;
  min-width:max-content!important;
  margin-left:auto!important;
}

/* Sur les petits écrans, les actions passent sous le titre au lieu de sortir de l'écran */
@media(max-width:1050px){
  .gc-taverne-root .section-title,
  .gc-taverne-root #partiesView .parties-toolbar,
  .gc-taverne-root #characterView .adventurers-head{
    flex-wrap:wrap!important;
    align-items:flex-start!important;
  }

  .gc-taverne-root .gc-home-party-actions,
  .gc-taverne-root .gc-parties-main-actions,
  .gc-taverne-root .adventurer-search-wrap{
    width:100%!important;
    min-width:0!important;
    margin-left:0!important;
  }
}

@media(max-width:700px){
  .gc-taverne-root .section-title > div:first-child p,
  .gc-taverne-root #partiesView .parties-toolbar > div:first-child p,
  .gc-taverne-root #characterView .adventurers-head > div:first-child p{
    flex-basis:100%!important;
    min-width:0!important;
  }
}


/* 9.2.3 — sous-titre systématiquement sous le titre */

/* Le bloc gauche contient l'image puis une colonne titre/sous-titre. */
.gc-taverne-root .section-title > div:first-child,
.gc-taverne-root #partiesView .parties-toolbar > div:first-child,
.gc-taverne-root #characterView .adventurers-head > div:first-child{
  display:grid!important;
  grid-template-columns:auto minmax(0,1fr)!important;
  grid-template-rows:auto auto!important;
  column-gap:10px!important;
  row-gap:3px!important;
  align-items:center!important;
  flex:1 1 auto!important;
  min-width:0!important;
}

/* Sans image, titre et sous-titre occupent simplement toute la largeur. */
.gc-taverne-root .section-title > div:first-child:not(.gc-title-with-image),
.gc-taverne-root #partiesView .parties-toolbar > div:first-child:not(.gc-title-with-image),
.gc-taverne-root #characterView .adventurers-head > div:first-child:not(.gc-title-with-image){
  grid-template-columns:minmax(0,1fr)!important;
}

/* Image sur les deux lignes. */
.gc-taverne-root .section-title > div:first-child.gc-title-with-image > .gc-title-icon,
.gc-taverne-root #partiesView .parties-toolbar > div:first-child.gc-title-with-image > .gc-title-icon,
.gc-taverne-root #characterView .adventurers-head > div:first-child.gc-title-with-image > .gc-title-icon{
  grid-column:1!important;
  grid-row:1 / span 2!important;
  align-self:center!important;
}

/* Titre en première ligne. */
.gc-taverne-root .section-title > div:first-child > h2,
.gc-taverne-root #partiesView .parties-toolbar > div:first-child > h2,
.gc-taverne-root #characterView .adventurers-head > div:first-child > h2{
  grid-column:1!important;
  grid-row:1!important;
  margin:0!important;
  min-width:0!important;
}
.gc-taverne-root .section-title > div:first-child.gc-title-with-image > h2,
.gc-taverne-root #partiesView .parties-toolbar > div:first-child.gc-title-with-image > h2,
.gc-taverne-root #characterView .adventurers-head > div:first-child.gc-title-with-image > h2{
  grid-column:2!important;
}

/* Sous-titre toujours en deuxième ligne, jamais en ellipses. */
.gc-taverne-root .section-title > div:first-child > p,
.gc-taverne-root #partiesView .parties-toolbar > div:first-child > p,
.gc-taverne-root #characterView .adventurers-head > div:first-child > p{
  grid-column:1!important;
  grid-row:2!important;
  margin:0!important;
  min-width:0!important;
  max-width:none!important;
  white-space:normal!important;
  overflow:visible!important;
  text-overflow:clip!important;
  line-height:1.3!important;
}
.gc-taverne-root .section-title > div:first-child.gc-title-with-image > p,
.gc-taverne-root #partiesView .parties-toolbar > div:first-child.gc-title-with-image > p,
.gc-taverne-root #characterView .adventurers-head > div:first-child.gc-title-with-image > p{
  grid-column:2!important;
}

/* Les actions restent indépendantes à droite. */
.gc-taverne-root .section-title,
.gc-taverne-root #partiesView .parties-toolbar,
.gc-taverne-root #characterView .adventurers-head{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:20px!important;
}

@media(max-width:1050px){
  .gc-taverne-root .section-title,
  .gc-taverne-root #partiesView .parties-toolbar,
  .gc-taverne-root #characterView .adventurers-head{
    flex-wrap:wrap!important;
  }
}


/* 9.2.4 — structure réelle créée par title-style.js :
   image à gauche, titre + sous-titre empilés à droite */
.gc-taverne-root .gc-title-stacked{
  display:grid!important;
  grid-template-columns:auto minmax(0,1fr)!important;
  grid-template-rows:auto auto!important;
  column-gap:10px!important;
  row-gap:2px!important;
  align-items:center!important;
  flex:1 1 auto!important;
  width:auto!important;
  min-width:0!important;
  max-width:100%!important;
}

.gc-taverne-root .gc-title-stacked > .gc-title-icon{
  grid-column:1!important;
  grid-row:1 / span 2!important;
  align-self:center!important;
  flex:none!important;
  margin:0!important;
}

.gc-taverne-root .gc-title-stacked > h1,
.gc-taverne-root .gc-title-stacked > h2,
.gc-taverne-root .gc-title-stacked > h3{
  grid-column:2!important;
  grid-row:1!important;
  margin:0!important;
  padding:0!important;
  min-width:0!important;
  max-width:none!important;
  white-space:normal!important;
  overflow:visible!important;
  text-overflow:clip!important;
}

.gc-taverne-root .gc-title-stacked > p{
  grid-column:2!important;
  grid-row:2!important;
  margin:0!important;
  padding:0!important;
  min-width:0!important;
  max-width:none!important;
  white-space:normal!important;
  overflow:visible!important;
  text-overflow:clip!important;
  line-height:1.25!important;
}

/* Le conteneur général garde les boutons dans une colonne séparée. */
.gc-taverne-root .section-title,
.gc-taverne-root #partiesView .parties-toolbar,
.gc-taverne-root #characterView .adventurers-head{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:18px!important;
}

/* Si l'image n'est pas configurée, la structure HTML native h2 + p
   est elle aussi empilée. */
.gc-taverne-root .section-title > div:first-child:not(.gc-title-stacked),
.gc-taverne-root #partiesView .parties-toolbar > div:first-child:not(.gc-title-stacked),
.gc-taverne-root #characterView .adventurers-head > div:first-child:not(.gc-title-stacked){
  display:flex!important;
  flex-direction:column!important;
  align-items:flex-start!important;
  justify-content:center!important;
  gap:2px!important;
  flex:1 1 auto!important;
  min-width:0!important;
}

.gc-taverne-root .section-title > div:first-child:not(.gc-title-stacked) > h2,
.gc-taverne-root .section-title > div:first-child:not(.gc-title-stacked) > p,
.gc-taverne-root #partiesView .parties-toolbar > div:first-child:not(.gc-title-stacked) > h2,
.gc-taverne-root #partiesView .parties-toolbar > div:first-child:not(.gc-title-stacked) > p,
.gc-taverne-root #characterView .adventurers-head > div:first-child:not(.gc-title-stacked) > h2,
.gc-taverne-root #characterView .adventurers-head > div:first-child:not(.gc-title-stacked) > p{
  margin:0!important;
  padding:0!important;
  white-space:normal!important;
  overflow:visible!important;
  text-overflow:clip!important;
  max-width:none!important;
}

/* Actions : toujours indépendantes du texte. */
.gc-taverne-root .gc-home-party-actions,
.gc-taverne-root .gc-parties-main-actions,
.gc-taverne-root .adventurer-search-wrap{
  flex:0 0 auto!important;
  margin-left:auto!important;
}

@media(max-width:1050px){
  .gc-taverne-root .section-title,
  .gc-taverne-root #partiesView .parties-toolbar,
  .gc-taverne-root #characterView .adventurers-head{
    flex-wrap:wrap!important;
  }
  .gc-taverne-root .gc-home-party-actions,
  .gc-taverne-root .gc-parties-main-actions,
  .gc-taverne-root .adventurer-search-wrap{
    width:100%!important;
    margin-left:0!important;
  }
}
