/*
 * main.css
 * Feuille de styles principale du site web de l'ITIE-RDC.
 *
 * 
 */


/* ==================================================
   1. VARIABLES
   ================================================== */


:root {
  --forest-dark: #1B4332;
  --forest-primary: #2D6A4F;
  --forest-medium: #40916C;
  --forest-light: #52B788;
  --forest-lighter: #74C69D;
  --forest-soft: #95D5B2;
  --forest-bg: #D8F3DC;
  --forest-topbar-height: 36px;
  --primary-light: #4DA6FF;
  --accent-red: #CE1126;
  --primary-blue: #0089e9;
  --primary-dark: #0056B3;
  --accent-gold: #FCD116;
  --bg-light: #E6F3FF;
}


/* ==================================================
   2. FONTS / POLICES
   ================================================== */


@font-face {
  font-family: "Metropolis";
  src: url("/fonts/metropolis/Metropolis-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Metropolis";
  src: url("/fonts/metropolis/Metropolis-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Metropolis";
  src: url("/fonts/metropolis/Metropolis-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Metropolis";
  src: url("/fonts/metropolis/Metropolis-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}


/* ==================================================
   3. HTML / BODY
   ================================================== */


html {
  scroll-behavior: smooth;
  scroll-padding-top: 180px;
}

body {
  font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  padding-top: 120px;
  color: #1f2937;
}


/* ==================================================
   4. HEADER / NAVIGATION
   ================================================== */


body > div.text-white.py-2.forest-gradient {
  position: sticky;
  top: 0;
  z-index: 60;
  min-height: var(--forest-topbar-height);
}

body > div.text-white.py-2.forest-gradient + header.sticky {
  top: var(--forest-topbar-height) !important;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-gold);
  transition: width .3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.sticky-header {
  transition: all 0.3s ease;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,.1);
}

.nav-link {
  position: relative;
  transition: color .3s ease;
}

.nav-link:after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-gold);
  transition: width .3s ease;
}

.nav-link:hover:after,
.nav-link.active:after {
  width: 100%;
}

.nav-item {
  position: relative;
}

.submenu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  display: none;
  box-shadow: 0 5px 15px rgba(0,0,0,.1);
}

.nav-item:hover .submenu {
  display: block;
}

.mobile-menu {
  display: none;
}

.mobile-menu.active {
  display: block;
}


/* ==================================================
   5. COMPOSANTS
   ================================================== */


.forest-gradient {
  background: linear-gradient(135deg, var(--forest-dark) 0%, var(--forest-primary) 100%);
}

.forest-card-hover {
  transition: all 0.3s ease;
}

.forest-card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

table {
  border-collapse: collapse;
  width: 100%;
}

th {
  background: var(--primary-blue);
  color: white;
  font-weight: 600;
  text-align: left;
  padding: 12px;
  white-space: nowrap;
}

td {
  padding: 12px;
  border-bottom: 1px solid #e5e7eb;
  vertical-align: top;
}

tr:hover {
  background-color: var(--forest-bg);
}

.badge-active {
  background: #10b981;
  color: white;
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  white-space: nowrap;
}

.badge-draft {
  background: #f59e0b;
  color: #1f2937;
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  white-space: nowrap;
}

.stat-card {
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15);
}

