/* Global Colors - The following color variables are used throughout the website. Updating them here will change the color scheme of the entire website */
:root { 
  --background-color:#ffffff; /* Background color for the entire website, including individual sections */
  --default-color: #090808; /* Default color used for the majority of the text content across the entire website */
  --heading-color: #05289d; /* Color for headings, subheadings and title throughout the website */
  --accent-color:  #05289d;; /* Accent color that represents your brand on the website. It's used for buttons, links, and other elements that need to stand out */
  --surface-color: #ffffff; /* The surface color is used as a background of boxed elements within sections, such as cards, icon boxes, or other elements that require a visual separation from the global background. */
  --contrast-color:#ffffff; 
  
  --first-color: #05289d;
  --second-color:#133ad9;
   --third-color:#000000;
   /* --third-color: #ffb000; */
 --fourth-color: #ff0000;
  --five-color:  #00ffe9;/* Contrast color for text, ensuring readability against backgrounds of accent, heading, or default colors. */
}

/* Nav Menu Colors - The following color variables are used specifically for the navigation menu. They are separate from the global colors to allow for more customization options */
:root {
  --nav-color: #ffffff;  /* The default color of the main navmenu links */
  --nav-hover-color: rgb(214, 160, 13); /* Applied to main navmenu links when they are hovered over or active */
  --nav-mobile-background-color: #ffffff; /* Used as the background color for mobile navigation menu */
  --nav-dropdown-background-color: #ffffff; /* Used as the background color for dropdown items that appear when hovering over primary navigation items */
  --nav-dropdown-color: #40372e; /* Used for navigation links of the dropdown items in the navigation menu. */
  --nav-dropdown-hover-color: #f87500; /* Similar to --nav-hover-color, this color is applied to dropdown navigation links when they are hovered over. */
}

/* Color Presets - These classes override global colors when applied to any section or element, providing reuse of the sam color scheme. */

.light-background {
  --background-color: #fffbf7;
  --surface-color: #ffffff;
}

