/* ==========================================================================
   A FLEUR DE SON - ASSOCIATION LOI 1901
   NEO-BRUTALIST EDITORIAL HYBRID STYLESHEET
   ANNEE CIVILE 2026 - LODEVE (34700)
   ========================================================================== */

:root {
  --bg-cream: #F5F5F0;
  --bg-white: #FFFFFF;
  --ink-charcoal: #1E293B;
  --ink-muted: #475569;
  --accent-terracotta: #C2410C;
  --accent-ochre: #4D7C0F;
  --accent-sand: #FEF3C7;
  --border-thick: 2px solid #1E293B;
  --border-thin: 1px solid #1E293B;
  --shadow-block: 4px 4px 0px #1E293B;
  --shadow-block-sm: 2px 2px 0px #1E293B;
  --shadow-block-lg: 6px 6px 0px #1E293B;
  --font-display: 'Cinzel', 'Trebuchet MS', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

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

html {
  font-size: 16px;
  background-color: var(--bg-cream);
  color: var(--ink-charcoal);
  font-family: var(--font-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background-color: var(--bg-cream);
  color: var(--ink-charcoal);
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Master Two-Column Grid Framework */
.master-layout-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  width: 100%;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Column 1: Universal Left Sidebar */
.sidebar-framework {
  width: 280px;
  background: var(--bg-white);
  border-right: var(--border-thick);
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
  z-index: 50;
}

.sidebar-sticky-inner {
  position: sticky;
  top: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--ink-charcoal) var(--bg-cream);
  padding-right: 4px;
}

.sidebar-sticky-inner::-webkit-scrollbar {
  width: 5px;
}
.sidebar-sticky-inner::-webkit-scrollbar-thumb {
  background: var(--ink-charcoal);
}

/* Brand Identity */
.brand-identity {
  border-bottom: var(--border-thick);
  padding-bottom: 18px;
}

.brand-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  background: var(--accent-sand);
  color: var(--ink-charcoal);
  padding: 3px 8px;
  border: var(--border-thin);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.brand-title {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--ink-charcoal);
  text-decoration: none;
  letter-spacing: -0.02em;
  display: block;
}

.brand-subtitle {
  font-size: 0.8rem;
  color: var(--ink-muted);
  font-weight: 600;
  margin-top: 5px;
  line-height: 1.35;
}

/* Regulatory Registry Sub-Card */
.metadata-registry-subcard {
  background: var(--bg-cream);
  border: var(--border-thin);
  box-shadow: var(--shadow-block-sm);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.78rem;
}

.registry-title {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent-terracotta);
  border-bottom: 1px dashed var(--ink-charcoal);
  padding-bottom: 4px;
  margin-bottom: 2px;
}

.registry-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
}

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

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

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

/* Directory Tree Navigation */
.directory-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.nav-category-header {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  padding: 4px 6px;
  background: rgba(30, 41, 59, 0.05);
  border-left: 3px solid var(--accent-terracotta);
  margin-bottom: 4px;
}

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

.nav-category a:hover {
  background: var(--accent-sand);
  border: var(--border-thin);
  box-shadow: var(--shadow-block-sm);
}

.nav-category a.active {
  background: var(--ink-charcoal);
  color: var(--bg-white);
  border: var(--border-thin);
  box-shadow: var(--shadow-block-sm);
}

/* Column 2: Main Content Area Canvas */
.content-area-canvas {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  justify-content: space-between;
  background: var(--bg-cream);
  width: 100%;
}

.main-content-flow {
  flex: 1 0 auto;
  padding: 40px 48px;
  max-width: 1240px;
  width: 100%;
  box-sizing: border-box;
  margin: 0 auto;
}

/* Mega Footer */
.mega-footer {
  background: var(--bg-white);
  border-top: var(--border-thick);
  padding: 60px 48px 40px 48px;
  box-sizing: border-box;
  width: 100%;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 36px;
  margin-bottom: 40px;
}

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

.footer-col-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--ink-charcoal);
  border-bottom: var(--border-thick);
  padding-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.footer-col p {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--ink-muted);
}

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

