:root {
  --kabyle-blue: #0066b3;
  --kabyle-green: #00843d;
  --kabyle-yellow: #f7c600;
  --kabyle-red: #d52b1e;
  --ink: #10202e;
  --night: #06243d;
  --mountain: #06442d;
  --ivory: #fff3d2;
  --paper: #fffaf0;
  --saffron: var(--kabyle-yellow);
  --garance: var(--kabyle-red);
  --olive: var(--kabyle-green);
  --clay: #8f4b16;
  --line: rgba(16, 32, 46, 0.14);
}

html {
  scroll-padding-top: 92px;
}

body {
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(0, 102, 179, 0.08), transparent 34rem),
    radial-gradient(circle at top right, rgba(0, 132, 61, 0.08), transparent 30rem),
    linear-gradient(180deg, rgba(255, 243, 210, 0.98), rgba(255, 250, 240, 1)),
    repeating-linear-gradient(90deg, rgba(16, 32, 46, 0.032) 0 1px, transparent 1px 44px);
}

body,
.text-ink,
[class*="text-ink/["] {
  color: rgba(16, 32, 46, 0.92) !important;
}

[class*="text-night/"] {
  color: rgba(9, 32, 51, 0.9) !important;
}

[class*="text-white/"] {
  color: rgba(255, 255, 255, 0.9) !important;
}

.text-garance {
  color: var(--garance) !important;
}

.text-olive {
  color: var(--olive) !important;
}

.text-clay {
  color: var(--clay) !important;
}

.text-saffron {
  color: #8a6200 !important;
}

.bg-night .text-saffron,
.bg-mountain .text-saffron,
header .text-saffron,
footer .text-saffron,
section[class*="bg-night"] .text-saffron,
section[class*="bg-mountain"] .text-saffron {
  color: #ffe36d !important;
}

.bg-night {
  background-color: var(--night) !important;
}

.bg-mountain {
  background-color: var(--mountain) !important;
}

.bg-saffron {
  background-color: var(--saffron) !important;
}

.bg-garance {
  background-color: #ad2c27 !important;
}

.bg-olive {
  background-color: #5f7028 !important;
}

.bg-clay {
  background-color: #914b2b !important;
}

.text-night {
  color: var(--night) !important;
}

.border-night,
[class*="border-night"] {
  border-color: rgba(6, 36, 61, 0.38) !important;
}

a,
button {
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

a:hover,
button:hover {
  transform: translateY(-1px);
}

body > header {
  background:
    linear-gradient(90deg, rgba(6, 36, 61, 0.99), rgba(0, 102, 179, 0.96) 42%, rgba(6, 68, 45, 0.98)) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 18px 46px rgba(7, 24, 39, 0.22);
  left: auto !important;
  position: sticky !important;
  right: auto !important;
  top: 0 !important;
  width: 100%;
  z-index: 70 !important;
}

body > header::before {
  background: linear-gradient(
    90deg,
    var(--kabyle-blue) 0 25%,
    var(--kabyle-green) 25% 50%,
    var(--kabyle-yellow) 50% 75%,
    var(--kabyle-red) 75% 100%
  );
  content: "";
  display: block;
  height: 5px;
  width: 100%;
}

body > header nav {
  gap: 1rem !important;
  min-height: 76px;
}

body > header nav > a:first-child {
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  color: #fff !important;
  flex-wrap: wrap;
  max-width: 100%;
  min-height: 48px;
  padding: 0.4rem 0.7rem 0.4rem 0.45rem;
  text-decoration: none !important;
}

body > header nav > a:first-child span:first-child {
  background:
    linear-gradient(135deg, var(--kabyle-yellow), #ffe681 52%, var(--kabyle-red)) !important;
  border-color: transparent !important;
  color: var(--night) !important;
  font-weight: 900;
}

body > header nav > a:first-child span:last-child {
  color: #fff !important;
  font-weight: 900;
}

.construction-badge {
  align-items: center;
  background: rgba(247, 198, 0, 0.16);
  border: 1px solid rgba(247, 198, 0, 0.52);
  border-radius: 999px;
  color: #ffe36d !important;
  display: inline-flex;
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1;
  min-height: 1.55rem;
  padding: 0.28rem 0.52rem;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
}

body > header nav > div:not(#menu-mobile) {
  align-items: center;
  background: rgba(255, 255, 255, 0.075);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  gap: 0.25rem !important;
  max-width: 100%;
  overflow-x: auto;
  padding: 0.35rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.35) transparent;
}

body > header nav > div:not(#menu-mobile) > a:not([class*="bg-saffron"]) {
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.92) !important;
  display: inline-flex;
  min-height: 2.5rem;
  padding: 0.62rem 0.78rem;
  text-decoration: none !important;
  white-space: nowrap;
}

