/* ============================================================================
   Thème Account Console Stade Toulousain - branding minimal sur keycloak.v3
   ============================================================================ */

:root {
  /* Couleurs Stade Toulousain — rouge officiel + noir */
  --st-red:        #C8102E;
  --st-red-dark:   #A00C24;
  --st-red-light:  #E73C57;
  --st-black:      #1A1A1A;
  --st-white:      #FFFFFF;

  /* Override PatternFly v5 — primary color */
  --pf-v5-global--primary-color--100:      var(--st-red);
  --pf-v5-global--primary-color--200:      var(--st-red-dark);
  --pf-v5-global--primary-color--light-100: var(--st-red-light);

  /* Links */
  --pf-v5-global--link--Color:        var(--st-red);
  --pf-v5-global--link--Color--hover: var(--st-red-dark);

  /* Active states */
  --pf-v5-global--active-color--100: var(--st-red);

  /* Info banners (utilisé pour helper texts) — gardons un bleu neutre */
}

/* Boutons primaires (Save) */
.pf-v5-c-button.pf-m-primary {
  --pf-v5-c-button--m-primary--BackgroundColor:        var(--st-red);
  --pf-v5-c-button--m-primary--hover--BackgroundColor: var(--st-red-dark);
  --pf-v5-c-button--m-primary--focus--BackgroundColor: var(--st-red-dark);
  --pf-v5-c-button--m-primary--active--BackgroundColor: var(--st-red-dark);
}

/* Focus ring sur inputs */
.pf-v5-c-form-control:focus-within,
.pf-v5-c-form-control:focus {
  --pf-v5-c-form-control--focus--BorderBottomColor: var(--st-red);
}

/* Toggles / switches (pour les Oui/Non) */
.pf-v5-c-switch__input:checked + .pf-v5-c-switch__toggle {
  background-color: var(--st-red);
}

/* Onglets si présents */
.pf-v5-c-tabs__link--current {
  --pf-v5-c-tabs__link--current--BorderColor: var(--st-red);
}

/* Header / brand : si l'app v3 affiche le logo, on le styled */
.pf-v5-c-brand img {
  max-height: 50px;
}

/* Sectionnage : un peu plus de respiration entre groupes */
.pf-v5-c-form__group:not(:last-child) {
  margin-bottom: 1.25rem;
}

/* Section headers (les groupes User Profile) */
.pf-v5-c-form-section__title {
  color: var(--st-black);
  border-bottom: 2px solid var(--st-red);
  padding-bottom: 0.4rem;
  margin-bottom: 1rem;
}

/* ------------------------------------------------------------------
   Masquer l entree "Applications" du menu de l Account Console.
   Le role view-applications n est PAS assigne (ni dans default-roles,
   ni sur les comptes) : l Account Console v3 de KC26 affiche cet onglet
   independamment des roles. Le masquage ne peut donc se faire qu ici.
   NB : masquage visuel, la route reste atteignable en URL directe.
   ------------------------------------------------------------------ */
nav a[href*="/applications"],
nav li:has(> a[href*="/applications"]) {
    display: none !important;
}
