/* ==========================================================================
   STYLE.CSS - NEO-BRUTALIST EDITORIAL HYBRID
   ASSOCIATION INTERCOMMUNALE DE CHASSE AGREEE DE PAMIERS SAINT JEAN DU FALGA
   LOI 1901 - RNA W092002128 - SIREN 831879952 - EXERCICE 2026
   ========================================================================== */

:root {
  --color-canvas: #F5F5F0;
  --color-white: #FFFFFF;
  --color-ink: #1E293B;
  --color-ink-muted: #475569;
  --color-ink-light: #64748B;
  --color-accent-terracotta: #C2410C;
  --color-accent-ochre: #4D7C0F;
  --color-accent-amber: #B45309;
  --color-border: #1E293B;
  --color-border-subtle: #CBD5E1;
  --color-card-bg: #FFFFFF;
  --color-card-alt: #F8FAFC;
  --shadow-hard: 4px 4px 0px #1E293B;
  --shadow-hard-lg: 6px 6px 0px #1E293B;
  --shadow-hard-sm: 2px 2px 0px #1E293B;
  --font-serif: "Newsreader", "Charter", "Georgia", serif;
  --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", monospace;
  --sidebar-width: 280px;
}

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

html {
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--color-canvas);
  color: var(--color-ink);
  font-family: var(--font-sans);
  scroll-behavior: smooth;
}

body {
  width: 100%;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  background-color: var(--color-canvas);
  color: var(--color-ink);
  overflow-x: hidden;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Master Layout Framework */
.master-layout-wrapper {
  display: grid;
  grid-template-columns: var(--sidebar-width) 1fr;
  width: 100%;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Sidebar Column */
.sidebar-header-panel {
  width: var(--sidebar-width);
  background: var(--color-white);
  border-right: 2px solid var(--color-border);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 50;
  box-sizing: border-box;
}

/* Branding */
.sidebar-branding {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--color-border);
}

.brand-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--color-accent-terracotta);
  color: var(--color-white);
  padding: 4px 8px;
  border: 1px solid var(--color-border);
  width: fit-content;
  white-space: nowrap;
}

.brand-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--color-ink);
  letter-spacing: -0.02em;
}

.brand-subtitle {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.35;
}

/* Metadata Registry Sub-Card */
.metadata-registry-card {
  background: var(--color-canvas);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-hard-sm);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.76rem;
}

.registry-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px dashed var(--color-border-subtle);
  padding-bottom: 4px;
}

.registry-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.registry-label {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--color-ink-muted);
}

.registry-value {
  font-weight: 700;
  color: var(--color-ink);
  font-family: var(--font-mono);
}

.registry-link {
  color: var(--color-accent-terracotta);
  text-decoration: underline;
  font-weight: 700;
}

/* Navigation Groups */
.nav-directory-tree {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.nav-category {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.category-title {
  font-family: var(--font-mono);
  font-size: 0.70rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-ink-light);
  padding-bottom: 4px;
  border-bottom: 1px solid var(--color-border-subtle);
}

.nav-link {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-ink);
  text-decoration: none;
  padding: 8px 10px;
  border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
  min-height: 44px;
  display: flex;
  align-items: center;
  line-height: 1.3;
}

.nav-link:hover {
  background: var(--color-canvas);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-hard-sm);
  color: var(--color-accent-terracotta);
}

.nav-link.active {
  background: var(--color-ink);
  color: var(--color-white);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-hard-sm);
}

/* Main Content Area Canvas */
.main-content-canvas {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  justify-content: space-between;
  width: 100%;
  background-color: var(--color-canvas);
  position: relative;
}

.content-inner-wrapper {
  padding: 48px 48px 80px 48px;
  max-width: 1300px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

/* Section Containers */
.section-block {
  background: var(--color-white);
  border: 2px solid var(--color-border);
  box-shadow: var(--shadow-hard);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.section-block-alt {
  background: var(--color-card-alt);
  border: 2px solid var(--color-border);
  box-shadow: var(--shadow-hard);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Hero Section */
.hero-editorial-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 36px;
  align-items: center;
  background: var(--color-white);
  border: 2px solid var(--color-border);
  box-shadow: var(--shadow-hard-lg);
  padding: 48px;
}

.hero-text-side {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero-image-frame {
  border: 2px solid var(--color-border);
  box-shadow: var(--shadow-hard);
  overflow: hidden;
  position: relative;
  background: #000;
}

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

.media-frame {
  border: 2px solid var(--color-border);
  box-shadow: var(--shadow-hard);
  overflow: hidden;
  background: #000;
}

/* Headlines and Typography */
h1, .h1-display {
  font-family: var(--font-serif);
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--color-ink);
  letter-spacing: -0.03em;
}

h2, .h2-display {
  font-family: var(--font-serif);
  font-size: 2.1rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-ink);
  letter-spacing: -0.02em;
}

h3, .h3-display {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-ink);
}

