/* V12.7 : navigation du bandeau, sans chevauchement et sans menu. */
header:has(> .rl-header-actions){position:relative!important;box-sizing:border-box!important}
header > .rl-header-actions{display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:flex-end!important;gap:9px!important;flex-wrap:wrap!important;width:100%!important;max-width:100%!important;box-sizing:border-box!important;position:static!important;float:none!important;clear:both!important;margin:12px 0 0!important;padding:0!important;background:transparent!important;border:0!important;box-shadow:none!important;transform:none!important}
header > .rl-header-actions > a{display:inline-flex!important;align-items:center!important;justify-content:center!important;box-sizing:border-box!important;position:static!important;float:none!important;width:auto!important;min-width:0!important;max-width:100%!important;min-height:40px!important;margin:0!important;padding:10px 15px!important;white-space:normal!important;text-align:center!important;text-decoration:none!important;font-family:inherit!important;font-size:14px!important;font-weight:800!important;line-height:1.25!important;letter-spacing:normal!important;border:1px solid #e3b957!important;border-radius:12px!important;background:#fff1c9!important;color:#37291d!important;box-shadow:0 2px 5px #0002!important;transform:none!important}
header > .rl-header-actions > a.rl-header-declare-link{background:#bf4030!important;color:#fff!important;border-color:#bf4030!important}
header > .rl-header-actions > a:hover{filter:brightness(1.07)}
/* On laisse le bloc connecté au-dessus, à droite, sans le recouvrir. */
header.v9-league-header{display:flex!important;flex-wrap:wrap!important;align-items:flex-start!important}
header.v9-league-header > .rl-header-actions{flex:0 0 100%!important;margin-top:12px!important}
@media(max-width:650px){header > .rl-header-actions{justify-content:center!important}header > .rl-header-actions > a{font-size:12px!important;padding:9px 11px!important}}
/* Boutons des cartes Mes ligues : vrais boutons, espaces et retours propres. */
.v126-league-actions{display:flex!important;align-items:center!important;justify-content:flex-start!important;flex-wrap:wrap!important;gap:9px!important;margin-top:12px!important}
.v126-league-actions a{display:inline-flex!important;align-items:center!important;justify-content:center!important;width:auto!important;min-height:36px!important;padding:8px 13px!important;margin:0!important;border:1px solid #e4cba5!important;border-radius:10px!important;background:#fff7e7!important;color:#a33e2c!important;font-family:inherit!important;font-size:13px!important;font-weight:800!important;line-height:1.3!important;text-decoration:none!important;white-space:nowrap!important;box-sizing:border-box!important}
.v126-league-actions a.v126-manage-link{background:#fff0c7!important;border-color:#e2b758!important;color:#684719!important}
.v126-league-actions a:hover{filter:brightness(.97)}

/* Pages Amis et Super Admin : actions dans le bandeau sombre. */
header:has(> .rl-header-actions){display:flex!important;flex-direction:column!important;align-items:stretch!important}
header > .rl-header-actions{align-self:stretch!important;justify-content:flex-end!important;gap:10px!important}
header > .rl-header-actions > a{font-size:14px!important;text-decoration:none!important}
@media(max-width:650px){header > .rl-header-actions{justify-content:center!important}}

/* Uniformisation bandeau : Amis, Super Admin, Déclarer. */
header > .rl-header-actions{display:flex!important;flex-wrap:wrap!important;gap:10px!important;justify-content:flex-end!important;align-items:center!important;align-self:stretch!important;position:relative!important;z-index:2!important;margin-top:16px!important;padding:0!important;line-height:normal!important}
header > .rl-header-actions a{display:inline-flex!important;align-items:center!important;justify-content:center!important;padding:11px 16px!important;min-height:42px!important;border-radius:12px!important;text-decoration:none!important;font-size:14px!important;font-weight:800!important;line-height:1.3!important;box-shadow:0 2px 5px #0002!important}
header.v9-league-header > .rl-header-actions{flex-basis:100%!important}
@media(max-width:680px){header > .rl-header-actions{justify-content:center!important}}

/* OVH V13 : bandeau compact, sans colonne vide ni actions rejetées en bas. */
@media (min-width: 1101px) {
  header.v9-league-header:has(> .rl-header-actions) {
    display:grid!important;
    grid-template-columns:minmax(280px,1fr) auto auto!important;
    grid-template-rows:auto!important;
    align-items:center!important;
    justify-content:space-between!important;
    column-gap:22px!important;
    row-gap:12px!important;
    min-height:0!important;
    padding-top:24px!important;
    padding-bottom:24px!important;
  }
  header.v9-league-header > .v9-header-brand {grid-column:1;grid-row:1;min-width:0}
  header.v9-league-header > .header-account.v9-account {
    grid-column:2;grid-row:1;width:auto!important;margin:0!important;
    align-self:center!important;
  }
  header.v9-league-header > .rl-header-actions {
    grid-column:3;grid-row:1;display:flex!important;
    flex:initial!important;width:auto!important;max-width:none!important;
    align-self:center!important;margin:0!important;justify-content:flex-end!important;
  }
}
@media (min-width: 651px) and (max-width: 1100px) {
  header.v9-league-header:has(> .rl-header-actions) {
    display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;
    align-items:center!important;gap:12px 20px!important;
    min-height:0!important;padding-top:22px!important;padding-bottom:22px!important;
  }
  header.v9-league-header > .v9-header-brand {grid-column:1;grid-row:1;min-width:0}
  header.v9-league-header > .header-account.v9-account {grid-column:2;grid-row:1;margin:0!important}
  header.v9-league-header > .rl-header-actions {
    grid-column:1 / -1;grid-row:2;flex:initial!important;width:100%!important;
    margin:0!important;justify-content:flex-end!important;
  }
}
@media (max-width:650px) {
  header.v9-league-header:has(> .rl-header-actions) {
    display:flex!important;flex-direction:column!important;align-items:stretch!important;
    gap:14px!important;min-height:0!important;padding-top:20px!important;padding-bottom:20px!important;
  }
  header.v9-league-header > .header-account.v9-account {margin:0!important;max-width:none!important;width:100%!important}
  header.v9-league-header > .rl-header-actions {
    flex:initial!important;width:100%!important;margin:0!important;
    justify-content:center!important;
  }
}


/* Raclette League OVH - bandeau harmonise sur toutes les pages.
   La regle couvre .rl-compact-header (accueil, amis, declaration,
   commentaires, progression, super admin) et .v9-league-header (ligue). */
header.rl-compact-header:has(> .rl-header-actions),
header.v9-league-header:has(> .rl-header-actions) {
  box-sizing:border-box!important;
  background:#26231f!important;
  border-bottom:3px solid #d6a746!important;
  min-height:0!important;height:auto!important;
  overflow:visible!important;
  text-align:left!important;
  padding:22px max(22px,calc((100vw - 1320px)/2))!important;
  gap:14px 20px!important;
}
header.rl-compact-header .rl-compact-brand,
header.v9-league-header .v9-header-brand {min-width:0!important;position:relative!important;z-index:1!important}
header.rl-compact-header .rl-compact-brand h1,
header.v9-league-header .v9-header-brand h1 {
  font-size:clamp(29px,3.4vw,54px)!important;
  line-height:1.06!important;margin:7px 0!important;
  white-space:normal!important;letter-spacing:-1.5px!important;
  color:#fff8e8!important;
}
header.rl-compact-header > .identity,
header.rl-compact-header > .rl-compact-identity,
header.v9-league-header > .header-account.v9-account {
  width:auto!important;min-width:0!important;max-width:320px!important;
  justify-self:end!important;align-self:center!important;
  margin:0!important;position:static!important;transform:none!important;
}
header.v9-league-header > .header-account.v9-account .connected-player {
  background:#fff0c9!important;color:#28231e!important;
  border:2px solid #e9b949!important;border-radius:14px!important;
  padding:10px 15px!important;box-shadow:0 3px 12px #0002!important;
  display:flex!important;flex-direction:column!important;
  align-items:center!important;gap:4px!important;text-align:center!important;
}
header.rl-compact-header > .rl-header-actions,
header.v9-league-header > .rl-header-actions {
  flex:initial!important;flex-basis:auto!important;
  width:auto!important;max-width:100%!important;
  min-width:0!important;justify-self:end!important;align-self:center!important;
  display:flex!important;flex-wrap:wrap!important;align-items:center!important;
  justify-content:flex-end!important;gap:9px!important;
  margin:0!important;padding:0!important;
  position:static!important;transform:none!important;
}
header.rl-compact-header > .rl-header-actions > a,
header.v9-league-header > .rl-header-actions > a {
  min-height:40px!important;padding:10px 13px!important;
  font-size:13px!important;white-space:normal!important;
}
@media (min-width:1351px) {
  header.rl-compact-header:has(> .rl-header-actions),
  header.v9-league-header:has(> .rl-header-actions) {
    display:grid!important;
    grid-template-columns:minmax(0,1fr) auto auto!important;
    grid-template-rows:auto!important;align-items:center!important;
  }
  header.rl-compact-header > .rl-compact-brand,
  header.v9-league-header > .v9-header-brand {grid-column:1!important;grid-row:1!important}
  header.rl-compact-header > .identity,
  header.rl-compact-header > .rl-compact-identity,
  header.v9-league-header > .header-account.v9-account {grid-column:2!important;grid-row:1!important}
  header.rl-compact-header > .rl-header-actions,
  header.v9-league-header > .rl-header-actions {grid-column:3!important;grid-row:1!important}
}
@media (min-width:701px) and (max-width:1350px) {
  header.rl-compact-header:has(> .rl-header-actions),
  header.v9-league-header:has(> .rl-header-actions) {
    display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;
    grid-template-rows:auto auto!important;align-items:center!important;
  }
  header.rl-compact-header > .rl-compact-brand,
  header.v9-league-header > .v9-header-brand {grid-column:1!important;grid-row:1!important}
  header.rl-compact-header > .identity,
  header.rl-compact-header > .rl-compact-identity,
  header.v9-league-header > .header-account.v9-account {grid-column:2!important;grid-row:1!important}
  header.rl-compact-header > .rl-header-actions,
  header.v9-league-header > .rl-header-actions {
    grid-column:1 / -1!important;grid-row:2!important;
    width:100%!important;justify-content:flex-end!important;
  }
}
@media (max-width:700px) {
  header.rl-compact-header:has(> .rl-header-actions),
  header.v9-league-header:has(> .rl-header-actions) {
    display:flex!important;flex-direction:column!important;
    align-items:stretch!important;gap:13px!important;
    padding:20px 16px!important;text-align:center!important;
  }
  header.rl-compact-header > .rl-compact-brand,
  header.v9-league-header > .v9-header-brand {align-self:center!important}
  header.rl-compact-header > .identity,
  header.rl-compact-header > .rl-compact-identity,
  header.v9-league-header > .header-account.v9-account {
    align-self:center!important;justify-self:center!important;
    max-width:100%!important;
  }
  header.rl-compact-header > .rl-header-actions,
  header.v9-league-header > .rl-header-actions {
    width:100%!important;align-self:center!important;
    justify-self:center!important;justify-content:center!important;
  }
}