body > header nav > div:not(#menu-mobile) > a:not([class*="bg-saffron"]):hover {
  background: rgba(247, 198, 0, 0.18);
  color: #fff !important;
}

body > header nav > div:not(#menu-mobile) > a[class*="bg-saffron"] {
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 10px;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.18);
  min-height: 2.5rem;
  padding: 0.62rem 0.95rem;
  white-space: nowrap;
}

body > header nav > div:not(#menu-mobile) > a[class*="bg-saffron"]:hover {
  background: #ffd45a !important;
}

#menu-mobile {
  background: linear-gradient(180deg, rgba(6, 36, 61, 0.99), rgba(6, 68, 45, 0.99)) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
  box-shadow: 0 22px 52px rgba(7, 24, 39, 0.32);
}

#menu-mobile a:not([class*="bg-saffron"]) {
  color: rgba(255, 255, 255, 0.95) !important;
}

#menu-mobile a:not([class*="bg-saffron"]):hover {
  background: rgba(255, 255, 255, 0.12) !important;
}

header nav a:not([class*="bg-saffron"]):hover,
footer a:hover {
  text-decoration: underline;
  text-underline-offset: 0.28em;
}

a[class*="bg-saffron"],
a[class*="bg-night"],
a[class*="border"] {
  box-shadow: 0 12px 28px rgba(9, 32, 51, 0.12);
}

a[class*="bg-saffron"],
button[class*="bg-saffron"] {
  color: var(--night) !important;
}

a[class*="bg-night"],
button[class*="bg-night"] {
  color: #fff !important;
}

article[class*="rounded-md"],
div[class*="rounded-md"].shadow-soft,
a.group[class*="rounded-md"] {
  border-radius: 10px;
}

article[class*="rounded-md"],
a.group[class*="rounded-md"] {
  overflow: hidden;
  position: relative;
}

article[class*="rounded-md"]::before,
a.group[class*="rounded-md"]::before {
  background: linear-gradient(
    90deg,
    var(--kabyle-blue) 0 25%,
    var(--kabyle-green) 25% 50%,
    var(--kabyle-yellow) 50% 75%,
    var(--kabyle-red) 75% 100%
  );
  content: "";
  height: 4px;
  left: 0;
  opacity: 0.95;
  position: absolute;
  right: 0;
  top: 0;
}

article[class*="bg-white"],
div[class*="bg-white"].shadow-soft,
a.group[class*="bg-ivory"],
article[class*="bg-ivory"],
div[class*="bg-ivory"] {
  background-color: var(--paper) !important;
  border-color: var(--line) !important;
}

section.bg-white {
  background-color: #fffdf7 !important;
}

section.bg-ivory,
.pattern-band {
  background-color: var(--ivory) !important;
}