h4 {
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-ink);
}

.lead-summary-two-sentences {
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.6;
  color: var(--color-ink);
  border-left: 4px solid var(--color-accent-terracotta);
  padding-left: 16px;
  margin: 8px 0;
}

.mission-highlight-card {
  background: #FFFBEB;
  border: 2px solid var(--color-border);
  box-shadow: var(--shadow-hard);
  padding: 28px 32px;
  margin: 12px 0;
}

.mission-highlight-card .mission-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--color-accent-amber);
  margin-bottom: 8px;
  display: inline-block;
}

.mission-paragraph-text {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--color-ink);
  font-weight: 500;
}

.body-paragraph {
  font-size: 1.02rem;
  line-height: 1.75;
  color: var(--color-ink);
  margin-bottom: 16px;
}

.body-paragraph:last-child {
  margin-bottom: 0;
}

/* Action Buttons */
.btn-editorial {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--color-accent-terracotta);
  color: var(--color-white);
  border: 2px solid var(--color-border);
  box-shadow: var(--shadow-hard);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 14px 28px;
  text-decoration: none;
  cursor: pointer;
  min-height: 48px;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.btn-editorial:hover {
  background: #9A3412;
  transform: translate(-1px, -1px);
  box-shadow: var(--shadow-hard-lg);
}

.btn-editorial:active {
  transform: translate(2px, 2px);
  box-shadow: var(--shadow-hard-sm);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--color-white);
  color: var(--color-ink);
  border: 2px solid var(--color-border);
  box-shadow: var(--shadow-hard);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 14px 28px;
  text-decoration: none;
  cursor: pointer;
  min-height: 48px;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.btn-secondary:hover {
  background: var(--color-canvas);
  color: var(--color-accent-terracotta);
}

/* Grids */
.grid-2col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

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

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

/* Editorial Cards */
.editorial-card {
  background: var(--color-white);
  border: 2px solid var(--color-border);
  box-shadow: var(--shadow-hard);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100%;
}

.editorial-card-offset {
  background: var(--color-white);
  border: 2px solid var(--color-border);
  box-shadow: var(--shadow-hard);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100%;
  transform: translateY(6px);
}

.editorial-card:hover,
.editorial-card-offset:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hard-lg);
  transition: all 0.2s ease;
}

.card-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--color-canvas);
  color: var(--color-ink-muted);
  padding: 4px 8px;
  border: 1px solid var(--color-border);
  width: fit-content;
}

.card-tag-ochre {
  background: #ECFCCB;
  color: var(--color-accent-ochre);
  border: 1px solid var(--color-border);
}

.card-tag-terracotta {
  background: #FFEDD5;
  color: var(--color-accent-terracotta);
  border: 1px solid var(--color-border);
}

/* Impact Statistics Matrix */
.stats-banner-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  background: var(--color-ink);
  color: var(--color-white);
  border: 2px solid var(--color-border);
  box-shadow: var(--shadow-hard);
  padding: 32px 28px;
}

.stat-cell {
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-right: 1px dashed rgba(255,255,255,0.25);
  padding-right: 16px;
}

.stat-cell:last-child {
  border-right: none;
  padding-right: 0;
}

.stat-metric {
  font-family: var(--font-serif);
  font-size: 2.3rem;
  font-weight: 800;
  color: #FDBA74;
  line-height: 1;
}

.stat-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #CBD5E1;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.35;
}

/* Institutional Notice Box */
.notice-box-funding {
  background: #F0FDF4;
  border: 2px solid #166534;
  box-shadow: var(--shadow-hard);
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.notice-title {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 800;
  color: #166534;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Tables */
.editorial-table-wrapper {
  width: 100%;
  overflow-x: auto;
  border: 2px solid var(--color-border);
  box-shadow: var(--shadow-hard);
  background: var(--color-white);
}

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

.editorial-table th {
  background: var(--color-canvas);
  border-bottom: 2px solid var(--color-border);
  border-right: 1px solid var(--color-border);
  padding: 14px 16px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--color-ink);
}

.editorial-table th:last-child {
  border-right: none;
}

.editorial-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--color-border-subtle);
  border-right: 1px solid var(--color-border-subtle);
  color: var(--color-ink);
}

