/*
 * Enuxia Git — personnalisation générale
 *
 * Chargé sur toutes les pages via templates/custom/header.tmpl.
 */

/* --------------------------------------------------------------------------
   Fond global
   -------------------------------------------------------------------------- */

html,
body {
  background-color: var(--color-body, #070a14);
}

body {
  background-image:
    radial-gradient(
      circle at 10% -10%,
      rgba(30, 144, 255, 0.11),
      transparent 32rem
    ),
    radial-gradient(
      circle at 92% 5%,
      rgba(139, 92, 246, 0.09),
      transparent 34rem
    );
  background-attachment: fixed;
}

::selection {
  color: #ffffff;
  background: rgba(30, 144, 255, 0.45);
}

a {
  transition:
    color 140ms ease,
    background-color 140ms ease,
    border-color 140ms ease,
    opacity 140ms ease;
}

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */

#navbar {
  min-height: 56px;

  background:
    linear-gradient(
      90deg,
      rgba(30, 144, 255, 0.075),
      rgba(8, 12, 23, 0.96) 24%,
      rgba(8, 12, 23, 0.96) 76%,
      rgba(139, 92, 246, 0.075)
    ) !important;

  border-bottom: 1px solid rgba(255, 255, 255, 0.075) !important;

  box-shadow:
    0 10px 35px rgba(0, 0, 0, 0.22),
    0 1px 0 rgba(30, 144, 255, 0.035);

  backdrop-filter: blur(16px);
}

#navbar .brand {
  display: inline-flex !important;
  align-items: center;
  gap: 11px;
  padding-right: 18px !important;
}

#navbar .brand img,
#navbar .brand svg {
  width: 31px !important;
  height: 31px !important;
  object-fit: contain;
}

#navbar .brand::after {
  content: "Enuxia Git";

  color: #f4f7fb;
  font-size: 0.98rem;
  font-weight: 650;
  letter-spacing: -0.015em;
  white-space: nowrap;
}

#navbar .item {
  color: #c7cfdd !important;
  font-weight: 520;
}

#navbar .item:hover,
#navbar .active.item {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.055) !important;
}

#navbar .dropdown .menu {
  background: rgba(12, 18, 34, 0.985) !important;
  border: 1px solid rgba(255, 255, 255, 0.095) !important;

  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.42) !important;
}

/* --------------------------------------------------------------------------
   Boutons
   -------------------------------------------------------------------------- */

.ui.button {
  border-radius: 8px !important;

  transition:
    transform 140ms ease,
    filter 140ms ease,
    box-shadow 140ms ease,
    background-color 140ms ease,
    border-color 140ms ease !important;
}

.ui.primary.button,
.ui.primary.buttons .button {
  color: #ffffff !important;

  background-color: #1e90ff !important;
  background-image:
    linear-gradient(
      100deg,
      #1e90ff 0%,
      #657cff 52%,
      #8b5cf6 100%
    ) !important;

  border-color: transparent !important;

  box-shadow:
    0 8px 25px rgba(30, 144, 255, 0.16),
    0 5px 22px rgba(139, 92, 246, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.ui.primary.button:hover,
.ui.primary.buttons .button:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);

  box-shadow:
    0 11px 32px rgba(30, 144, 255, 0.22),
    0 7px 28px rgba(139, 92, 246, 0.13),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.ui.primary.button:active,
.ui.primary.buttons .button:active {
  filter: brightness(0.96);
  transform: translateY(0);
}

.ui.basic.button {
  background: rgba(255, 255, 255, 0.025) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}

.ui.basic.button:hover {
  background: rgba(255, 255, 255, 0.065) !important;
  border-color: rgba(30, 144, 255, 0.34) !important;
}

/* --------------------------------------------------------------------------
   Formulaires
   -------------------------------------------------------------------------- */

.ui.form input:not([type="checkbox"]):not([type="radio"]),
.ui.form textarea,
.ui.form select,
.ui.input input {
  color: #f4f7fb !important;

  background:
    linear-gradient(
      180deg,
      rgba(9, 14, 27, 0.96),
      rgba(7, 11, 22, 0.96)
    ) !important;

  border-color: rgba(255, 255, 255, 0.115) !important;
  border-radius: 7px !important;

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.015);
}

.ui.form input:focus,
.ui.form textarea:focus,
.ui.form select:focus,
.ui.input input:focus {
  border-color: rgba(30, 144, 255, 0.72) !important;

  box-shadow:
    0 0 0 3px rgba(30, 144, 255, 0.13) !important;
}

.ui.form label {
  color: #dfe5ee !important;
  font-weight: 560 !important;
}

.ui.checkbox label {
  color: #b8c1d0 !important;
}

/* --------------------------------------------------------------------------
   Cartes, segments et menus
   -------------------------------------------------------------------------- */

.ui.segment,
.ui.segments,
.ui.card,
.ui.cards > .card {
  border-color: rgba(255, 255, 255, 0.085) !important;
  border-radius: 9px !important;

  box-shadow:
    0 15px 44px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.018) !important;
}

.ui.attached.segment,
.ui.attached.header {
  border-color: rgba(255, 255, 255, 0.085) !important;
}

.ui.menu {
  border-color: rgba(255, 255, 255, 0.085) !important;
}

