/* ==========================================================================
   AEPHANEMER PRODUCTIONS - FEUILLE DE STYLE PRINCIPALE (STYLE.CSS)
   AESTHETIC: NEO-BRUTALIST DATA-CARD & INSTITUTIONAL LOGBOOK
   PALETTE: #2F4F4F (Slate Gray), #CC5500 (Burnt Orange), #FFFDD0 (Cream), #1C1A17 (Charcoal)
   ========================================================================== */

:root {
  --primary: #2F4F4F;
  --accent: #CC5500;
  --bg: #FFFDD0;
  --surface: #FFFFFF;
  --surface-alt: #F7F5C4;
  --text: #1C1A17;
  --text-muted: #4A463F;
  --border-color: #2F4F4F;
  --border-width: 2px;
  --shadow-depth: 4px 4px 0px #2F4F4F;
  --shadow-hover: 6px 6px 0px #CC5500;
  --radius: 4px;
  --font-display: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-display);
  line-height: 1.6;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg);
  color: var(--text);
}

/* ==========================================================================
   PROGRESS BAR
   ========================================================================== */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  width: 0%;
  background-color: var(--accent);
  z-index: 2000;
  transition: width 0.1s ease-out;
}

/* ==========================================================================
   STICKY LOGBOOK HEADER & NAVIGATION MATRIX
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--primary);
  color: var(--bg);
  border-bottom: var(--border-width) solid var(--text);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--bg);
}

.brand-badge {
  background: var(--accent);
  color: #FFF;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border: 1px solid #FFF;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.brand-title {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--bg);
  line-height: 1.2;
}

.brand-sub {
  font-size: 0.75rem;
  color: #D3E0DC;
  display: block;
  font-family: var(--font-mono);
}

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

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.6rem 0.9rem;
  color: var(--bg);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  min-height: 44px;
  cursor: pointer;
  background: none;
}

.nav-link:hover,
.nav-item:hover > .nav-link,
.nav-link:focus {
  background-color: rgba(255, 253, 208, 0.12);
  border-color: var(--accent);
  color: #FFF;
}

/* Dropdown Menu */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  background: var(--primary);
  border: var(--border-width) solid #1C1A17;
  box-shadow: var(--shadow-depth);
  list-style: none;
  padding: 0.5rem 0;
  display: none;
  z-index: 1010;
}

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

.dropdown-item a {
  display: block;
  padding: 0.65rem 1.25rem;
  color: var(--bg);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  border-left: 3px solid transparent;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.dropdown-item a:hover,
.dropdown-item a:focus {
  background-color: rgba(204, 85, 0, 0.25);
  border-left-color: var(--accent);
  color: #FFF;
}

.mobile-toggle {
  display: none;
  background: transparent;
  border: 2px solid var(--bg);
  color: var(--bg);
  padding: 0.5rem 0.75rem;
  font-size: 1.25rem;
  cursor: pointer;
  min-height: 44px;
  min-width: 44px;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   PAGE LAYOUT & CONTAINER
   ========================================================================== */
.main-wrapper {
  flex: 1;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 2rem 1.25rem;
}

.page-intro {
  margin-bottom: 2.5rem;
}

.badge-tag {
  display: inline-block;
  background: var(--primary);
  color: var(--bg);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  border: var(--border-width) solid var(--text);
  box-shadow: 2px 2px 0px var(--text);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.badge-accent {
  background: var(--accent);
  color: #FFF;
}

.page-title {
  font-size: 2.35rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1.15;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.page-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 880px;
  line-height: 1.6;
}

/* ==========================================================================
   2-COLUMN DOCUMENTARY LAYOUT (CONTENT + 2026 LOGBOOK SIDEBAR)
   ========================================================================== */
.layout-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2rem;
  align-items: start;
}

.layout-full {
  display: block;
}

.content-body {
  background: var(--surface);
  border: var(--border-width) solid var(--border-color);
  box-shadow: var(--shadow-depth);
  padding: 2.25rem;
}

.content-body h2 {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--primary);
  margin-top: 2rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--surface-alt);
  letter-spacing: -0.01em;
}