.feature-card {
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.btn-primary {
  background: #FCD116;
  color: #0056B3;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: #F9A825;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(252, 209, 22, 0.3);
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

.skeleton {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.card-hover {
  transition: all .3s ease;
}

.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 30px rgba(0,0,0,.10);
}


/* ==================================================
   6. PAGES
   ================================================== */


.hero-bg, .hero-minier {
  background: linear-gradient(135deg, rgba(0,137,233,.92) 0%, rgba(0,86,179,.92) 100%),
        url("/bg-site-itierdc.jpg");
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.hero-bg::before, .hero-minier:before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 15% 15%, rgba(252,209,22,.30), transparent 45%),
        radial-gradient(circle at 80% 25%, rgba(230,243,255,.22), transparent 45%);
  pointer-events: none;
}

.contracts-list {
  background: #fff;
}

.contract-item {
  border-bottom: 1px solid #e5e7eb;
}

.contract-item:last-child {
  border-bottom: 0;
}

.contract-main {
  display: grid;
  grid-template-columns: minmax(230px,1.35fr) minmax(180px,1fr) minmax(180px,1fr) minmax(190px,.95fr) minmax(230px,1fr);
  gap: 24px;
  align-items: start;
  padding: 24px;
  transition: background-color .2s ease;
}

.contract-item:hover .contract-main {
  background: #fbfdff;
}

.contract-label {
  display: block;
  margin-bottom: 7px;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.contract-title {
  color: #172033;
  font-weight: 700;
  line-height: 1.45;
}

.contract-subline {
  margin-top: 9px;
  color: #64748b;
  font-size: 13px;
  line-height: 1.55;
}

.contract-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 11px;
  padding: 7px 13px;
  border: 1px solid #f3d261;
  border-radius: 999px;
  background: #fff9dc;
  color: #8a4b08;
  font-size: 13px;
  font-weight: 700;
}

.contract-status::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #e4a72a;
}

.documents-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid #c7d7ff;
  border-radius: 13px;
  background: #f3f6ff;
  color: #303ee8;
  text-align: left;
  transition: background-color .2s ease, border-color .2s ease;
}

.documents-toggle:hover {
  background: #eaf0ff;
  border-color: #9fb8ff;
}

.documents-toggle:disabled {
  cursor: not-allowed;
  opacity: .55;
}

.documents-toggle-icon {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: #fff;
  font-size: 19px;
}

.documents-chevron {
  margin-left: auto;
  transition: transform .2s ease;
}

.documents-toggle[aria-expanded="true"] .documents-chevron {
  transform: rotate(180deg);
}

.contract-documents-panel {
  display: flex;
  justify-content: flex-end;
  padding: 0 24px 24px;
  background: #fbfdff;
}

.contract-documents-panel[hidden] {
  display: none;
}

.documents-box {
  width: min(100%, 470px);
  padding: 16px;
  border: 1px solid #e3e8f1;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(15,23,42,.08);
}

.document-card {
  display: grid;
  grid-template-columns: 48px minmax(0,1fr);
  gap: 14px;
  padding: 16px;
  border: 1px solid #edf0f5;
  border-radius: 14px;
}

.document-card + .document-card {
  margin-top: 11px;
}

.document-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #e7edff;
}

.document-card:not(.is-principal) .document-icon {
  background: #fff0f0;
}

.document-badge {
  display: inline-flex;
  margin-left: 7px;
  padding: 4px 9px;
  border-radius: 999px;
  background: #e5eaff;
  color: #303ee8;
  font-size: 11px;
  font-weight: 700;
  vertical-align: middle;
}

.document-link {
  color: #303ee8;
  font-weight: 600;
}

.document-link:hover {
  text-decoration: underline;
}

/* ==================================================
   PAGE D'ACCUEIL - HERO
   ================================================== */

.hero-home {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(
      135deg,
      rgba(0, 86, 179, 0.88) 0%,
      rgba(0, 137, 233, 0.78) 55%,
      rgba(0, 86, 179, 0.90) 100%
    ),
    url("/bg-site-itierdc.jpg");

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}


/* Effet graphique léger au-dessus de l'image */
.hero-home::before {
  content: "";
  position: absolute;
  inset: 0;

  background:
    radial-gradient(
      circle at 15% 20%,
      rgba(252, 209, 22, 0.22),
      transparent 38%
    ),
    radial-gradient(
      circle at 85% 25%,
      rgba(255, 255, 255, 0.15),
      transparent 42%
    );

  pointer-events: none;
}


/* Le contenu du Hero reste au-dessus des effets */
.hero-home > * {
  position: relative;
  z-index: 1;
}

.hero-slide {
  opacity: 0;
  position: absolute;
  inset: 0;
  transition: opacity 0.8s ease;
}

.hero-slide.active {
  opacity: 1;
  position: relative;
}

.itierdc-timeline-wrap {
  position: relative;
}