.ui.menu .item::before {
  background: rgba(255, 255, 255, 0.075) !important;
}

.ui.vertical.menu .active.item {
  color: #ffffff !important;
  background: rgba(30, 144, 255, 0.13) !important;

  border-left-color: #1e90ff !important;
}

.ui.tabular.menu {
  border-bottom-color: rgba(255, 255, 255, 0.09) !important;
}

.ui.tabular.menu .active.item,
.ui.secondary.pointing.menu .active.item {
  color: #ffffff !important;
  border-color: #1e90ff !important;
}

.ui.dropdown .menu {
  border-color: rgba(255, 255, 255, 0.09) !important;
  border-radius: 9px !important;

  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.38) !important;
}

/* --------------------------------------------------------------------------
   Labels et badges
   -------------------------------------------------------------------------- */

.ui.label {
  border-radius: 6px !important;
  font-weight: 560 !important;
}

.ui.basic.label {
  border-color: rgba(255, 255, 255, 0.11) !important;
}

/* --------------------------------------------------------------------------
   En-tête des dépôts et navigation des projets
   -------------------------------------------------------------------------- */

.repository .repo-header,
.repository .repo-header-wrapper {
  background:
    linear-gradient(
      180deg,
      rgba(11, 16, 32, 0.84),
      rgba(7, 10, 20, 0.52)
    );
}

.repository .repo-header .repo-title a {
  color: #f3f6fb !important;
}

.repository .repo-header .repo-title a:hover {
  color: #54adff !important;
}

.repository .header-wrapper {
  border-bottom-color: rgba(255, 255, 255, 0.08) !important;
}

.repository .ui.tabular.menu .item {
  color: #aeb8ca !important;
}

.repository .ui.tabular.menu .item:hover,
.repository .ui.tabular.menu .active.item {
  color: #ffffff !important;
}

/* --------------------------------------------------------------------------
   Fichiers, tableaux, commits
   -------------------------------------------------------------------------- */

table.ui.table,
.ui.table {
  border-color: rgba(255, 255, 255, 0.085) !important;
}

.ui.table thead th {
  color: #dfe5ee !important;

  background:
    linear-gradient(
      180deg,
      rgba(15, 21, 39, 0.98),
      rgba(11, 16, 32, 0.98)
    ) !important;

  border-color: rgba(255, 255, 255, 0.085) !important;
}

.ui.table tr td {
  border-color: rgba(255, 255, 255, 0.065) !important;
}

.ui.table tbody tr:hover {
  background: rgba(30, 144, 255, 0.055) !important;
}

#repo-files-table,
.repository.file.list .table {
  overflow: hidden;
  border-radius: 9px !important;
}

.commit-list .commit-list-row,
.issue.list .item {
  border-color: rgba(255, 255, 255, 0.075) !important;
}

/* --------------------------------------------------------------------------
   Code et Markdown
   -------------------------------------------------------------------------- */

.code-view,
.file-view,
.markup,
.chroma {
  border-color: rgba(255, 255, 255, 0.075) !important;
}

.markup pre,
.markup code,
.code-view,
.chroma {
  background-color: #050812 !important;
}

.markup {
  color: #dfe5ee;
}

.markup blockquote {
  color: #aeb8ca;
  border-left-color: #1e90ff;
}

.markup table tr {
  background-color: rgba(7, 10, 20, 0.72);
  border-color: rgba(255, 255, 255, 0.075);
}

.markup table tr:nth-child(2n) {
  background-color: rgba(14, 20, 38, 0.72);
}

/* --------------------------------------------------------------------------
   Page de connexion et écrans d'authentification
   -------------------------------------------------------------------------- */

.user.signin,
.user.signup,
.user.forgot.password,
.user.reset.password {
  padding-top: 48px;
}

.user.signin .ui.segment,
.user.signup .ui.segment,
.user.forgot.password .ui.segment,
.user.reset.password .ui.segment {
  background:
    linear-gradient(
      145deg,
      rgba(14, 20, 38, 0.96),
      rgba(7, 11, 22, 0.97)
    ) !important;

  border: 1px solid rgba(255, 255, 255, 0.095) !important;

  box-shadow:
    0 25px 75px rgba(0, 0, 0, 0.30),
    0 0 80px rgba(30, 144, 255, 0.035) !important;
}

.user.signin .ui.header,
.user.signup .ui.header,
.user.forgot.password .ui.header,
.user.reset.password .ui.header {
  color: #f7f9fc !important;
  letter-spacing: -0.025em;
}

.user.signin .ui.header:first-child::before,
.user.signup .ui.header:first-child::before,
.user.forgot.password .ui.header:first-child::before,
.user.reset.password .ui.header:first-child::before {
  content: "";

  display: block;
  width: 48px;
  height: 48px;
  margin: 0 auto 18px;

  background:
    url("../img/logo.svg")
    center / contain
    no-repeat;
}

/* --------------------------------------------------------------------------
   Page d'accueil Enuxia
   -------------------------------------------------------------------------- */

.enuxia-home {
  position: relative;

  width: min(1180px, calc(100% - 48px));
  min-height: calc(100vh - 150px);

  margin: 0 auto;
  padding: 78px 0 52px;
}

