/* CCBAL CERCLE CULTUREL BAMILEKE - ARCHITECTURE CSS OFFICIELLE */
/* Charte Graphique Loi 1901 - Utilité Publique */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700;800;900&family=Open+Sans:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
  --navy: #0E2335;
  --navy-light: #183752;
  --navy-dark: #07131e;
  --teal: #00A3E0;
  --teal-hover: #0084b6;
  --teal-light: #e6f6fc;
  --coral: #E54838;
  --coral-hover: #c93b2c;
  --coral-light: #fdf0ee;
  --canvas: #F4F6F8;
  --white: #FFFFFF;
  --text-dark: #1A1A1A;
  --text-muted: #4A5568;
  --border-light: #E2E8F0;
  --font-heading: 'Montserrat', 'Oswald', Arial, sans-serif;
  --font-body: 'Open Sans', 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
  --shadow-sm: 0 2px 4px rgba(14, 35, 53, 0.05);
  --shadow-md: 0 4px 12px rgba(14, 35, 53, 0.08);
  --shadow-lg: 0 10px 25px rgba(14, 35, 53, 0.12);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 1.0625rem; /* 17px */
  line-height: 1.65;
  color: var(--text-dark);
  background-color: var(--canvas);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-weight: 800;
  line-height: 1.15;
  color: var(--navy);
  letter-spacing: -0.02em;
}

h1 { font-size: 2.5rem; margin-bottom: 1.25rem; }
h2 { font-size: 2rem; margin-bottom: 1rem; }
h3 { font-size: 1.45rem; margin-bottom: 0.75rem; }
h4 { font-size: 1.15rem; margin-bottom: 0.5rem; }

p {
  margin-bottom: 1.25rem;
  max-width: 75ch;
}

a {
  color: var(--teal);
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease;
}

a:hover, a:focus {
  color: var(--teal-hover);
}

strong, b {
  font-weight: 700;
  color: var(--navy);
}

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

.container-narrow {
  max-width: 900px;
}

/* TOP ADMINISTRATIVE UTILITY STRIP */
.admin-utility-strip {
  background-color: var(--navy);
  color: #cfd8dc;
  font-size: 0.8125rem;
  font-family: var(--font-body);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.5rem 0;
}

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

.admin-identity {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.admin-identity span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.admin-identity strong {
  color: #ffffff;
  font-weight: 600;
}

.admin-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.admin-legal-link {
  color: #b0bec5;
  font-weight: 600;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.admin-legal-link:hover {
  color: var(--white);
  text-decoration: underline;
}

.btn-donate-strip {
  background-color: var(--coral);
  color: var(--white) !important;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.4rem 0.9rem;
  border-radius: 2px;
  display: inline-block;
  white-space: nowrap;
  transition: background-color 0.2s ease, transform 0.1s ease;
  min-height: 36px;
  line-height: 24px;
}

.btn-donate-strip:hover {
  background-color: var(--coral-hover);
  transform: translateY(-1px);
}

/* MAIN NAVIGATION BAR */
.main-header {
  background-color: var(--white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 2px solid var(--border-light);
}

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

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

.brand-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--navy);
  letter-spacing: -0.01em;
  line-height: 1.1;
  text-decoration: none;
}

.brand-subtitle {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.15rem;
}

.nav-menu {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 0.5rem;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--navy);
  padding: 0.75rem 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  transition: color 0.2s, background-color 0.2s;
  min-height: 44px;
}

.nav-link:hover, .nav-item:focus-within > .nav-link {
  color: var(--teal);
}

/* DROPDOWN MENU */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 250px;
  background-color: var(--white);
  list-style: none;
  padding: 0.5rem 0;
  border-top: 3px solid var(--teal);
  box-shadow: var(--shadow-lg);
  border-radius: 0 0 2px 2px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 999;
}

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

.dropdown-item {
  display: block;
}

.dropdown-link {
  display: block;
  padding: 0.65rem 1.25rem;
  font-size: 0.9rem;
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--text-dark);
  border-bottom: 1px solid #f0f3f6;
  min-height: 44px;
}

.dropdown-link:hover {
  background-color: var(--teal-light);
  color: var(--teal-hover);
  padding-left: 1.5rem;
}

/* MOBILE TOGGLE */
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-light);
  padding: 0.5rem 0.75rem;
  font-size: 1.25rem;
  cursor: pointer;
  color: var(--navy);
  min-height: 44px;
  min-width: 44px;
  border-radius: 2px;
}