.itierdc-timeline-track {
  display: flex;
  align-items: center;
  gap: 26px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 10px 12px;
  scrollbar-width: thin;
  background: linear-gradient(#E6F3FF,#E6F3FF) center/100% 2px no-repeat;
  border-radius: 999px;
}

.itierdc-timeline-track::-webkit-scrollbar {
  height: 10px;
}

.itierdc-timeline-track::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,.15);
  border-radius: 999px;
}

.itierdc-timeline-item {
  scroll-snap-align: start;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  padding: 6px 10px;
  border-radius: 999px;
  transition: transform .2s ease, background .2s ease;
}

.itierdc-timeline-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #FCD116;
  border: 3px solid #0089e9;
  flex: 0 0 auto;
  box-shadow: 0 0 0 4px rgba(0,137,233,.10);
}

.itierdc-timeline-date {
  font-size: 12px;
  font-weight: 800;
  color: #0056B3;
  letter-spacing: .2px;
}

.itierdc-timeline-text {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
}

.itierdc-timeline-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 800;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(252,209,22,.25);
  color: #0056B3;
  border: 1px solid rgba(252,209,22,.45);
  transition: transform .15s ease, background .15s ease;
}

.itierdc-timeline-link:hover {
  transform: translateY(-1px);
  background: rgba(252,209,22,.40);
}

.itierdc-timeline-status {
  font-size: 11px;
  font-weight: 800;
  padding: 5px 10px;
  border-radius: 999px;
  background: #E6F3FF;
}

.itierdc-timeline-item:hover {
  background: rgba(230,243,255,.65);
  transform: translateY(-1px);
}

.itierdc-timeline-arrow {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(229,231,235,1);
  box-shadow: 0 10px 18px rgba(0,0,0,.06);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .15s ease, opacity .15s ease;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
}

.itierdc-timeline-arrow:hover {
  transform: translateY(-50%) scale(1.03);
}

.itierdc-timeline-arrow[disabled] {
  opacity: .45;
  cursor: not-allowed;
}

.itierdc-timeline-arrow.left {
  left: -8px;
}

.itierdc-timeline-arrow.right {
  right: -8px;
}

.prose p {
  margin-bottom: 1.25rem;
}

.member-card {
  background: white;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.member-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.member-photo {
  width: 100%;
  height: 280px;
  object-fit: cover;
  background: linear-gradient(135deg, #E6F3FF 0%, #B3D9FF 100%);
}

.college-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.college-gouvernement {
  background: #0089e9;
  color: white;
}

.college-entreprises {
  background: #FCD116;
  color: #0056B3;
}

.college-societe-civile {
  background: #CE1126;
  color: white;
}

.data-card {
  transition: all .3s ease;
}

.data-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(0,0,0,.15);
}

.news-card {
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15);
}

.filter-btn {
  transition: all 0.3s ease;
  cursor: pointer;
}

.filter-btn.active {
  background: #0089e9;
  color: white;
  border-color: transparent !important;
}

.hero {
  background: linear-gradient(135deg, rgba(0,137,233,.92) 0%, rgba(0,86,179,.92) 100%),
        url("/bg-site-itierdc.jpg");
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.hero:before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 15% 15%, rgba(252,209,22,.30), transparent 45%),
        radial-gradient(circle at 80% 25%, rgba(230,243,255,.22), transparent 45%);
  pointer-events: none;
}

.report-card {
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.report-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15);
}

.report-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #0089e9 0%, #FCD116 100%);
}

.hero-hydro {
  background: linear-gradient(135deg, rgba(0,137,233,.92) 0%, rgba(0,86,179,.92) 100%),
        url("/bg-site-itierdc.jpg");
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.hero-hydro:before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 15% 15%, rgba(252,209,22,.30), transparent 45%),
        radial-gradient(circle at 80% 25%, rgba(230,243,255,.22), transparent 45%);
  pointer-events: none;
}

.soft-card {
  transition: transform .25s ease,box-shadow .25s ease;
}

.soft-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 30px rgba(0,86,179,.12);
}

