/* Thème « defias » pour Forgejo 15 : la forge de L'Assemblée des Défias aux couleurs de la charte graphique commune, version 1.0.0
   Copyright (c) 2026 L'Assemblée des Défias, licence MIT (fichier LICENSE du dépôt defias/charte).

   Base : le thème sombre de Forgejo (forgejo-dark), importé puis surchargé par ses variables CSS : pierre sombre au lieu de
   l'acier, or des Défias au lieu de l'orange, états de la charte. Quelques règles seulement donnent l'identité du site : barre
   de navigation sur la texture du forum d'époque, titres en Georgia, bouton principal au rouge des Défias, pied de page.
   Installation : forgejo/INSTALLATION.md. Images (custom/public/assets/img/defias/) : textures du thème PBWoW, GPL v2.
   Aucune ressource externe : l'import et les images viennent de la forge elle-même. */
@import url("./theme-forgejo-dark.css");

/* Nom affiché dans le choix du thème (pris en compte par les versions qui lisent ces métadonnées, ignoré sinon). */
gitea-theme-meta-info {
  --theme-display-name: "Défias";
  --theme-color-scheme: "dark";
}

:root {
  /* Échelle de « pierre » : remplace l'échelle d'acier bleuté dont dérivent la plupart des couleurs du thème sombre. */
  --steel-900: #0b0a09;
  --steel-850: #100f0d;
  --steel-800: #121110;
  --steel-750: #1a1815;
  --steel-700: #211e19;
  --steel-650: #2a251f;
  --steel-600: #3c352a;
  --steel-550: #4d4434;
  --steel-500: #5f594b;
  --steel-450: #6d604c;
  --steel-400: #857256;
  --steel-350: #9b8a6d;
  --steel-300: #a99f8c;
  --steel-250: #b9af9d;
  --steel-200: #c4b9a5;
  --steel-150: #d6ccb8;
  --steel-100: #e5decb;

  /* Couleur principale : l'or des Défias (liens, onglets actifs, sélection) ; texte sombre sur fond or. */
  --color-primary: #e1bd7a;
  --color-primary-contrast: #1a140a;
  --color-primary-dark-1: #e8c88b;
  --color-primary-dark-2: #f0d29b;
  --color-primary-dark-3: #f4dcb0;
  --color-primary-dark-4: #f7e3bf;
  --color-primary-dark-5: #fae9c9;
  --color-primary-dark-6: #fcefd8;
  --color-primary-dark-7: #fff7e8;
  --color-primary-light-1: #f0d29b;
  --color-primary-light-2: #c99a52;
  --color-primary-light-3: #b0884b;
  --color-primary-light-4: #8f6d3a;
  --color-primary-light-5: #7a5c30;
  --color-primary-light-6: #634a26;
  --color-primary-light-7: #4f3a1d;
  --color-primary-alpha-10: #c99a5219;
  --color-primary-alpha-20: #c99a5233;
  --color-primary-alpha-30: #c99a524b;
  --color-primary-alpha-40: #c99a5266;
  --color-primary-alpha-50: #c99a5280;
  --color-primary-alpha-60: #c99a5299;
  --color-primary-alpha-70: #c99a52b3;
  --color-primary-alpha-80: #c99a52cc;
  --color-primary-alpha-90: #c99a52e1;
  --color-primary-hover: var(--color-primary-light-1);
  --color-primary-active: var(--color-primary-light-2);
  --color-secondary-alpha-10: #3c352a19;
  --color-secondary-alpha-20: #3c352a33;
  --color-secondary-alpha-30: #3c352a4b;
  --color-secondary-alpha-40: #3c352a66;
  --color-secondary-alpha-50: #3c352a80;
  --color-secondary-alpha-60: #3c352a99;
  --color-secondary-alpha-70: #3c352ab3;
  --color-secondary-alpha-80: #3c352acc;
  --color-secondary-alpha-90: #3c352ae1;

  /* Surfaces. */
  --color-body: #121110;
  --color-box-header: #211e19;
  --color-box-body: #1a1815;
  --color-box-body-highlight: #2a251f;
  --color-header-wrapper: #100f0d;
  --color-header-wrapper-transparent: #100f0d00;
  --color-nav-bg: #0b0a09;
  --color-nav-hover-bg: #3c352a;
  --color-footer: #0b0a09;
  --color-card: #211e19;
  --color-menu: #1b1915;
  --color-hover: #2a251f;
  --color-active: #3c352a;
  --color-markup-code-block: #0e0d0c;
  --color-markup-code-inline: #221f1b;
  --color-code-bg: #0e0d0c;
  --color-input-background: #101012;
  --color-input-border: #857256;
  --color-input-border-hover: #a58c62;
  --color-input-text: #f0e6cf;
  --color-text-dark: #fff7e8;
  --color-text: #e5decb;
  --color-text-light: #d6ccb8;
  --color-text-light-1: #d6ccb8;
  --color-text-light-2: #c4b9a5;
  --color-text-light-3: #b9af9d;
  --color-label-bg: #3c352a;
  --color-label-hover-bg: #4d4434;
  --color-label-active-bg: #5f594b;
  --color-tooltip-bg: #070c21f2;
  --color-selection-bg: #8a4034;
  --color-selection-fg: #ffe0a2;
  --color-accent: #df9b49;
  --color-small-accent: #7a5c30;
  --color-highlight-bg: #c99a5226;
  --color-highlight-fg: #f0d29b;
  --color-gold: #e3c48c;

  /* États de la charte : succès, alerte, panne, information. */
  --color-success-border: #3f7a4a;
  --color-success-bg: #1c2b1d;
  --color-success-text: #9fe0a9;
  --color-warning-border: #8d7728;
  --color-warning-bg: #2b2614;
  --color-warning-text: #f2d77a;
  --color-error-border: #8f3a33;
  --color-error-bg: #341a17;
  --color-error-bg-active: #4a221d;
  --color-error-bg-hover: #4a221d;
  --color-error-text: #ffa49a;
  --color-info-border: #3c6290;
  --color-info-bg: #16212f;
  --color-info-text: #a9cbff;
  --color-red: #b03b30;
  --color-red-light: #de4f47;
  --color-green: #3c8a4a;
  --color-green-light: #4fa761;
  --color-yellow: #b8932a;
  --color-yellow-light: #cfa935;
  --color-orange: #c4692b;
  --color-orange-light: #dc7d34;
  --color-blue: #3c6eb0;
  --color-blue-light: #4f8fd6;

  /* Polices du système, comme le site : Arial pour l'interface dense, Georgia pour les titres (règles plus bas). */
  --fonts-proportional: Arial, Helvetica, "Liberation Sans", sans-serif;
  --fonts-monospace: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", "DejaVu Sans Mono", monospace;
}