.editorial-table td:last-child {
  border-right: none;
}

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

.editorial-table tr:hover td {
  background: #FEF3C7;
}

/* Form Styling */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.form-group-full {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-family: var(--font-mono);
  font-size: 0.80rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-ink);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  border: 2px solid var(--color-border);
  background: var(--color-white);
  color: var(--color-ink);
  outline: none;
  box-shadow: var(--shadow-hard-sm);
  min-height: 44px;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--color-accent-terracotta);
  box-shadow: var(--shadow-hard);
}

/* Mega Footer */
.mega-footer-canvas {
  background: var(--color-white);
  border-top: 2px solid var(--color-border);
  padding: 60px 48px 36px 48px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 36px;
  box-sizing: border-box;
  width: 100%;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-col-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-ink);
  padding-bottom: 8px;
  border-bottom: 2px solid var(--color-border);
}

.footer-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-nav-list a {
  color: var(--color-ink-muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  transition: color 0.15s ease;
  min-height: 24px;
  display: inline-flex;
  align-items: center;
}

.footer-nav-list a:hover {
  color: var(--color-accent-terracotta);
  text-decoration: underline;
}

.footer-trust-baseline {
  grid-column: 1 / -1;
  border-top: 2px solid var(--color-border);
  padding-top: 28px;
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 0.82rem;
  color: var(--color-ink-muted);
  line-height: 1.6;
}

.footer-legal-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px dashed var(--color-border-subtle);
  font-family: var(--font-mono);
  font-size: 0.76rem;
}

/* Mobile Toggle Bar */
.mobile-topbar {
  display: none;
  background: var(--color-white);
  border-bottom: 2px solid var(--color-border);
  padding: 14px 20px;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-hard-sm);
}

.mobile-brand-name {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--color-ink);
}

.mobile-toggle-btn {
  background: var(--color-accent-terracotta);
  color: var(--color-white);
  border: 2px solid var(--color-border);
  box-shadow: var(--shadow-hard-sm);
  padding: 8px 14px;
  font-size: 0.85rem;
  font-weight: 800;
  cursor: pointer;
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Media Queries */
@media (max-width: 1024px) {
  .master-layout-wrapper {
    grid-template-columns: 240px 1fr;
  }
  .sidebar-header-panel {
    width: 240px;
    padding: 24px 16px;
  }
  .content-inner-wrapper {
    padding: 32px 24px 60px 24px;
    gap: 36px;
  }
  .hero-editorial-grid {
    grid-template-columns: 1fr;
    padding: 32px;
  }
  .grid-4col {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats-banner-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  .stat-cell {
    border-right: none;
    border-bottom: 1px dashed rgba(255,255,255,0.25);
    padding-bottom: 12px;
  }
  .stat-cell:last-child,
  .stat-cell:nth-last-child(2) {
    border-bottom: none;
  }
  .mega-footer-canvas {
    grid-template-columns: repeat(2, 1fr);
    padding: 40px 24px;
  }
}

@media (max-width: 768px) {
  .master-layout-wrapper {
    display: flex;
    flex-direction: column;
  }
  .mobile-topbar {
    display: flex;
  }
  .sidebar-header-panel {
    display: none;
    width: 100%;
    height: auto;
    position: static;
    border-right: none;
    border-bottom: 2px solid var(--color-border);
  }
  .sidebar-header-panel.mobile-open {
    display: flex;
  }
  .content-inner-wrapper {
    padding: 24px 16px 48px 16px;
    gap: 28px;
  }
  .section-block,
  .section-block-alt,
  .hero-editorial-grid {
    padding: 24px 18px;
  }
  h1, .h1-display {
    font-size: 2rem;
  }
  h2, .h2-display {
    font-size: 1.65rem;
  }
  .grid-2col,
  .grid-3col,
  .grid-4col {
    grid-template-columns: 1fr;
  }
  .editorial-card-offset {
    transform: none;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .mega-footer-canvas {
    grid-template-columns: 1fr;
    padding: 36px 18px;
    gap: 28px;
  }
}

@media (max-width: 480px) {
  .content-inner-wrapper {
    padding: 16px 12px 36px 12px;
  }
  .btn-editorial,
  .btn-secondary {
    width: 100%;
  }
  .stats-banner-strip {
    grid-template-columns: 1fr;
  }
}