.score-ring {
  width: 170px;
  height: 170px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(var(--primary-blue) 0 85.5%,#dbeafe 85.5% 100%);
  position: relative;
}

.score-ring:after {
  content: "";
  position: absolute;
  width: 132px;
  height: 132px;
  border-radius: 50%;
  background: #fff;
}

.score-ring-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.timeline {
  position: relative;
}

.timeline:before {
  content: "";
  position: absolute;
  top: 1rem;
  bottom: 1rem;
  left: 18px;
  width: 3px;
  background: #bfdbfe;
}

.timeline-dot {
  position: relative;
  z-index: 1;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--primary-blue);
  color: #fff;
  box-shadow: 0 0 0 6px #eff6ff;
}


/* ==================================================
   7. CARTOGRAPHIE
   ================================================== */


.forest-map-app {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  grid-template-areas: "sidebar map";
  align-items: stretch;
  width: 100%;
  height: 780px;
  overflow: hidden;
  background: #f3f7f4;
  color: #1f2937;
  direction: ltr;
}

.forest-map-page {
  width: 100%;
  overflow: hidden;
}

.forest-map-sidebar {
  grid-area: sidebar;
  width: 340px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  max-height: 780px;
  overflow-y: auto;
  background: #fff;
  color: #526b55;
  border-right: 1px solid #d9e7dd;
  box-shadow: 4px 0 18px rgba(0, 0, 0, .08);
  z-index: 10;
}

.forest-map-sidebar::-webkit-scrollbar {
  width: 8px;
}

.forest-map-sidebar::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.forest-map-sidebar::-webkit-scrollbar-thumb {
  background: var(--forest-primary);
  border-radius: 4px;
}

.forest-map-header {
  padding: 20px;
  color: #fff;
  background: linear-gradient(135deg, var(--forest-dark), var(--forest-medium));
}

.forest-map-header small {
  display: block;
  margin-bottom: 6px;
  opacity: .85;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 11px;
}

.forest-map-header h1 {
  margin: 0;
  font-size: 20px;
  line-height: 1.3;
  font-weight: 700;
}

.forest-map-panel {
  padding: 16px 18px;
  border-bottom: 1px solid #d9e7dd;
}

.forest-map-panel h2 {
  margin: 0 0 12px;
  color: var(--forest-dark);
  font-size: 15px;
  font-weight: 700;
}

.forest-map-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  font-size: 14px;
}

.forest-map-checkbox input {
  width: 18px;
  height: 18px;
  accent-color: var(--forest-primary);
}

.forest-map-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #c8d6cc;
  border-radius: 8px;
  background: #fff;
  font-size: 14px;
  outline: none;
}

.forest-map-input:focus {
  border-color: var(--forest-primary);
  box-shadow: 0 0 0 2px rgba(45, 106, 79, .15);
}

.forest-map-form-group {
  margin: 12px 0 0;
}

.forest-map-form-group label {
  display: block;
  margin-bottom: 6px;
  color: var(--forest-dark);
  font-size: 13px;
  font-weight: 600;
}

.forest-map-btn {
  width: 100%;
  margin-bottom: 8px;
  padding: 11px 12px;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  background: #eef8f1;
  color: var(--forest-dark);
  font-weight: 700;
  text-align: left;
  transition: .2s ease;
}

.forest-map-btn:hover,
.forest-map-btn.active {
  background: var(--forest-primary);
  color: #fff;
}

.forest-map-btn-primary {
  background: #e8f3ff;
  color: #0b5ed7;
}

.forest-map-btn-primary:hover {
  background: #0b5ed7;
  color: #fff;
}

.forest-map-btn-danger {
  background: #fff0f0;
  color: #dc3545;
}

.forest-map-btn-danger:hover {
  background: #dc3545;
  color: #fff;
}

.forest-map-stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.forest-map-stat {
  padding: 12px;
  border: 1px solid #d9e7dd;
  border-radius: 12px;
  background: #fbfdfb;
}

.forest-map-stat span {
  display: block;
  margin-bottom: 6px;
  color: #667085;
  font-size: 12px;
}

.forest-map-stat strong {
  color: var(--forest-primary);
  font-size: 18px;
}

.forest-map-results {
  min-height: 80px;
  padding: 12px;
  border: 1px solid #d9e7dd;
  border-radius: 12px;
  background: #f8faf8;
  font-size: 13px;
  line-height: 1.5;
}

