/* Galaria - design system (docs/UI_DESIGN_SYSTEM.md).
   Ordre : polices, jetons, surcharges de Bootstrap, coquille, composants.
   Registre "regie" : ecrans de travail. Le registre "scene" est dans scene.css. */

/* ---------- Polices (servies localement) ---------- */
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("../polices/figtree-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("../polices/figtree-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../polices/fraunces-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../polices/fraunces-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Jetons ---------- */
:root {
  --g-nuit: #101530;
  --g-nuit-2: #1a2147;
  --g-violet: #6938d3;
  --g-violet-fonce: #4a22a8;
  --g-lilas: #ede7ff;
  --g-or: #f6c45a;
  --g-fond: #f7f8fc;
  --g-surface: #ffffff;
  --g-texte: #17203a;
  --g-texte-2: #56617a;
  --g-bordure: #d9dde8;
  --g-bordure-champ: #8a93a8;

  --e-succes: #14693f;
  --e-succes-fond: #e3f5ea;
  --e-cours: #4a22a8;
  --e-cours-fond: #ede7ff;
  --e-attention: #8a4b00;
  --e-attention-fond: #fff1dc;
  --e-danger: #a3232f;
  --e-danger-fond: #fde8ea;
  --e-neutre: #4b5568;
  --e-neutre-fond: #eceef3;
  --e-distinction: #6b4a00;
  --e-distinction-fond: #fdf1d3;
  --g-rouge: #c22b38;
  --g-rouge-fonce: #a3232f;

  /* Action principale : violet dans la regie; la scene la remplace par la marque. */
  --g-action: var(--g-violet);
  --g-action-survol: var(--g-violet-fonce);
  --g-action-texte: #ffffff;

  --g-ombre-1: 0 4px 16px rgba(16, 21, 48, 0.12);
  --g-ombre-2: 0 16px 48px rgba(16, 21, 48, 0.24);
  --g-rayon: 6px;
  --g-rayon-carte: 10px;
  --g-courbe: cubic-bezier(0.2, 0, 0, 1);
  --g-lateral: 248px;
  --g-police: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --g-police-titre: "Fraunces", Georgia, "Times New Roman", serif;

  /* Surcharges des variables de Bootstrap 5.3 */
  --bs-body-font-family: var(--g-police);
  --bs-body-font-size: 0.9375rem;
  --bs-body-line-height: 1.53;
  --bs-body-color: var(--g-texte);
  --bs-body-color-rgb: 23, 32, 58;
  --bs-body-bg: var(--g-surface);
  --bs-tertiary-bg: var(--g-fond);
  --bs-secondary-color: var(--g-texte-2);
  --bs-emphasis-color: var(--g-texte);
  --bs-heading-color: var(--g-texte);
  --bs-border-color: var(--g-bordure);
  --bs-border-radius: var(--g-rayon);
  --bs-border-radius-sm: 4px;
  --bs-border-radius-lg: var(--g-rayon-carte);
  --bs-primary: var(--g-violet);
  --bs-primary-rgb: 105, 56, 211;
  --bs-link-color: var(--g-violet);
  --bs-link-color-rgb: 105, 56, 211;
  --bs-link-hover-color: var(--g-violet-fonce);
  --bs-link-hover-color-rgb: 74, 34, 168;
  --bs-focus-ring-color: rgba(105, 56, 211, 0.35);
  --bs-code-color: var(--g-violet-fonce);
}

/* ---------- Base ---------- */
body {
  background: var(--g-fond);
  -webkit-font-smoothing: antialiased;
}
a {
  text-underline-offset: 2px;
}
:focus-visible {
  outline: 2px solid var(--g-violet);
  outline-offset: 2px;
}
.btn:focus-visible,
.form-control:focus,
.form-select:focus,
.form-check-input:focus {
  outline: 2px solid var(--g-violet);
  outline-offset: 2px;
  box-shadow: none;
}
h1,
.h1,
h1.h3,
h1.h4 {
  font-size: 1.625rem;
  line-height: 2rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}
h2,
.h5,
h2.h5 {
  font-size: 1.125rem;
  line-height: 1.625rem;
  font-weight: 650;
}
h3,
.h6,
h2.h6,
h3.h6 {
  font-size: 0.9375rem;
  line-height: 1.375rem;
  font-weight: 650;
}
.small,
small,
.form-text {
  font-size: 0.8125rem;
  line-height: 1.1875rem;
}
.form-text {
  color: var(--g-texte-2);
}
.g-num {
  font-variant-numeric: tabular-nums;
}
.g-surtitre {
  font-size: 0.8125rem;
  line-height: 1rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--g-texte-2);
}
code {
  font-size: 0.875em;
}
hr {
  border-color: var(--g-bordure);
  opacity: 1;
}

/* Lien d'evitement */
.g-evitement {
  position: absolute;
  left: 8px;
  top: -100px;
  z-index: 2000;
  padding: 10px 14px;
  background: var(--g-surface);
  color: var(--g-violet-fonce);
  font-weight: 600;
  border-radius: var(--g-rayon);
  box-shadow: var(--g-ombre-1);
}
.g-evitement:focus {
  top: 8px;
}

/* ---------- Coquille ---------- */
.g-coquille {
  display: grid;
  grid-template-columns: var(--g-lateral) minmax(0, 1fr);
  min-height: 100vh;
}
.g-lateral {
  --bs-offcanvas-bg: var(--g-nuit);
  --bs-offcanvas-color: #fff;
  --bs-offcanvas-width: 288px;
  --bs-offcanvas-border-width: 0;
  background-color: var(--g-nuit) !important;
  color: #fff;
}
.g-lateral.offcanvas-lg {
  overflow-y: auto;
}
.g-lateral-corps {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 20px 12px 0;
  min-height: 100%;
}
.g-org {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 8px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  text-decoration: none;
  min-width: 0;
}
.g-org-logo {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 4px;
  border-radius: 8px;
  background: #fff;
  color: var(--g-nuit);
  font-weight: 700;
  font-size: 0.8125rem;
}
.g-org-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.g-org-logo .bi {
  color: var(--g-violet);
  font-size: 1.125rem;
}
.g-org-texte {
  min-width: 0;
  line-height: 1.25;
}
.g-org-texte strong {
  display: block;
  font-weight: 650;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.g-org-texte span {
  font-size: 0.8125rem;
  color: #b4bbd6;
}
.g-nav-groupe {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.g-nav-titre {
  display: block;
  padding: 0 10px 6px;
  font-size: 0.8125rem;
  line-height: 1rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9aa3c4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.g-nav-lien {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 7px 10px;
  border-radius: var(--g-rayon);
  color: #b4bbd6;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 150ms var(--g-courbe), color 150ms var(--g-courbe);
}
.g-nav-lien .bi {
  flex: none;
  font-size: 1.125rem;
  line-height: 1;
}
.g-nav-lien:hover {
  background: var(--g-nuit-2);
  color: #fff;
}
.g-nav-lien[aria-current="page"] {
  background: var(--g-violet);
  color: #fff;
}
.g-nav-lien:focus-visible {
  outline-color: #fff;
}
.g-nav-compte {
  margin-left: auto;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--g-or);
  color: var(--g-nuit);
  font-size: 0.8125rem;
  font-weight: 700;
}
.g-lateral-pied {
  position: relative;
  margin: auto -12px 0;
  padding: 44px 22px 18px;
  overflow: hidden;
}
.g-lateral-pied::before {
  content: "";
  position: absolute;
  left: -70px;
  right: -130px;
  top: 14px;
  height: 260px;
  border-top: 2px solid var(--g-or);
  border-radius: 50%;
  transform: rotate(-12deg);
  pointer-events: none;
}

.g-principal {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.g-haut {
  position: sticky;
  top: 0;
  z-index: 1020;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 0 28px;
  background: var(--g-surface);
  border-bottom: 1px solid var(--g-bordure);
}
.g-haut .breadcrumb {
  --bs-breadcrumb-divider: "\203A";
  --bs-breadcrumb-divider-color: var(--g-texte-2);
  --bs-breadcrumb-item-active-color: var(--g-texte);
  margin: 0;
  flex-wrap: nowrap;
  font-size: 0.8125rem;
  min-width: 0;
}
.g-haut .breadcrumb-item {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.g-haut .breadcrumb-item a {
  color: var(--g-texte-2);
}
.g-haut .breadcrumb-item.active {
  font-weight: 600;
}
.g-ariane {
  flex: 1 1 auto;
  min-width: 0;
}
.g-compte {
  margin-left: auto;
  flex: none;
}
.g-compte-bouton {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 6px 4px 10px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--g-texte);
  font-weight: 500;
}
.g-compte-bouton:hover {
  background: var(--g-fond);
}
.g-avatar {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--g-lilas);
  color: var(--g-violet-fonce);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}
.g-bouton-icone {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: var(--g-rayon);
  background: none;
  color: var(--g-texte-2);
  font-size: 1.25rem;
}
.g-bouton-icone:hover {
  background: var(--g-fond);
  color: var(--g-texte);
}
/* Centre sur les grands ecrans : sans marge auto, tout se tassait a gauche. */
.g-contenu {
  flex: 1 1 auto;
  width: 100%;
  max-width: 1600px;
  margin-inline: auto;
  padding: 28px;
}

/* Bandeaux d'etat durable, sous la barre du haut */
.g-bandeau {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 28px;
  font-weight: 500;
  border-bottom: 1px solid transparent;
}
.g-bandeau .bi {
  flex: none;
  margin-top: 2px;
}
.g-bandeau-attention {
  background: var(--e-attention-fond);
  color: var(--e-attention);
  border-color: #f3d9ad;
}
.g-bandeau-danger {
  background: var(--e-danger-fond);
  color: var(--e-danger);
  border-color: #f4c4c9;
}

/* Barre laterale repliee (ordinateur) */
@media (min-width: 992px) {
  .g-lateral {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #2b3566 transparent;
  }
  .g-coquille {
    transition: grid-template-columns 200ms var(--g-courbe);
  }
  /* :root.g-replie, pas .g-replie : la redefinition :root de --g-lateral plus bas
     (habillage maquettes) a la meme specificite et l'emportait, donc la colonne
     restait large une fois le menu replie. */
  :root.g-replie {
    --g-lateral: 72px;
  }
  .g-replie .g-nav-libelle,
  .g-replie .g-nav-titre,
  .g-replie .g-org-texte,
  .g-replie .g-nav-compte {
    display: none;
  }
  .g-replie .g-nav-lien {
    justify-content: center;
    padding-inline: 0;
  }
  .g-replie .g-org {
    padding-inline: 2px;
    justify-content: center;
  }
  .g-replie .g-lateral-corps > div:not(.g-org) + div > .g-nav-groupe {
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }
  .g-replie .g-lateral-pied {
    padding-inline: 0;
    text-align: center;
  }
  .g-menu-mobile {
    display: none;
  }
}
@media (max-width: 991.98px) {
  .g-coquille {
    grid-template-columns: minmax(0, 1fr);
  }
  .g-lateral .offcanvas-body,
  .g-lateral-corps {
    min-height: 100%;
  }
  .g-haut {
    padding: 0 12px;
  }
  .g-haut .breadcrumb-item:not(:last-child) {
    display: none;
  }
  .g-haut .breadcrumb-item + .breadcrumb-item {
    padding-left: 0;
  }
  .g-haut .breadcrumb-item + .breadcrumb-item::before {
    content: none;
  }
  .g-compte-nom,
  .g-replier {
    display: none;
  }
  .g-contenu {
    padding: 20px 16px 32px;
  }
  .g-bandeau {
    padding-inline: 16px;
  }
  h1,
  .h1,
  h1.h3,
  h1.h4 {
    font-size: 1.375rem;
    line-height: 1.75rem;
  }
}

/* ---------- Boutons ---------- */
.btn {
  --bs-btn-font-weight: 600;
  --bs-btn-padding-x: 1rem;
  --bs-btn-padding-y: 0.4375rem;
  --bs-btn-border-radius: var(--g-rayon);
  --bs-btn-line-height: 1.5;
  transition: background-color 150ms var(--g-courbe), border-color 150ms var(--g-courbe), color 150ms var(--g-courbe);
}
.btn-sm {
  --bs-btn-padding-x: 0.75rem;
  --bs-btn-padding-y: 0.25rem;
  --bs-btn-font-size: 0.8125rem;
}
.btn-primary {
  --bs-btn-color: var(--g-action-texte);
  --bs-btn-bg: var(--g-action);
  --bs-btn-border-color: var(--g-action);
  --bs-btn-hover-color: var(--g-action-texte);
  --bs-btn-hover-bg: var(--g-action-survol);
  --bs-btn-hover-border-color: var(--g-action-survol);
  --bs-btn-active-color: var(--g-action-texte);
  --bs-btn-active-bg: var(--g-action-survol);
  --bs-btn-active-border-color: var(--g-action-survol);
  --bs-btn-disabled-color: var(--g-action-texte);
  --bs-btn-disabled-bg: var(--g-action);
  --bs-btn-disabled-border-color: var(--g-action);
}
.btn-outline-primary,
.btn-outline-secondary,
.btn-secondary,
.btn-light {
  --bs-btn-color: var(--g-texte);
  --bs-btn-bg: var(--g-surface);
  --bs-btn-border-color: var(--g-bordure-champ);
  --bs-btn-hover-color: var(--g-texte);
  --bs-btn-hover-bg: var(--g-fond);
  --bs-btn-hover-border-color: var(--g-texte-2);
  --bs-btn-active-color: var(--g-texte);
  --bs-btn-active-bg: var(--e-neutre-fond);
  --bs-btn-active-border-color: var(--g-texte-2);
  --bs-btn-disabled-color: var(--g-texte-2);
  --bs-btn-disabled-bg: var(--g-surface);
  --bs-btn-disabled-border-color: var(--g-bordure);
}
.btn-link {
  --bs-btn-color: var(--g-violet);
  --bs-btn-hover-color: var(--g-violet-fonce);
  --bs-btn-font-weight: 600;
}
.btn-danger {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--g-rouge);
  --bs-btn-border-color: var(--g-rouge);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--g-rouge-fonce);
  --bs-btn-hover-border-color: var(--g-rouge-fonce);
  --bs-btn-active-bg: var(--g-rouge-fonce);
  --bs-btn-active-border-color: var(--g-rouge-fonce);
  --bs-btn-disabled-bg: var(--g-rouge);
  --bs-btn-disabled-border-color: var(--g-rouge);
}
.btn-outline-danger {
  --bs-btn-color: var(--e-danger);
  --bs-btn-bg: var(--g-surface);
  --bs-btn-border-color: var(--e-danger);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--g-rouge);
  --bs-btn-hover-border-color: var(--g-rouge);
  --bs-btn-active-bg: var(--g-rouge-fonce);
  --bs-btn-active-border-color: var(--g-rouge-fonce);
  --bs-btn-disabled-color: var(--e-danger);
}
.btn-success,
.btn-outline-success {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--e-succes);
  --bs-btn-border-color: var(--e-succes);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #0f5331;
  --bs-btn-hover-border-color: #0f5331;
  --bs-btn-active-bg: #0f5331;
  --bs-btn-active-border-color: #0f5331;
}
.btn-outline-success {
  --bs-btn-color: var(--e-succes);
  --bs-btn-bg: var(--g-surface);
}
.btn-warning {
  --bs-btn-color: var(--g-nuit);
  --bs-btn-bg: var(--g-or);
  --bs-btn-border-color: var(--g-or);
  --bs-btn-hover-color: var(--g-nuit);
  --bs-btn-hover-bg: #eab440;
  --bs-btn-hover-border-color: #eab440;
  --bs-btn-active-bg: #eab440;
  --bs-btn-active-border-color: #eab440;
}
.btn.g-en-cours {
  pointer-events: none;
  opacity: 0.7;
}

