/* ==========================================================================
   IKARIBUT - FEUILLE DE STYLE PRINCIPALE (STYLE.CSS)
   AESTHETIC: NEO-BRUTALIST DATA-CARD SYSTEM (INSTITUTIONAL LOGBOOK 2026)
   COLOR PALETTE:
     Primary Slate Gray: #2F4F4F
     Accent Burnt Orange: #CC5500
     Background Cream: #FFFDD0
     Text Charcoal: #1C1A17
     Pure White Card: #FFFFFF
     Border Neutral: #2F4F4F
   ========================================================================== */

:root {
  --primary-slate: #2F4F4F;
  --accent-orange: #CC5500;
  --bg-cream: #FFFDD0;
  --text-charcoal: #1C1A17;
  --card-white: #FFFFFF;
  --border-dark: #2F4F4F;
  --border-light: #4A6B6B;
  --card-subtle: #F6F4C4;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace;
}

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

html {
  font-size: 16px;
  line-height: 1.6;
  background-color: var(--bg-cream);
  color: var(--text-charcoal);
  font-family: var(--font-sans);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-cream);
  color: var(--text-charcoal);
  font-size: 1rem;
}

/* ==========================================================================
   STICKY LOGBOOK HEADER & READING PROGRESS BAR
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--primary-slate);
  color: var(--bg-cream);
  border-bottom: 3px solid var(--border-dark);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.reading-progress-container {
  width: 100%;
  height: 4px;
  background: rgba(255, 253, 208, 0.25);
  position: absolute;
  bottom: 0;
  left: 0;
}

.reading-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--accent-orange);
  transition: width 0.1s ease-out;
}

.header-inner {
  max-width: 1240px;
  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-cream);
}

.brand-symbol {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--accent-orange);
  color: #FFFFFF;
  font-weight: 900;
  font-size: 1.25rem;
  border: 2px solid var(--bg-cream);
}

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

.brand-title {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--bg-cream);
  line-height: 1.2;
}

.brand-tagline {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 253, 208, 0.85);
  font-family: var(--font-mono);
}

/* ==========================================================================
   NAVIGATION & DROPDOWN MATRIX
   ========================================================================== */
.main-nav {
  display: flex;
  align-items: center;
}

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

.nav-item {
  position: relative;
}

.nav-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 0.9rem;
  background: transparent;
  color: var(--bg-cream);
  border: 1px solid rgba(255, 253, 208, 0.35);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  min-height: 44px;
  min-width: 44px;
  transition: all 0.2s ease;
}

.nav-toggle-btn:hover,
.nav-item:hover .nav-toggle-btn,
.nav-item:focus-within .nav-toggle-btn {
  background: var(--accent-orange);
  color: #FFFFFF;
  border-color: var(--accent-orange);
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 250px;
  background: var(--card-white);
  border: 2px solid var(--border-dark);
  box-shadow: 4px 4px 0px var(--border-dark);
  list-style: none;
  padding: 0.5rem 0;
  z-index: 1050;
}

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

.dropdown-link {
  display: block;
  padding: 0.65rem 1.15rem;
  color: var(--text-charcoal);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  border-bottom: 1px solid #ECECEC;
  transition: background 0.15s ease, color 0.15s ease;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.dropdown-item:last-child .dropdown-link {
  border-bottom: none;
}

.dropdown-link:hover,
.dropdown-link:focus {
  background: var(--primary-slate);
  color: var(--bg-cream);
  padding-left: 1.35rem;
}

.mobile-menu-trigger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 8px;
  background: var(--accent-orange);
  border: 2px solid var(--bg-cream);
  cursor: pointer;
}

.mobile-menu-trigger span {
  display: block;
  height: 3px;
  background: #FFFFFF;
  width: 100%;
}

/* ==========================================================================
   LAYOUT CONTAINERS & GRIDS
   ========================================================================== */
.main-wrapper {
  flex: 1 0 auto;
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
  padding: 2rem 1.25rem 3.5rem;
}

.page-grid-layout {
  display: grid;
  grid-template-columns: minmax(0, 2.5fr) minmax(280px, 1fr);
  gap: 2rem;
  align-items: start;
}

.full-width-layout {
  display: block;
  width: 100%;
}

/* ==========================================================================
   HERO BANNER & NON-PROFIT SUMMARY BLOCK
   ========================================================================== */