.forest-map-wrap {
  grid-area: map;
  position: relative;
  width: 100%;
  min-width: 0;
  height: 780px;
}

#map {
  width: 100%;
  height: 100%;
}

.forest-map-title {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 5;
  padding: 12px 16px;
  border: 1px solid #d9e7dd;
  border-radius: 14px;
  background: rgba(255, 255, 255, .95);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
}

.forest-map-title strong {
  display: block;
  color: var(--forest-dark);
  font-size: 16px;
}

.forest-map-title span {
  color: #667085;
  font-size: 12px;
}

.forest-map-popup {
  min-width: 220px;
  padding: 12px 14px;
  border: 1px solid #d9e7dd;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
  font-size: 13px;
}

.forest-map-popup strong {
  color: var(--forest-primary);
}

.forest-map-popup::after {
  content: "";
  position: absolute;
  left: 18px;
  bottom: -10px;
  border-width: 10px 10px 0;
  border-style: solid;
  border-color: #fff transparent transparent;
}

.forest-sidebar-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid #e3e9e3;
  background: #f6f7f6;
}

.forest-sidebar-tab {
  display: flex;
  min-width: 0;
  padding: 10px 3px 9px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: #6b856e;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  line-height: 1;
}

.forest-sidebar-tab-icon {
  font-size: 17px;
  line-height: 1;
}

.forest-sidebar-tab:hover,
.forest-sidebar-tab.is-active {
  color: #365f42;
}

.forest-sidebar-tab.is-active {
  border-bottom-color: #477653;
  background: #fff;
  font-weight: 700;
}

.forest-sidebar-panel[hidden] {
  display: none;
}

.forest-sidebar-section-title {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  padding: 12px 11px;
  border-bottom: 1px solid #e3e9e3;
  color: #58745c;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.forest-sidebar-options {
  display: grid;
  gap: 7px;
  padding: 10px;
}