/* ---------- Formulaires ---------- */
.form-label {
  margin-bottom: 6px;
  font-weight: 600;
}
.g-facultatif {
  font-weight: 400;
  color: var(--g-texte-2);
}
.form-control,
.form-select {
  min-height: 40px;
  border-color: var(--g-bordure-champ);
  color: var(--g-texte);
}
.form-control-sm,
.form-select-sm {
  min-height: 32px;
}
.form-control:focus,
.form-select:focus {
  border-color: var(--g-violet);
}
.form-control::placeholder {
  color: #7b859c;
}
.form-control:disabled,
.form-select:disabled {
  background: var(--e-neutre-fond);
  border-color: var(--g-bordure);
}
.form-check-input {
  border-color: var(--g-bordure-champ);
  width: 1.125em;
  height: 1.125em;
}
.form-check-input:checked {
  background-color: var(--g-violet);
  border-color: var(--g-violet);
}
.form-control.is-invalid,
.form-select.is-invalid {
  border-color: var(--e-danger);
  border-width: 2px;
  background-image: none;
  padding-right: 0.75rem;
}
.g-erreur {
  display: flex;
  gap: 6px;
  align-items: flex-start;
  margin-top: 6px;
  color: var(--e-danger);
  font-size: 0.8125rem;
  font-weight: 550;
}
.g-erreur .bi {
  flex: none;
  margin-top: 1px;
}
.g-resume-erreurs ul {
  margin: 6px 0 0;
  padding-left: 1.1rem;
}
.g-resume-erreurs a {
  color: inherit;
  font-weight: 600;
}
input[type="color"].form-control {
  width: 56px;
  padding: 4px;
}

/* ---------- Cartes ---------- */
.card {
  --bs-card-bg: var(--g-surface);
  --bs-card-border-color: var(--g-bordure);
  --bs-card-border-radius: var(--g-rayon-carte);
  --bs-card-inner-border-radius: calc(var(--g-rayon-carte) - 1px);
  --bs-card-spacer-x: 1.5rem;
  --bs-card-spacer-y: 1.5rem;
  --bs-card-title-color: var(--g-texte);
}
.card.shadow-sm,
.list-group.shadow-sm {
  box-shadow: none !important;
}
.card.border-primary,
.card.border-warning,
.card.border-danger,
.card.border-danger-subtle {
  border-color: var(--g-bordure) !important;
  border-left-width: 3px;
}
.card.border-primary {
  border-left-color: var(--g-violet) !important;
}
.card.border-warning {
  border-left-color: #d98a1f !important;
}
.card.border-danger,
.card.border-danger-subtle {
  border-left-color: var(--g-rouge) !important;
}
@media (max-width: 767.98px) {
  .card {
    --bs-card-spacer-x: 1rem;
    --bs-card-spacer-y: 1rem;
  }
  .card-body.p-4 {
    padding: 1.25rem !important;
  }
}

/* ---------- Pastilles de statut ---------- */
.badge,
.g-pastille {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 10px 2px 8px;
  border-radius: 999px;
  font-size: 0.8125rem;
  line-height: 1.25rem;
  font-weight: 600;
  white-space: nowrap;
  vertical-align: middle;
}
.badge::before,
.g-pastille::before {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}
.badge.fs-6 {
  font-size: 0.8125rem !important;
}
.badge.text-bg-success,
.g-pastille-succes {
  color: var(--e-succes) !important;
  background-color: var(--e-succes-fond) !important;
}
.badge.text-bg-primary,
.badge.text-bg-info,
.g-pastille-cours {
  color: var(--e-cours) !important;
  background-color: var(--e-cours-fond) !important;
}
.badge.text-bg-warning,
.g-pastille-attention {
  color: var(--e-attention) !important;
  background-color: var(--e-attention-fond) !important;
}
.badge.text-bg-danger,
.g-pastille-danger {
  color: var(--e-danger) !important;
  background-color: var(--e-danger-fond) !important;
}
.badge.text-bg-secondary,
.badge.text-bg-dark,
.badge.text-bg-light,
.g-pastille-neutre {
  color: var(--e-neutre) !important;
  background-color: var(--e-neutre-fond) !important;
  border: 0 !important;
}
.g-pastille-distinction {
  color: var(--e-distinction);
  background-color: var(--e-distinction-fond);
}
.g-pastille-confidentiel {
  color: #fff;
  background-color: var(--g-nuit);
  padding-left: 10px;
}
.g-pastille:has(> .bi)::before,
.g-pastille-distinction::before,
.g-pastille-confidentiel::before,
.g-pastille-etiquette::before {
  content: none;
}
.g-pastille-etiquette {
  color: var(--g-texte-2);
  background: var(--g-surface);
  box-shadow: inset 0 0 0 1px var(--g-bordure);
  padding-left: 10px;
}
a.badge {
  text-decoration: none;
}

/* ---------- Tableaux ---------- */
.table {
  --bs-table-bg: transparent;
  --bs-table-border-color: var(--g-bordure);
  --bs-table-hover-bg: var(--g-fond);
  --bs-table-color: var(--g-texte);
  margin-bottom: 0;
}
.table > :not(caption) > * > * {
  padding: 0.75rem;
}
.table-sm > :not(caption) > * > * {
  padding: 0.5rem 0.75rem;
}
.table > thead > tr > th {
  font-size: 0.8125rem;
  line-height: 1rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--g-texte-2);
  vertical-align: bottom;
}
.table > tbody > tr:last-child > * {
  border-bottom-width: 0;
}
.table > tbody > tr > th {
  font-weight: 600;
}
.table td.text-end,
.table th.text-end {
  font-variant-numeric: tabular-nums;
}

