/* ==========================================================================
   ÉGLISE FORTIFIÉE DE MACQUIGNY - ARCHITECTURE STYLESHEET
   Aesthetic: Neo-Brutalist Data-Card System & Institutional Public Register
   Colors: Slate Gray (#2F4F4F), Burnt Orange (#CC5500), Cream (#FFFDD0), Charcoal (#1C1A17)
   ========================================================================== */

:root {
  --color-slate: #2F4F4F;
  --color-slate-dark: #1F3636;
  --color-slate-light: #3D6464;
  --color-orange: #CC5500;
  --color-orange-hover: #B24700;
  --color-cream: #FFFDD0;
  --color-cream-card: #FAF8CA;
  --color-cream-border: #E6E2A3;
  --color-charcoal: #1C1A17;
  --color-muted: #4A4740;
  --color-light-gray: #F2EFC7;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SF Mono", "Segoe UI Mono", "Roboto Mono", Menlo, Consolas, monospace;
  --border-card: 2px solid var(--color-slate);
  --shadow-brutal: 4px 4px 0px var(--color-slate);
  --shadow-brutal-sm: 2px 2px 0px var(--color-slate);
  --shadow-brutal-orange: 4px 4px 0px var(--color-orange);
}

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

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

body {
  background-color: var(--color-cream);
  color: var(--color-charcoal);
  font-family: var(--font-sans);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ==========================================================================
   HEADER & STICKY LOGBOOK
   ========================================================================== */
.header-sticky {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--color-slate);
  color: var(--color-cream);
  border-bottom: 2px solid var(--color-slate-dark);
}

.header-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 64px;
}

.brand-logbook {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--color-cream);
}

.brand-badge {
  background: var(--color-orange);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 2px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.brand-name {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.brand-sub {
  display: block;
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: #E2E0BD;
  font-weight: 400;
}

/* Reading Progress Bar */
.reading-progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 4px;
  background-color: var(--color-orange);
  width: 0%;
  transition: width 0.1s linear;
  z-index: 1001;
}

/* Navigation Matrix */
.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 6px;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 14px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--color-cream);
  text-decoration: none;
  background: transparent;
  border: none;
  cursor: pointer;
  border-radius: 2px;
  transition: background 0.15s ease, color 0.15s ease;
  min-height: 44px;
}

.nav-link:hover,
.nav-link:focus {
  background-color: var(--color-slate-dark);
  color: #ffffff;
}

.nav-caret {
  font-size: 0.65rem;
  transition: transform 0.2s ease;
}

/* Dropdown Matrix */
.dropdown-panel {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  width: 280px;
  background-color: #ffffff;
  color: var(--color-charcoal);
  border: 2px solid var(--color-slate);
  box-shadow: var(--shadow-brutal);
  padding: 8px 0;
  z-index: 1010;
  list-style: none;
}

.nav-item:hover .dropdown-panel,
.nav-item:focus-within .dropdown-panel {
  display: block;
}

.dropdown-link {
  display: block;
  padding: 10px 18px;
  color: var(--color-charcoal);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  border-left: 3px solid transparent;
  transition: all 0.15s ease;
  min-height: 44px;
  line-height: 24px;
}

.dropdown-link:hover,
.dropdown-link:focus {
  background-color: var(--color-light-gray);
  border-left-color: var(--color-orange);
  color: var(--color-slate);
  padding-left: 22px;
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  background: var(--color-slate-dark);
  color: var(--color-cream);
  border: 2px solid var(--color-cream-border);
  padding: 8px 12px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
}

/* ==========================================================================
   LAYOUT STRUCTURE
   ========================================================================== */
.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

.site-main {
  flex: 1 0 auto;
  padding: 32px 0 64px;
}

/* Breadcrumbs / Metadata Status bar */
.status-log-strip {
  background: var(--color-slate-dark);
  color: var(--color-cream);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  padding: 6px 20px;
  border-bottom: 1px solid var(--color-slate);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.status-log-strip a {
  color: var(--color-cream);
  text-decoration: none;
}

.status-log-strip a:hover {
  color: var(--color-orange);
  text-decoration: underline;
}

/* ==========================================================================
   PAGE HERO & HEADLINES
   ========================================================================== */
.page-hero {
  background: var(--color-cream-card);
  border: var(--border-card);
  box-shadow: var(--shadow-brutal);
  padding: 36px 36px 32px;
  margin-bottom: 32px;
  position: relative;
}

.page-hero.has-banner {
  padding: 0;
  overflow: hidden;
}

.hero-banner-wrap {
  width: 100%;
  max-height: 480px;
  overflow: hidden;
  position: relative;
  background: var(--color-slate);
}

.hero-banner-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 480px;
}

.hero-content-pad {
  padding: 36px;
}

.page-pretitle {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-orange);
  font-weight: 700;
  margin-bottom: 10px;
  display: inline-block;
  background: #ffffff;
  padding: 3px 8px;
  border: 1px solid var(--color-slate);
}

.page-title {
  font-size: 2.3rem;
  font-weight: 900;
  color: var(--color-slate);
  line-height: 1.2;
  margin-bottom: 18px;
  letter-spacing: -0.02em;
}

