/* ==========================================================================
   LES PECHEURS DE TULLE — Universal Lightweight Mobile-Responsive Stylesheet
   Association Loi 1901 | RNA: W192001488 | SIREN: 940028863
   ========================================================================== */

:root {
  --color-institutional-blue: #0B2545;
  --color-river-navy: #13315C;
  --color-watershed-teal: #134E4A;
  --color-amber-gold: #EEB902;
  --color-amber-hover: #D4A300;
  --color-surface-white: #FFFFFF;
  --color-surface-paper: #F8FAFC;
  --color-surface-warm: #F1F5F9;
  --color-text-primary: #0F172A;
  --color-text-secondary: #334155;
  --color-text-muted: #64748B;
  --color-border: #E5E7EB;
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: Georgia, "Times New Roman", Times, serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

*, *::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-sans);
  color: var(--color-text-primary);
  background-color: var(--color-surface-paper);
  line-height: 1.7;
  overflow-x: hidden;
}

a {
  color: var(--color-institutional-blue);
  text-decoration: none;
  transition: color 0.2s ease-in-out;
}

a:hover, a:focus {
  color: var(--color-river-navy);
}

/* ==========================================================================
   1. TOP UTILITY ANNOUNCEMENT BAR
   ========================================================================== */
.utility-bar {
  background-color: #0B2545;
  color: #FFFFFF;
  padding: 8px 20px;
  font-size: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.utility-bar-container {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.utility-credentials {
  font-weight: 500;
  letter-spacing: 0.01em;
}

.utility-link {
  color: #EEB902;
  font-weight: 600;
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease-in-out, color 0.2s ease-in-out;
}

.utility-link:hover, .utility-link:focus {
  color: #FFFFFF;
  text-decoration: underline;
  border-bottom-color: rgba(238, 185, 2, 0.7);
}

/* ==========================================================================
   2. MAIN STICKY NAVIGATION BAR
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #FFFFFF;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  border-bottom: 1px solid #E5E7EB;
}

.header-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.brand-area {
  display: flex;
  flex-direction: column;
  text-decoration: none;
}

.brand-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: #0B2545;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.brand-subtitle {
  font-size: 0.75rem;
  color: #64748B;
  font-weight: 500;
  letter-spacing: 0.03em;
  margin-top: 2px;
}

/* Navigation Menu */
.main-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

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

.nav-item {
  position: relative;
}

.nav-dropdown-trigger {
  background: none;
  border: none;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  color: #0B2545;
  padding: 10px 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  border-radius: 6px;
  transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
}

.nav-dropdown-trigger:hover,
.nav-dropdown-trigger:focus,
.nav-item:hover .nav-dropdown-trigger {
  background-color: #F1F5F9;
  color: #0B2545;
}

.dropdown-menu {
  list-style: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  background: #FFFFFF;
  border-radius: 10px;
  border: 1px solid #E5E7EB;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s ease-in-out;
  z-index: 1010;
}

@media (min-width: 993px) {
  .nav-item:hover .dropdown-menu,
  .nav-item:focus-within .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
}

.dropdown-menu li a {
  display: block;
  padding: 10px 18px;
  font-size: 0.9rem;
  color: #334155;
  font-weight: 500;
  transition: background-color 0.15s ease-in-out, color 0.15s ease-in-out;
}

.dropdown-menu li a:hover,
.dropdown-menu li a:focus {
  background-color: #F8FAFC;
  color: #0B2545;
}

.active,
.dropdown-menu li a.active,
.nav-dropdown-trigger.active {
  color: #EEB902 !important;
  font-weight: bold !important;
  background-color: #0B2545 !important;
}

/* Primary Action CTA Button */
.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #EEB902;
  color: #0B2545;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 10px 22px;
  border-radius: 8px;
  min-height: 44px;
  text-decoration: none;
  transition: background-color 0.2s ease-in-out, transform 0.15s ease-in-out;
  white-space: nowrap;
}

.header-cta:hover, .header-cta:focus {
  background-color: #0B2545;
  color: #FFFFFF;
}

/* Mobile Hamburger Button */
.hamburger-btn {
  display: none;
  background: #F8FAFC;
  border: 1px solid #CBD5E1;
  border-radius: 8px;
  min-width: 44px;
  min-height: 44px;
  padding: 8px 12px;
  cursor: pointer;
  color: #0B2545;
  font-size: 1.25rem;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   3. HERO BANNERS & LAYOUT CONTAINERS
   ========================================================================== */
.hero-section {
  background: linear-gradient(135deg, #0B2545 0%, #13315C 65%, #134E4A 100%);
  color: #FFFFFF;
  padding: 60px 20px;
  border-bottom: 4px solid #EEB902;
}

.hero-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #EEB902;
  font-weight: 700;
  margin-bottom: 14px;
}

.hero-section h1 {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: 18px;
  color: #FFFFFF;
}

.hero-summary {
  font-size: 1.125rem;
  line-height: 1.65;
  color: #E2E8F0;
  margin-bottom: 26px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #EEB902;
  color: #0B2545;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 8px;
  min-height: 44px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.2s ease-in-out;
}

.btn-primary:hover, .btn-primary:focus {
  background-color: #FFFFFF;
  color: #0B2545;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 8px;
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  text-decoration: none;
  transition: background-color 0.2s ease-in-out;
}

.btn-secondary:hover, .btn-secondary:focus {
  background-color: rgba(255, 255, 255, 0.24);
  color: #FFFFFF;
}

/* ==========================================================================
   4. DOCUMENTARY PHOTOGRAPHY & CAPTIONS (STRICT COMPLIANCE)
   ========================================================================== */
figure {
  margin: 0;
  padding: 0;
}

img.doc-photo,
figure 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;
}

figcaption {
  font-size: 0.875rem;
  color: #64748B;
  margin-bottom: 20px;
  font-style: italic;
  line-height: 1.5;
}

.hero-figure figcaption {
  color: #CBD5E1;
}

/* ==========================================================================
   5. MAIN CONTENT ARCHITECTURE & SECTIONS
   ========================================================================== */
.main-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 20px;
}