.enuxia-home::before {
  content: "";

  position: absolute;
  z-index: -1;
  top: 5%;
  left: 50%;

  width: min(760px, 90vw);
  height: 430px;

  background:
    radial-gradient(
      ellipse,
      rgba(30, 144, 255, 0.11),
      rgba(139, 92, 246, 0.055) 42%,
      transparent 72%
    );

  filter: blur(14px);
  transform: translateX(-50%);
  pointer-events: none;
}

.enuxia-home-hero {
  max-width: 940px;
  margin: 0 auto;
  text-align: center;
}

.enuxia-brand-lockup {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 17px;

  min-height: 58px;
  margin-bottom: 43px;
}

.enuxia-brand-symbol {
  display: block;
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.enuxia-brand-wordmark {
  display: block;
  width: auto;
  height: 39px;
  max-width: min(220px, 55vw);
  object-fit: contain;
}

.enuxia-home-kicker {
  margin: 0 0 22px;

  color: #8f9bb0;
  font-size: 0.76rem;
  font-weight: 750;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

.enuxia-home h1 {
  margin: 0;

  color: #f8fafc;

  font-size: clamp(3.1rem, 7.6vw, 6.65rem);
  font-weight: 620;
  line-height: 0.96;
  letter-spacing: -0.061em;
}

.enuxia-home h1 span {
  background:
    linear-gradient(
      100deg,
      #54adff 0%,
      #7587ff 48%,
      #a78bfa 100%
    );

  background-clip: text;
  -webkit-background-clip: text;

  color: transparent;
  -webkit-text-fill-color: transparent;
}

.enuxia-home-intro {
  max-width: 750px;
  margin: 34px auto 0;

  color: #aeb8ca;
  font-size: clamp(1.02rem, 2vw, 1.18rem);
  line-height: 1.72;
}

.enuxia-home-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 13px;

  margin-top: 35px;
}

.enuxia-home-actions .button {
  min-width: 166px;
  margin: 0 !important;
  padding: 0.92em 1.45em !important;
}

.enuxia-home-secondary {
  color: #e8edf5 !important;

  background: rgba(255, 255, 255, 0.035) !important;
  border: 1px solid rgba(255, 255, 255, 0.13) !important;
}

.enuxia-home-secondary:hover {
  color: #ffffff !important;

  background: rgba(255, 255, 255, 0.075) !important;
  border-color: rgba(30, 144, 255, 0.38) !important;
}

.enuxia-home-capabilities {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px;

  margin: 29px auto 0;
}

.enuxia-home-capabilities span {
  padding: 6px 10px;

  color: #8f9bb0;
  font-size: 0.75rem;
  font-weight: 590;
  letter-spacing: 0.025em;

  background: rgba(255, 255, 255, 0.028);
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 999px;
}

.enuxia-home-principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;

  margin-top: 82px;
}

.enuxia-home-card {
  position: relative;
  overflow: hidden;

  min-height: 236px;
  padding: 30px;

  background:
    linear-gradient(
      145deg,
      rgba(17, 26, 46, 0.82),
      rgba(9, 14, 27, 0.91)
    );

  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;

  box-shadow:
    0 20px 55px rgba(0, 0, 0, 0.17),
    inset 0 1px 0 rgba(255, 255, 255, 0.025);

  transition:
    transform 170ms ease,
    border-color 170ms ease,
    box-shadow 170ms ease;
}

.enuxia-home-card::before {
  content: "";

  position: absolute;
  top: 0;
  left: 0;

  width: 100%;
  height: 2px;

  background:
    linear-gradient(
      90deg,
      #1e90ff,
      #8b5cf6,
      transparent 82%
    );

  opacity: 0.72;
}

.enuxia-home-card:hover {
  transform: translateY(-3px);

  border-color: rgba(30, 144, 255, 0.27);

  box-shadow:
    0 26px 65px rgba(0, 0, 0, 0.22),
    0 0 42px rgba(30, 144, 255, 0.035);
}

.enuxia-home-number {
  display: block;
  margin-bottom: 43px;

  color: #54adff;
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.17em;
}

.enuxia-home-card h2 {
  margin: 0 0 13px;

  color: #f5f7fb;
  font-size: 1.24rem;
  font-weight: 630;
  letter-spacing: -0.022em;
}

.enuxia-home-card p {
  margin: 0;

  color: #9da8ba;
  font-size: 0.95rem;
  line-height: 1.66;
}

