/* ==========================================================================
   GUIDAN NONPROFIT THEME - MASTER STYLESHEET
   ASSOC FOYER SOCIO-CULTUREL DU CES (Loi 1901 - RNA W263006332)
   100% Self-Contained, High Performance, Mobile Responsive
   ========================================================================== */

:root {
  --primary-gold: #F3BA2F;
  --secondary-orange: #ED5236;
  --navy-dark: #1F2531;
  --navy-light: #2A3241;
  --off-white: #F8F9FA;
  --pure-white: #FFFFFF;
  --border-color: #E2E8F0;
  --border-light: #EEF2F6;
  --text-main: #1F2531;
  --text-muted: #64748B;
  --text-light: #94A3B8;
  --tag-green: #28A745;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 20px rgba(31, 37, 49, 0.08);
  --shadow-lg: 0 10px 30px rgba(31, 37, 49, 0.12);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --font-base: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --transition: all 0.25s ease-in-out;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-base);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-main);
  background-color: var(--pure-white);
  overflow-x: hidden;
}

a {
  color: var(--navy-dark);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--secondary-orange);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--navy-dark);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.5rem;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 1.95rem;
  letter-spacing: -0.015em;
  margin-top: 1.5rem;
}

h3 {
  font-size: 1.45rem;
  margin-top: 1.25rem;
}

p {
  margin-bottom: 1.25rem;
  color: #334155;
  font-size: 1.025rem;
}

ul, ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
  color: #334155;
}

li {
  margin-bottom: 0.5rem;
}

/* Utilities */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.section-padding {
  padding-top: 4.5rem;
  padding-bottom: 4.5rem;
}

.bg-offwhite {
  background-color: var(--off-white);
}

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

.bg-navy {
  background-color: var(--navy-dark);
  color: var(--pure-white);
}

/* Top Utility Bar */
.top-utility-bar {
  background-color: var(--navy-dark);
  color: #CBD5E1;
  font-size: 0.825rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-utility-bar .utility-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.utility-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.utility-badge span.dot {
  width: 8px;
  height: 8px;
  background-color: var(--tag-green);
  border-radius: 50%;
  display: inline-block;
}

.utility-link {
  color: var(--primary-gold);
  text-decoration: underline;
  font-weight: 500;
}

.utility-link:hover {
  color: var(--pure-white);
}

/* Global Navigation & Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--pure-white);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  border-bottom: 1px solid var(--border-color);
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-emblem {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--primary-gold), var(--secondary-orange));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy-dark);
  font-weight: 800;
  font-size: 1.25rem;
  box-shadow: 0 3px 8px rgba(243, 186, 47, 0.35);
  flex-shrink: 0;
}

.brand-details {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1.2;
  color: var(--navy-dark);
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.brand-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Nav Menu */
.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.65rem 0.9rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy-dark);
  border-radius: var(--radius-sm);
  min-height: 44px;
  min-width: 44px;
  transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
  color: var(--secondary-orange);
  background-color: var(--off-white);
}

/* Dropdown */
.dropdown-trigger::after {
  content: '▼';
  font-size: 0.6rem;
  transition: transform 0.2s ease;
  margin-left: 0.2rem;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  background-color: var(--pure-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 0.6rem 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s ease;
  z-index: 1001;
}

.nav-item:hover .dropdown-menu,
.nav-item:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item a {
  display: block;
  padding: 0.7rem 1.25rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: #334155;
  transition: var(--transition);
  min-height: 44px;
  display: flex;
  align-items: center;
}

.dropdown-item a:hover {
  background-color: var(--off-white);
  color: var(--secondary-orange);
  padding-left: 1.5rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.6rem;
  font-size: 0.925rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  text-align: center;
  transition: var(--transition);
  min-height: 44px;
  gap: 0.5rem;
}

.btn-primary {
  background-color: var(--primary-gold);
  color: var(--navy-dark);
  box-shadow: 0 4px 14px rgba(243, 186, 47, 0.4);
}

.btn-primary:hover {
  background-color: #e5af2b;
  color: var(--navy-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(243, 186, 47, 0.5);
}

.btn-secondary {
  background-color: var(--secondary-orange);
  color: var(--pure-white);
  box-shadow: 0 4px 14px rgba(237, 82, 54, 0.35);
}

.btn-secondary:hover {
  background-color: #d8452a;
  color: var(--pure-white);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(237, 82, 54, 0.45);
}

.btn-outline {
  background-color: transparent;
  border-color: var(--navy-dark);
  color: var(--navy-dark);
}

.btn-outline:hover {
  background-color: var(--navy-dark);
  color: var(--pure-white);
}

.btn-outline-white {
  background-color: transparent;
  border-color: var(--pure-white);
  color: var(--pure-white);
}

.btn-outline-white:hover {
  background-color: var(--pure-white);
  color: var(--navy-dark);
}

/* Mobile Toggle */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--navy-dark);
  padding: 0.5rem;
  min-width: 44px;
  min-height: 44px;
}