.content-section {
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  padding: 36px;
  margin-bottom: 36px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.content-section h2 {
  font-family: var(--font-serif);
  font-size: 1.85rem;
  color: #0B2545;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid #F1F5F9;
}

.content-section h3 {
  font-size: 1.3rem;
  color: #13315C;
  margin: 26px 0 12px 0;
}

.content-section p {
  margin-bottom: 18px;
  color: #334155;
  font-size: 1.02rem;
}

.content-section ul, .content-section ol {
  margin: 0 0 20px 24px;
  color: #334155;
}

.content-section li {
  margin-bottom: 10px;
}

/* Dedicated Mission Highlight Box */
.mission-highlight-box {
  background: linear-gradient(to right, #F8FAFC, #F1F5F9);
  border-left: 5px solid #0B2545;
  padding: 28px 32px;
  border-radius: 0 12px 12px 0;
  margin: 24px 0;
}

.mission-highlight-box h2 {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 12px;
}

/* Mandatory Reinvestment Banner */
.reinvestment-notice {
  background-color: #0B2545;
  color: #FFFFFF;
  padding: 22px 28px;
  border-radius: 10px;
  margin: 28px 0;
  border-left: 6px solid #EEB902;
  font-weight: 600;
  font-size: 1.05rem;
}

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

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

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

.card-module {
  background: #F8FAFC;
  border: 1px solid #E5E7EB;
  border-radius: 10px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-module h3 {
  margin-top: 0;
  color: #0B2545;
}

/* Data Tables for Financials & 2026 Schedules */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  margin: 24px 0;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.data-table th,
.data-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid #E5E7EB;
}

.data-table th {
  background-color: #0B2545;
  color: #FFFFFF;
  font-weight: 600;
}

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

/* ==========================================================================
   6. INTERACTIVE FORMS & AJAX MODAL POPUP
   ========================================================================== */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-label {
  display: block;
  font-weight: 600;
  color: #0B2545;
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #CBD5E1;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  color: #0F172A;
  background-color: #FFFFFF;
  transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.form-control:focus {
  outline: none;
  border-color: #0B2545;
  box-shadow: 0 0 0 3px rgba(11, 37, 69, 0.15);
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(11, 37, 69, 0.75);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 20px;
}

.modal-overlay.is-open {
  display: flex;
}

.modal-card {
  background: #FFFFFF;
  max-width: 520px;
  width: 100%;
  border-radius: 12px;
  padding: 32px;
  border-top: 6px solid #EEB902;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  text-align: left;
}

.modal-card h3 {
  color: #0B2545;
  font-family: var(--font-serif);
  font-size: 1.6rem;
  margin-bottom: 12px;
}

.modal-card p {
  color: #334155;
  margin-bottom: 20px;
}

/* ==========================================================================
   7. UNIVERSAL 4-COLUMN FOOTER ARCHITECTURE
   ========================================================================== */
.site-footer {
  background-color: #0B2545;
  color: #E2E8F0;
  padding: 60px 20px 30px 20px;
  border-top: 4px solid #EEB902;
  margin-top: 60px;
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr 0.9fr 1.3fr;
  gap: 32px;
  margin-bottom: 40px;
}

.footer-col h4 {
  color: #EEB902;
  font-size: 1.05rem;
  margin-bottom: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.footer-col p {
  font-size: 0.92rem;
  line-height: 1.65;
  color: #CBD5E1;
  margin-bottom: 12px;
}

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

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #E2E8F0;
  font-size: 0.92rem;
  text-decoration: none;
  transition: color 0.2s ease-in-out;
}

.footer-links a:hover, .footer-links a:focus {
  color: #EEB902;
  text-decoration: underline;
}

.footer-disclosure {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 20px 24px;
  margin-bottom: 24px;
  font-size: 0.9rem;
  color: #F8FAFC;
  line-height: 1.6;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: 20px;
  font-size: 0.85rem;
  color: #94A3B8;
  text-align: center;
}

/* ==========================================================================
   8. RESPONSIVE MEDIA QUERIES (<= 992px and <= 768px)
   ========================================================================== */
@media (max-width: 992px) {
  .hamburger-btn {
    display: inline-flex;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #FFFFFF;
    flex-direction: column;
    align-items: stretch;
    padding: 12px 0 24px 0;
    border-bottom: 2px solid #0B2545;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
  }

  .main-nav.is-open {
    display: flex;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
  }

  .nav-item {
    width: 100%;
    border-bottom: 1px solid #E5E7EB;
  }

  .nav-dropdown-trigger {
    width: 100%;
    justify-content: space-between;
    padding: 12px 20px;
    min-height: 44px;
    border-radius: 0;
  }

  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background-color: #F8FAFC;
    padding: 0;
    display: none;
  }

  .nav-item.open .dropdown-menu {
    display: block;
  }

  .dropdown-menu li a {
    padding: 12px 32px;
    min-height: 44px;
    display: block;
    border-bottom: 1px solid #E5E7EB;
  }

  .header-cta {
    margin: 16px 20px 0 20px;
  }

  .hero-grid,
  .grid-3,
  .grid-4,
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .utility-bar-container {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-section h1 {
    font-size: 1.95rem;
  }

  .content-section {
    padding: 24px 18px;
  }

  .grid-2,
  .grid-3,
  .grid-4,
  .form-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
