/* ==========================================================================
   Ligue de Vol Libre du Limousin - Official Stylesheet
   Strict Non-Profit (Association Loi 1901) Public Interest Portal
   ========================================================================== */

:root {
  --color-topbar: #E64A19;
  --color-primary: #0A4260;
  --color-primary-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-cta: #D32F2F;
  --color-alert-cta-hover: #B71C1C;
  --color-heading: #0F172A;
  --color-body: #475569;
  --color-bg-card: #FFFFFF;
  --color-bg-light: #F8FAFC;
  --color-border: #E2E8F0;
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
}

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

body {
  font-family: var(--font-body);
  color: var(--color-body);
  background-color: var(--color-bg-light);
  line-height: 1.7;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
}

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

h1 { font-size: 2.6rem; letter-spacing: -0.02em; }
h2 { font-size: 2rem; margin-top: 2rem; }
h3 { font-size: 1.4rem; margin-top: 1.5rem; }
h4 { font-size: 1.15rem; }

p {
  margin-bottom: 1.25rem;
}

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

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

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-topbar {
  background-color: var(--color-topbar);
  color: #FFFFFF;
  font-size: 0.825rem;
  padding: 0.5rem 0;
  font-weight: 500;
}

.site-topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.site-topbar a {
  color: #FFFFFF;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-header {
  background-color: var(--color-primary);
  color: #FFFFFF;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 0;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #FFFFFF;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.brand-badge {
  background-color: rgba(255, 255, 255, 0.15);
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.05em;
}

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

.nav-item {
  position: relative;
}

.nav-link {
  display: block;
  padding: 0.75rem 0.9rem;
  color: #FFFFFF;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 6px;
  min-height: 44px;
  min-width: 44px;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-link:hover, .nav-link:focus {
  background-color: var(--color-primary-hover);
  color: #FFFFFF;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #FFFFFF;
  min-width: 250px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  padding: 0.5rem 0;
  list-style: none;
  display: none;
  z-index: 1010;
  border: 1px solid var(--color-border);
}

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

.dropdown-menu li a:hover {
  background-color: var(--color-bg-light);
  color: var(--color-action-blue);
  padding-left: 1.5rem;
}

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

.mobile-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #FFFFFF;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  font-size: 1.1rem;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
}

/* ==========================================================================
   Hero Banners & Page Headers
   ========================================================================== */
.hero-banner {
  background-color: var(--color-primary);
  color: #FFFFFF;
  padding: 3.5rem 0 3rem;
  position: relative;
  overflow: hidden;
  border-bottom: 4px solid var(--color-action-blue);
}

.hero-banner h1 {
  color: #FFFFFF;
  margin-bottom: 1rem;
}

.hero-lead-summary {
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.6;
  max-width: 880px;
  margin-bottom: 1.5rem;
  color: #F1F5F9;
  background: rgba(255, 255, 255, 0.08);
  padding: 1.25rem 1.5rem;
  border-left: 4px solid var(--color-topbar);
  border-radius: 0 8px 8px 0;
}

.hero-btn-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.6rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 44px;
  text-align: center;
  border: none;
}

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

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

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

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

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

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

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

.btn-outline:hover {
  background-color: #FFFFFF;
  color: var(--color-primary);
}

/* ==========================================================================
   Mandatory Mission Block (Notre Mission - 120+ words)
   ========================================================================== */
.notre-mission-highlight {
  background: #FFFFFF;
  border: 2px solid var(--color-action-blue);
  border-left: 8px solid var(--color-primary);
  border-radius: 12px;
  padding: 2.25rem;
  margin: 2.5rem 0;
  box-shadow: 0 10px 25px rgba(10, 66, 96, 0.08);
}

.notre-mission-highlight h2,
.notre-mission-highlight h3 {
  color: var(--color-primary);
  margin-top: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.notre-mission-text {
  font-size: 1.08rem;
  line-height: 1.8;
  color: #1E293B;
  font-weight: 500;
}

/* ==========================================================================
   Image & Figcaption Strict Styling Protocol
   ========================================================================== */
.doc-figure {
  margin: 20px 0;
}

.doc-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;
}

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

.image-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin: 2rem 0;
}

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