/* HERO BANNER & INTRO */
.hero-section {
  position: relative;
  background-color: var(--navy);
  color: var(--white);
  padding: 4.5rem 0;
  overflow: hidden;
}

.hero-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.28;
  filter: blur(1px);
}

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

.hero-tag {
  display: inline-block;
  background-color: var(--teal);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 800;
  padding: 0.35rem 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.25rem;
  border-radius: 2px;
}

.hero-headline {
  color: var(--white);
  font-size: 3rem;
  font-weight: 900;
  line-height: 1.08;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
}

.hero-summary-2sent {
  font-size: 1.25rem;
  line-height: 1.6;
  color: #e2e8f0;
  margin-bottom: 2rem;
  font-weight: 400;
  border-left: 3px solid var(--teal);
  padding-left: 1.25rem;
}

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

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.85rem 1.7rem;
  border-radius: 2px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
  min-height: 48px;
  text-align: center;
}

.btn-primary {
  background-color: var(--teal);
  color: var(--white) !important;
}

.btn-primary:hover {
  background-color: var(--teal-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-coral {
  background-color: var(--coral);
  color: var(--white) !important;
}

.btn-coral:hover {
  background-color: var(--coral-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

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

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

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

/* INSTITUTIONAL CALLOUT MANDATE */
.mandate-callout-box {
  background-color: var(--white);
  border-left: 5px solid var(--navy);
  border-top: 4px solid var(--teal);
  padding: 2.25rem;
  margin: 2.5rem 0;
  border-radius: 2px;
  box-shadow: var(--shadow-md);
}

.mandate-callout-title {
  font-size: 1.45rem;
  color: var(--navy);
  margin-bottom: 1rem;
}

.mandate-callout-text {
  font-size: 1.0625rem;
  color: var(--text-dark);
  line-height: 1.75;
  margin-bottom: 0;
}

/* STATUTORY QUOTE BOX */
.statutory-quote-banner {
  background-color: var(--teal-light);
  border-left: 4px solid var(--teal);
  padding: 1.5rem 2rem;
  margin: 2rem 0;
  border-radius: 2px;
  font-size: 1.125rem;
  font-style: italic;
  color: var(--navy);
  font-weight: 600;
}

/* TEAL FORM BANNER */
.teal-banner-form {
  background-color: var(--teal);
  color: var(--white);
  padding: 3rem 0;
  border-radius: 2px;
  box-shadow: var(--shadow-md);
  margin: 3.5rem 0;
}

.teal-banner-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.teal-banner-content h3 {
  color: var(--white);
  font-size: 1.85rem;
  margin-bottom: 0.75rem;
}

.teal-banner-content p {
  color: #e6f6fc;
  font-size: 1.05rem;
  margin-bottom: 0;
}

.intake-form-horizontal {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.form-control-input {
  flex: 1;
  min-width: 200px;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 2px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  min-height: 48px;
  outline: none;
}

.form-control-input:focus {
  border-color: var(--white);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

/* CARDS & GRIDS */
.section-padding {
  padding: 4rem 0;
}

.section-header {
  margin-bottom: 2.5rem;
}

.section-badge {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--teal);
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

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

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

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

.grid-5col {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
}

.card {
  background-color: var(--white);
  border-radius: 2px;
  border-top: 4px solid var(--teal);
  box-shadow: var(--shadow-sm);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.card-coral-top {
  border-top-color: var(--coral);
}

.card-navy-top {
  border-top-color: var(--navy);
}

.card-img-top {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 2px 2px 0 0;
  display: block;
}

.card-body {
  padding: 1.5rem;
}

.card-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.card-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.status-badge {
  display: inline-block;
  background-color: #e8f5e9;
  color: #2e7d32;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 2px;
  letter-spacing: 0.04em;
  margin-bottom: 0.75rem;
}

/* CIRCULAR UPDATES SECTION (5-COL) */
.circle-update-card {
  background-color: var(--white);
  border-radius: 2px;
  border-top: 4px solid var(--navy);
  padding: 1.75rem 1.25rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.circle-badge {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: var(--teal-light);
  color: var(--teal);
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.circle-update-card h4 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.circle-update-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* SPLIT CAMPAIGN GRID */
.campaign-split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin: 3rem 0;
}

.campaign-split-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: var(--shadow-md);
  border-top: 4px solid var(--coral);
}

/* TRANSPARENCY & STATUTORY BLOCK */
.transparency-block {
  background-color: var(--white);
  border-top: 4px solid var(--navy);
  padding: 3rem;
  border-radius: 2px;
  box-shadow: var(--shadow-sm);
  margin: 3rem 0;
}

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

.transparency-item {
  border-left: 3px solid var(--teal);
  padding-left: 1.25rem;
}

.transparency-item h4 {
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.transparency-item p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* TABLES (DATA & IMPACT) */
.data-table-container {
  width: 100%;
  overflow-x: auto;
  margin: 2rem 0;
  background-color: var(--white);
  border-radius: 2px;
  box-shadow: var(--shadow-sm);
}

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

.data-table th, .data-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-light);
}

.data-table th {
  background-color: var(--navy);
  color: var(--white);
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-size: 0.8125rem;
  letter-spacing: 0.05em;
}

.data-table tr:hover {
  background-color: #f8fafc;
}

/* FORMS (CONTACT & VOLUNTEER) */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

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

.form-group-full {
  grid-column: 1 / -1;
}

.form-label {
  display: block;
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 0.5rem;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border-light);
  border-radius: 2px;
  background-color: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-dark);
  min-height: 48px;
}

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

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px var(--teal-light);
}

/* TIMELINE (HISTORY) */
.timeline {
  position: relative;
  margin: 3rem 0;
  padding-left: 2.5rem;
  border-left: 3px solid var(--teal);
}

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

.timeline-marker {
  position: absolute;
  left: -3.35rem;
  top: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: var(--teal);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--teal);
}

.timeline-year {
  display: inline-block;
  background-color: var(--navy);
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 800;
  padding: 0.25rem 0.65rem;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
  border-radius: 2px;
}

/* MASTER FOOTER */
.master-footer {
  background-color: var(--navy);
  color: #cfd8dc;
  padding-top: 4.5rem;
  margin-top: 5rem;
  border-top: 4px solid var(--teal);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 3rem;
  padding-bottom: 3.5rem;
}

.footer-col h4 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
  letter-spacing: 0.05em;
  position: relative;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgba(0, 163, 224, 0.5);
}

.footer-col p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #b0bec5;
  margin-bottom: 0.85rem;
}