/* Prominent 2-Sentence Summary Box */
.summary-lead-box {
  background-color: #ffffff;
  border-left: 6px solid var(--color-orange);
  border-top: 1px solid var(--color-slate);
  border-right: 1px solid var(--color-slate);
  border-bottom: 1px solid var(--color-slate);
  padding: 18px 24px;
  margin: 20px 0 24px;
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--color-charcoal);
  line-height: 1.6;
}

.mission-highlight-block {
  background: var(--color-light-gray);
  border: 1px dashed var(--color-slate);
  padding: 22px;
  margin-bottom: 24px;
  font-size: 1.02rem;
  line-height: 1.7;
}

/* ==========================================================================
   METRICS & TRANSPARENCY CARDS
   ========================================================================== */
.metrics-panel {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 32px 0;
}

.metric-card {
  background: #ffffff;
  border: var(--border-card);
  box-shadow: var(--shadow-brutal-sm);
  padding: 20px;
  text-align: center;
}

.metric-value {
  font-family: var(--font-mono);
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--color-orange);
  line-height: 1;
  margin-bottom: 8px;
}

.metric-label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-slate);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.metric-sub {
  font-size: 0.78rem;
  color: var(--color-muted);
  margin-top: 4px;
  font-family: var(--font-mono);
}

/* Transparency & Non-profit statement boxes */
.transparency-callout {
  background: #ffffff;
  border: 2px solid var(--color-slate);
  border-left: 8px solid var(--color-slate);
  padding: 24px;
  margin: 28px 0;
  box-shadow: var(--shadow-brutal-sm);
}

.transparency-callout h3 {
  font-size: 1.15rem;
  color: var(--color-slate);
  margin-bottom: 10px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
}

.reinvestment-quote {
  font-weight: 700;
  color: var(--color-orange);
  background: var(--color-cream-card);
  padding: 10px 14px;
  border-left: 4px solid var(--color-orange);
  margin-top: 12px;
  font-size: 0.95rem;
}

/* ==========================================================================
   GRID LAYOUTS & TWO-COLUMN ARCHITECTURE
   ========================================================================== */
.content-grid-split {
  display: grid;
  grid-template-columns: 2.2fr 1fr;
  gap: 32px;
  align-items: start;
}

.main-column {
  min-width: 0;
}

.sidebar-column {
  position: sticky;
  top: 84px;
}

/* Cards & Data-Boxes */
.data-card {
  background: #ffffff;
  border: var(--border-card);
  box-shadow: var(--shadow-brutal);
  margin-bottom: 28px;
  overflow: hidden;
}

.data-card-header {
  background: var(--color-slate);
  color: var(--color-cream);
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid var(--color-slate-dark);
}

.data-card-header h2,
.data-card-header h3 {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.data-card-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  background: var(--color-orange);
  color: #ffffff;
  padding: 3px 8px;
  border-radius: 2px;
  font-weight: 700;
}

.data-card-body {
  padding: 24px;
}

.data-card-body p {
  margin-bottom: 16px;
  font-size: 1rem;
}

.data-card-body p:last-child {
  margin-bottom: 0;
}

.data-card-media {
  width: 100%;
  overflow: hidden;
  background: var(--color-slate);
  border-bottom: 1px solid var(--color-slate);
}

.data-card-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 420px;
}

/* Activity 4-Cards Grid */
.activity-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin: 32px 0;
}

.activity-card {
  background: #ffffff;
  border: var(--border-card);
  box-shadow: var(--shadow-brutal);
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.activity-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0px var(--color-slate);
}

.activity-card-media {
  width: 100%;
  height: 220px;
  overflow: hidden;
  border-bottom: 2px solid var(--color-slate);
  background: var(--color-slate);
}

.activity-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.activity-card-content {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.activity-card-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-slate);
  margin-bottom: 10px;
  line-height: 1.3;
}

.activity-card-meta {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--color-orange);
  font-weight: 700;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.activity-card-desc {
  font-size: 0.95rem;
  color: var(--color-charcoal);
  margin-bottom: 18px;
  flex: 1;
}

/* ==========================================================================
   BUTTONS & CTAs
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 12px 24px;
  border: 2px solid var(--color-slate);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s ease;
  min-height: 44px;
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-orange);
  color: #ffffff;
  box-shadow: var(--shadow-brutal-sm);
}

.btn-primary:hover,
.btn-primary:focus {
  background: var(--color-orange-hover);
  transform: translate(-1px, -1px);
  box-shadow: var(--shadow-brutal);
}

.btn-secondary {
  background: #ffffff;
  color: var(--color-slate);
  box-shadow: var(--shadow-brutal-sm);
}

.btn-secondary:hover,
.btn-secondary:focus {
  background: var(--color-light-gray);
  transform: translate(-1px, -1px);
  box-shadow: var(--shadow-brutal);
}

.btn-block {
  display: flex;
  width: 100%;
}

.cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin: 24px 0 16px;
}

/* ==========================================================================
   SIDEBAR & JOURNAL DE BORD 2026
   ========================================================================== */
