/* ==========================================================================
   COMPAGNIE LUCIOLES - OFFICIAL DESIGN SYSTEM & ACCESSIBILITY STYLESHEET
   Association Loi 1901 | RNA: W941012077 | SIREN: 839715042 | La Rochelle
   ========================================================================== */

:root {
  --color-topbar: #E64A19;
  --color-navy: #0A4260;
  --color-navy-hover: #073046;
  --color-action-blue: #0082AD;
  --color-action-blue-hover: #00688B;
  --color-magenta: #C2185B;
  --color-magenta-hover: #9C1045;
  --color-green: #2E7D32;
  --color-green-hover: #1B5E20;
  --color-alert: #D32F2F;
  --color-alert-hover: #B71C1C;
  --color-heading: #0F172A;
  --color-body: #475569;
  --color-muted: #64748B;
  --color-card-bg: #FFFFFF;
  --color-card-subtle: #F8FAFC;
  --color-border: #E2E8F0;
  --color-border-light: #F1F5F9;
  --color-bg-canvas: #F8FAFC;
  
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 15px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 25px -5px rgba(10, 66, 96, 0.08);
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--color-body);
  background-color: var(--color-bg-canvas);
  line-height: 1.7;
  font-weight: 400;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-heading);
  font-weight: 700;
  line-height: 1.25;
  text-wrap: balance;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.5rem;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 1.875rem;
  letter-spacing: -0.01em;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--color-navy);
}

h3 {
  font-size: 1.35rem;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

p {
  margin-bottom: 1.25rem;
}

p.lead {
  font-size: 1.15rem;
  color: #1E293B;
  line-height: 1.8;
  font-weight: 400;
}

a {
  color: var(--color-action-blue);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--color-action-blue-hover);
  text-decoration: underline;
}

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

li {
  margin-bottom: 0.5rem;
}

strong {
  font-weight: 600;
  color: var(--color-heading);
}

/* ==========================================================================
   LAYOUT CONTAINERS & UTILITIES
   ========================================================================== */