.forest-sidebar-option {
  display: flex;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d4e0d5;
  border-radius: 6px;
  background: #fff;
  color: #566d59;
  cursor: pointer;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 700;
  text-align: left;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

.forest-sidebar-option:hover {
  border-color: #86a88b;
  background: #f4f8f4;
}

.forest-sidebar-option.is-active {
  border-color: #477653;
  background: #477653;
  color: #fff;
}

.forest-layer-option {
  cursor: default;
}

.forest-layer-list {
  border-top: 1px solid #e6ebe6;
  background: #fff;
}

.forest-province-filter {
  padding: 10px;
  border-bottom: 1px solid #e6ebe6;
  background: #f8faf8;
}

.forest-province-filter label {
  display: block;
  margin-bottom: 6px;
  color: #58745c;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.forest-province-select {
  width: 100%;
  padding: 9px 34px 9px 10px;
  border: 1px solid #cfdacf;
  border-radius: 6px;
  outline: none;
  background: #fff;
  color: #354d39;
  cursor: pointer;
  font-size: 13px;
}

.forest-province-select:focus {
  border-color: #477653;
  box-shadow: 0 0 0 3px rgba(71, 118, 83, .12);
}

.forest-layer-row {
  display: grid;
  min-height: 48px;
  padding: 7px 10px 7px 5px;
  border-bottom: 1px solid #e6ebe6;
  background: #fff;
  color: #303830;
  grid-template-columns: 9px 36px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.forest-layer-handle {
  overflow: hidden;
  color: #b7beb8;
  cursor: grab;
  font-size: 15px;
  line-height: 1;
}

.forest-layer-switch {
  position: relative;
  display: inline-flex;
  width: 36px;
  height: 20px;
}

.forest-layer-switch input {
  position: absolute;
  z-index: 2;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.forest-layer-slider {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 999px;
  background: #c9d2ca;
  transition: background-color .2s ease;
}

.forest-layer-slider::after {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .22);
  content: "";
  transition: transform .2s ease;
}

.forest-layer-switch input:checked + .forest-layer-slider {
  background: #61c66e;
}

.forest-layer-switch input:checked + .forest-layer-slider::after {
  transform: translateX(16px);
}

.forest-layer-switch input:focus-visible + .forest-layer-slider {
  outline: 3px solid rgba(71, 118, 83, .25);
  outline-offset: 2px;
}

.forest-layer-label {
  line-height: 1.35;
}

.forest-layer-info {
  display: inline-grid;
  width: 18px;
  height: 18px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #6d9173;
  cursor: help;
  place-items: center;
  font-size: 15px;
  line-height: 1;
}

.forest-legend-dot {
  width: 13px;
  height: 13px;
  border: 1px solid rgba(35, 67, 42, .28);
  border-radius: 3px;
  flex: 0 0 auto;
}

.forest-legend-groups {
  overflow-y: auto;
  padding: 12px 10px 18px;
  background: #fff;
}

.forest-legend-group + .forest-legend-group {
  margin-top: 17px;
}

.forest-legend-group-title {
  margin: 0 0 8px;
  color: #315b39;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.forest-legend-item {
  display: flex;
  color: #4b5d4e;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  line-height: 1.35;
}

.forest-legend-item + .forest-legend-item {
  margin-top: 7px;
}

.forest-legend-item .forest-legend-dot {
  margin-top: 1px;
}

.forest-legend-dot.is-water {
  background: #3f8fe5;
}

.forest-legend-dot.is-cfcl {
  background: #2f8f5b;
}

.forest-legend-dot.is-industrial {
  background: #6ab55b;
}

.forest-legend-dot.is-conservation {
  background: #5c431f;
}

.forest-legend-dot.is-national-park {
  background: #7047b7;
}

.forest-legend-dot.is-biosphere {
  background: #3f63a8;
}

.forest-legend-dot.is-community-reserve {
  background: #18a39b;
}

.forest-legend-dot.is-integral-reserve {
  background: #28663b;
}

.forest-legend-dot.is-fauna-reserve {
  background: #79b84f;
}

.forest-legend-dot.is-scientific-reserve {
  background: #d94f5c;
}

.forest-legend-dot.is-hunting-domain {
  background: #9aa1a7;
}

.forest-sidebar-search {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d4e0d5;
  border-radius: 6px;
  outline: none;
  color: #3f5743;
  font-size: 13px;
}

.forest-sidebar-search:focus {
  border-color: #477653;
  box-shadow: 0 0 0 3px rgba(71, 118, 83, .12);
}


/* ==================================================
   8. OPENLAYERS
   ================================================== */


.forest-map-wrap .ol-zoom {
  top: 16px;
  left: 16px;
  display: grid;
  padding: 0;
  border-radius: 10px;
  background: transparent;
  box-shadow: 0 5px 16px rgba(31, 64, 39, .18);
  gap: 1px;
}

.forest-map-wrap .ol-zoom button {
  width: 38px;
  height: 38px;
  margin: 0;
  border: 1px solid #d7e2d9;
  border-radius: 0;
  background: #fff !important;
  color: #477653 !important;
  font-family: Arial, sans-serif;
  font-size: 22px;
  font-weight: 500;
  line-height: 36px;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.forest-map-wrap .ol-zoom-in {
  border-radius: 9px 9px 0 0 !important;
}

.forest-map-wrap .ol-zoom-out {
  border-radius: 0 0 9px 9px !important;
}

.forest-map-wrap .ol-zoom button:hover,
.forest-map-wrap .ol-zoom button:focus {
  border-color: #477653;
  outline: none;
  background: #477653 !important;
  color: #fff !important;
}

.forest-map-wrap .ol-zoom button:focus-visible {
  box-shadow: 0 0 0 3px rgba(71, 118, 83, .25);
}

.forest-map-wrap .ol-full-screen {
  top: 16px;
  right: 16px;
  padding: 0;
  border-radius: 9px;
  background: transparent;
  box-shadow: 0 5px 16px rgba(31, 64, 39, .18);
}

.forest-map-wrap .ol-full-screen button {
  width: 38px;
  height: 38px;
  margin: 0;
  border: 1px solid #d7e2d9;
  border-radius: 9px !important;
  background: #fff !important;
  color: #477653 !important;
  font-size: 18px;
  line-height: 36px;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.forest-map-wrap .ol-full-screen button:hover,
.forest-map-wrap .ol-full-screen button:focus {
  border-color: #477653;
  outline: none;
  background: #477653 !important;
  color: #fff !important;
}

.forest-map-wrap .ol-full-screen button:focus-visible {
  box-shadow: 0 0 0 3px rgba(71, 118, 83, .25);
}

.forest-map-wrap .ol-attribution {
  right: 10px;
  bottom: 10px;
  max-width: calc(100% - 20px);
  padding: 0;
  border-radius: 7px;
  background: transparent !important;
}

.forest-map-wrap .ol-attribution ul {
  position: absolute;
  right: 0;
  bottom: 34px;
  display: none !important;
  min-width: 190px;
  margin: 0;
  padding: 7px 10px;
  border: 1px solid #d7e2d9;
  border-radius: 7px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 4px 14px rgba(31, 64, 39, .14);
  color: #405844;
  font-size: 11px;
  white-space: nowrap;
}

.forest-map-wrap .ol-attribution:hover ul,
.forest-map-wrap .ol-attribution:focus-within ul {
  display: block !important;
}

.forest-map-wrap .ol-attribution button {
  display: block !important;
  width: 28px;
  height: 28px;
  margin: 0 0 0 auto;
  border: 1px solid #d7e2d9;
  border-radius: 7px !important;
  background: rgba(255, 255, 255, .94) !important;
  color: #477653 !important;
  font-size: 15px;
  line-height: 26px;
  box-shadow: 0 3px 10px rgba(31, 64, 39, .14);
}

.forest-map-wrap .ol-attribution button:hover,
.forest-map-wrap .ol-attribution button:focus {
  border-color: #477653;
  outline: none;
  background: #477653 !important;
  color: #fff !important;
}

    .validation-proof-dialog {
      width: min(760px, calc(100vw - 2rem));
      max-height: min(860px, calc(100vh - 2rem));
      margin: auto;
      padding: 0;
      border: 0;
      border-radius: 1.25rem;
      background: transparent;
      box-shadow: 0 28px 80px rgba(15, 23, 42, .28);
    }
    .validation-proof-dialog::backdrop {
      background: rgba(15, 23, 42, .66);
      backdrop-filter: blur(3px);
    }
    .validation-proof-dialog[open] {
      animation: validationModalIn .18s ease-out;
    }
    @keyframes validationModalIn {
      from { opacity: 0; transform: translateY(10px) scale(.985); }
      to { opacity: 1; transform: translateY(0) scale(1); }
    }
    @media (prefers-reduced-motion: reduce) {
      .validation-proof-dialog[open] { animation: none; }
    }
    .validation-form-button { background: #fff4cc; border: 1px solid #f6c543; color: #745300; }
    .validation-form-button:hover { background: #ffedab; }
    
/* ==================================================
   9. RESPONSIVE
   ================================================== */


@media (max-width: 1024px) {
  .contract-main {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }

  .contract-documents-action {
    grid-column: 1 / -1;
  }

  .documents-toggle {
    max-width: 360px;
  }
}

@media (max-width: 850px) {
  .forest-map-app {
    grid-template-columns: 1fr;
    grid-template-areas: "sidebar"
      "map";
    height: auto;
  }

  .forest-map-sidebar {
    width: 100%;
    max-height: 480px;
  }

  .forest-map-wrap {
    height: 600px;
  }
}

@media (max-width: 768px) {
  body {
    padding-top: 80px;
  }

  .contract-main {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 20px;
  }

  .contract-documents-action {
    grid-column: auto;
  }

  .documents-toggle {
    max-width: none;
  }

  .contract-documents-panel {
    padding: 0 14px 18px;
  }

  .documents-box {
    width: 100%;
    padding: 12px;
  }

  .itierdc-timeline-arrow.left {
    left: 0;
  }

  .itierdc-timeline-arrow.right {
    right: 0;
  }

  .itierdc-timeline-track {
    gap: 18px;
    padding: 10px 8px;
  }

  .itierdc-timeline-text {
    font-size: 13px;
  }

  .score-ring {
    width: 150px;
    height: 150px;
  }

  .score-ring:after {
    width: 116px;
    height: 116px;
  }
}