.footer-links a {
  color: var(--ink-charcoal);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  display: inline-block;
  padding: 4px 0;
  transition: color 0.15s ease, transform 0.15s ease;
}

.footer-links a:hover {
  color: var(--accent-terracotta);
  text-decoration: underline;
  transform: translateX(2px);
}

.footer-contact-info {
  font-size: 0.85rem;
  color: var(--ink-charcoal);
  line-height: 1.55;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-contact-info a {
  color: var(--accent-terracotta);
  font-weight: 700;
  text-decoration: none;
}

.footer-contact-info a:hover {
  text-decoration: underline;
}

/* Bottom Trust Baseline Block */
.bottom-trust-baseline {
  border-top: var(--border-thin);
  padding-top: 24px;
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--ink-muted);
  line-height: 1.6;
}

.trust-statement {
  font-weight: 600;
  color: var(--ink-charcoal);
  background: var(--bg-cream);
  padding: 10px 14px;
  border-left: 4px solid var(--accent-terracotta);
}

.legal-notice {
  font-size: 0.78rem;
}

.legal-notice a {
  color: var(--ink-charcoal);
  font-weight: 700;
  text-decoration: underline;
}

/* ==========================================================================
   EDITORIAL COMPONENT ARCHITECTURE & BLOCKS
   ========================================================================== */

/* Page Headers & Banners */
.page-header-block {
  background: var(--bg-white);
  border: var(--border-thick);
  box-shadow: var(--shadow-block);
  padding: 36px;
  margin-bottom: 36px;
}

.page-category-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--accent-terracotta);
  color: var(--bg-white);
  padding: 4px 10px;
  margin-bottom: 12px;
}

.page-main-title {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1.15;
  color: var(--ink-charcoal);
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.page-lead-summary {
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1.65;
  color: var(--ink-muted);
  max-width: 900px;
}

/* Image Presentation (Neo-Brutalist Frame) */
.editorial-image-frame {
  position: relative;
  background: var(--ink-charcoal);
  border: var(--border-thick);
  box-shadow: var(--shadow-block);
  overflow: hidden;
  margin: 28px 0;
}

.editorial-image-frame img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.editorial-image-frame:hover img {
  transform: scale(1.02);
}

/* Exact Mission Highlight Block (120+ words) */
.mission-highlight-card {
  background: var(--bg-white);
  border: var(--border-thick);
  border-left: 8px solid var(--accent-terracotta);
  box-shadow: var(--shadow-block);
  padding: 30px;
  margin: 32px 0;
}

.mission-card-badge {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-terracotta);
  margin-bottom: 8px;
}

.mission-card-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--ink-charcoal);
}

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

/* Reinvestment Mandatory Statement */
.reinvestment-statement-box {
  background: var(--accent-sand);
  border: var(--border-thick);
  box-shadow: var(--shadow-block-sm);
  padding: 18px 22px;
  margin: 24px 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink-charcoal);
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Content Grid Layouts */
.grid-2col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin: 28px 0;
}

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

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

/* Content Cards */
.editorial-card {
  background: var(--bg-white);
  border: var(--border-thick);
  box-shadow: var(--shadow-block);
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

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

.card-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--accent-ochre);
  margin-bottom: 8px;
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--ink-charcoal);
  line-height: 1.25;
}

.card-body {
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--ink-muted);
  margin-bottom: 16px;
}

/* Stat Matrix */
.stat-box {
  background: var(--bg-white);
  border: var(--border-thick);
  box-shadow: var(--shadow-block);
  padding: 24px;
  text-align: center;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 900;
  color: var(--accent-terracotta);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--ink-charcoal);
  letter-spacing: 0.04em;
}

.stat-desc {
  font-size: 0.78rem;
  color: var(--ink-muted);
  margin-top: 4px;
}

/* Section Containers & Typography */
.editorial-section {
  margin: 44px 0;
}

.section-header-wrap {
  margin-bottom: 24px;
}

.section-tag {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-terracotta);
  display: inline-block;
  margin-bottom: 6px;
}