.hero-block {
  background: var(--card-white);
  border: 3px solid var(--border-dark);
  box-shadow: 6px 6px 0px var(--border-dark);
  margin-bottom: 2.25rem;
  overflow: hidden;
}

.hero-image-wrapper {
  width: 100%;
  position: relative;
  background: #000;
  overflow: hidden;
}

.hero-image-wrapper img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.hero-content {
  padding: 1.75rem 2rem;
  background: var(--card-white);
}

.hero-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.badge-tag {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 700;
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px solid var(--border-dark);
}

.badge-tag.orange {
  background: var(--accent-orange);
  color: #FFFFFF;
  border-color: var(--accent-orange);
}

.badge-tag.slate {
  background: var(--primary-slate);
  color: var(--bg-cream);
}

.badge-tag.cream {
  background: var(--card-subtle);
  color: var(--text-charcoal);
}

.hero-heading {
  font-size: 2.25rem;
  font-weight: 900;
  color: var(--primary-slate);
  line-height: 1.2;
  margin-bottom: 1.25rem;
}

/* 2-Sentence Homepage Summary Required By Specifications */
.hero-summary-box {
  background: var(--card-subtle);
  border-left: 6px solid var(--accent-orange);
  border-top: 1px solid var(--border-dark);
  border-right: 1px solid var(--border-dark);
  border-bottom: 1px solid var(--border-dark);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.65;
  color: var(--text-charcoal);
}

.funding-transparency-box {
  background: #FFFFFF;
  border: 2px dashed var(--accent-orange);
  padding: 1.15rem 1.35rem;
  margin: 1.5rem 0;
  font-size: 0.95rem;
  line-height: 1.6;
}

.reinvestment-callout {
  background: var(--primary-slate);
  color: var(--bg-cream);
  padding: 1rem 1.35rem;
  font-weight: 700;
  margin: 1.5rem 0;
  border: 2px solid var(--border-dark);
}

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

.metric-card {
  background: var(--card-white);
  border: 2px solid var(--border-dark);
  box-shadow: 4px 4px 0px var(--border-dark);
  padding: 1.25rem 1rem;
  text-align: center;
}

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

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

.metric-subtext {
  font-size: 0.75rem;
  color: #555;
  margin-top: 0.35rem;
  line-height: 1.3;
}

/* ==========================================================================
   CONTENT CARDS, GRIDS & TYPOGRAPHY
   ========================================================================== */
.content-card {
  background: var(--card-white);
  border: 2px solid var(--border-dark);
  box-shadow: 4px 4px 0px var(--border-dark);
  padding: 1.75rem;
  margin-bottom: 2rem;
}

.card-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--border-dark);
  padding-bottom: 0.75rem;
  margin-bottom: 1.25rem;
}

.card-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--primary-slate);
}

.card-meta-code {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-orange);
  font-weight: 700;
}

.image-card-wrapper {
  margin: 1.25rem 0;
  border: 2px solid var(--border-dark);
  overflow: hidden;
  background: #000;
}

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

p {
  margin-bottom: 1.15rem;
  line-height: 1.7;
}

p:last-child {
  margin-bottom: 0;
}

h2 {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary-slate);
  margin: 1.75rem 0 1rem;
  line-height: 1.3;
}

h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-charcoal);
  margin: 1.35rem 0 0.75rem;
}

h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary-slate);
  margin: 1rem 0 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

ul, ol {
  margin: 1rem 0 1.25rem 1.5rem;
}

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

/* ==========================================================================
   CARDS GRID (ACTIVITIES, POSTS, ATELIERS)
   ========================================================================== */
.card-grid-2col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin: 1.75rem 0;
}

.activity-card {
  background: var(--card-white);
  border: 2px solid var(--border-dark);
  box-shadow: 4px 4px 0px var(--border-dark);
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.activity-card:hover {
  transform: translateY(-2px);
  box-shadow: 6px 6px 0px var(--accent-orange);
}

.activity-card-body {
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  flex: 1 0 auto;
}

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

.activity-desc {
  font-size: 0.92rem;
  line-height: 1.6;
  color: #333;
  margin-bottom: 1.25rem;
  flex: 1 0 auto;
}

/* ==========================================================================
   BUTTONS & CTAs (COMPLIANT: NO "REJOIGNEZ-NOUS", "CONTACT" ONLY)
   ========================================================================== */
.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  border: 2px solid var(--border-dark);
  box-shadow: 3px 3px 0px var(--border-dark);
  cursor: pointer;
  transition: all 0.15s ease;
  min-height: 44px;
}