.enuxia-home-signature {
  margin: 54px 0 0;

  color: #707c91;
  font-size: 0.88rem;
  text-align: center;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

footer {
  background:
    linear-gradient(
      180deg,
      rgba(7, 10, 20, 0.88),
      rgba(4, 6, 17, 0.98)
    ) !important;

  border-top: 1px solid rgba(255, 255, 255, 0.07) !important;
}

footer .item {
  color: #8f9bb0 !important;
}

footer a.item:hover {
  color: #54adff !important;
}

/* --------------------------------------------------------------------------
   Focus et accessibilité
   -------------------------------------------------------------------------- */

:focus-visible {
  outline: 2px solid rgba(30, 144, 255, 0.88) !important;
  outline-offset: 2px !important;
}

/* --------------------------------------------------------------------------
   Barres de défilement
   -------------------------------------------------------------------------- */

* {
  scrollbar-width: thin;
  scrollbar-color: #34415f #080c17;
}

*::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

*::-webkit-scrollbar-track {
  background: #080c17;
}

*::-webkit-scrollbar-thumb {
  background: #34415f;
  border: 2px solid #080c17;
  border-radius: 999px;
}

*::-webkit-scrollbar-thumb:hover {
  background: #465777;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 900px) {
  .enuxia-home-principles {
    grid-template-columns: 1fr;
    max-width: 680px;
    margin-right: auto;
    margin-left: auto;
  }

  .enuxia-home-card {
    min-height: 0;
  }

  .enuxia-home-number {
    margin-bottom: 26px;
  }
}

@media (max-width: 767px) {
  #navbar .brand::after {
    display: none;
  }

  #navbar .brand {
    padding-right: 10px !important;
  }

  .enuxia-home {
    width: min(100% - 30px, 1180px);
    padding-top: 49px;
  }

  .enuxia-brand-lockup {
    gap: 13px;
    margin-bottom: 34px;
  }

  .enuxia-brand-symbol {
    width: 44px;
    height: 44px;
  }

  .enuxia-brand-wordmark {
    height: 31px;
  }

  .enuxia-home-actions {
    flex-direction: column;
    align-items: stretch;
    max-width: 330px;
    margin-right: auto;
    margin-left: auto;
  }

  .enuxia-home-actions .button {
    width: 100%;
  }

  .enuxia-home-principles {
    margin-top: 58px;
  }
}

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

/* ENUXIA HOME TOP START */

/* ==========================================================================
   Accueil Enuxia — mieux exploité en hauteur
   ========================================================================== */

body:has(.enuxia-home-top) {
  overflow: hidden !important;
}

body:has(.enuxia-home-top) footer {
  display: none !important;
}

body:has(.enuxia-home-top) .full.height {
  min-height: 100dvh !important;
}

.enuxia-home-top {
  position: relative;

  width: min(1440px, calc(100% - 64px)) !important;
  min-height: calc(100dvh - 56px) !important;

  margin: 0 auto !important;
  padding: 18px 0 20px !important;

  box-sizing: border-box;
}

.enuxia-home-top::before {
  content: "";

  position: absolute;
  z-index: -1;
  top: 34%;
  left: 50%;

  width: min(1000px, 92vw);
  height: min(640px, 78vh);

  background:
    radial-gradient(
      ellipse,
      rgba(30, 144, 255, 0.11),
      rgba(139, 92, 246, 0.055) 44%,
      transparent 74%
    );

  filter: blur(22px);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.enuxia-home-top .enuxia-home-shell {
  width: 100%;
  min-height: calc(100dvh - 56px - 38px);

  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.enuxia-home-top .enuxia-home-hero {
  width: min(1180px, 100%);
  margin: 0 auto !important;
  padding-top: clamp(34px, 6vh, 86px);

  text-align: center;
}

/* --------------------------------------------------------------------------
   Bloc marque Enuxia
   -------------------------------------------------------------------------- */

.enuxia-home-top .enuxia-hero-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 22px;

  margin: 0 0 42px;
}

.enuxia-home-top .enuxia-hero-brand-symbol {
  display: block;
  width: 80px;
  height: 80px;
  object-fit: contain;
}

.enuxia-home-top .enuxia-hero-brand-wordmark {
  display: block;
  width: auto;
  height: 76px;
  max-width: min(520px, 74vw);
  object-fit: contain;
}

/* --------------------------------------------------------------------------
   Texte
   -------------------------------------------------------------------------- */

.enuxia-home-top .enuxia-home-kicker {
  margin: 0 0 26px !important;

  color: #8f9bb0;
  font-size: 0.82rem !important;
  font-weight: 760;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.enuxia-home-top .enuxia-home-title,
.enuxia-home-top h1 {
  max-width: 1040px;
  margin: 0 auto !important;

  color: #f8fafc;
  font-size: clamp(3rem, 5.4vw, 5.55rem) !important;
  font-weight: 620;
  line-height: 0.95 !important;
  letter-spacing: -0.058em !important;
}

.enuxia-home-top .enuxia-home-title span,
.enuxia-home-top h1 span {
  background:
    linear-gradient(
      100deg,
      #54adff 0%,
      #6f86ff 48%,
      #a78bfa 100%
    );

  background-clip: text;
  -webkit-background-clip: text;

  color: transparent;
  -webkit-text-fill-color: transparent;
}

/* --------------------------------------------------------------------------
   Boutons
   -------------------------------------------------------------------------- */

.enuxia-home-top .enuxia-home-actions {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  gap: 14px !important;

  margin: 52px auto 0 !important;
}

.enuxia-home-top .enuxia-home-actions .button {
  min-width: 182px;
  margin: 0 !important;
  padding: 0.98em 1.6em !important;
}

.enuxia-home-top .enuxia-home-secondary {
  color: #e9edf5 !important;
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.13) !important;
}

.enuxia-home-top .enuxia-home-secondary:hover {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.07) !important;
  border-color: rgba(30, 144, 255, 0.36) !important;
}

/* --------------------------------------------------------------------------
   Suppressions défensives
   -------------------------------------------------------------------------- */