.section-title {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 900;
  color: var(--ink-charcoal);
  line-height: 1.25;
}

.editorial-prose {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--ink-charcoal);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.editorial-prose p {
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.editorial-prose h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  margin-top: 14px;
  color: var(--ink-charcoal);
}

/* Neo-Brutalist Buttons & CTAs */
.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-terracotta);
  color: var(--bg-white);
  border: var(--border-thick);
  box-shadow: var(--shadow-block);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 800;
  text-decoration: none;
  padding: 12px 24px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  min-height: 44px;
  min-width: 44px;
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.1s ease, background 0.15s ease;
}

.btn-cta:hover {
  background: #9A3412;
  transform: translate(2px, 2px);
  box-shadow: var(--shadow-block-sm);
}

.btn-cta-secondary {
  background: var(--bg-white);
  color: var(--ink-charcoal);
}

.btn-cta-secondary:hover {
  background: var(--accent-sand);
}

/* Forms (Contact, Membership Inquiry) */
.editorial-form {
  background: var(--bg-white);
  border: var(--border-thick);
  box-shadow: var(--shadow-block);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

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

.form-input, .form-textarea, .form-select {
  border: var(--border-thick);
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink-charcoal);
  background: var(--bg-cream);
  min-height: 44px;
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none;
  background: var(--bg-white);
  box-shadow: var(--shadow-block-sm);
}

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

/* Tables & Registry Grids */
.editorial-table-wrap {
  overflow-x: auto;
  margin: 24px 0;
  border: var(--border-thick);
  box-shadow: var(--shadow-block);
  background: var(--bg-white);
}

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

.editorial-table th {
  background: var(--ink-charcoal);
  color: var(--bg-white);
  padding: 12px 16px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-right: 1px solid rgba(255,255,255,0.2);
}

.editorial-table td {
  padding: 14px 16px;
  border-bottom: var(--border-thin);
  border-right: var(--border-thin);
  vertical-align: top;
}

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

.editorial-table tr:hover {
  background: var(--bg-cream);
}

/* Mobile Toggle Bar */
.mobile-header-bar {
  display: none;
  background: var(--bg-white);
  border-bottom: var(--border-thick);
  padding: 16px 20px;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}

.mobile-brand-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--ink-charcoal);
  text-decoration: none;
}

.mobile-nav-toggle {
  background: var(--bg-cream);
  border: var(--border-thick);
  box-shadow: var(--shadow-block-sm);
  padding: 8px 14px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
  min-height: 44px;
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */

@media (max-width: 1024px) {
  .master-layout-grid {
    grid-template-columns: 240px 1fr;
  }
  .sidebar-framework {
    width: 240px;
    padding: 24px 16px;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
  .grid-4col {
    grid-template-columns: repeat(2, 1fr);
  }
  .main-content-flow {
    padding: 32px 24px;
  }
  .mega-footer {
    padding: 40px 24px 30px 24px;
  }
}

@media (max-width: 768px) {
  .mobile-header-bar {
    display: flex;
  }
  .master-layout-grid {
    display: block;
    width: 100%;
  }
  .sidebar-framework {
    width: 100%;
    border-right: none;
    border-bottom: var(--border-thick);
    padding: 20px;
    display: none; /* toggled via JS or stays visible */
  }
  .sidebar-framework.is-open {
    display: flex;
  }
  .sidebar-sticky-inner {
    position: static;
    max-height: none;
    overflow-y: visible;
  }
  .grid-2col, .grid-3col, .grid-4col {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .page-main-title {
    font-size: 1.85rem;
  }
  .main-content-flow {
    padding: 24px 16px;
  }
  .page-header-block {
    padding: 22px 18px;
  }
  .editorial-card {
    padding: 20px 18px;
  }
  .mission-highlight-card {
    padding: 20px 18px;
  }
}

@media (max-width: 480px) {
  .page-main-title {
    font-size: 1.55rem;
  }
  .btn-cta {
    width: 100%;
  }
  .stat-number {
    font-size: 2.1rem;
  }
}