/* Fond de page : pierre sombre et lueur dorée en haut, comme le site. */
body {
  background-color: #121110;
  background-image: radial-gradient(ellipse at 50% 0, #4f42304d, transparent 850px);
  background-repeat: no-repeat;
}

/* Barre de navigation : la barre du forum d'époque, filet en relief, liens en Georgia. */
#navbar {
  background: #252525 url("../img/defias/barre.webp") repeat-x;
  background-size: auto 100%;
  border-bottom: 3px ridge #7c7057;
  box-shadow: 0 4px 8px #0008;
}
#navbar .item { color: #ead6a8; text-shadow: 1px 1px 0 #000; }
#navbar > .navbar-left > a.item:not(#navbar-logo),
#navbar .navbar-left > a.item:not(#navbar-logo) { font-family: Georgia, "Times New Roman", "DejaVu Serif", serif; font-size: 15px; }
#navbar .item:hover,
#navbar .item.active { background: #ba98551f; color: #ffe0a0; }
#navbar-logo img { border-radius: 2px; box-shadow: 0 0 0 1px #000, 0 0 0 2px #a38b5f; }

/* Titres en Georgia, or. */
h1, h2, h3, h4,
.ui.header,
.repo-header .flex-item-title,
.flex-list .flex-item-title {
  font-family: Georgia, "Times New Roman", "DejaVu Serif", serif;
}
h1, h2, h3, h4, .ui.header { font-weight: normal; }
.ui.header,
.flex-list .flex-item-title a { color: #e3c48c; }
.repo-header .flex-item-title { font-size: 20px; color: #b0935c; }
.repo-header .flex-item-title a { color: #ebd3a1; text-shadow: 1px 1px 0 #000; }

/* Onglets (Code, Tickets…) : onglet actif souligné de l'or des Défias. */
.ui.secondary.pointing.menu .active.item,
.ui.secondary.pointing.menu .active.item:hover { border-color: #df9b49; color: #ffe0a0; }
.home .hero h1,
.home .hero h2 { color: #ebd3a1; text-shadow: 1px 2px 0 #000; }

/* En-têtes de boîtes (fichiers d'un dépôt, réglages) : la barre texturée des panneaux du forum. */
.ui.top.attached.header,
.repository .repo-button-row + .ui.attached.table thead th,
#repo-files-table .repo-file-line.repo-file-last-commit {
  background: #252525 url("../img/defias/barre.webp") repeat-x;
  background-size: auto 100%;
  border-color: #665c45;
}
.ui.top.attached.header { color: #e3c48c; text-shadow: 1px 1px 0 #000; }
.ui.segment,
.ui.attached.segment,
#repo-files-table { border-color: #4d4434; }

/* Bouton principal : le rouge des Défias, filet intérieur, texte or (contraste 5,7:1). */
.ui.primary.button,
.ui.primary.buttons .button,
.button.primary {
  background: linear-gradient(#8a4034, #54241e);
  border: 1px solid #b0884b;
  box-shadow: inset 0 0 0 2px #321511, 0 2px 5px #0009;
  color: #ffe0a2;
  font-family: Georgia, "Times New Roman", "DejaVu Serif", serif;
  font-weight: normal;
  text-shadow: 1px 1px 0 #000;
}
.ui.primary.button:hover,
.ui.primary.buttons .button:hover,
.ui.primary.button:focus,
.ui.primary.buttons .button:focus,
.button.primary:hover,
.button.primary:focus { background: linear-gradient(#a24c3c, #8a4034); color: #ffffff; }

/* Focus clavier toujours visible, comme la charte. */
:focus-visible { outline: 2px solid #f4d27f; outline-offset: 2px; }

/* Étiquettes de sujets : étiquettes carrées de WoWDB. */
.repo-topic.ui.label,
a.ui.label.repo-topic { background: #2b2416; border: 1px solid #9c7f48; color: #f0d49a; border-radius: 2px; }

/* Pied de page : fond dégradé et filet doré. */
.page-footer {
  background: linear-gradient(transparent, #0e0f0d) #0b0a09;
  border-top: 1px solid #5c4a2f;
  color: #a99f8c;
}
.page-footer a { color: #e1bd7a; }

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

/* Famille de sites et badge d'état au pied de la forge (02/10/2026) : même liste que les autres sites
   (custom/templates/custom/extra_links_footer.tmpl). */
.page-footer .famille { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin: 0 0 0 12px; }
.page-footer .famille ul { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0; padding: 0; list-style: none; }
.page-footer .famille a { color: #d9b36b; }
.page-footer .famille a[aria-current] { color: #f3dfae; font-weight: bold; text-decoration: none; }
.page-footer .famille-statut { display: inline-flex; align-items: center; line-height: 0; }
.page-footer .famille-statut img { display: block; height: 20px; width: auto; }
.page-footer .famille-legal { flex-basis: 100%; font-size: .92em; }