.site-wrapper {
  width: 100%;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.container-narrow {
  width: 100%;
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.section {
  padding: 4rem 0;
}

.section-alt {
  background-color: var(--color-card-subtle);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

/* ==========================================================================
   TOP BAR (ACCENT COLOR: #E64A19)
   ========================================================================== */

.top-bar {
  background-color: var(--color-topbar);
  color: #FFFFFF;
  font-size: 0.825rem;
  font-weight: 500;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.top-bar-notice {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.top-bar-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.top-bar-links a {
  color: #FFFFFF;
  text-decoration: none;
  transition: opacity 0.15s ease;
}

.top-bar-links a:hover {
  opacity: 0.85;
  text-decoration: underline;
}

/* ==========================================================================
   PRIMARY NAVIGATION HEADER (#0A4260)
   ========================================================================== */

.main-header {
  background-color: var(--color-navy);
  color: #FFFFFF;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(10, 66, 96, 0.2);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 72px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #FFFFFF;
  text-decoration: none;
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #FFFFFF;
  white-space: nowrap;
}

.brand-badge {
  font-size: 0.75rem;
  background-color: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-weight: 500;
  color: #E2E8F0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Nav Menu Dropdowns */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.65rem 0.85rem;
  color: #E2E8F0;
  font-weight: 500;
  font-size: 0.925rem;
  text-decoration: none;
  border-radius: var(--radius-md);
  min-height: 44px;
  transition: all 0.15s ease;
}

.nav-link:hover, .nav-item:hover > .nav-link {
  color: #FFFFFF;
  background-color: rgba(255, 255, 255, 0.1);
  text-decoration: none;
}

.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  width: 250px;
  background-color: #FFFFFF;
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
  border: 1px solid var(--color-border);
  padding: 0.5rem 0;
  list-style: none;
  margin-top: 0.35rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1010;
}

.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown li a {
  display: block;
  padding: 0.65rem 1.25rem;
  color: var(--color-heading);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.15s ease;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.nav-dropdown li a:hover {
  background-color: #F1F5F9;
  color: var(--color-action-blue);
  text-decoration: none;
}

/* Nav Actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s ease;
  border: none;
  min-height: 44px;
  min-width: 44px;
}

.btn-primary {
  background-color: var(--color-action-blue);
  color: #FFFFFF;
}

.btn-primary:hover {
  background-color: var(--color-action-blue-hover);
  color: #FFFFFF;
  text-decoration: none;
}

.btn-magenta {
  background-color: var(--color-magenta);
  color: #FFFFFF;
}

.btn-magenta:hover {
  background-color: var(--color-magenta-hover);
  color: #FFFFFF;
  text-decoration: none;
}

.btn-alert {
  background-color: var(--color-alert);
  color: #FFFFFF;
}

.btn-alert:hover {
  background-color: var(--color-alert-hover);
  color: #FFFFFF;
  text-decoration: none;
}

.btn-outline {
  background-color: transparent;
  color: var(--color-navy);
  border: 1px solid var(--color-navy);
}

.btn-outline:hover {
  background-color: var(--color-navy);
  color: #FFFFFF;
  text-decoration: none;
}

.btn-outline-white {
  background-color: transparent;
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.btn-outline-white:hover {
  background-color: rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
  text-decoration: none;
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: #FFFFFF;
  font-size: 1.5rem;
  padding: 0.5rem;
  cursor: pointer;
  min-height: 44px;
  min-width: 44px;
}

/* ==========================================================================
   HERO BANNER COMPONENT
   ========================================================================== */

.hero-banner {
  background: linear-gradient(135deg, #0A4260 0%, #072739 100%);
  color: #FFFFFF;
  padding: 4.5rem 0 3.5rem 0;
  position: relative;
  overflow: hidden;
}

.hero-content {
  max-width: 800px;
}

.hero-kicker {
  display: inline-block;
  color: #FFB74D;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}

.hero-title {
  color: #FFFFFF;
  font-size: 2.75rem;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.hero-subtitle {
  font-size: 1.15rem;
  line-height: 1.7;
  color: #CBD5E1;
  margin-bottom: 2rem;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ==========================================================================
   DOCUMENTARY PHOTOGRAPHY & FIGCAPTION PROTOCOL (STRICT MANDATE)
   ========================================================================== */

.framed-img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid #E5E7EB;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  margin: 20px 0 8px 0;
  object-fit: cover;
  display: block;
  background-color: #E2E8F0;
}

.image-caption {
  font-size: 0.875rem;
  color: #64748B;
  font-style: italic;
  margin-bottom: 20px;
  line-height: 1.5;
  display: block;
}

/* ==========================================================================
   NOTRE MISSION SPECIAL CALLOUT (MANDATORY EXACT TEXT BLOCK)
   ========================================================================== */

.notre-mission-box {
  background-color: #F8FAFC;
  border-left: 4px solid var(--color-action-blue);
  border-top: 1px solid var(--color-border);
  border-right: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  padding: 2rem;
  margin: 2.5rem 0;
  box-shadow: var(--shadow-sm);
}

.notre-mission-box h3 {
  margin-top: 0;
  color: var(--color-navy);
  font-size: 1.4rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.notre-mission-text {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #1E293B;
  font-weight: 450;
  margin-bottom: 0;
}

/* ==========================================================================
   CONTENT CARDS, GRIDS & ASSETS
   ========================================================================== */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
}

.card {
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.card h3 {
  margin-top: 0;
  color: var(--color-navy);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background-color: #EFF6FF;
  color: var(--color-action-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

/* Metadata formatting (Zero-Pill Discipline) */
.meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--color-muted);
  margin-bottom: 0.75rem;
}

.meta-separator {
  color: #CBD5E1;
}

/* ==========================================================================
   STAT BLOCKS & DISCLOSURE PANELS
   ========================================================================== */

.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  background-color: #FFFFFF;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin: 2.5rem 0;
  box-shadow: var(--shadow-sm);
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--color-navy);
  line-height: 1.1;
  margin-bottom: 0.35rem;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--color-muted);
  font-weight: 500;
}

.legal-callout {
  background-color: #EFF6FF;
  border: 1px solid #BFDBFE;
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  font-size: 0.95rem;
  color: #1E3A8A;
}

.reinvestment-banner {
  background-color: #F0FDF4;
  border: 1px solid #BBF7D0;
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  font-size: 0.925rem;
  color: #166534;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* ==========================================================================
   FORMS & AJAX MODAL
   ========================================================================== */

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

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-heading);
  margin-bottom: 0.35rem;
}

.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-heading);
  background-color: #FFFFFF;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  min-height: 44px;
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none;
  border-color: var(--color-action-blue);
  box-shadow: 0 0 0 3px rgba(0, 130, 173, 0.15);
}

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

/* Modal Popup */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-box {
  background-color: #FFFFFF;
  border-radius: var(--radius-xl);
  max-width: 500px;
  width: 100%;
  padding: 2.5rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  text-align: center;
  transform: translateY(20px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-box {
  transform: translateY(0);
}

.modal-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: #DCFCE7;
  color: var(--color-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 1.5rem auto;
}

.modal-title {
  font-size: 1.5rem;
  color: var(--color-heading);
  margin-bottom: 0.75rem;
}

.modal-message {
  font-size: 1rem;
  color: var(--color-body);
  line-height: 1.6;
  margin-bottom: 1.75rem;
}

/* ==========================================================================
   FOOTER (STRICT MANDATORY DISCLOSURE & LEGAL ACCREDITATION)
   ========================================================================== */

.site-footer {
  background-color: #072739;
  color: #94A3B8;
  font-size: 0.9rem;
  padding-top: 4rem;
  border-top: 4px solid var(--color-topbar);
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand h4 {
  color: #FFFFFF;
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.footer-col h5 {
  color: #FFFFFF;
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
}

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

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

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

.footer-links a:hover {
  color: #FFFFFF;
  text-decoration: underline;
}

.footer-disclosure-block {
  padding: 2.25rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
  line-height: 1.7;
  color: #94A3B8;
}

.footer-disclosure-block p {
  margin-bottom: 0.75rem;
}

.footer-disclosure-block p:last-child {
  margin-bottom: 0;
}

.footer-bottom {
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.825rem;
  color: #64748B;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ==========================================================================
   RESPONSIVE DESIGN BREAKPOINTS
   ========================================================================== */

@media (max-width: 992px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .stat-strip {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  .grid-3, .grid-2 {
    grid-template-columns: 1fr;
  }
  
  .stat-strip {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .top-bar-inner {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }
  
  .top-bar-links {
    justify-content: center;
  }
  
  .mobile-toggle {
    display: block;
  }
  
  .nav-menu {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background-color: var(--color-navy);
    flex-direction: column;
    padding: 1.5rem;
    gap: 0.5rem;
    display: none;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    max-height: calc(100vh - 72px);
    overflow-y: auto;
  }
  
  .nav-menu.active {
    display: flex;
  }
  
  .nav-item {
    width: 100%;
  }
  
  .nav-dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background-color: rgba(255, 255, 255, 0.05);
    border: none;
    border-radius: var(--radius-md);
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    width: 100%;
    display: none;
  }
  
  .nav-item.dropdown-open .nav-dropdown {
    display: block;
  }
  
  .nav-dropdown li a {
    color: #E2E8F0;
    padding: 0.5rem 1rem;
  }
  
  .nav-dropdown li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
  }
  
  .nav-actions {
    display: none;
  }
}