.footer-links {
  list-style: none;
}

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

.footer-links a {
  color: #b0bec5;
  font-size: 0.9rem;
  display: inline-block;
  transition: color 0.2s, padding-left 0.2s;
  min-height: 36px;
  line-height: 36px;
}

.footer-links a:hover {
  color: var(--teal);
  padding-left: 0.35rem;
}

.footer-newsletter-box {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 1.25rem;
  border-radius: 2px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-newsletter-input {
  width: 100%;
  padding: 0.75rem;
  margin-bottom: 0.75rem;
  background: #ffffff;
  border: 1px solid #ccc;
  border-radius: 2px;
  font-size: 0.875rem;
  min-height: 44px;
}

/* MANDATORY BOTTOM LEGAL STRIP */
.bottom-legal-strip {
  background-color: var(--navy-dark);
  color: #90a4ae;
  font-size: 0.8125rem;
  line-height: 1.65;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.bottom-legal-strip strong {
  color: #eceff1;
}

/* RESPONSIVE BREAKPOINTS */
@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
  
  .teal-banner-inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .campaign-split-grid {
    grid-template-columns: 1fr;
  }
  
  .grid-5col {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .hero-headline {
    font-size: 2.25rem;
  }
}

@media (max-width: 768px) {
  /* MULTI-COLUMN COLLAPSE TO SINGLE COLUMN MANDATE */
  .grid-2col,
  .grid-3col,
  .grid-4col,
  .grid-5col,
  .transparency-grid,
  .footer-grid,
  .form-grid {
    grid-template-columns: 1fr !important;
  }

  .admin-utility-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .admin-actions {
    width: 100%;
    justify-content: space-between;
  }
  
  .nav-toggle {
    display: block;
  }
  
  .nav-menu {
    display: none;
    flex-direction: column;
    width: 100%;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    padding: 1rem;
    box-shadow: var(--shadow-lg);
    border-top: 1px solid var(--border-light);
  }
  
  .nav-menu.is-active {
    display: flex;
  }
  
  .nav-item {
    width: 100%;
  }
  
  .nav-link {
    width: 100%;
    justify-content: space-between;
    padding: 0.85rem 0.5rem;
    border-bottom: 1px solid #f0f3f6;
  }
  
  .dropdown-menu {
    position: static;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    padding-left: 1rem;
    border-top: none;
    border-left: 3px solid var(--teal);
    display: none;
  }
  
  .nav-item.is-open .dropdown-menu {
    display: block;
  }
  
  .hero-headline {
    font-size: 1.85rem;
  }
  
  .hero-summary-2sent {
    font-size: 1.05rem;
  }
}