.enuxia-home-intro,
.enuxia-home-capabilities,
.enuxia-home-principles,
.enuxia-home-card,
.enuxia-home-signature {
  display: none !important;
}

/* --------------------------------------------------------------------------
   Desktop un peu moins haut
   -------------------------------------------------------------------------- */

@media (max-height: 860px) and (min-width: 980px) {
  .enuxia-home-top .enuxia-home-hero {
    padding-top: clamp(20px, 4vh, 54px);
  }

  .enuxia-home-top .enuxia-hero-brand {
    margin-bottom: 30px;
  }

  .enuxia-home-top .enuxia-hero-brand-symbol {
    width: 68px;
    height: 68px;
  }

  .enuxia-home-top .enuxia-hero-brand-wordmark {
    height: 64px;
    max-width: min(455px, 70vw);
  }

  .enuxia-home-top .enuxia-home-kicker {
    margin-bottom: 18px !important;
  }

  .enuxia-home-top .enuxia-home-title,
  .enuxia-home-top h1 {
    font-size: clamp(2.7rem, 4.8vw, 4.9rem) !important;
  }

  .enuxia-home-top .enuxia-home-actions {
    margin-top: 36px !important;
  }
}

/* --------------------------------------------------------------------------
   Tablette
   -------------------------------------------------------------------------- */

@media (max-width: 979px) and (min-width: 768px) {
  body:has(.enuxia-home-top) {
    overflow-y: auto !important;
    overflow-x: hidden !important;
  }

  .enuxia-home-top {
    width: min(100% - 40px, 1300px) !important;
    padding-top: 18px !important;
    padding-bottom: 34px !important;
  }

  .enuxia-home-top .enuxia-home-shell {
    min-height: calc(100dvh - 56px - 52px);
  }

  .enuxia-home-top .enuxia-home-hero {
    padding-top: 34px;
  }

  .enuxia-home-top .enuxia-hero-brand {
    gap: 16px;
    margin-bottom: 30px;
  }

  .enuxia-home-top .enuxia-hero-brand-symbol {
    width: 60px;
    height: 60px;
  }

  .enuxia-home-top .enuxia-hero-brand-wordmark {
    height: 58px;
    max-width: min(390px, 74vw);
  }

  .enuxia-home-top .enuxia-home-title,
  .enuxia-home-top h1 {
    font-size: clamp(2.5rem, 6.9vw, 4.25rem) !important;
  }

  .enuxia-home-top .enuxia-home-actions {
    margin-top: 40px !important;
  }
}

/* --------------------------------------------------------------------------
   Mobile
   -------------------------------------------------------------------------- */

@media (max-width: 767px) {
  body:has(.enuxia-home-top) {
    overflow-y: auto !important;
    overflow-x: hidden !important;
  }

  .enuxia-home-top {
    width: min(100% - 28px, 1300px) !important;
    padding-top: 18px !important;
    padding-bottom: 34px !important;
  }

  .enuxia-home-top .enuxia-home-shell {
    min-height: calc(100dvh - 56px - 52px);
  }

  .enuxia-home-top .enuxia-home-hero {
    padding-top: 26px;
  }

  .enuxia-home-top .enuxia-hero-brand {
    gap: 12px;
    margin-bottom: 24px;
  }

  .enuxia-home-top .enuxia-hero-brand-symbol {
    width: 44px;
    height: 44px;
  }

  .enuxia-home-top .enuxia-hero-brand-wordmark {
    height: 42px;
    max-width: min(260px, 70vw);
  }

  .enuxia-home-top .enuxia-home-kicker {
    margin-bottom: 16px !important;
    font-size: 0.72rem !important;
    letter-spacing: 0.16em;
  }

  .enuxia-home-top .enuxia-home-title,
  .enuxia-home-top h1 {
    font-size: clamp(2.1rem, 10vw, 3.3rem) !important;
    line-height: 0.98 !important;
  }

  .enuxia-home-top .enuxia-home-actions {
    flex-direction: column !important;
    align-items: stretch !important;

    width: min(100%, 330px);
    margin-top: 34px !important;
    margin-right: auto !important;
    margin-left: auto !important;
  }

  .enuxia-home-top .enuxia-home-actions .button {
    width: 100%;
    min-width: 0;
  }
}

/* ENUXIA HOME TOP END */

/* ENUXIA TITLE PROPORTIONS START */

/*
 * Le logo Enuxia doit visuellement dominer le titre.
 */

.enuxia-home-top .enuxia-hero-brand {
  margin-bottom: 46px !important;
}

.enuxia-home-top .enuxia-hero-brand-symbol {
  width: 86px !important;
  height: 86px !important;
}

.enuxia-home-top .enuxia-hero-brand-wordmark {
  height: 82px !important;
  max-width: min(560px, 76vw) !important;
}

.enuxia-home-top .enuxia-home-kicker {
  margin-bottom: 28px !important;
}

.enuxia-home-top .enuxia-home-title,
.enuxia-home-top h1 {
  max-width: 920px !important;

  font-size: clamp(
    2.35rem,
    4vw,
    4.15rem
  ) !important;

  line-height: 1.01 !important;
  letter-spacing: -0.048em !important;
}

.enuxia-home-top .enuxia-home-actions {
  margin-top: 54px !important;
}