.sidebar-widget {
  background: #ffffff;
  border: var(--border-card);
  box-shadow: var(--shadow-brutal);
  margin-bottom: 24px;
}

.widget-title {
  background: var(--color-slate);
  color: var(--color-cream);
  padding: 12px 18px;
  font-size: 0.95rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.widget-body {
  padding: 18px;
}

/* Journal Timeline */
.timeline-list {
  list-style: none;
  position: relative;
  padding-left: 18px;
}

.timeline-list::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--color-slate-light);
}

.timeline-item {
  position: relative;
  margin-bottom: 18px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-bullet {
  position: absolute;
  left: -18px;
  top: 4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-orange);
  border: 2px solid #ffffff;
  box-shadow: 0 0 0 1px var(--color-slate);
}

.timeline-date {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--color-orange);
  font-weight: 700;
}

.timeline-headline {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-slate);
  margin: 2px 0 4px;
}

.timeline-text {
  font-size: 0.82rem;
  color: var(--color-muted);
  line-height: 1.45;
}

/* Key facts / Registry Table */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 0.9rem;
}

.data-table th,
.data-table td {
  padding: 10px 14px;
  border: 1px solid var(--color-slate);
  text-align: left;
}

.data-table th {
  background: var(--color-light-gray);
  color: var(--color-slate);
  font-weight: 800;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  text-transform: uppercase;
}

.data-table tr:nth-child(even) td {
  background: var(--color-cream-card);
}

/* Forms */
.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-slate);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid var(--color-slate);
  background: #ffffff;
  color: var(--color-charcoal);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  min-height: 44px;
}

.form-control:focus {
  outline: none;
  border-color: var(--color-orange);
  box-shadow: 0 0 0 2px var(--color-cream-card);
}

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

/* ==========================================================================
   FOOTER & COMPLIANCE SYSTEM
   ========================================================================== */
.site-footer {
  background-color: var(--color-slate);
  color: var(--color-cream);
  border-top: 4px solid var(--color-orange);
  padding: 48px 0 24px;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 36px;
  margin-bottom: 40px;
}

.footer-col h4 {
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #ffffff;
  margin-bottom: 16px;
  border-bottom: 2px solid var(--color-orange);
  padding-bottom: 6px;
  display: inline-block;
}

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

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--color-cream);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.15s ease, padding-left 0.15s ease;
  display: inline-block;
}

.footer-links a:hover,
.footer-links a:focus {
  color: var(--color-orange);
  padding-left: 4px;
}

.footer-badge-box {
  background: var(--color-slate-dark);
  border: 1px solid var(--color-slate-light);
  padding: 16px;
  margin-top: 12px;
  font-size: 0.82rem;
  line-height: 1.5;
}

.footer-compliance-bar {
  border-top: 1px solid var(--color-slate-light);
  padding-top: 24px;
  margin-top: 24px;
  font-size: 0.82rem;
  line-height: 1.6;
  color: #E6E4C4;
}

.footer-compliance-text {
  background: var(--color-slate-dark);
  padding: 16px 20px;
  border: 1px solid var(--color-slate-light);
  margin-bottom: 18px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.footer-bottom-links {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.82rem;
}

.footer-legal-inline {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-legal-inline a {
  color: var(--color-cream);
  text-decoration: underline;
  font-weight: 700;
}

.footer-legal-inline a:hover {
  color: var(--color-orange);
}

/* ==========================================================================
   MOBILE RESPONSIVENESS (BREAKPOINTS <= 992px and <= 768px)
   ========================================================================== */
@media (max-width: 992px) {
  .content-grid-split {
    grid-template-columns: 1fr;
  }
  
  .sidebar-column {
    position: static;
  }
  
  .metrics-panel {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }
}

@media (max-width: 768px) {
  .header-inner {
    flex-wrap: wrap;
    padding: 10px 16px;
  }
  
  .mobile-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  
  .nav-menu {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding: 14px 0 10px;
    gap: 0;
    border-top: 1px solid var(--color-slate-dark);
  }
  
  .nav-menu.is-active {
    display: flex;
  }
  
  .nav-item {
    width: 100%;
  }
  
  .nav-link {
    width: 100%;
    justify-content: space-between;
    padding: 14px 12px;
    border-bottom: 1px solid var(--color-slate-dark);
  }
  
  .dropdown-panel {
    position: static;
    display: none;
    width: 100%;
    box-shadow: none;
    border: none;
    border-left: 4px solid var(--color-orange);
    background: #ffffff;
  }
  
  .nav-item.dropdown-open .dropdown-panel {
    display: block;
  }
  
  .metrics-panel {
    grid-template-columns: 1fr;
  }
  
  .activity-grid {
    grid-template-columns: 1fr;
  }
  
  .page-title {
    font-size: 1.8rem;
  }
  
  .page-hero {
    padding: 24px 18px;
  }
  
  .hero-content-pad {
    padding: 20px 18px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .footer-bottom-links {
    flex-direction: column;
    align-items: flex-start;
  }
}