.content-body h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.content-body p {
  margin-bottom: 1.25rem;
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1.7;
}

.content-body ul, .content-body ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.content-body li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

/* ==========================================================================
   SIDEBAR WIDGET: JOURNAL DE BORD 2026
   ========================================================================== */
.sidebar-logbook {
  background: var(--surface);
  border: var(--border-width) solid var(--border-color);
  box-shadow: var(--shadow-depth);
  padding: 1.5rem;
}

.sidebar-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary);
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--accent);
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.timeline-list {
  list-style: none;
  position: relative;
}

.timeline-list::before {
  content: '';
  position: absolute;
  top: 0.5rem;
  bottom: 0.5rem;
  left: 10px;
  width: 2px;
  background: var(--primary);
}

.timeline-item {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 1.5rem;
}

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

.timeline-bullet {
  position: absolute;
  top: 0.2rem;
  left: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--surface);
  box-shadow: 0 0 0 2px var(--primary);
}

.timeline-date {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}

.timeline-headline {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.35;
  margin-bottom: 0.35rem;
}

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

/* ==========================================================================
   HOMEPAGE & HERO SECTION
   ========================================================================== */
.hero-card {
  background: var(--surface);
  border: var(--border-width) solid var(--border-color);
  box-shadow: var(--shadow-depth);
  overflow: hidden;
  margin-bottom: 2.5rem;
}

.hero-image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  max-height: 520px;
  overflow: hidden;
  background: #000;
}

.hero-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.92;
}

.hero-content {
  padding: 2.25rem;
  background: var(--surface);
}

.hero-headline {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1.15;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

/* Prominent 2-sentence non-profit mission summary */
.prominent-summary-box {
  background: var(--surface-alt);
  border-left: 6px solid var(--accent);
  border-top: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.75rem;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.6;
}

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

/* ==========================================================================
   BUTTONS & CTAS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  min-height: 44px;
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  text-decoration: none;
  cursor: pointer;
  border: var(--border-width) solid var(--text);
  box-shadow: var(--shadow-depth);
  transition: transform 0.1s ease, box-shadow 0.1s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-hover);
}

.btn:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0px var(--text);
}

.btn-primary {
  background: var(--primary);
  color: var(--bg);
}

.btn-accent {
  background: var(--accent);
  color: #FFF;
}

.btn-outline {
  background: var(--surface);
  color: var(--primary);
}

/* ==========================================================================
   DATA METRICS & SOLIDARITY PANEL
   ========================================================================== */
.metrics-panel {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin: 2.5rem 0;
}

.metric-card {
  background: var(--surface);
  border: var(--border-width) solid var(--border-color);
  box-shadow: var(--shadow-depth);
  padding: 1.5rem;
  text-align: center;
}

.metric-value {
  font-size: 2.25rem;
  font-weight: 900;
  color: var(--accent);
  font-family: var(--font-mono);
  line-height: 1.1;
  margin-bottom: 0.35rem;
}

.metric-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.metric-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

/* ==========================================================================
   ACTIVITY CARDS & GRID
   ========================================================================== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
  margin: 2.5rem 0;
}

.data-card {
  background: var(--surface);
  border: var(--border-width) solid var(--border-color);
  box-shadow: var(--shadow-depth);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.data-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-hover);
}

.card-img-wrap {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #2F4F4F;
  border-bottom: var(--border-width) solid var(--border-color);
}

.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.card-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.75rem;
  line-height: 1.25;
}

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

/* ==========================================================================
   TRANSPARENCY & FUNDING DISCLOSURE BOX
   ========================================================================== */
.transparency-box {
  background: var(--surface);
  border: var(--border-width) solid var(--primary);
  box-shadow: var(--shadow-depth);
  padding: 2rem;
  margin: 2.5rem 0;
}

.transparency-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.transparency-header h3 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary);
}

.reinvestment-banner {
  background: var(--accent);
  color: #FFF;
  padding: 1rem 1.25rem;
  font-weight: 700;
  font-size: 1rem;
  border: 1px solid var(--text);
  margin: 1rem 0;
}