/*
 * Écrans desktop moins hauts.
 */

@media (max-height: 860px) and (min-width: 980px) {
  .enuxia-home-top .enuxia-hero-brand {
    margin-bottom: 34px !important;
  }

  .enuxia-home-top .enuxia-hero-brand-symbol {
    width: 74px !important;
    height: 74px !important;
  }

  .enuxia-home-top .enuxia-hero-brand-wordmark {
    height: 70px !important;
    max-width: min(490px, 72vw) !important;
  }

  .enuxia-home-top .enuxia-home-title,
  .enuxia-home-top h1 {
    font-size: clamp(
      2.15rem,
      3.65vw,
      3.6rem
    ) !important;
  }

  .enuxia-home-top .enuxia-home-actions {
    margin-top: 42px !important;
  }
}

/*
 * Tablette.
 */

@media (max-width: 979px) and (min-width: 768px) {
  .enuxia-home-top .enuxia-home-title,
  .enuxia-home-top h1 {
    font-size: clamp(
      2.2rem,
      5.4vw,
      3.45rem
    ) !important;
  }
}

/*
 * Mobile.
 */

@media (max-width: 767px) {
  .enuxia-home-top .enuxia-hero-brand-symbol {
    width: 48px !important;
    height: 48px !important;
  }

  .enuxia-home-top .enuxia-hero-brand-wordmark {
    height: 46px !important;
  }

  .enuxia-home-top .enuxia-home-title,
  .enuxia-home-top h1 {
    font-size: clamp(
      1.9rem,
      8.4vw,
      2.75rem
    ) !important;

    line-height: 1.03 !important;
  }
}

/* ENUXIA TITLE PROPORTIONS END */

/* ENUXIA AUTH SIMPLE START */

/* Une seule carte pour toutes les pages d’authentification. */

:is(
  .user.signin,
  .user.signup,
  .user.forgot.password,
  .user.reset.password
) {
  padding: 48px 16px 60px !important;
}

:is(
  .user.signin,
  .user.forgot.password,
  .user.reset.password
) .column {
  width: min(500px, 100%) !important;
  max-width: 500px !important;
}

.user.signup .column {
  width: min(520px, 100%) !important;
  max-width: 520px !important;
}

:is(
  .user.signin,
  .user.signup,
  .user.forgot.password,
  .user.reset.password
) .column {
  position: relative;

  margin: 0 auto !important;
  padding: 32px 34px 28px !important;

  background:
    linear-gradient(
      145deg,
      rgba(13, 19, 36, 0.98),
      rgba(7, 11, 22, 0.99)
    ) !important;

  border: 1px solid rgba(255, 255, 255, 0.11) !important;
  border-radius: 14px !important;

  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.28) !important;
}

/* Un unique lockup Enuxia en haut de la carte. */

:is(
  .user.signin,
  .user.signup,
  .user.forgot.password,
  .user.reset.password
) .column::before {
  content: "";

  display: block;

  width: 270px;
  height: 54px;

  margin: 0 auto 20px;

  background-image:
    url("../img/logo.svg"),
    url("../img/enuxia-wordmark.svg");

  background-repeat:
    no-repeat,
    no-repeat;

  background-position:
    left center,
    right center;

  background-size:
    48px 48px,
    202px auto;
}

/* Le titre natif reste sous le logo. */