.dark-background {
  --background-color:  color-mix(in srgb, #0216c7 80%, transparent) 100% ;/* bleu plus fort */
  --default-color: #ffffff;
  --heading-color: #ffffff;
  --surface-color: #252525;
  --contrast-color: #ffffff;
}
.color-violet{
  color: #f200ffc1 !important;
  --background-color: #f200ffc1 !important;
  
}

.btn-devfest{
  background-color: #f1f1f1;
}
/* Smooth scroll */
:root {
  scroll-behavior: smooth;
}


    * { box-sizing: border-box; }

    body {
      font-family: "Poppins", sans-serif;
      background: #f5f6fa;
      color: #1a1a2e;
      margin: 0;
      padding: 0;
    }

    /* ── HERO ── */
    .startups-hero {
      background: linear-gradient(135deg, var(--first-color) 0%, #1a0050 40%, var(--fourth-color) 100%);
      padding: 80px 20px 60px;
      text-align: center;
      position: relative;
      overflow: hidden;
    }

    .startups-hero::before {
      content: '';
      position: absolute;
      inset: 0;
      background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
      pointer-events: none;
    }

    .startups-hero h1 {
      font-family: "Poppins", sans-serif;
      font-size: clamp(2.2rem, 6vw, 4rem);
      font-weight: 600;
      color: #fff;
      margin-bottom: 12px;
      text-transform: uppercase;
      letter-spacing: 1px;
      position: relative;
    }

    .startups-hero h1 span {
      color: var(--five-color);
    }

    .startups-hero p {
      font-size: clamp(1rem, 2.5vw, 1.2rem);
      color: rgba(255,255,255,0.85);
      max-width: 720px;
      margin: 0 auto 30px;
      line-height: 1.7;
      position: relative;
    }

    .hero-stats {
      display: flex;
      justify-content: center;
      gap: clamp(20px, 4vw, 60px);
      flex-wrap: wrap;
      position: relative;
    }

    .hero-stat {
      text-align: center;
    }

    .hero-stat .num {
      font-size: clamp(1.8rem, 4vw, 2.8rem);
      font-weight: 800;
      color: var(--five-color);
      display: block;
      line-height: 1;
    }

    .hero-stat .lbl {
      font-size: 0.85rem;
      color: rgba(255,255,255,0.7);
      text-transform: uppercase;
      letter-spacing: 1px;
    }

    /* ── FILTER BAR ── */
    .filter-section {
      background: #fff;
      border-bottom: 1px solid #e0e0e0;
      padding: 0;
      position: sticky;
      top: 0;
      z-index: 100;
      box-shadow: 0 2px 12px rgba(5,40,157,0.08);
    }

    .filter-inner {
      max-width: 1200px;
      margin: 0 auto;
      padding: 14px 20px;
      display: flex;
      align-items: center;
      gap: 16px;
      flex-wrap: wrap;
    }

    .filter-label {
      font-size: 0.8rem;
      font-weight: 700;
      color: #999;
      text-transform: uppercase;
      letter-spacing: 1px;
      white-space: nowrap;
    }

    .year-tabs {
      display: flex;
      gap: 6px;
      flex-wrap: wrap;
    }

    .year-tab {
      padding: 7px 18px;
      border-radius: 50px;
      border: 2px solid #e0e0e0;
      background: transparent;
      font-family: "Poppins", sans-serif;
      font-size: 0.9rem;
      font-weight: 700;
      color: #888;
      cursor: pointer;
      transition: all 0.25s;
    }

    .year-tab:hover {
      border-color: var(--first-color);
      color: var(--first-color);
    }

    .year-tab.active {
      background: var(--first-color);
      border-color: var(--first-color);
      color: #fff;
      box-shadow: 0 4px 12px rgba(5,40,157,0.3);
    }

    .year-tab.active-2026 { background: var(--first-color); border-color: var(--first-color); }
    .year-tab.active-2025 { background: #7c3aed; border-color: #7c3aed; }
    .year-tab.active-2024 { background: var(--fourth-color); border-color: var(--fourth-color); }
    .year-tab.active-2021 { background: #0ea5e9; border-color: #0ea5e9; }
    .year-tab.active-2018 { background: var(--nav-hover-color); border-color: var(--nav-hover-color); }

    .filter-sep {
      width: 1px;
      height: 28px;
      background: #e0e0e0;
    }

    .dept-select {
      padding: 7px 32px 7px 12px;
      border-radius: 50px;
      border: 2px solid #e0e0e0;
      background: transparent;
      font-family: "Poppins", sans-serif;
      font-size: 0.9rem;
      font-weight: 600;
      color: #555;
      cursor: pointer;
      appearance: none;
      background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg width='12' height='12' viewBox='0 0 20 20' fill='%23888' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 7L10 12L15 7' stroke='%23888' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
      background-repeat: no-repeat;
      background-position: right 12px center;
      transition: border-color 0.2s;
    }

    .dept-select:focus {
      outline: none;
      border-color: var(--first-color);
    }

    /* ── MAIN CONTENT ── */
    .main-wrap {
      max-width: 1200px;
      margin: 0 auto;
      padding: 40px 20px 80px;
    }

    /* ── YEAR BADGE ── */
    .edition-header {
      display: flex;
      align-items: center;
      gap: 16px;
      margin-bottom: 10px;
    }

    .edition-badge {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 8px 22px;
      border-radius: 50px;
     font-family: "Poppins", sans-serif;
      font-size: 1.2rem;
      font-weight: 800;
      text-transform: uppercase;
      letter-spacing: 1px;
      color: #fff;
    }

    .badge-2026 { background: linear-gradient(90deg, #05289d, #133ad9); }
    .badge-2025 { background: linear-gradient(90deg, #7c3aed, #a855f7); }
    .badge-2024 { background: linear-gradient(90deg, #ff00b0, #ff4081); }
    .badge-2021 { background: linear-gradient(90deg, #0ea5e9, #0284c7); }
    .badge-2018 { background: linear-gradient(90deg, #d97706, #f59e0b); }

    .edition-title {
      font-size: 1rem;
      color: #888;
      font-weight: 600;
    }

    /* ── DESCRIPTION BOX ── */
    .edition-desc {
      background: #fff;
      border-left: 4px solid var(--first-color);
      border-radius: 0 12px 12px 0;
      padding: 18px 24px;
      margin-bottom: 36px;
      font-size: 0.97rem;
      line-height: 1.7;
      color: #555;
      box-shadow: 0 2px 8px rgba(5,40,157,0.06);
    }

    .edition-desc strong { color: var(--first-color); }

    /* ── COMING SOON BOX ── */
    .coming-soon {
      text-align: center;
      padding: 80px 20px;
      color: #bbb;
    }
    .coming-soon i {
      font-size: 3.5rem;
      margin-bottom: 20px;
      display: block;
      opacity: 0.4;
    }
    .coming-soon h3 {
      font-family: "Poppins", sans-serif;
      font-size: 1.8rem;
      font-weight: 800;
      text-transform: uppercase;
      color: #ccc;
      margin-bottom: 10px;
    }
    .coming-soon p {
      font-size: 1rem;
      color: #bbb;
      max-width: 400px;
      margin: 0 auto;
    }

    /* ── DEPARTMENT SECTION ── */
    .dept-section {
      margin-bottom: 48px;
    }

    .dept-header {
      display: flex;
      align-items: center;
      gap: 12px;
      margin-bottom: 20px;
    }

    .dept-pill {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 6px 18px;
      border-radius: 50px;
      font-size: 0.82rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 1.5px;
      border: 2px solid;
    }

    .dept-count {
      font-size: 0.85rem;
      color: #aaa;
      font-weight: 600;
    }

    /* Department color classes */
    .dept-nord { color: #05289d; border-color: #05289d; background: rgba(5,40,157,0.06); }
    .dept-sud { color: #ff00b0; border-color: #ff00b0; background: rgba(255,0,176,0.06); }
    .dept-ouest { color: #0ea5e9; border-color: #0ea5e9; background: rgba(14,165,233,0.06); }
    .dept-centre { color: #7c3aed; border-color: #7c3aed; background: rgba(124,58,237,0.06); }
    .dept-artibonite { color: #d97706; border-color: #d97706; background: rgba(217,119,6,0.06); }
    .dept-nippes { color: #059669; border-color: #059669; background: rgba(5,150,105,0.06); }
    .dept-grandanse { color: #be185d; border-color: #be185d; background: rgba(190,24,93,0.06); }
    .dept-sudest { color: #dc2626; border-color: #dc2626; background: rgba(220,38,38,0.06); }
    .dept-nordest { color: #7c2d12; border-color: #7c2d12; background: rgba(124,45,18,0.06); }
    .dept-nordouest { color: #1d4ed8; border-color: #1d4ed8; background: rgba(29,78,216,0.06); }
    .dept-diaspora { color: #6d28d9; border-color: #6d28d9; background: rgba(109,40,217,0.06); }

    /* ── STARTUP CARDS GRID ── */
    .startups-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
      gap: 20px;
    }

    .startup-card {
      background: #fff;
      border-radius: 16px;
      padding: 24px 20px;
      border: 2px solid #f0f0f0;
      transition: all 0.3s ease;
      position: relative;
      overflow: hidden;
    }

    .startup-card::before {
      content: '';
      position: absolute;
      top: 0; left: 0; right: 0;
      height: 3px;
      transform: scaleX(0);
      transform-origin: left;
      transition: transform 0.3s ease;
    }

    .startup-card:hover::before { transform: scaleX(1); }
    .startup-card:hover {
      transform: translateY(-6px);
      box-shadow: 0 12px 32px rgba(5,40,157,0.12);
      border-color: #e0e6ff;
    }

    /* Card accent color per dept */
    .startup-card.card-nord::before { background: #05289d; }
    .startup-card.card-sud::before { background: #ff00b0; }
    .startup-card.card-ouest::before { background: #0ea5e9; }
    .startup-card.card-centre::before { background: #7c3aed; }
    .startup-card.card-artibonite::before { background: #d97706; }
    .startup-card.card-nippes::before { background: #059669; }
    .startup-card.card-grandanse::before { background: #be185d; }
    .startup-card.card-sudest::before { background: #dc2626; }
    .startup-card.card-nordest::before { background: #7c2d12; }
    .startup-card.card-nordouest::before { background: #1d4ed8; }
    .startup-card.card-diaspora::before { background: #6d28d9; }

    .startup-icon {
      width: 48px;
      height: 48px;
      border-radius: 12px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.3rem;
      margin-bottom: 14px;
      background: linear-gradient(135deg, #e8edff, #cdd5ff);
      color: var(--first-color);
    }

    .startup-name {
      font-size: 1.1rem;
      font-weight: 700;
      color: #1a1a2e;
      margin-bottom: 6px;
      line-height: 1.3;
    }

    .startup-sector {
      font-size: 0.8rem;
      font-weight: 600;
      color: #999;
      text-transform: uppercase;
      letter-spacing: 1px;
      margin-bottom: 10px;
    }

    .startup-desc {
      font-size: 0.88rem;
      color: #666;
      line-height: 1.6;
    }

    /* ── EMPTY STATE ── */
    .empty-state {
      text-align: center;
      padding: 60px 20px;
      color: #bbb;
    }

    .empty-state i {
      font-size: 3rem;
      margin-bottom: 16px;
      display: block;
    }

    /* ── GLOBAL COUNTER ── */
    .results-bar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 24px;
      flex-wrap: wrap;
      gap: 10px;
    }

    .results-count {
      font-size: 0.9rem;
      color: #888;
      font-weight: 600;
    }

    .results-count strong { color: var(--first-color); }

    /* ── HIDDEN ── */
    .year-block { display: none; }
    .year-block.visible { display: block; }
    .dept-section { display: block; }
    .dept-section.hidden { display: none; }

    @media (max-width: 768px) {
      .filter-inner { gap: 10px; }
      .year-tab { padding: 6px 14px; font-size: 0.82rem; }
      .startups-grid { grid-template-columns: 1fr 1fr; }
    }

    @media (max-width: 480px) {
      .startups-grid { grid-template-columns: 1fr; }
      .filter-sep { display: none; }
    }
  