/* Hero Section */
.hero-section {
  position: relative;
  background-color: var(--navy-dark);
  color: var(--pure-white);
  padding: 5rem 0;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.22;
  filter: saturate(0.85);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(31, 37, 49, 0.95) 0%, rgba(31, 37, 49, 0.8) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 860px;
}

.hero-badge {
  display: inline-block;
  background-color: rgba(243, 186, 47, 0.18);
  border: 1px solid var(--primary-gold);
  color: var(--primary-gold);
  padding: 0.35rem 0.9rem;
  border-radius: 50px;
  font-size: 0.825rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
}

.hero-title {
  color: var(--pure-white);
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.18;
  margin-bottom: 1.25rem;
}

.hero-lead {
  font-size: 1.15rem;
  color: #E2E8F0;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Two-sentence Non-Profit Banner */
.nonprofit-summary-bar {
  background-color: var(--off-white);
  border-top: 3px solid var(--primary-gold);
  border-bottom: 1px solid var(--border-color);
  padding: 1.75rem 0;
}

.summary-text {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--navy-dark);
  line-height: 1.65;
  margin: 0;
}

/* Mandatory Mission Block */
.mission-callout-box {
  background-color: #FFFFFF;
  border-left: 5px solid var(--secondary-orange);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 2.25rem;
  margin: 2.5rem 0;
}

.mission-callout-box h3 {
  color: var(--secondary-orange);
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.35rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.mission-callout-text {
  font-size: 1.05rem;
  color: #334155;
  line-height: 1.8;
  margin-bottom: 0;
}

/* Images & Captions Rule */
.doc-img-container {
  width: 100%;
  margin: 24px 0 10px 0;
}

.doc-img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid #E5E7EB;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  object-fit: cover;
  aspect-ratio: 16 / 10;
  transition: transform 0.3s ease;
}

.doc-img:hover {
  transform: scale(1.01);
}

figcaption.doc-caption {
  font-size: 0.875rem;
  color: #64748B;
  font-style: italic;
  margin-top: 8px;
  margin-bottom: 24px;
  display: block;
  line-height: 1.45;
  border-left: 2px solid var(--primary-gold);
  padding-left: 8px;
}

/* Grid Systems */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

/* Feature & Activity Cards */
.feature-card {
  background: var(--pure-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #CBD5E1;
}

.card-badge-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.status-badge {
  display: inline-block;
  background-color: rgba(40, 167, 69, 0.12);
  color: var(--tag-green);
  font-weight: 700;
  font-size: 0.775rem;
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
  border: 1px solid rgba(40, 167, 69, 0.25);
}

.cycle-badge {
  background-color: rgba(243, 186, 47, 0.15);
  color: #926605;
  font-weight: 700;
  font-size: 0.775rem;
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
}

/* Progress Bar */
.progress-container {
  margin: 1.25rem 0;
}

.progress-label-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.progress-track {
  width: 100%;
  height: 9px;
  background-color: var(--border-color);
  border-radius: 10px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-gold), var(--secondary-orange));
  border-radius: 10px;
  transition: width 1s ease-in-out;
}

/* Stat Counters */
.counter-box {
  background-color: var(--pure-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.counter-number {
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--secondary-orange);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.counter-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy-dark);
}

.counter-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* Audit & Financial Tables */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  margin: 1.75rem 0;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.925rem;
}

.data-table th {
  background-color: var(--navy-dark);
  color: var(--pure-white);
  padding: 1rem 1.25rem;
  font-weight: 600;
  border-bottom: 2px solid var(--border-color);
}