/* ==========================================================================
   TABLES & DATA LOGS
   ========================================================================== */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  margin: 1.5rem 0;
  border: var(--border-width) solid var(--border-color);
  box-shadow: var(--shadow-depth);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  font-size: 0.92rem;
}

.data-table th {
  background: var(--primary);
  color: var(--bg);
  padding: 0.85rem 1rem;
  text-align: left;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  border-right: 1px solid rgba(255, 253, 208, 0.2);
}

.data-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid #E2E0B5;
  border-right: 1px solid #E2E0B5;
  color: var(--text);
}

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

.data-table tr:hover {
  background-color: var(--surface-alt);
}

/* ==========================================================================
   FORMS
   ========================================================================== */
.form-card {
  background: var(--surface);
  border: var(--border-width) solid var(--border-color);
  box-shadow: var(--shadow-depth);
  padding: 2rem;
  margin: 2rem 0;
}

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

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

.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-family: inherit;
  background: #FFF;
  border: 2px solid var(--border-color);
  border-radius: var(--radius);
  color: var(--text);
  box-shadow: 2px 2px 0px rgba(47, 79, 79, 0.2);
  min-height: 44px;
}

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

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

/* ==========================================================================
   FOOTER COMPLIANCE & LEGAL NOTICE
   ========================================================================== */
.site-footer {
  background: var(--primary);
  color: var(--bg);
  border-top: var(--border-width) solid var(--text);
  padding: 3.5rem 1.25rem 2rem;
  margin-top: auto;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 253, 208, 0.25);
}

.footer-col h4 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--bg);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
  padding-bottom: 0.35rem;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}

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

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

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

.footer-links a {
  color: #FFFDD0;
  text-decoration: none;
  font-size: 0.88rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  transition: color 0.15s ease;
}

.footer-links a:hover, .footer-links a:focus {
  color: #FFF;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
}

/* MANDATORY COMPLIANCE BLOCK */
.compliance-block {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 253, 208, 0.3);
  padding: 1.5rem;
  font-size: 0.85rem;
  line-height: 1.7;
  color: #F0F4E8;
  text-align: justify;
  margin-bottom: 1.5rem;
}

.compliance-block strong {
  color: #FFFDD0;
}

.footer-bottom {
  text-align: center;
  font-size: 0.8rem;
  color: #C0CCC7;
  padding-top: 1rem;
}

/* ==========================================================================
   IMAGE IN CONTENT BLOCKS
   ========================================================================== */
.content-img-box {
  border: var(--border-width) solid var(--border-color);
  box-shadow: var(--shadow-depth);
  margin: 1.75rem 0;
  overflow: hidden;
  background: #2F4F4F;
}

.content-img-box img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}

/* ==========================================================================
   MEDIA QUERIES (MOBILE RESPONSIVENESS)
   ========================================================================== */
@media (max-width: 992px) {
  .layout-grid {
    grid-template-columns: 1fr;
  }
  
  .metrics-panel {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .header-inner {
    flex-wrap: wrap;
  }
  
  .mobile-toggle {
    display: flex;
  }
  
  .nav-menu {
    display: none;
    flex-direction: column;
    width: 100%;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 253, 208, 0.2);
    gap: 0.25rem;
  }
  
  .nav-menu.is-open {
    display: flex;
  }
  
  .nav-item {
    width: 100%;
  }
  
  .nav-link {
    width: 100%;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: rgba(0, 0, 0, 0.15);
  }
  
  .dropdown-menu {
    position: static;
    display: none;
    box-shadow: none;
    border-width: 1px 0 0 0;
    width: 100%;
    padding: 0.25rem 0 0.5rem 1rem;
    background: rgba(0, 0, 0, 0.25);
  }
  
  .nav-item.dropdown-open .dropdown-menu {
    display: block;
  }
  
  .metrics-panel {
    grid-template-columns: 1fr;
  }
  
  .hero-headline {
    font-size: 1.85rem;
  }
  
  .page-title {
    font-size: 1.75rem;
  }
  
  .content-body {
    padding: 1.25rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
}