/* ---------- Alertes, listes, menus, modales ---------- */
.alert {
  --bs-alert-border-radius: var(--g-rayon);
  --bs-alert-padding-x: 1rem;
  --bs-alert-padding-y: 0.75rem;
  font-weight: 500;
}
.alert-success {
  --bs-alert-color: var(--e-succes);
  --bs-alert-bg: var(--e-succes-fond);
  --bs-alert-border-color: #bfe3cd;
  --bs-alert-link-color: var(--e-succes);
}
.alert-info,
.alert-primary {
  --bs-alert-color: var(--e-cours);
  --bs-alert-bg: var(--e-cours-fond);
  --bs-alert-border-color: #d6c9fb;
  --bs-alert-link-color: var(--e-cours);
}
.alert-warning {
  --bs-alert-color: var(--e-attention);
  --bs-alert-bg: var(--e-attention-fond);
  --bs-alert-border-color: #f3d9ad;
  --bs-alert-link-color: var(--e-attention);
}
.alert-danger {
  --bs-alert-color: var(--e-danger);
  --bs-alert-bg: var(--e-danger-fond);
  --bs-alert-border-color: #f4c4c9;
  --bs-alert-link-color: var(--e-danger);
}
.alert-secondary,
.alert-light,
.alert-dark {
  --bs-alert-color: var(--e-neutre);
  --bs-alert-bg: var(--e-neutre-fond);
  --bs-alert-border-color: var(--g-bordure);
  --bs-alert-link-color: var(--g-texte);
}
.list-group {
  --bs-list-group-border-color: var(--g-bordure);
  --bs-list-group-border-radius: var(--g-rayon-carte);
  --bs-list-group-action-hover-bg: var(--g-fond);
  --bs-list-group-action-active-bg: var(--g-lilas);
  --bs-list-group-color: var(--g-texte);
  --bs-list-group-item-padding-y: 0.75rem;
}
.dropdown-menu {
  --bs-dropdown-border-color: var(--g-bordure);
  --bs-dropdown-border-radius: var(--g-rayon-carte);
  --bs-dropdown-link-hover-bg: var(--g-fond);
  --bs-dropdown-link-active-bg: var(--g-lilas);
  --bs-dropdown-link-active-color: var(--g-violet-fonce);
  --bs-dropdown-item-padding-y: 0.5rem;
  --bs-dropdown-font-size: 0.9375rem;
  --bs-dropdown-padding-y: 0.375rem;
  box-shadow: var(--g-ombre-1);
}
.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
}
.dropdown-item .bi {
  color: var(--g-texte-2);
}
.dropdown-item.g-danger,
.dropdown-item.g-danger .bi {
  color: var(--e-danger);
}
.modal {
  --bs-modal-border-radius: var(--g-rayon-carte);
  --bs-modal-border-width: 0;
  --bs-modal-box-shadow: var(--g-ombre-2);
  --bs-modal-header-border-width: 0;
  --bs-modal-footer-border-width: 0;
  --bs-modal-padding: 0 1.5rem 0.5rem;
  --bs-modal-header-padding: 1.5rem 1.5rem 0.5rem;
  --bs-modal-footer-gap: 0.5rem;
}
.modal-content {
  box-shadow: var(--g-ombre-2);
}
.modal-footer {
  padding: 1rem 1.5rem 1.5rem;
}
.modal-backdrop {
  --bs-backdrop-bg: var(--g-nuit);
  --bs-backdrop-opacity: 0.55;
}
/* Le fond se floute derriere toute fenetre modale : la page reste devinee, sans distraire. */
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .modal-backdrop {
    --bs-backdrop-opacity: 1;
    background-color: rgba(21, 19, 60, 0.35);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
  }
  .modal-backdrop.fade {
    opacity: 0;
  }
  .modal-backdrop.show {
    opacity: 1;
  }
}
.g-modal-formulaire .modal-dialog {
  max-width: 560px;
}
.g-irreversible {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: var(--g-rayon);
  background: var(--e-danger-fond);
  color: var(--e-danger);
  font-weight: 600;
  font-size: 0.875rem;
}
.breadcrumb {
  --bs-breadcrumb-divider-color: var(--g-texte-2);
  --bs-breadcrumb-item-active-color: var(--g-texte-2);
  font-size: 0.8125rem;
}
.progress {
  --bs-progress-bg: var(--e-neutre-fond);
  --bs-progress-bar-bg: var(--g-violet);
  --bs-progress-height: 8px;
  --bs-progress-border-radius: 999px;
}
.nav-tabs {
  --bs-nav-tabs-border-color: var(--g-bordure);
  --bs-nav-tabs-link-active-color: var(--g-violet-fonce);
  --bs-nav-tabs-link-active-bg: transparent;
  --bs-nav-tabs-link-active-border-color: transparent transparent var(--g-violet);
  --bs-nav-tabs-link-hover-border-color: transparent;
  --bs-nav-link-color: var(--g-texte-2);
  --bs-nav-link-hover-color: var(--g-texte);
  --bs-nav-link-font-weight: 550;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
}
.nav-tabs .nav-link {
  border-width: 0 0 2px;
  white-space: nowrap;
}
/* Onglets qui depassent (telephone) : un fondu sur le bord ou des onglets sont caches.
   Les classes sont posees par galaria.js selon la position du defilement. */