.data-table td {
  padding: 0.95rem 1.25rem;
  border-bottom: 1px solid var(--border-color);
  color: #334155;
}

.data-table tr:last-child td {
  border-bottom: none;
}

.data-table tr:nth-child(even) td {
  background-color: #F8FAFC;
}

.table-total-row {
  font-weight: 700;
  background-color: rgba(243, 186, 47, 0.12) !important;
}

/* Forms */
.form-card {
  background-color: var(--pure-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy-dark);
  margin-bottom: 0.45rem;
}

.form-control {
  width: 100%;
  padding: 0.8rem 1rem;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text-main);
  background-color: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  outline: none;
  transition: var(--transition);
  min-height: 44px;
}

.form-control:focus {
  border-color: var(--secondary-orange);
  box-shadow: 0 0 0 3px rgba(237, 82, 54, 0.15);
}

textarea.form-control {
  min-height: 140px;
  resize: vertical;
}

/* Modals */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(31, 37, 49, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  padding: 1.5rem;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-box {
  background-color: var(--pure-white);
  border-radius: var(--radius-lg);
  max-width: 540px;
  width: 100%;
  padding: 2.5rem;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  transform: translateY(20px);
  transition: transform 0.3s ease;
  position: relative;
}

.modal-overlay.active .modal-box {
  transform: translateY(0);
}

.modal-icon {
  width: 68px;
  height: 68px;
  background-color: rgba(40, 167, 69, 0.15);
  color: var(--tag-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 1.5rem auto;
}

.modal-close-btn {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
}

/* Footer & Compliance Hub */
.site-footer {
  background-color: var(--navy-dark);
  color: #CBD5E1;
  padding-top: 4.5rem;
  padding-bottom: 2rem;
  border-top: 4px solid var(--primary-gold);
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-heading {
  color: var(--pure-white);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 36px;
  height: 3px;
  background-color: var(--primary-gold);
}

.footer-disclosure-text {
  font-size: 0.9rem;
  color: #94A3B8;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.footer-funding-text {
  font-size: 0.85rem;
  color: #CBD5E1;
  background-color: rgba(255, 255, 255, 0.05);
  border-left: 3px solid var(--primary-gold);
  padding: 0.75rem 1rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  line-height: 1.6;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: #94A3B8;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.footer-links a:hover {
  color: var(--primary-gold);
  transform: translateX(3px);
}

.footer-contact-item {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  font-size: 0.875rem;
  color: #94A3B8;
}

.footer-bottom-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.75rem;
  text-align: center;
  font-size: 0.825rem;
  color: #64748B;
}

/* Timeline & History */
.timeline-track {
  position: relative;
  padding-left: 2.5rem;
  border-left: 3px solid var(--primary-gold);
  margin: 2.5rem 0;
}

.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
}

.timeline-dot {
  position: absolute;
  left: -2.9rem;
  top: 0;
  width: 18px;
  height: 18px;
  background-color: var(--secondary-orange);
  border: 3px solid var(--pure-white);
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--primary-gold);
}

.timeline-year {
  display: inline-block;
  background-color: var(--navy-dark);
  color: var(--primary-gold);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  margin-bottom: 0.5rem;
}

/* Responsive Media Queries */
@media (max-width: 992px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }

  .mobile-nav-toggle {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: var(--pure-white);
    flex-direction: column;
    align-items: stretch;
    padding: 1.5rem;
    box-shadow: var(--shadow-lg);
    border-bottom: 2px solid var(--border-color);
    max-height: calc(100vh - 70px);
    overflow-y: auto;
    display: none;
  }

  .nav-menu.show {
    display: flex;
  }

  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background-color: var(--off-white);
    margin-top: 0.5rem;
    padding-left: 1rem;
    display: none;
  }

  .nav-item.open .dropdown-menu {
    display: block;
  }

  .nav-link {
    width: 100%;
    justify-content: space-between;
    padding: 0.85rem 1rem;
  }
}

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.55rem; }
  h3 { font-size: 1.25rem; }

  .hero-title {
    font-size: 2.25rem;
  }

  .grid-4, .grid-3, .grid-2 {
    grid-template-columns: 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .top-utility-bar .utility-content {
    flex-direction: column;
    text-align: center;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .timeline-track {
    padding-left: 1.75rem;
  }

  .timeline-dot {
    left: -2.15rem;
  }
}