:is(
  .user.signin,
  .user.signup,
  .user.forgot.password,
  .user.reset.password
) .ui.header {
  margin: 0 0 26px !important;
  padding: 0 !important;

  color: #f5f7fb !important;
  font-size: 1.35rem !important;
  font-weight: 620 !important;
  line-height: 1.25 !important;
  text-align: center;

  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* Suppression des anciens logos pseudo-éléments. */

:is(
  .user.signin,
  .user.signup,
  .user.forgot.password,
  .user.reset.password
) .ui.header::before,
:is(
  .user.signin,
  .user.signup,
  .user.forgot.password,
  .user.reset.password
) .ui.header::after,
:is(
  .user.signin,
  .user.signup,
  .user.forgot.password,
  .user.reset.password
) .ui.segment::before,
:is(
  .user.signin,
  .user.signup,
  .user.forgot.password,
  .user.reset.password
) .ui.segment::after {
  display: none !important;
  content: none !important;
}

/* Tous les conteneurs internes disparaissent visuellement. */

:is(
  .user.signin,
  .user.signup,
  .user.forgot.password,
  .user.reset.password
) .column .ui.segment {
  min-height: 0 !important;

  margin: 0 !important;
  padding: 0 !important;

  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;

  box-shadow: none !important;
}

/* Formulaire. */

:is(
  .user.signin,
  .user.signup,
  .user.forgot.password,
  .user.reset.password
) .ui.form .field {
  margin-bottom: 16px !important;
}

:is(
  .user.signin,
  .user.signup,
  .user.forgot.password,
  .user.reset.password
) .ui.form label {
  margin-bottom: 7px !important;

  color: #dce3ed !important;
  font-size: 0.9rem !important;
  font-weight: 560 !important;
}

:is(
  .user.signin,
  .user.signup,
  .user.forgot.password,
  .user.reset.password
) .ui.form input:not([type="checkbox"]):not([type="radio"]) {
  min-height: 42px !important;
  padding: 9px 12px !important;

  font-size: 0.95rem !important;
}

:is(
  .user.signin,
  .user.signup,
  .user.forgot.password,
  .user.reset.password
) .ui.primary.button {
  min-height: 44px !important;
  margin-top: 4px !important;

  font-size: 0.95rem !important;
}

/* Bloc inférieur intégré à la même carte. */

:is(
  .user.signin,
  .user.signup,
  .user.forgot.password,
  .user.reset.password
) .column .ui.segment + .ui.segment {
  margin-top: 23px !important;
  padding-top: 19px !important;

  border-top:
    1px solid rgba(255, 255, 255, 0.09) !important;

  color: #aeb8c8 !important;
  font-size: 0.9rem !important;
  line-height: 1.5 !important;
  text-align: center !important;
}

/* Suppression certaine du deuxième logo. */

:is(
  .user.signin,
  .user.signup,
  .user.forgot.password,
  .user.reset.password
) .column .ui.segment + .ui.segment img,
:is(
  .user.signin,
  .user.signup,
  .user.forgot.password,
  .user.reset.password
) .column .ui.segment + .ui.segment .image,
:is(
  .user.signin,
  .user.signup,
  .user.forgot.password,
  .user.reset.password
) .column .ui.segment + .ui.segment svg {
  display: none !important;
}

/* Texte inférieur compact. */

:is(
  .user.signin,
  .user.signup,
  .user.forgot.password,
  .user.reset.password
) .column .ui.segment + .ui.segment p,
:is(
  .user.signin,
  .user.signup,
  .user.forgot.password,
  .user.reset.password
) .column .ui.segment + .ui.segment a {
  margin: 0 !important;

  font-size: 0.9rem !important;
  line-height: 1.5 !important;
}

/* CAPTCHA conservé dans le formulaire, sans boîte supplémentaire. */

.user.signup .captcha-img,
.user.signup img[src*="captcha"] {
  display: block !important;

  max-width: 250px !important;
  height: auto !important;

  margin: 5px auto 18px !important;
}

/* Mobile. */

@media (max-width: 600px) {
  :is(
    .user.signin,
    .user.signup,
    .user.forgot.password,
    .user.reset.password
  ) {
    padding: 26px 12px 40px !important;
  }

  :is(
    .user.signin,
    .user.signup,
    .user.forgot.password,
    .user.reset.password
  ) .column {
    padding: 27px 20px 24px !important;
  }

  :is(
    .user.signin,
    .user.signup,
    .user.forgot.password,
    .user.reset.password
  ) .column::before {
    width: 225px;
    height: 45px;

    background-size:
      40px 40px,
      168px auto;
  }
}

/* ENUXIA AUTH SIMPLE END */

/* ENUXIA AUTH SECONDARY TEXT START */

/*
 * Même rendu pour :
 * - Se connecter avec une clé d’accès
 * - Besoin d’un compte ?
 * - Avez-vous déjà un compte ?
 */

.user.signin .column > .ui.segment + .ui.segment,
.user.signup .column > .ui.segment + .ui.segment,
.user.signin .column > .ui.container.fluid:last-child,
.user.signup .column > .ui.container.fluid:last-child {
  color: #b7c0cf !important;
  font-size: 0.9rem !important;
  font-weight: 400 !important;
  line-height: 1.5 !important;
  text-align: center !important;
}

/*
 * Force les éléments internes à hériter de la même taille.
 */

.user.signin .column > .ui.segment + .ui.segment *,
.user.signup .column > .ui.segment + .ui.segment *,
.user.signin .column > .ui.container.fluid:last-child *,
.user.signup .column > .ui.container.fluid:last-child * {
  font-size: inherit !important;
  line-height: inherit !important;
}

/*
 * Liens légèrement accentués, sans être surdimensionnés.
 */

.user.signin .column > .ui.segment + .ui.segment a,
.user.signup .column > .ui.segment + .ui.segment a,
.user.signin .column > .ui.container.fluid:last-child a,
.user.signup .column > .ui.container.fluid:last-child a {
  font-size: inherit !important;
  font-weight: 520 !important;
}

/*
 * Ligne passkey alignée sur le reste.
 */

.user.signin .signin-passkey {
  display: block !important;

  margin: 0 0 7px !important;

  font-size: 0.9rem !important;
  font-weight: 400 !important;
  line-height: 1.5 !important;
}

/*
 * Évite les gros textes hérités de Gitea.
 */

.user.signin .column > .ui.segment + .ui.segment .field,
.user.signup .column > .ui.segment + .ui.segment .field {
  margin: 0 !important;

  font-size: 0.9rem !important;
  font-weight: 400 !important;
  line-height: 1.5 !important;
}

/* ENUXIA AUTH SECONDARY TEXT END */

/* ENUXIA SYNTAX START */

/* ==========================================================================
   Coloration syntaxique Enuxia pour Gitea / Chroma
   ========================================================================== */

/*
 * Fond et texte par défaut.
 */

.chroma,
.chroma code,
.code-view,
.code-view code,
.file-view code {
  color: #d8dee9 !important;
  background-color: #050812 !important;
}

/*
 * Lignes et numéros de lignes.
 */

.chroma .line {
  color: #d8dee9;
}

.chroma .lnt,
.chroma .ln,
.chroma .lntd,
.code-view .lines-num {
  color: #53627d !important;
}

.chroma .lntable {
  width: 100%;
  border-spacing: 0;
}

.chroma .hl {
  background-color: rgba(30, 144, 255, 0.12) !important;
}

/*
 * Commentaires.
 */

.chroma .c,
.chroma .ch,
.chroma .cm,
.chroma .c1,
.chroma .cs,
.chroma .cp,
.chroma .cpf {
  color: #71809f !important;
  font-style: italic;
}

/*
 * Mots-clés :
 * if, else, fn, let, class, public, return, async...
 */

.chroma .k,
.chroma .kc,
.chroma .kd,
.chroma .kn,
.chroma .kp,
.chroma .kr,
.chroma .kt {
  color: #c792ea !important;
  font-weight: 600;
}

/*
 * Fonctions et méthodes.
 */

.chroma .nf,
.chroma .fm {
  color: #82aaff !important;
}

/*
 * Classes, types, structures et exceptions.
 */

.chroma .nc,
.chroma .ne,
.chroma .nn {
  color: #ffc777 !important;
}

/*
 * Builtins :
 * print, len, String, Vec, Option...
 */

.chroma .nb,
.chroma .bp {
  color: #89ddff !important;
}

/*
 * Décorateurs, annotations et macros.
 */

.chroma .nd {
  color: #c792ea !important;
}

.chroma .ni {
  color: #f78c6c !important;
}

/*
 * Variables et identifiants.
 */

.chroma .n,
.chroma .nx,
.chroma .nv,
.chroma .vc,
.chroma .vg,
.chroma .vi,
.chroma .vm {
  color: #d8dee9 !important;
}

/*
 * Constantes.
 */

.chroma .no {
  color: #ffcb6b !important;
}

/*
 * Noms de paramètres et attributs.
 */

.chroma .na,
.chroma .py {
  color: #c3e88d !important;
}

/*
 * Labels.
 */

.chroma .nl {
  color: #89ddff !important;
}

/*
 * Balises HTML / XML.
 */

.chroma .nt {
  color: #f07178 !important;
  font-weight: 550;
}

/*
 * Chaînes de caractères.
 */

.chroma .s,
.chroma .sa,
.chroma .sb,
.chroma .sc,
.chroma .dl,
.chroma .sd,
.chroma .s1,
.chroma .s2,
.chroma .sh,
.chroma .sx,
.chroma .ss {
  color: #a6e3a1 !important;
}

/*
 * Échappements, interpolation et expressions régulières.
 */

.chroma .se,
.chroma .si,
.chroma .sr {
  color: #89ddff !important;
}

/*
 * Nombres.
 */

.chroma .m,
.chroma .mb,
.chroma .mf,
.chroma .mh,
.chroma .mi,
.chroma .il,
.chroma .mo {
  color: #f78c6c !important;
}

/*
 * Opérateurs.
 */

.chroma .o,
.chroma .ow {
  color: #89ddff !important;
}

/*
 * Ponctuation :
 * parenthèses, accolades, virgules, points-virgules.
 */

.chroma .p {
  color: #89a4c7 !important;
}

/*
 * Texte littéral et espaces.
 */

.chroma .l,
.chroma .ld {
  color: #a6e3a1 !important;
}

.chroma .w {
  color: #53627d !important;
}

/*
 * Erreurs de parsing.
 */

.chroma .err {
  color: #ff5370 !important;
  background-color: rgba(255, 83, 112, 0.12) !important;
  text-decoration: underline;
  text-decoration-color: rgba(255, 83, 112, 0.55);
}

/*
 * Markdown et sorties de terminal.
 */

.chroma .ge {
  font-style: italic;
}

.chroma .gs {
  font-weight: 700;
}

.chroma .gh,
.chroma .gu {
  color: #82aaff !important;
  font-weight: 650;
}

.chroma .go {
  color: #8f9bb0 !important;
}

.chroma .gp {
  color: #c792ea !important;
}

.chroma .gr,
.chroma .gt {
  color: #ff5370 !important;
}

/*
 * Diffs.
 */

.chroma .gd {
  color: #ff7b72 !important;
  background-color: rgba(255, 123, 114, 0.10) !important;
}

.chroma .gi {
  color: #a6e3a1 !important;
  background-color: rgba(166, 227, 161, 0.09) !important;
}

/*
 * Surlignage des lignes dans les vues de fichiers.
 */

.code-view .code-line:hover,
.code-view .code-line:target,
.code-view .code-line.highlight {
  background-color: rgba(30, 144, 255, 0.075) !important;
}

/*
 * Sélection.
 */

.chroma ::selection,
.code-view ::selection {
  color: #ffffff !important;
  background-color: rgba(30, 144, 255, 0.42) !important;
}

/*
 * Lisibilité générale du code.
 */

.chroma,
.code-view,
.file-view code,
.markup pre code {
  font-family:
    "JetBrains Mono",
    "Cascadia Code",
    "SFMono-Regular",
    Consolas,
    "Liberation Mono",
    monospace !important;

  font-size: 0.9rem;
  line-height: 1.55;
  font-variant-ligatures: none;
}

/* ENUXIA SYNTAX END */