.nav-tabs.g-suite-droite {
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent);
  mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent);
}
.nav-tabs.g-suite-gauche {
  -webkit-mask-image: linear-gradient(to left, #000 calc(100% - 40px), transparent);
  mask-image: linear-gradient(to left, #000 calc(100% - 40px), transparent);
}
.nav-tabs.g-suite-gauche.g-suite-droite {
  -webkit-mask-image: linear-gradient(to right, transparent, #000 40px, #000 calc(100% - 40px), transparent);
  mask-image: linear-gradient(to right, transparent, #000 40px, #000 calc(100% - 40px), transparent);
}

/* La barre du haut est collee : une ancre ou un champ qui recoit le focus ne doit pas
   passer dessous (WCAG 2.4.11). */
html {
  scroll-padding-top: 80px;
}

/* ---------- Notifications ---------- */
.g-notifications {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1090;
  display: grid;
  gap: 8px;
  max-width: min(420px, calc(100vw - 32px));
}
.g-notification {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 12px 12px 16px;
  border-radius: var(--g-rayon-carte);
  background: var(--g-nuit);
  color: #fff;
  box-shadow: var(--g-ombre-1);
  font-weight: 500;
  transition: opacity 200ms var(--g-courbe), transform 200ms var(--g-courbe);
}
.g-notification > .bi {
  flex: none;
  margin-top: 2px;
  color: #7fd8a4;
}
.g-notification.g-sortie {
  opacity: 0;
  transform: translateY(8px);
}
.g-notification .btn-close {
  flex: none;
  margin-left: auto;
  filter: invert(1) grayscale(1) brightness(2);
  opacity: 0.8;
}
@media (max-width: 767.98px) {
  .g-notifications {
    left: 16px;
    right: 16px;
    bottom: auto;
    top: 64px;
  }
}

/* ---------- En-tete de page, indicateurs, etats vides ---------- */
.g-entete {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 12px 16px;
  margin-bottom: 24px;
}
.g-entete-titre {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
}
.g-entete-titre h1 {
  margin: 0;
}
.g-entete-sous {
  margin: 4px 0 0;
  color: var(--g-texte-2);
}
.g-entete-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-left: auto;
}
.g-vide {
  padding: 28px 16px;
  text-align: center;
  color: var(--g-texte-2);
}
.g-vide p {
  margin: 0 0 12px;
}
.g-vide p:last-child {
  margin-bottom: 0;
}
.g-indicateur {
  display: block;
  padding: 16px 20px;
  border: 1px solid var(--g-bordure);
  border-radius: var(--g-rayon-carte);
  background: var(--g-surface);
  color: inherit;
  text-decoration: none;
}
a.g-indicateur:hover {
  border-color: var(--g-violet);
}
.g-indicateur b {
  display: block;
  margin: 4px 0 2px;
  font-size: 1.75rem;
  line-height: 2rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}
.g-indicateur span {
  display: block;
  font-size: 0.8125rem;
  color: var(--g-texte-2);
}

/* ---------- Identite visuelle et logos (ecrans existants) ---------- */
.logoMarque {
  max-height: 32px;
  max-width: 160px;
}
.logoApercu {
  max-height: 96px;
  max-width: 220px;
}
.logoVignette {
  max-height: 48px;
  max-width: 120px;
}
.fondLogo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 112px;
  padding: 0.5rem;
  border: 1px solid var(--g-bordure);
  border-radius: var(--g-rayon);
}
.fondLogoClair {
  background-color: #fff;
}
.fondLogoSombre {
  background-color: var(--g-nuit);
}
.apercuMarque {
  border: 1px solid var(--g-bordure);
  border-radius: var(--g-rayon);
  overflow: hidden;
}
.apercuBandeau {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  font-weight: 600;
}
.pastille {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  border: 1px solid var(--g-bordure);
  border-radius: 50%;
  vertical-align: text-bottom;
}
.apercuCourriel {
  white-space: pre-wrap;
  font-family: inherit;
  font-size: 0.9375rem;
  padding: 1rem;
  background-color: var(--g-fond);
  border: 1px solid var(--g-bordure);
  border-radius: var(--g-rayon);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0ms !important;
    animation-duration: 0ms !important;
    scroll-behavior: auto !important;
  }
}

/* Tableaux sur telephone : cellules resserrees, mots longs coupes */
@media (max-width: 767.98px) {
  .table > :not(caption) > * > * {
    padding: 0.5rem 0.375rem;
    overflow-wrap: anywhere;
  }
  .table > thead > tr > th {
    letter-spacing: 0.02em;
  }
}

/* Titre de la presentation publique d'une entreprise (page publique et apercus) */
.g-presentation-titre {
  margin: 0 0 6px;
  font-size: 1.75rem;
  line-height: 2.125rem;
  overflow-wrap: anywhere;
}

/* Mises en page de travail */
h1.g-entete-titre {
  margin: 0;
}
.g-deux-colonnes {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
  gap: 24px;
  align-items: start;
}
.g-colonne-collee {
  position: sticky;
  top: 76px;
}
.g-ligne-action {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
}
.g-carte-etroite {
  max-width: 720px;
}
.g-vide > .bi {
  display: block;
  margin-bottom: 8px;
  font-size: 1.75rem;
  color: var(--g-texte-3, #8a93a8);
}
.g-fiche-liste dt {
  margin-top: 10px;
  color: var(--g-texte-2);
  font-weight: 500;
}
.g-fiche-liste dt:first-child {
  margin-top: 0;
}
.g-fiche-liste dd {
  margin: 0;
  overflow-wrap: anywhere;
}

/* Dossier lu par un juge : reponses et notes */
.g-reponse {
  padding: 16px 0;
  border-bottom: 1px solid var(--g-bordure);
}
.g-reponse:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.g-reponse-texte {
  max-width: 72ch;
  margin-top: 4px;
}
.g-note {
  margin: 14px 0 0;
  padding: 12px 14px;
  border: 0;
  border-radius: var(--g-rayon);
  background: var(--g-fond);
}
.g-note legend {
  float: none;
  width: auto;
  margin: 0 0 8px;
  padding: 0;
  font-size: 0.875rem;
  font-weight: 600;
}
.g-note-echelle {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.g-note-echelle .btn {
  min-width: 44px;
  min-height: 40px;
  padding-inline: 8px;
  background: var(--g-surface);
  font-variant-numeric: tabular-nums;
}
.g-note-echelle .btn-check:checked + .btn {
  background: var(--g-action);
  border-color: var(--g-action);
  color: var(--g-action-texte, #fff);
}
.g-note-echelle .btn-check:focus-visible + .btn {
  outline: 2px solid var(--g-violet);
  outline-offset: 2px;
}
.g-note-echelle .btn-check:disabled + .btn {
  opacity: 0.55;
}
.g-note-echelle .btn-check:disabled:checked + .btn {
  opacity: 1;
}

/* Liste de choix (cases ou boutons radio) en lignes */
.g-choix {
  margin: 0;
  padding: 0;
  border: 0;
}
.g-choix-ligne {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--g-bordure);
}
.g-choix-ligne:last-of-type {
  border-bottom: 0;
}
.g-choix-ligne .form-check {
  margin: 0;
}
@media (max-width: 991.98px) {
  .g-deux-colonnes {
    grid-template-columns: minmax(0, 1fr);
  }
  .g-colonne-collee {
    position: static;
  }
}

/* Questionnaire : mention d'obligation et barre d'actions qui reste a portee */
.g-obligatoire {
  font-weight: 400;
  font-size: 0.8125rem;
  color: var(--g-texte-2);
}
.g-barre-actions {
  position: sticky;
  bottom: 0;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin: 0 -8px 8px;
  padding: 12px 8px;
  background: var(--g-surface);
  border-top: 1px solid var(--g-bordure);
}

/* Etapes d'une edition */
.g-etapes {
  display: flex;
  gap: 4px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
  counter-reset: none;
}
.g-etape {
  position: relative;
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 0;
  font-size: 0.8125rem;
  color: var(--g-texte-2);
  text-align: center;
}
.g-etape::before {
  content: "";
  position: absolute;
  top: 13px;
  left: calc(-50% + 16px);
  right: calc(50% + 16px);
  height: 2px;
  background: var(--g-bordure);
}
.g-etape:first-child::before {
  content: none;
}
.g-etape-faite::before,
.g-etape-courante::before {
  background: var(--g-violet);
}
.g-etape-point {
  position: relative;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 2px solid var(--g-bordure);
  border-radius: 50%;
  background: var(--g-surface);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.g-etape-faite .g-etape-point {
  border-color: var(--g-violet);
  background: var(--g-violet);
  color: #fff;
}
.g-etape-courante .g-etape-point {
  border-color: var(--g-violet);
  color: var(--g-violet-fonce);
  box-shadow: 0 0 0 4px var(--g-lilas);
}
.g-etape-courante {
  color: var(--g-texte);
  font-weight: 600;
}
.g-etape-nom {
  overflow-wrap: anywhere;
}
.g-edition-ligne {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--g-bordure);
}
.g-edition-ligne .g-etapes {
  margin-bottom: 12px;
  max-width: 560px;
}
.g-role {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin: 0 6px 4px 0;
}
.g-bouton-icone-petit {
  width: 28px;
  height: 28px;
  font-size: 0.875rem;
}
.g-bouton-icone-petit:hover {
  background: var(--e-danger-fond, #fde8ea);
  color: var(--e-danger, #b3261e);
}

/* Renseignements personnels masques par defaut (voir galaria.js, data-demasquer) */
[data-masque="oui"] .g-sensible {
  filter: blur(5px);
  user-select: none;
}
.nav-tabs .g-nav-compte {
  margin-left: 4px;
  background: var(--g-lilas);
  color: var(--g-violet-fonce);
}

details > summary.btn {
  list-style: none;
}
details > summary.btn::-webkit-details-marker {
  display: none;
}

/* Recherche, filtres et pagination d'une liste */
.g-filtres {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.g-filtres .form-control {
  flex: 1 1 220px;
  max-width: 360px;
}
.g-filtres-choix {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}
.g-filtre {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 32px;
  padding: 2px 12px;
  border: 1px solid var(--g-bordure);
  border-radius: 999px;
  background: var(--g-surface);
  color: var(--g-texte);
  font-size: 0.875rem;
  font-weight: 550;
  text-decoration: none;
}
.g-filtre:hover {
  border-color: var(--g-violet);
  color: var(--g-texte);
}
.g-filtre-actif {
  border-color: var(--g-violet);
  background: var(--g-lilas);
  color: var(--g-violet-fonce);
}
.g-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 16px;
}

/* Menu d'une ligne de liste et fermeture du tiroir mobile */
.g-actions-ligne {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.g-menu-ligne {
  display: inline-block;
}
.g-fermer-menu {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  color: #c9cee6;
}
.g-fermer-menu:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}
@media (min-width: 992px) {
  .g-fermer-menu {
    display: none;
  }
}

/* ---------- Champ de couleur : palette et valeur #RRGGBB ---------- */
.g-couleur {
  display: flex;
  gap: 8px;
  align-items: center;
}
.g-couleur .form-control-color {
  flex: 0 0 44px;
  width: 44px;
  height: 38px;
  padding: 4px;
}
.g-couleur .form-control:not(.form-control-color) {
  max-width: 160px;
  font-variant-numeric: tabular-nums;
}

/* Colonne du nom dans un tableau large : elle garde sa largeur, le tableau defile. */
.g-col-nom {
  min-width: 11rem;
}

/* Un libelle masque (visually-hidden) dans un tableau qui defile reste dans la zone
   de defilement : sans ce repere, il elargit la page entiere. */
.table-responsive {
  position: relative;
}

/* ==========================================================================
   Alignement sur les maquettes (2026-11-24). Ces regles viennent apres le
   reste et le remplacent : coquille, cartes, boutons, bandeau au trophee,
   tuiles, etapes, barre d'onglets sur telephone.
   ========================================================================== */
:root {
  --g-nuit: #15133c;
  --g-nuit-2: #241d62;
  --g-fond: #f6f5fc;
  --g-bordure: #e4e1f0;
  --g-texte: #1a1740;
  --g-rayon: 10px;
  --g-rayon-carte: 16px;
  --g-ombre-carte: 0 1px 2px rgba(26, 23, 64, 0.04), 0 6px 20px rgba(60, 40, 140, 0.07);
  --g-lateral: 256px;
  --g-vert: #1f9d5b;
}
body {
  color: var(--g-texte);
}
.card {
  --bs-card-border-color: #ebe8f5;
  box-shadow: var(--g-ombre-carte);
}
.card .card {
  box-shadow: none;
}

/* ---------- Barre laterale ---------- */
.g-lateral {
  background: linear-gradient(180deg, #15133c 0%, #1b1654 55%, #2c1c7c 100%) !important;
}
.g-lateral-corps {
  padding: 22px 14px 0;
  gap: 18px;
}
.g-logo {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 0 6px;
  color: #fff;
  font-family: var(--g-police-titre);
  font-size: 1.875rem;
  line-height: 1;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.g-logo:hover {
  color: #fff;
}
.g-logo img {
  flex: none;
  width: 38px;
  height: 38px;
}
.g-org {
  align-items: flex-start;
  padding: 0 8px 2px;
  border-bottom: 0;
}
.g-org-logo {
  width: 36px;
  height: 36px;
  margin-top: 2px;
}
.g-org-texte span {
  display: block;
  font-size: 0.875rem;
  color: #d6d2f2;
}
.g-org-texte strong {
  font-family: var(--g-police-titre);
  font-size: 1.25rem;
  line-height: 1.5rem;
  font-weight: 550;
  white-space: normal;
  overflow-wrap: anywhere;
}
.g-nav-titre {
  color: #b9b3e0;
}
.g-nav-lien {
  gap: 12px;
  min-height: 42px;
  padding: 9px 12px;
  border-radius: 10px;
  color: #e6e3f7;
}
.g-nav-lien:hover {
  background: rgba(255, 255, 255, 0.09);
}
.g-nav-lien[aria-current="page"] {
  background: linear-gradient(90deg, #7648ea, #5a2ecb);
  box-shadow: 0 6px 16px rgba(18, 10, 70, 0.45);
}
.g-lateral-pied {
  flex: none;
  height: 200px;
  margin: auto -14px 0;
  padding: 0;
  background: url("../img/ruban.svg") no-repeat left bottom / 100% 100%;
  pointer-events: none;
}
.g-lateral-pied::before {
  content: none;
}

/* ---------- Barre du haut ---------- */
.g-haut {
  min-height: 64px;
  background: rgba(255, 255, 255, 0.92);
  border-bottom-color: var(--g-bordure);
}
.g-logo-mobile {
  display: none;
}
.g-compte-bouton {
  gap: 10px;
  padding: 6px 10px 6px 6px;
  text-align: left;
}
.g-compte-texte {
  display: grid;
  line-height: 1.2;
}
.g-compte-nom {
  font-weight: 650;
}
.g-compte-role {
  font-size: 0.8125rem;
  color: var(--g-texte-2);
}
.g-compte-bouton > .bi {
  font-size: 0.75rem;
  color: var(--g-texte-2);
}
.g-avatar {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, #a98bff, #6938d3);
  color: #fff;
  font-size: 0.8125rem;
}

/* ---------- Titres ---------- */
.g-titre-serif,
.g-titre-serif h1 {
  font-family: var(--g-police-titre);
  font-size: 2rem;
  line-height: 2.375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.g-sur-titre {
  margin: 0 0 2px;
  color: var(--g-violet);
  font-weight: 650;
}
.g-titre-section {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-size: 1.125rem;
  line-height: 1.5rem;
  font-weight: 700;
}
.g-titre-section > .bi {
  color: var(--g-violet);
  font-size: 1.25rem;
}
.g-titre-section .g-lien-suite {
  margin-left: auto;
}
.g-lien-suite {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 650;
  color: var(--g-violet-fonce);
  text-decoration: none;
  white-space: nowrap;
}
.g-lien-suite:hover {
  text-decoration: underline;
}

/* ---------- Boutons ---------- */
.btn {
  --bs-btn-border-radius: 10px;
}
.g-coquille .btn-primary,
.modal .btn-primary {
  background-image: linear-gradient(180deg, #7648ea, #5a2ecb);
  border-color: #5a2ecb;
  box-shadow: 0 4px 12px rgba(90, 46, 203, 0.25);
}
.g-coquille .btn-primary:hover,
.g-coquille .btn-primary:active,
.modal .btn-primary:hover {
  background-image: linear-gradient(180deg, #6a3bdf, #4a22a8);
  border-color: #4a22a8;
}
.g-coquille .btn-primary:disabled,
.g-coquille .btn-primary.disabled {
  box-shadow: none;
}
.btn-outline-primary {
  --bs-btn-color: var(--g-violet-fonce);
  --bs-btn-border-color: var(--g-violet);
  --bs-btn-hover-color: var(--g-violet-fonce);
  --bs-btn-hover-bg: var(--g-lilas);
  --bs-btn-hover-border-color: var(--g-violet-fonce);
  --bs-btn-active-color: var(--g-violet-fonce);
  --bs-btn-active-bg: var(--g-lilas);
  --bs-btn-active-border-color: var(--g-violet-fonce);
}
.btn-or {
  --bs-btn-color: #2b1a00;
  --bs-btn-bg: #f6c45a;
  --bs-btn-border-color: #e3a836;
  --bs-btn-hover-color: #2b1a00;
  --bs-btn-hover-bg: #eeb23c;
  --bs-btn-hover-border-color: #d2952a;
  --bs-btn-active-color: #2b1a00;
  --bs-btn-active-bg: #eeb23c;
  --bs-btn-active-border-color: #d2952a;
  background-image: linear-gradient(180deg, #f9cf73, #eeb23c);
}
.btn-clair {
  --bs-btn-color: #fff;
  --bs-btn-bg: transparent;
  --bs-btn-border-color: rgba(255, 255, 255, 0.75);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: rgba(255, 255, 255, 0.14);
  --bs-btn-hover-border-color: #fff;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: rgba(255, 255, 255, 0.2);
  --bs-btn-active-border-color: #fff;
}
.btn-clair:focus-visible,
.btn-or:focus-visible {
  outline-color: #fff;
}

/* ---------- Tableaux ---------- */
.table > thead > tr > th {
  padding-block: 0.625rem;
  background: #f5f3fc;
  font-size: 0.8125rem;
  line-height: 1.125rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--g-texte);
  vertical-align: middle;
}

/* ---------- Bandeau au trophee ---------- */
.g-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: 216px;
  margin-bottom: 24px;
  padding: 28px 36px;
  padding-right: min(36%, 300px);
  border-radius: 18px;
  color: #fff;
  background:
    radial-gradient(70% 130% at 78% 45%, rgba(124, 77, 255, 0.6), rgba(124, 77, 255, 0) 70%),
    linear-gradient(115deg, #14123a 0%, #1d1656 48%, #3a1f8f 100%);
  box-shadow: 0 12px 32px rgba(26, 18, 84, 0.28);
}
.g-hero::before {
  content: "";
  position: absolute;
  inset: -10px;
  z-index: -1;
  background:
    radial-gradient(circle at 60% 20%, rgba(246, 196, 90, 0.55) 0, rgba(246, 196, 90, 0) 7%),
    radial-gradient(circle at 92% 22%, rgba(246, 196, 90, 0.5) 0, rgba(246, 196, 90, 0) 9%),
    radial-gradient(circle at 70% 84%, rgba(246, 196, 90, 0.35) 0, rgba(246, 196, 90, 0) 8%),
    radial-gradient(circle at 97% 70%, rgba(190, 150, 255, 0.5) 0, rgba(190, 150, 255, 0) 8%),
    radial-gradient(circle at 52% 70%, rgba(190, 150, 255, 0.3) 0, rgba(190, 150, 255, 0) 6%),
    radial-gradient(circle at 84% 6%, rgba(255, 255, 255, 0.28) 0, rgba(255, 255, 255, 0) 5%);
  filter: blur(5px);
}
.g-hero::after {
  content: "";
  position: absolute;
  right: 4%;
  bottom: -4px;
  z-index: -1;
  width: min(30%, 230px);
  aspect-ratio: 256 / 300;
  max-height: 104%;
  background: url("../img/trophee.svg") no-repeat center bottom / contain;
}
.g-hero-corps {
  min-width: 0;
}
.g-hero-sur {
  margin: 0 0 6px;
  color: var(--g-or);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.g-hero-titre,
.g-hero h1,
.g-hero h2 {
  margin: 0 0 10px;
  color: #fff;
  font-family: var(--g-police-titre);
  font-size: clamp(1.625rem, 3vw, 2.375rem);
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.g-hero p {
  max-width: 48ch;
  margin: 0;
  color: #e9e5fb;
}
.g-hero a:not(.btn) {
  color: #fff;
}
.g-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.g-hero-liste {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: #f1eefc;
}
.g-hero-liste .bi {
  margin-right: 8px;
  color: var(--g-or);
}
.g-hero-compact {
  min-height: 150px;
}

/* ---------- Tuiles de chiffres et raccourcis ---------- */
.g-tuiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.g-tuile,
.g-indicateur {
  background: var(--g-surface);
  border: 1px solid #ebe8f5;
  border-radius: 16px;
  box-shadow: var(--g-ombre-carte);
}
.g-tuile {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 18px 20px;
  color: inherit;
  text-decoration: none;
}
a.g-tuile:hover,
a.g-raccourci:hover {
  border-color: var(--g-violet);
  color: inherit;
}
.g-tuile-icone {
  flex: none;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--g-lilas);
  color: var(--g-violet-fonce);
  font-size: 1.5rem;
}
.g-tuile-icone-or {
  background: #fdf1d3;
  color: #9a6a00;
}
.g-tuile-icone-vert {
  background: #e3f5ea;
  color: #14693f;
}
.g-tuile-texte {
  min-width: 0;
  line-height: 1.25;
}
.g-tuile-nom {
  display: block;
  font-size: 0.875rem;
  font-weight: 650;
}
.g-tuile b {
  display: block;
  font-size: 1.75rem;
  line-height: 2.125rem;
  font-weight: 700;
}
.g-tuile small {
  display: block;
  font-size: 0.8125rem;
  color: var(--g-texte-2);
}
.g-raccourcis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 12px;
}
.g-raccourci {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 96px;
  padding: 14px 10px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: #f3f0fd;
  color: var(--g-texte);
  font-weight: 650;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}
.g-raccourci .bi {
  font-size: 1.625rem;
  color: var(--g-violet);
}
.g-raccourci-principal,
.g-raccourci-principal:hover {
  background: linear-gradient(180deg, #7648ea, #4a22a8);
  color: #fff !important;
  box-shadow: 0 8px 18px rgba(90, 46, 203, 0.3);
}
.g-raccourci-principal .bi {
  color: #fff;
}
.g-raccourci-blanc {
  background: var(--g-surface);
  border-color: #ebe8f5;
  box-shadow: var(--g-ombre-carte);
}

/* Lignes d'une liste dans une carte (actions recentes, alertes, dates cles) */
.g-lignes {
  margin: 0;
  padding: 0;
  list-style: none;
}
.g-ligne {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--g-bordure);
}
.g-ligne:first-child {
  border-top: 0;
}
.g-ligne-icone {
  flex: none;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--g-lilas);
  color: var(--g-violet-fonce);
}
.g-ligne-icone-or {
  background: #fdf1d3;
  color: #9a6a00;
}
.g-ligne-icone-vert {
  background: #e3f5ea;
  color: #14693f;
}
/* Aucune alerte : etat vide centre dans la hauteur de la carte, pas une ligne perdue en haut. */
.g-alertes-vide {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 16px 8px;
  text-align: center;
  color: var(--g-texte-2);
}
.g-alertes-vide .g-ligne-icone {
  width: 44px;
  height: 44px;
  margin-bottom: 6px;
  font-size: 1.25rem;
}
.g-alertes-vide .fw-semibold {
  color: var(--g-texte);
}
.g-ligne-corps {
  flex: 1 1 auto;
  min-width: 0;
  line-height: 1.3;
}
.g-ligne-corps strong {
  display: block;
  font-weight: 650;
}
.g-ligne-corps small {
  color: var(--g-texte-2);
}
.g-ligne-fin {
  flex: none;
  margin-left: auto;
  font-weight: 650;
  text-align: right;
}
.g-compte-rond {
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  padding: 2px 10px;
  border-radius: 999px;
  background: #fdf1d3;
  color: #6b4a00;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* ---------- Etapes ---------- */
.g-etape::before {
  top: 15px;
  left: calc(-50% + 18px);
  right: calc(50% + 18px);
}
.g-etape-point {
  width: 32px;
  height: 32px;
  border-color: #c9c5dd;
  color: transparent;
}
.g-etape-faite .g-etape-point {
  border-color: var(--g-vert);
  background: var(--g-vert);
  color: #fff;
}
.g-etape-faite::before {
  background: var(--g-vert);
}
.g-etape-courante::before {
  background: var(--g-violet);
}
.g-etape-courante .g-etape-point {
  border-color: var(--g-violet);
  background: var(--g-violet);
  color: #fff;
  box-shadow: 0 0 0 4px var(--g-lilas);
}

/* ---------- Telephone : entete sombre et barre d'onglets ---------- */
.g-barre-mobile {
  display: none;
}
@media (min-width: 992px) {
  .g-replie .g-logo span,
  .g-replie .g-org,
  .g-replie .g-lateral-pied {
    display: none;
  }
  .g-replie .g-logo {
    justify-content: center;
    padding: 0;
  }
}
@media (max-width: 991.98px) {
  .g-haut {
    min-height: 60px;
    padding: 0 14px;
    background: var(--g-nuit);
    border-bottom: 0;
  }
  .g-haut .g-ariane,
  .g-compte-texte,
  .g-compte-bouton > .bi {
    display: none;
  }
  .g-logo-mobile {
    display: flex;
    margin-right: auto;
    padding: 0;
    font-size: 1.5rem;
  }
  .g-logo-mobile img {
    width: 30px;
    height: 30px;
  }
  .g-haut .g-menu-mobile {
    order: 3;
    color: #fff;
  }
  .g-haut .g-menu-mobile:hover,
  .g-haut .g-compte-bouton:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
  }
  .g-haut :focus-visible {
    outline-color: #fff;
  }
  .g-compte {
    margin-left: 0;
  }
  .g-compte-bouton {
    padding: 4px;
  }
  .g-contenu {
    padding-bottom: 96px;
  }
  .g-barre-mobile {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1030;
    display: flex;
    gap: 2px;
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
    background: var(--g-nuit);
    box-shadow: 0 -6px 20px rgba(21, 19, 60, 0.25);
  }
  .g-barre-mobile a,
  .g-barre-mobile button {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    min-width: 0;
    min-height: 52px;
    padding: 6px 2px;
    border: 0;
    border-radius: 12px;
    background: none;
    color: #e6e3f7;
    font-size: 0.8125rem;
    line-height: 0.875rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
  }
  .g-barre-mobile .bi {
    font-size: 1.25rem;
    line-height: 1;
  }
  .g-barre-mobile span {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .g-barre-mobile [aria-current="page"] {
    background: rgba(118, 72, 234, 0.55);
    color: #fff;
  }
  .g-barre-mobile :focus-visible {
    outline-color: #fff;
  }
  .g-barre-actions {
    bottom: 68px;
  }
  .g-notifications {
    bottom: 84px;
  }
  .g-hero {
    min-height: 0;
    padding: 22px 20px;
    padding-right: 32%;
    border-radius: 16px;
  }
  .g-hero::after {
    right: 0;
    width: 34%;
  }
  .g-tuiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .g-tuile {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 14px;
  }
  .g-tuile-icone {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    font-size: 1.25rem;
  }
  .g-titre-serif,
  .g-titre-serif h1 {
    font-size: 1.625rem;
    line-height: 2rem;
  }
}

/* Retouches des tuiles et de la barre d'onglets sur telephone */
.g-hero h1 {
  font-size: clamp(1.625rem, 3vw, 2.375rem);
  line-height: 1.1;
}
@media (max-width: 991.98px) {
  .g-tuile-ligne {
    flex-direction: row;
    align-items: center;
    gap: 12px;
  }
  .g-raccourcis {
    grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
    gap: 10px;
  }
  .g-raccourci {
    font-size: 0.875rem;
  }
  .g-barre-mobile span {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    white-space: normal;
  }
  .g-titre-section {
    flex-wrap: wrap;
  }
}

/* Recherche dans un en-tete de carte : sur une ligne */
.g-ligne-action .g-filtres {
  flex-wrap: nowrap;
}
.g-ligne-action .g-filtres .form-control {
  flex: 1 1 260px;
  min-width: 180px;
}

/* Bandeau d'une entreprise (evaluation par un juge) */
.g-hero-fiche {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
}
.g-hero-logo {
  flex: none;
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border-radius: 18px;
  background: #f3f0fd;
  color: var(--g-violet-fonce);
  font-family: var(--g-police-titre);
  font-size: 2.25rem;
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(10, 8, 34, 0.35);
}
.g-pastille-or {
  background: linear-gradient(180deg, #f9cf73, #eeb23c);
  color: #2b1a00;
}
.g-pastille-or::before {
  content: none;
}
@media (max-width: 991.98px) {
  .g-hero-logo {
    width: 56px;
    height: 56px;
    font-size: 1.5rem;
    border-radius: 14px;
  }
}

/* ---------- Graphiques de frequentation ---------- */
.g-courbe {
  display: block;
  width: 100%;
  height: auto;
}
.g-courbe text {
  fill: var(--g-texte-2);
  font-size: 13px;
}
.g-courbe-grille {
  stroke: var(--g-bordure);
}
.g-courbe-point {
  stroke: var(--g-surface);
  stroke-width: 2;
}
.g-legende {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.8125rem;
}
.g-legende span {
  display: inline-block;
  flex: none;
  width: 10px;
  height: 10px;
  margin-right: 6px;
  border-radius: 50%;
}

/* ---------- Identite visuelle : apercu du site public ---------- */
.g-apercu-site {
  overflow: hidden;
  border: 1px solid #ebe8f5;
  border-radius: 14px;
  box-shadow: var(--g-ombre-carte);
}
.g-apercu-site-barre {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #fff;
  font-size: 0.8125rem;
  font-weight: 650;
}
.g-apercu-site-barre img {
  max-height: 28px;
  max-width: 110px;
}
.g-apercu-site-nav {
  display: flex;
  gap: 12px;
  margin-left: auto;
  font-weight: 500;
  color: var(--g-texte-2);
}
.g-apercu-site-hero {
  position: relative;
  overflow: hidden;
  padding: 22px 18px;
  padding-right: 34%;
  color: #fff;
  background-color: #15133c;
}
.g-apercu-site-hero::after {
  content: "";
  position: absolute;
  right: 4%;
  bottom: 0;
  width: 28%;
  aspect-ratio: 256 / 300;
  background: url("../img/trophee.svg") no-repeat center bottom / contain;
}
.g-apercu-site-hero small {
  display: block;
  color: var(--g-or);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.g-apercu-site-hero strong {
  display: block;
  margin: 4px 0 12px;
  font-family: var(--g-police-titre);
  font-size: 1.375rem;
  line-height: 1.15;
  font-weight: 600;
}
.g-apercu-site-hero .btn {
  position: relative;
  z-index: 1;
}

/* La zone des notifications ne doit jamais capter un clic destine au contenu. */
.g-notifications {
  pointer-events: none;
}
.g-notification {
  pointer-events: auto;
}

/* Telephone : la barre d'onglets a une hauteur fixe, et ce qui colle au bas se pose dessus. */
@media (max-width: 991.98px) {
  .g-barre-mobile {
    box-sizing: border-box;
    height: calc(80px + env(safe-area-inset-bottom));
  }
  .g-barre-mobile a,
  .g-barre-mobile button {
    justify-content: center;
  }
  .g-barre-actions {
    bottom: calc(80px + env(safe-area-inset-bottom));
  }
  .g-notifications {
    bottom: calc(92px + env(safe-area-inset-bottom));
  }
  .g-contenu {
    padding-bottom: calc(104px + env(safe-area-inset-bottom));
  }
}

/* ---------- Echeance (design system, partie II) ---------- */
.g-echeance {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  font-variant-numeric: tabular-nums;
}
.g-echeance time {
  font-weight: 600;
}

/* ---------- Mes candidatures (design system, partie II) ---------- */
.g-a-faire-liste,
.g-lignes-candidature {
  margin: 0;
  padding: 0;
  list-style: none;
}
.g-a-faire-ligne {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--g-bordure);
}
.g-a-faire-ligne:first-child {
  border-top: 0;
  padding-top: 4px;
}
.g-a-faire-corps {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.g-a-faire-objet {
  color: var(--g-texte-2);
}
.g-a-faire-echeance {
  font-size: 0.875rem;
  color: var(--g-texte-2);
}
.g-a-faire-ligne .btn {
  flex: none;
}
.g-a-faire-vide {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--g-texte-2);
}
.g-a-faire-vide strong {
  color: var(--g-texte);
}
.g-carte-edition-entete {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px 16px;
}
.g-carte-edition-titre {
  margin: 0 0 4px;
  font-size: 1.125rem;
  line-height: 1.5rem;
  font-weight: 700;
}
.g-carte-edition-echeance {
  margin: 0;
  color: var(--g-texte-2);
}
.g-carte-edition-note {
  margin: 12px 0 0;
  font-size: 0.875rem;
  color: var(--g-texte-2);
}
.g-carte-edition-note strong {
  color: var(--g-texte);
}
.g-lignes-candidature {
  margin-top: 8px;
}
.g-ligne-candidature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 320px) 184px;
  grid-template-areas: "categorie etat action";
  align-items: center;
  gap: 8px 20px;
  padding: 14px 0;
  border-top: 1px solid var(--g-bordure);
}
.g-ligne-candidature:first-child {
  border-top: 0;
}
.g-lignes-candidature-compactes .g-ligne-candidature {
  grid-template-columns: minmax(0, 1fr);
  padding: 8px 0;
}
.g-lc-categorie,
.g-lc-etat {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}
.g-lc-etat {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
}
.g-lc-nom {
  font-weight: 650;
}
.g-lc-description,
.g-lc-detail {
  font-size: 0.875rem;
  color: var(--g-texte-2);
}
.g-lc-description {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}
.g-lc-detail {
  flex-basis: 100%;
}
.g-lc-detail-danger {
  color: var(--e-danger);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
}
.g-lc-categorie {
  grid-area: categorie;
}
.g-lc-etat {
  grid-area: etat;
}
.g-lc-action {
  grid-area: action;
  display: flex;
  justify-content: flex-end;
}
/* Entre telephone et grand ecran : l'etat passe sous la categorie, l'action reste a droite. */
@media (max-width: 1199.98px) {
  .g-ligne-candidature {
    grid-template-columns: minmax(0, 1fr) 184px;
    grid-template-areas: "categorie action" "etat action";
  }
}
.g-lc-action .btn {
  width: 100%;
}
/* Section repliable (editions terminees) : le resume a l'allure d'un titre de section. */
.g-replie-section {
  margin-top: 8px;
}
.g-replie-section > summary {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  cursor: pointer;
  list-style: none;
}
.g-replie-section > summary::-webkit-details-marker {
  display: none;
}
.g-replie-section > summary::before {
  content: "\F285";
  font-family: "bootstrap-icons";
  font-size: 1.125rem;
  line-height: 1;
  color: var(--g-violet);
  transition: transform 150ms var(--g-courbe);
}
.g-replie-section[open] > summary::before {
  transform: rotate(90deg);
}
@media (max-width: 767.98px) {
  .g-a-faire-ligne {
    flex-wrap: wrap;
  }
  .g-a-faire-ligne .btn {
    flex: 1 1 100%;
    min-height: 44px;
  }
  .g-ligne-candidature {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "categorie" "etat" "action";
  }
  .g-lc-action .btn {
    min-height: 44px;
  }
}

/* ---------- Mon entreprise : page profil a deux colonnes (design system, partie II) ---------- */
.g-entete-logo {
  flex: none;
  display: grid;
  place-items: center;
  width: 88px;
  height: 56px;
  padding: 6px;
  border: 1px solid var(--g-bordure);
  border-radius: var(--g-rayon);
  background: #fff;
}
.g-entete-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.g-membre {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  margin: 8px 0 0;
  font-size: 0.875rem;
  color: var(--g-texte-2);
}
.g-membre-id {
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
  user-select: all;
}
@media (min-width: 992px) {
  .g-profil {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 400px);
  }
}
.g-profil-cote {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}
.g-profil-cote .card,
.g-profil-fiche {
  margin: 0;
}
.g-profil-aide {
  font-size: 0.875rem;
  color: var(--g-texte-2);
}
.g-groupe-champs {
  margin: 0 0 8px;
  padding: 0;
  border: 0;
  min-width: 0;
}
.g-groupe-champs + .g-groupe-champs {
  padding-top: 16px;
  border-top: 1px solid var(--g-bordure);
}
.g-groupe-champs > legend {
  float: none;
  width: auto;
  margin: 0 0 10px;
  font-size: 0.9375rem;
  line-height: 1.375rem;
  font-weight: 650;
}
@media (min-width: 768px) {
  .g-grille-champs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 16px;
  }
  .g-grille-adresse {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
  }
}
.g-ligne-empilee {
  flex-wrap: wrap;
}
.g-ligne-empilee .g-ligne-corps {
  flex: 1 1 160px;
}
.g-ligne-empilee .g-ligne-corps small {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
  margin-top: 4px;
}
.g-ligne-empilee .btn-outline-primary {
  flex: 1 1 100%;
}
.g-logo-apercus {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.g-logo-apercus .fondLogo {
  aspect-ratio: 16 / 10;
  min-height: 0;
}
.g-logo-apercus img,
.g-logo-vignette img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.g-logo-etat {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 10px 0 0;
  font-size: 0.875rem;
  color: var(--g-texte-2);
}
.g-logo-version {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--g-bordure);
}
.g-logo-version > div:last-child {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  min-width: 0;
}
.g-logo-vignette {
  flex: none;
  width: 88px;
  min-height: 56px;
  height: 56px;
  padding: 4px;
}
.g-replie-petit > summary {
  min-height: 40px;
  font-weight: 650;
}
.g-replie-petit > summary::before {
  font-size: 0.875rem;
}
/* Telephone et tablette : une colonne; une confirmation en attente passe avant la fiche. */
@media (max-width: 991.98px) {
  .g-profil-cote {
    display: contents;
  }
  .g-profil-prioritaire {
    order: -1;
  }
}

/* ---------- Zone de depot de fichier (champ natif conserve, libelle en francais) ---------- */
.g-depot {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 12px 16px;
  border: 1.5px dashed var(--g-bordure-champ, #8a93a8);
  border-radius: var(--g-rayon);
  background: var(--g-fond);
  color: var(--g-texte-2);
}
.g-depot:hover,
.g-depot.g-depot-survol {
  border-color: var(--g-violet);
  background: var(--g-lilas);
}
.g-depot:focus-within {
  outline: 2px solid var(--g-violet);
  outline-offset: 2px;
}
.g-depot > input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.g-depot .bi {
  flex: none;
  font-size: 1.5rem;
  color: var(--g-violet);
}
.g-depot-nom {
  display: block;
  font-weight: 650;
  color: var(--g-texte);
  overflow-wrap: anywhere;
}
.g-depot.is-invalid,
.g-depot:has(> .is-invalid) {
  border-color: var(--e-danger);
}

/* ---------- Page d'une edition : menu Actions, proprietes modifiables, cycle de vie ---------- */
/* Le bandeau coupe ce qui deborde (overflow: hidden) : le menu est pose par-dessus, hors du bandeau. */
.g-hero-cadre {
  position: relative;
}
.g-hero-menu {
  position: absolute;
  top: 20px;
  right: 24px;
  z-index: 3;
}
.g-menu-actions {
  min-width: 260px;
  max-width: 320px;
}
.g-menu-actions form {
  margin: 0;
}
.g-menu-actions .dropdown-item:disabled {
  opacity: 0.5;
}
.g-menu-raison {
  display: block;
  padding-top: 0;
  font-size: 0.8125rem;
  color: var(--g-texte-2);
  white-space: normal;
}
.g-proprietes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px 24px;
  margin: 0 0 12px;
}
.g-propriete dt {
  margin-bottom: 4px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--g-texte-2);
}
.g-propriete dd {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin: 0;
  font-weight: 600;
}
.g-propriete dd > span {
  padding-top: 4px;
  min-width: 0;
  overflow-wrap: anywhere;
}
.g-bouton-modifier {
  flex: none;
  width: 32px;
  height: 32px;
  font-size: 0.9375rem;
  color: var(--g-violet);
}
.g-bouton-modifier:hover {
  background: var(--g-lilas);
  color: var(--g-violet-fonce);
}
.g-bouton-ajout {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 999px;
  font-size: 1.125rem;
}
.g-cycle {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--g-bordure);
}
.g-cycle-titre {
  margin: 0 0 6px;
  font-size: 0.9375rem;
  font-weight: 650;
}
.g-cycle-sous-titre {
  margin: 12px 0 6px;
  font-size: 0.875rem;
  font-weight: 650;
}
.g-cycle-points {
  margin: 0 0 8px;
  padding: 0;
  list-style: none;
}
.g-cycle-points li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 6px;
}
@media (max-width: 767.98px) {
  .g-hero-cadre .g-hero {
    padding-top: 64px;
  }
  .g-hero-menu {
    top: 14px;
    right: 14px;
  }
}

/* ---------- Compteur : champ numerique avec boutons - et + (attribut data-compteur) ---------- */
.g-compteur {
  display: flex;
  align-items: stretch;
  max-width: 220px;
}
.g-compteur > .form-control {
  border-radius: 0;
  text-align: center;
  -moz-appearance: textfield;
  appearance: textfield;
}
.g-compteur > .form-control::-webkit-inner-spin-button,
.g-compteur > .form-control::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.g-compteur > .btn {
  flex: none;
  width: 44px;
  border-color: var(--g-bordure-champ, #8a93a8);
}
.g-compteur > .btn:first-child {
  border-radius: var(--g-rayon) 0 0 var(--g-rayon);
}
.g-compteur > .btn:last-child {
  border-radius: 0 var(--g-rayon) var(--g-rayon) 0;
}
.g-liste-categories a.fw-semibold {
  display: inline-block;
  padding: 3px 0;
}

/* ====================================================================================
   Guide UX/UI (docs/guide-ux-ui.html) : bulle d'information, liste triable, corbeille,
   pied de page.
   ==================================================================================== */

/* ---------- Bulle d'information : balise info ---------- */
.g-info {
  position: relative;
  display: inline-flex;
  vertical-align: middle;
}
.g-info-bouton {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--g-texte-2);
  font-size: 0.9375rem;
  line-height: 1;
  cursor: help;
}
.g-info-bouton:hover,
.g-info-ouverte > .g-info-bouton {
  background: var(--g-lilas);
  color: var(--g-violet-fonce);
}
/* Au doigt, la cible depasse l'icone sans deplacer la mise en page. */
@media (pointer: coarse) {
  .g-info-bouton::after {
    content: "";
    position: absolute;
    inset: -10px;
  }
}
.g-info-bulle {
  position: fixed;
  z-index: 1095;
  left: 0;
  top: 0;
  width: max-content;
  max-width: min(260px, calc(100vw - 16px));
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--g-nuit);
  color: #fff;
  box-shadow: var(--g-ombre-2);
  font-size: 0.8125rem;
  font-weight: 500;
  font-style: normal;
  line-height: 1.4;
  letter-spacing: 0;
  text-align: left;
  text-transform: none;
  white-space: normal;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 120ms var(--g-courbe);
}
.g-info-bulle::after {
  content: "";
  position: absolute;
  top: 100%;
  left: var(--g-info-fleche, 50%);
  margin-left: -5px;
  border: 5px solid transparent;
  border-top-color: var(--g-nuit);
}
.g-info-dessous > .g-info-bulle::after {
  top: auto;
  bottom: 100%;
  border-top-color: transparent;
  border-bottom-color: var(--g-nuit);
}
.g-info-ouverte > .g-info-bulle {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

/* ---------- Corbeille et poignee ---------- */
.g-form-icone {
  display: inline-flex;
}
.g-bouton-supprimer {
  flex: none;
  width: 32px;
  height: 32px;
  font-size: 0.9375rem;
  color: #a3232f;
}
.g-bouton-supprimer:hover {
  background: #fde8ea;
  color: #a3232f;
}
.g-bouton-icone:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.g-poignee {
  display: none;
  flex: none;
  width: 32px;
  height: 32px;
  font-size: 1.125rem;
  color: var(--g-bordure-champ, #8a93a8);
  cursor: grab;
  touch-action: none;
}
.g-poignee:hover,
.g-poignee:focus-visible {
  background: var(--g-lilas);
  color: var(--g-violet);
}
.g-script .g-poignee {
  display: inline-grid;
}
.g-script .g-sans-script {
  display: none !important;
}

/* ---------- Liste triable : attribut data-triable (static/js/triable.js) ---------- */
.g-triable {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: g-triable;
}
.g-triable > [data-id] {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--g-bordure);
  border-radius: 12px;
  background: var(--g-surface);
  counter-increment: g-triable;
}
.g-triable-numero::before {
  content: counter(g-triable) ".";
}
.g-triable-numero {
  flex: none;
  min-width: 1.5em;
  font-weight: 650;
  color: var(--g-texte-2);
  font-variant-numeric: tabular-nums;
}
.g-triable-corps {
  flex: 1 1 auto;
  min-width: 0;
  overflow-wrap: anywhere;
}
.g-triable-fin {
  flex: none;
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}
.g-triable > .g-saisie {
  position: fixed;
  z-index: 1080;
  margin: 0;
  border-color: #cfc5f2;
  box-shadow: var(--g-ombre-2);
}
.g-triable-place {
  border: 2px dashed #cfc5f2;
  border-radius: 12px;
  background: var(--g-lilas);
  opacity: 0.6;
}
.g-triable.g-en-cours,
.g-triable.g-en-cours .g-poignee {
  cursor: grabbing;
  user-select: none;
}
.g-triable[aria-busy="true"] {
  opacity: 0.7;
}
@media (max-width: 767.98px) {
  .g-poignee,
  .g-bouton-supprimer,
  .g-bouton-modifier {
    width: 44px;
    height: 44px;
  }
}

/* ---------- Notification d'echec ---------- */
.g-notification-erreur > .bi {
  color: #ffb4bb;
}

/* ---------- Pied de page : "Galaria par Optimation" sur chaque page ---------- */
.g-pied {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: auto;
  padding: 12px 24px 16px;
  font-size: 0.8125rem;
  color: var(--g-texte-2);
}
.g-pied img {
  flex: none;
}
@media (max-width: 991.98px) {
  .g-principal > .g-contenu {
    padding-bottom: 24px;
  }
  .g-principal > .g-pied {
    padding-bottom: 92px;
  }
}
.g-propriete-large {
  grid-column: span 2;
}
@media (max-width: 575.98px) {
  .g-propriete-large {
    grid-column: auto;
  }
}
.g-triable-fin > form,
.g-triable-fin .g-sans-script > form {
  display: inline-flex;
}
.g-triable {
  grid-template-columns: minmax(0, 1fr);
}
@media (max-width: 575.98px) {
  .g-triable > [data-id] {
    flex-wrap: wrap;
  }
  .g-triable-corps {
    flex-basis: calc(100% - 96px);
  }
  .g-triable-fin:not(.g-sans-script) {
    flex: 1 1 100%;
    justify-content: flex-end;
    margin-top: -4px;
  }
}

/* ---------- Menu du compte : la personne, l'organisation, puis la deconnexion ---------- */
.g-menu-compte {
  min-width: 260px;
  max-height: calc(100vh - 72px);
  overflow-y: auto;
}
.g-menu-compte-tete {
  display: grid;
  padding: 8px 16px 10px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--g-bordure);
  font-size: 0.8125rem;
  color: var(--g-texte-2);
}
.g-menu-compte-tete strong {
  font-size: 0.9375rem;
  color: var(--g-texte);
}
.g-menu-compte-tete span {
  overflow-wrap: anywhere;
}
.g-menu-compte .dropdown-header {
  margin: 0;
  padding: 8px 16px 4px;
  font-size: 0.8125rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--g-texte-2);
}
.g-menu-compte .dropdown-item.active {
  background: var(--g-lilas);
  color: var(--g-violet-fonce);
  font-weight: 600;
}
.g-menu-compte .dropdown-item.active .bi {
  color: var(--g-violet-fonce);
}
/* Le bouton du compte signale qu'on est sur une page de parametres. */
.g-compte:has(.dropdown-item.active) .g-avatar {
  box-shadow: 0 0 0 2px var(--g-surface), 0 0 0 4px var(--g-violet);
}
@media (max-width: 767.98px) {
  .dropdown-menu .dropdown-item {
    min-height: 44px;
  }
}

/* ---------- Liste de lignes simples (editions d'un Gala), bascule d'un module ---------- */
.g-liste-lignes {
  margin: 0;
  padding: 0;
  list-style: none;
}
.g-liste-lignes > li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding: 12px 0;
  border-top: 1px solid var(--g-bordure);
}
.g-liste-lignes > li:first-child {
  border-top: 0;
  padding-top: 0;
}
.g-liste-lignes > li:last-child {
  padding-bottom: 0;
}
.g-liste-lignes-corps {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  min-width: 0;
}
.g-liste-lignes-corps > a {
  padding: 3px 0;
}
.g-bascule {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.g-tableau-modules th[scope="row"] {
  font-weight: 400;
  min-width: 200px;
}
.g-carte-danger {
  border-left: 3px solid #c22b38;
}
.g-signalement {
  margin-bottom: 14px;
  padding-left: 12px;
  border-left: 3px solid var(--g-bordure);
}
.g-signalement:last-child {
  margin-bottom: 0;
}
.g-signalement-attente {
  border-left-color: #c77700;
}
@media (min-width: 992px) {
  .g-deux-colonnes-egales {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}
.g-liste-lignes-texte {
  flex: 1 1 240px;
  min-width: 0;
}
.g-modal-formulaire .modal-dialog.modal-lg {
  max-width: 800px;
}
.apercuCourriel {
  overflow-wrap: anywhere;
}
.g-deux-colonnes > * {
  min-width: 0;
}
/* Une cellule un demi-pixel plus haute que sa ligne faisait paraitre une barre de defilement. */
.table-responsive {
  padding-bottom: 1px;
}
.g-tableau-variables th {
  overflow-wrap: anywhere;
}
.g-tableau-variables .g-pastille {
  white-space: normal;
}
/* Fenetre "Modifier le courriel" : le message et, a cote, la legende des variables. */
.g-modal-formulaire .modal-dialog.modal-xl {
  max-width: 1040px;
}
.g-courriel-edition {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
}
.g-courriel-legende {
  padding: 14px 16px;
  border-radius: var(--g-rayon);
  background: var(--g-fond);
  font-size: 0.875rem;
}
.g-courriel-legende dt {
  margin-top: 10px;
  overflow-wrap: anywhere;
}
.g-courriel-legende dd {
  margin: 2px 0 0;
  color: var(--g-texte-2);
}
@media (min-width: 992px) {
  .g-courriel-edition {
    grid-template-columns: minmax(0, 1fr) 300px;
    align-items: start;
  }
  .g-courriel-legende {
    position: sticky;
    top: 0;
  }
}
.g-courriel-legende code,
.g-tableau-variables code {
  font-size: 0.8125rem;
}
.g-logos > li {
  flex-wrap: wrap;
  gap: 8px 12px;
}
.g-logos-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}
.g-tour {
  padding: 14px 0;
  border-top: 1px solid var(--g-bordure);
}
.g-tour:first-of-type {
  padding-top: 0;
  border-top: 0;
}
.g-tour:last-of-type {
  padding-bottom: 0;
}
.g-tour-titre {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  min-width: 0;
}
.g-jauge-ligne {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2px 12px;
  margin-bottom: 4px;
  font-size: 0.8125rem;
}
.g-jauge {
  height: 8px;
  overflow: hidden;
  border-radius: 4px;
  background: var(--g-bordure);
}
.g-jauge > span {
  display: block;
  height: 100%;
  border-radius: 4px;
  background: var(--g-violet);
}
.g-ponderations {
  padding: 12px 0;
  border-top: 1px solid var(--g-bordure);
}
.g-ponderations:first-of-type {
  padding-top: 0;
  border-top: 0;
}
.g-ponderations:last-of-type {
  padding-bottom: 0;
}
.g-ponderations .g-ligne-action {
  min-height: 32px;
  margin-bottom: 4px;
}
.g-poids-ligne {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 104px;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.g-poids-ligne > label {
  overflow-wrap: anywhere;
}
.g-liste-lignes > li > a {
  padding: 8px 4px;
}
.g-jauge-attention > span {
  background: #c77700;
}
.g-jauge-danger > span {
  background: #b3261e;
}
.g-tableau-quotas .g-jauge {
  max-width: 260px;
}
.g-carte-formulaire {
  max-width: 640px;
}
.g-journal-code code {
  font-size: 0.8125rem;
}
.g-journal-details {
  min-width: 200px;
  overflow-wrap: anywhere;
}
.g-journal th[scope="row"] {
  min-width: 180px;
}
.g-filtres {
  min-width: 0;
  max-width: 100%;
}
.g-filtres .form-control,
.g-filtres .form-select {
  min-width: 0;
  max-width: 100%;
}
.small code,
small code {
  font-size: 0.8125rem;
}
.g-tuile-attention {
  border-color: #e0a526;
}
.g-graphique-segments {
  display: block;
  border-radius: 4px;
}
.g-graphique-segments text {
  font-size: 13px;
  font-weight: 600;
}
.g-graphique-ecart {
  fill: var(--g-surface);
}
.g-graphique-piste {
  fill: #eef0f6;
}
.g-graphique-legende {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.875rem;
}
.g-graphique-legende li {
  display: flex;
  align-items: center;
  gap: 6px;
}
.g-graphique-pastille {
  flex: none;
  width: 12px;
  height: 12px;
  border-radius: 3px;
}
.g-graphique-lignes {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.g-graphique-lignes > li {
  display: grid;
  grid-template-columns: minmax(120px, 220px) minmax(0, 1fr) 40px;
  align-items: center;
  gap: 4px 12px;
}
.g-graphique-nom {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 0.875rem;
}
.g-graphique-valeur {
  text-align: right;
  font-weight: 600;
}
.g-graphique-lignes svg {
  display: block;
}
@media (max-width: 575.98px) {
  .g-graphique-lignes > li {
    grid-template-columns: minmax(0, 1fr) 40px;
  }
  .g-graphique-nom {
    grid-column: 1 / -1;
  }
}
.g-chrono {
  margin: 0;
  padding: 0;
  list-style: none;
}
.g-chrono > li {
  position: relative;
  padding: 0 0 16px 24px;
}
.g-chrono > li:last-child {
  padding-bottom: 0;
}
.g-chrono > li::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 14px;
  bottom: -6px;
  width: 1px;
  background: var(--g-bordure);
}
.g-chrono > li:last-child::before {
  display: none;
}
.g-chrono-date::after {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 11px;
  height: 11px;
  border: 2px solid var(--g-violet);
  border-radius: 50%;
  background: var(--g-surface);
}
.g-chrono-passe::after {
  border-color: var(--g-bordure-champ);
  background: var(--g-bordure-champ);
}
.g-chrono-passe {
  color: var(--g-texte-2);
}
.g-chrono-moment {
  display: block;
  font-size: 0.8125rem;
  color: var(--g-texte-2);
}
.g-chrono-libelle {
  display: block;
  font-weight: 600;
}
.g-chrono-passe .g-chrono-libelle {
  font-weight: 400;
}
.g-chrono-aujourdhui > span {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--g-violet);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
}
.g-chrono > .g-chrono-aujourdhui {
  padding-left: 0;
}
.g-chrono > .g-chrono-aujourdhui::before {
  display: none;
}
.g-graphique-barre {
  fill: #6250d6;
}
.g-graphique-barres > li {
  grid-template-columns: minmax(120px, 200px) minmax(0, 1fr) auto;
}
.g-graphique-barres .g-graphique-valeur small {
  font-weight: 400;
  color: var(--g-texte-2);
}
@media (max-width: 575.98px) {
  .g-graphique-barres > li {
    grid-template-columns: minmax(0, 1fr) auto;
  }
}
@media (max-width: 575.98px) {
  .g-ligne-action .g-filtres {
    flex-wrap: wrap;
  }
  .g-ligne-action > * {
    min-width: 0;
    max-width: 100%;
  }
}

/* ---------- Finition : texte de 13 px au moins, cibles de 24 px au moins ---------- */
.g-compte-rond,
.g-barre-mobile a {
  font-size: 0.8125rem;
}
.g-edition-ligne .g-ligne-action > a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 2px 0;
}
.g-legende-tableau {
  caption-side: top;
  padding: 0 0 6px;
  color: var(--g-texte);
  font-weight: 600;
}