section.bg-night,
footer.bg-night {
  background:
    linear-gradient(135deg, #06243d 0%, #0066b3 48%, #06442d 100%) !important;
}

a.group[class*="rounded-md"] {
  display: block;
}

a.group[class*="rounded-md"]:hover,
article[class*="shadow-soft"]:hover {
  box-shadow: 0 22px 52px rgba(9, 32, 51, 0.16);
}

.site-directory {
  background:
    linear-gradient(180deg, rgba(255, 250, 240, 0.98), rgba(255, 243, 210, 0.94));
  border-top: 1px solid rgba(16, 32, 46, 0.14);
}

.project-cta {
  background:
    linear-gradient(135deg, rgba(6, 36, 61, 0.98), rgba(0, 102, 179, 0.95) 46%, rgba(0, 132, 61, 0.95));
  color: #fff;
  overflow: hidden;
  position: relative;
}

.project-cta::before {
  background: linear-gradient(
    90deg,
    var(--kabyle-blue) 0 25%,
    var(--kabyle-green) 25% 50%,
    var(--kabyle-yellow) 50% 75%,
    var(--kabyle-red) 75% 100%
  );
  content: "";
  display: block;
  height: 5px;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
}

.project-cta a {
  align-items: center;
  background: var(--saffron);
  border-radius: 8px;
  color: var(--night) !important;
  display: inline-flex;
  font-weight: 900;
  gap: 0.55rem;
  justify-content: center;
  min-height: 3rem;
  padding: 0.8rem 1rem;
  text-decoration: none;
}

.project-cta a:hover {
  background: #fffdf7 !important;
  color: var(--night) !important;
  text-decoration: none;
}

.project-cta .text-saffron {
  color: #ffe36d !important;
}

.project-cta-points {
  color: rgba(255, 255, 255, 0.84);
  display: grid;
  font-size: 0.95rem;
  font-weight: 800;
  gap: 0.55rem;
  line-height: 1.55;
  margin-top: 1rem;
}

.project-cta-points li {
  align-items: flex-start;
  display: flex;
  gap: 0.55rem;
}

.project-cta-points li::before {
  background: var(--saffron);
  border-radius: 999px;
  content: "";
  flex: 0 0 auto;
  height: 0.5rem;
  margin-top: 0.5rem;
  width: 0.5rem;
}

.site-directory::before {
  background: linear-gradient(
    90deg,
    var(--kabyle-blue) 0 25%,
    var(--kabyle-green) 25% 50%,
    var(--kabyle-yellow) 50% 75%,
    var(--kabyle-red) 75% 100%
  );
  content: "";
  display: block;
  height: 4px;
  margin: -2rem 0 1.5rem;
}

.site-directory a {
  border: 1px solid rgba(16, 32, 46, 0.12);
  border-radius: 8px;
  color: var(--night);
  display: inline-flex;
  font-size: 0.875rem;
  font-weight: 800;
  min-height: 2.75rem;
  padding: 0.72rem 0.95rem;
}

.site-directory a:hover {
  background: var(--saffron);
  border-color: transparent;
  color: var(--night);
  text-decoration: none;
}

.hover\:bg-saffron:hover {
  background-color: var(--saffron) !important;
  color: var(--night) !important;
}

.hover\:bg-white:hover {
  background-color: #fffdf7 !important;
  color: var(--night) !important;
}

.hover\:bg-mountain:hover {
  background-color: var(--mountain) !important;
}

.home-hero::before {
  background:
    linear-gradient(
      90deg,
      var(--kabyle-blue) 0 25%,
      var(--kabyle-green) 25% 50%,
      var(--kabyle-yellow) 50% 75%,
      var(--kabyle-red) 75% 100%
    );
  bottom: 0;
  content: "";
  height: 6px;
  left: 0;
  position: absolute;
  right: 0;
  z-index: 5;
}

.hero-link {
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: #fff !important;
  display: inline-flex;
  min-height: 2.35rem;
  padding: 0.55rem 0.9rem;
  text-decoration: none !important;
}

.hero-link:hover {
  background: var(--saffron);
  border-color: transparent;
  color: var(--night) !important;
}

.kabyle-signal {
  border-bottom: 1px solid rgba(16, 32, 46, 0.12);
  border-top: 1px solid rgba(16, 32, 46, 0.08);
}

.signal-blue {
  background: linear-gradient(135deg, #004f96, var(--kabyle-blue));
}

.signal-green {
  background: linear-gradient(135deg, #006b31, var(--kabyle-green));
}

.signal-yellow {
  background: linear-gradient(135deg, #efb900, #ffe36d);
}

.signal-red {
  background: linear-gradient(135deg, #a91f16, var(--kabyle-red));
}

.kabyle-signal > div > div {
  box-shadow: 0 18px 36px rgba(6, 36, 61, 0.12);
}

.bg-white {
  color: var(--ink);
}

.bg-ivory {
  color: var(--ink);
}

.bg-night,
.bg-mountain,
.bg-garance {
  color: #fff;
}

.objective-list li,
.check-list li {
  align-items: flex-start;
  display: flex;
  gap: 0.65rem;
}

.objective-list li::before,
.check-list li::before {
  background: var(--saffron);
  border-radius: 999px;
  content: "";
  flex: 0 0 auto;
  height: 0.52rem;
  margin-top: 0.55rem;
  width: 0.52rem;
}

.stat-strip {
  border-top: 1px solid rgba(16, 32, 46, 0.1);
  border-bottom: 1px solid rgba(16, 32, 46, 0.1);
}

@media (max-width: 640px) {
  h1,
  h2 {
    overflow-wrap: anywhere;
  }

  .site-directory a {
    width: 100%;
  }
}

.portal-hero {
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.075) 0 1px, transparent 1px 18px),
    linear-gradient(135deg, #06243d 0%, #0066b3 42%, #06442d 78%, #12371f 100%);
  overflow: hidden;
  position: relative;
}

.portal-hero::after {
  background: linear-gradient(
    90deg,
    var(--kabyle-blue) 0 25%,
    var(--kabyle-green) 25% 50%,
    var(--kabyle-yellow) 50% 75%,
    var(--kabyle-red) 75% 100%
  );
  bottom: 0;
  content: "";
  height: 6px;
  left: 0;
  position: absolute;
  right: 0;
}

.portal-hero > div {
  position: relative;
  z-index: 1;
}

.portal-panel,
.portal-sidebar,
.portal-form,
.portal-toolbar {
  border: 1px solid rgba(16, 32, 46, 0.14);
  border-radius: 8px;
  box-shadow: 0 20px 52px rgba(6, 36, 61, 0.12);
}

.portal-panel {
  background: rgba(255, 250, 240, 0.12);
  border-color: rgba(255, 255, 255, 0.22);
  padding: clamp(1rem, 2vw, 1.5rem);
}

.portal-kpi-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.portal-kpi-grid div {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  min-height: 7.25rem;
  padding: 1rem;
}

.portal-kpi-grid span {
  color: #ffe36d;
  display: block;
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
}

.portal-kpi-grid p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.88rem;
  font-weight: 800;
  margin-top: 0.5rem;
}

.portal-toolbar {
  background: linear-gradient(180deg, #fffdf7, var(--paper));
  display: grid;
  gap: 1rem;
  padding: clamp(1rem, 2vw, 1.25rem);
}

.portal-search {
  align-items: center;
  background: #fff;
  border: 1px solid rgba(6, 36, 61, 0.18);
  border-radius: 8px;
  color: var(--night);
  display: flex;
  gap: 0.7rem;
  min-height: 3.25rem;
  padding: 0 1rem;
}

.portal-search input {
  background: transparent;
  border: 0;
  color: var(--ink);
  font-weight: 700;
  min-height: 3rem;
  outline: 0;
  width: 100%;
}

.portal-search input::placeholder {
  color: rgba(16, 32, 46, 0.56);
}

.portal-filters {
  align-items: end;
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
}

.portal-filters label,
.portal-form label {
  color: var(--night);
  display: grid;
  font-size: 0.92rem;
  font-weight: 900;
  gap: 0.42rem;
}

.portal-filters select,
.portal-form input,
.portal-form select,
.portal-form textarea {
  background: #fff;
  border: 1px solid rgba(6, 36, 61, 0.18);
  border-radius: 8px;
  color: var(--ink);
  font-weight: 700;
  min-height: 2.9rem;
  padding: 0.72rem 0.85rem;
  width: 100%;
}

.portal-form textarea {
  line-height: 1.65;
  resize: vertical;
}

.portal-filters button,
.portal-form button,
.portal-card-actions button {
  align-items: center;
  border-radius: 8px;
  display: inline-flex;
  font-size: 0.9rem;
  font-weight: 900;
  gap: 0.5rem;
  justify-content: center;
  min-height: 2.9rem;
  padding: 0.72rem 0.95rem;
}

.portal-filters button,
.portal-form button {
  background: var(--night);
  color: #fff;
}

.portal-form button.secondary {
  background: #fff;
  border: 1px solid rgba(6, 36, 61, 0.18);
  color: var(--night);
}

.portal-filters button:hover,
.portal-form button:hover,
.portal-card-actions button:hover {
  background: var(--kabyle-blue);
  color: #fff;
}

.portal-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.portal-tabs button {
  background: #fffdf7;
  border: 1px solid rgba(6, 36, 61, 0.16);
  border-radius: 8px;
  color: var(--night);
  font-size: 0.9rem;
  font-weight: 900;
  min-height: 2.75rem;
  padding: 0.66rem 0.9rem;
}

.portal-tabs button.is-active {
  background: linear-gradient(135deg, var(--night), var(--kabyle-blue));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 14px 28px rgba(6, 36, 61, 0.18);
}

.portal-results {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
}

.portal-card {
  background: #fffdf7;
  border: 1px solid rgba(16, 32, 46, 0.13);
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(6, 36, 61, 0.09);
  color: var(--ink);
  overflow: hidden;
  padding: 1rem;
  position: relative;
}

.portal-card::before {
  background: linear-gradient(
    90deg,
    var(--kabyle-blue) 0 25%,
    var(--kabyle-green) 25% 50%,
    var(--kabyle-yellow) 50% 75%,
    var(--kabyle-red) 75% 100%
  );
  content: "";
  height: 4px;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
}

.portal-card-top,
.portal-card-actions {
  align-items: center;
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
}

.portal-type {
  align-items: center;
  background: rgba(0, 102, 179, 0.1);
  border: 1px solid rgba(0, 102, 179, 0.16);
  border-radius: 8px;
  color: var(--night);
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 900;
  gap: 0.38rem;
  min-height: 2rem;
  padding: 0.35rem 0.55rem;
}

.portal-type svg,
.portal-card-actions svg,
.portal-favorite svg {
  height: 1rem;
  width: 1rem;
}

.portal-favorite {
  align-items: center;
  background: #fff;
  border: 1px solid rgba(6, 36, 61, 0.16);
  border-radius: 8px;
  color: var(--night);
  display: inline-flex;
  height: 2.25rem;
  justify-content: center;
  width: 2.25rem;
}

.portal-favorite.is-active {
  background: var(--kabyle-yellow);
  border-color: transparent;
  color: var(--night);
}

.portal-card h3 {
  color: var(--night);
  font-size: 1.22rem;
  font-weight: 900;
  line-height: 1.25;
  margin-top: 1rem;
}

.portal-card p {
  color: rgba(16, 32, 46, 0.78);
  font-size: 0.95rem;
  line-height: 1.65;
  margin-top: 0.7rem;
}

.portal-meta {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 1rem;
}

.portal-meta div {
  background: rgba(255, 243, 210, 0.72);
  border: 1px solid rgba(6, 36, 61, 0.08);
  border-radius: 8px;
  min-height: 4.2rem;
  padding: 0.65rem;
}

.portal-meta dt {
  color: rgba(6, 36, 61, 0.58);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.portal-meta dd {
  color: var(--night);
  font-size: 0.86rem;
  font-weight: 900;
  margin-top: 0.18rem;
}

.portal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
  margin-top: 1rem;
}

.portal-chip {
  background: rgba(0, 132, 61, 0.1);
  border: 1px solid rgba(0, 132, 61, 0.16);
  border-radius: 8px;
  color: var(--mountain);
  font-size: 0.75rem;
  font-weight: 900;
  padding: 0.32rem 0.48rem;
}

.portal-card-actions {
  border-top: 1px solid rgba(16, 32, 46, 0.1);
  margin-top: 1rem;
  padding-top: 1rem;
}

.portal-card-actions span {
  color: rgba(16, 32, 46, 0.7);
  font-size: 0.82rem;
  font-weight: 900;
}

.portal-card-actions button {
  background: var(--kabyle-yellow);
  color: var(--night);
  min-height: 2.45rem;
  padding: 0.58rem 0.75rem;
}

.portal-sidebar,
.portal-form {
  background: #fffdf7;
  padding: clamp(1rem, 2vw, 1.25rem);
}

.portal-mini-card {
  background: rgba(255, 243, 210, 0.72);
  border: 1px solid rgba(16, 32, 46, 0.12);
  border-radius: 8px;
  padding: 0.85rem;
}

.portal-mini-card span {
  color: var(--kabyle-red);
  display: block;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.portal-mini-card strong {
  color: var(--night);
  display: block;
  line-height: 1.3;
  margin-top: 0.25rem;
}

.portal-mini-card p,
.portal-help {
  color: rgba(16, 32, 46, 0.72);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.55;
  margin-top: 0.35rem;
}

.portal-form {
  display: grid;
  gap: 1rem;
}

.portal-feedback {
  color: var(--kabyle-green);
  font-weight: 900;
  min-height: 1.5rem;
}

.portal-empty {
  align-items: center;
  background: #fffdf7;
  border: 1px dashed rgba(6, 36, 61, 0.28);
  border-radius: 8px;
  color: var(--night);
  display: grid;
  gap: 0.45rem;
  justify-items: center;
  margin-top: 1rem;
  padding: 2rem;
  text-align: center;
}

.portal-empty[hidden] {
  display: none;
}

.portal-empty h3 {
  font-size: 1.25rem;
  font-weight: 900;
}

.portal-empty p {
  color: rgba(16, 32, 46, 0.74);
}

@media (max-width: 640px) {
  .portal-kpi-grid,
  .portal-meta {
    grid-template-columns: 1fr;
  }

  .portal-card-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .portal-card-actions button,
  .portal-form button,
  .portal-filters button {
    width: 100%;
  }
}