/* ==========================================================================
   Card Layouts & Content Sections
   ========================================================================== */
.content-section {
  padding: 3.5rem 0;
}

.content-section.alt-bg {
  background-color: #FFFFFF;
}

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

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

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

.civic-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 1.75rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.civic-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

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

.badge-pill {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.75rem;
}

.badge-pill.green {
  background-color: #E8F5E9;
  color: var(--color-green);
}

.badge-pill.blue {
  background-color: #E1F5FE;
  color: var(--color-action-blue);
}

.badge-pill.magenta {
  background-color: #FCE4EC;
  color: var(--color-magenta);
}

.badge-pill.orange {
  background-color: #FBE9E7;
  color: var(--color-topbar);
}

/* ==========================================================================
   Public Interest Notice Box
   ========================================================================== */
.funding-transparency-box {
  background-color: #F8FAFC;
  border: 1px solid #CBD5E1;
  border-left: 6px solid var(--color-green);
  border-radius: 8px;
  padding: 1.5rem;
  margin: 2rem 0;
}

.funding-transparency-box h4 {
  color: var(--color-green);
  margin-bottom: 0.5rem;
  font-weight: 700;
}

/* ==========================================================================
   Forms & AJAX Thank You Modal
   ========================================================================== */
.form-card {
  background: #FFFFFF;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 2.25rem;
  box-shadow: 0 6px 18px rgba(0,0,0,0.05);
}

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

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

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-heading);
  min-height: 44px;
}

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

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

.form-helper {
  font-size: 0.825rem;
  color: #64748B;
  margin-top: 0.35rem;
}

/* Modal styling */
.ajax-modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.75);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 1rem;
}

.ajax-modal-overlay.active {
  display: flex;
}

.ajax-modal-content {
  background: #FFFFFF;
  border-radius: 16px;
  max-width: 520px;
  width: 100%;
  padding: 2.5rem;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  animation: modalPop 0.25s ease-out;
}

@keyframes modalPop {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

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

.ajax-modal-content h3 {
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background-color: var(--color-primary);
  color: #E2E8F0;
  padding: 4rem 0 2rem;
  border-top: 5px solid var(--color-topbar);
  font-size: 0.925rem;
}

.site-footer h4 {
  color: #FFFFFF;
  margin-bottom: 1.25rem;
  font-size: 1.15rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.site-footer h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 32px;
  height: 2px;
  background-color: var(--color-action-blue);
}

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

.footer-nav li {
  margin-bottom: 0.6rem;
}

.footer-nav a {
  color: #CBD5E1;
  text-decoration: none;
  transition: color 0.2s;
  display: inline-block;
  min-height: 32px;
  display: flex;
  align-items: center;
}

.footer-nav a:hover {
  color: #FFFFFF;
  padding-left: 4px;
}

.footer-disclosure-block {
  background-color: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 1.5rem;
  margin: 2.5rem 0 2rem;
  color: #CBD5E1;
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer-bottom-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.5rem;
  font-size: 0.85rem;
  color: #94A3B8;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 992px) {
  .grid-4, .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .image-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  h1 { font-size: 2.2rem; }
}

@media (max-width: 768px) {
  .mobile-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--color-primary);
    flex-direction: column;
    padding: 1rem 0;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .main-nav.active {
    display: flex;
  }

  .nav-item {
    width: 100%;
  }

  .nav-link {
    padding: 0.75rem 1.5rem;
    width: 100%;
    justify-content: space-between;
  }

  .dropdown-menu {
    position: static;
    display: none;
    background-color: var(--color-primary-hover);
    box-shadow: none;
    border: none;
    border-radius: 0;
    padding: 0;
  }

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

  .dropdown-menu li a {
    color: #FFFFFF;
    padding: 0.65rem 2rem;
  }

  .dropdown-menu li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
  }

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

  .image-grid, .image-grid-3 {
    grid-template-columns: 1fr;
  }

  h1 { font-size: 1.85rem; }
  h2 { font-size: 1.5rem; }

  .hero-lead-summary {
    font-size: 1.05rem;
  }

  .footer-bottom-bar {
    flex-direction: column;
    text-align: center;
  }
}