.btn-cta.orange {
  background: var(--accent-orange);
  color: #FFFFFF;
}

.btn-cta.orange:hover {
  background: #A54400;
  box-shadow: 4px 4px 0px var(--border-dark);
}

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

.btn-cta.slate:hover {
  background: #1F3636;
  box-shadow: 4px 4px 0px var(--accent-orange);
}

.btn-cta.outline {
  background: transparent;
  color: var(--primary-slate);
}

.btn-cta.outline:hover {
  background: var(--card-subtle);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

/* ==========================================================================
   SIDEBAR & 2026 LOGBOOK WIDGET
   ========================================================================== */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.sidebar-widget {
  background: var(--card-white);
  border: 2px solid var(--border-dark);
  box-shadow: 4px 4px 0px var(--border-dark);
  padding: 1.35rem;
}

.widget-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary-slate);
  border-bottom: 2px solid var(--border-dark);
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.logbook-entry {
  padding: 0.75rem 0;
  border-bottom: 1px solid #E5E5E5;
}

.logbook-entry:last-child {
  border-bottom: none;
}

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

.logbook-text {
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--text-charcoal);
  margin-bottom: 0;
}

/* ==========================================================================
   DATA TABLES (FAUNA, LOGISTICS, FINANCIAL 2026)
   ========================================================================== */
.data-table-container {
  overflow-x: auto;
  margin: 1.5rem 0;
  border: 2px solid var(--border-dark);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card-white);
  font-size: 0.9rem;
  text-align: left;
}

.data-table th {
  background: var(--primary-slate);
  color: var(--bg-cream);
  padding: 0.75rem 1rem;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  border: 1px solid var(--border-dark);
}

.data-table td {
  padding: 0.75rem 1rem;
  border: 1px solid #E0E0E0;
  color: var(--text-charcoal);
}

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

/* ==========================================================================
   FORM STYLES (CONTACT & REGISTRATION)
   ========================================================================== */
.form-group {
  margin-bottom: 1.25rem;
}

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

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-family: var(--font-sans);
  border: 2px solid var(--border-dark);
  background: #FFFFFF;
  color: var(--text-charcoal);
  min-height: 44px;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-orange);
  box-shadow: 0 0 0 3px rgba(204, 85, 0, 0.2);
}

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

/* ==========================================================================
   FOOTER (MANDATORY UN-TRUNCATED COMPLIANCE & 1901 SPECIFICATIONS)
   ========================================================================== */
.site-footer {
  background: var(--primary-slate);
  color: var(--bg-cream);
  border-top: 4px solid var(--border-dark);
  margin-top: auto;
  padding: 3rem 1.25rem 2rem;
}

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

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

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

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

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

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

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

.footer-info-text {
  font-size: 0.88rem;
  line-height: 1.6;
  color: rgba(255, 253, 208, 0.9);
}

.compliance-box {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 253, 208, 0.3);
  padding: 1.25rem;
  font-size: 0.82rem;
  line-height: 1.65;
  color: var(--bg-cream);
  font-family: var(--font-mono);
  margin-top: 1.5rem;
}

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

@media (max-width: 768px) {
  .header-inner {
    flex-wrap: wrap;
  }
  
  .mobile-menu-trigger {
    display: flex;
  }
  
  .main-nav {
    display: none;
    width: 100%;
    margin-top: 0.75rem;
  }
  
  .main-nav.is-active {
    display: block;
  }
  
  .nav-list {
    flex-direction: column;
    width: 100%;
    gap: 0.25rem;
  }
  
  .nav-item {
    width: 100%;
  }
  
  .nav-toggle-btn {
    width: 100%;
    justify-content: space-between;
  }
  
  .dropdown-menu {
    position: static;
    display: none;
    width: 100%;
    box-shadow: none;
    border-left: none;
    border-right: none;
    background: #FAF8EB;
  }
  
  .nav-item.mobile-open .dropdown-menu {
    display: block;
  }
  
  .metrics-panel {
    grid-template-columns: 1fr;
  }
  
  .card-grid-2col {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-heading {
    font-size: 1.75rem;
  }
  
  .main-wrapper {
    padding: 1.25rem 0.75rem 2.5rem;
  }
}
