/* ===================================================================
   SOCIÉTÉ DE CHASSE DE LA COMMUNE D'ÉCURAS
   Official Portal Stylesheet - Salado Design System
   Color Palette:
     - Primary Navy: #1B2232
     - Accent Coral: #FF5B2E
     - Off-White Background: #F8F9FA
     - Slate Text: #475569 & #64748B
     - Light Gray Borders: #E2E8F0 & #E5E7EB
   =================================================================== */

/* CSS Reset & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #1e293b;
  background-color: #F8F9FA;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: #1e293b;
  background-color: #F8F9FA;
}

a {
  color: #FF5B2E;
  text-decoration: none;
  transition: color 0.2s ease-in-out;
}

a:hover {
  color: #e0461b;
  text-decoration: underline;
}

img {
  max-width: 100%;
  display: block;
  height: auto;
}

/* Documentary Photography Rules & Figcaption */
figure {
  margin: 0;
  padding: 0;
  width: 100%;
}

.documentary-photo {
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid #E5E7EB;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  margin: 20px 0 8px 0;
}

figcaption {
  font-size: 0.875rem;
  color: #64748B;
  margin-bottom: 20px;
  font-style: italic;
  display: block;
  line-height: 1.4;
  padding-left: 4px;
}

/* Layout Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Top Utility Bar */
.top-bar {
  background-color: #111622;
  color: #94A3B8;
  font-size: 0.8125rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: 16px;
  font-weight: 500;
}

.top-bar-left span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.top-bar-badge {
  background-color: rgba(255, 255, 255, 0.1);
  color: #E2E8F0;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-family: monospace;
}

.top-bar-right a {
  color: #CBD5E1;
  text-decoration: none;
  font-weight: 500;
  padding: 4px 8px;
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
}

.top-bar-right a:hover {
  color: #FF5B2E;
  text-decoration: underline;
}

/* Sticky Primary Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: #1B2232;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
  border-bottom: 2px solid rgba(255, 91, 46, 0.2);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: #FFFFFF;
}

.site-logo-icon {
  width: 46px;
  height: 46px;
  background: linear-gradient(135deg, #FF5B2E, #d94519);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-weight: 800;
  font-size: 1.35rem;
  box-shadow: 0 4px 10px rgba(255, 91, 46, 0.35);
  flex-shrink: 0;
}

.site-title-group {
  display: flex;
  flex-direction: column;
}

.site-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.site-subtitle {
  font-size: 0.75rem;
  color: #94A3B8;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

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

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

.nav-link {
  color: #E2E8F0;
  font-weight: 500;
  font-size: 0.9375rem;
  padding: 10px 14px;
  border-radius: 6px;
  transition: all 0.2s ease;
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

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

.nav-link.active {
  color: #FFFFFF;
  background-color: rgba(255, 91, 46, 0.15);
  border-bottom: 2px solid #FF5B2E;
}

.header-cta-btn {
  background-color: #FF5B2E;
  color: #FFFFFF !important;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 6px;
  margin-left: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  box-shadow: 0 3px 8px rgba(255, 91, 46, 0.3);
  transition: background-color 0.2s ease, transform 0.1s ease;
  text-decoration: none;
}

.header-cta-btn:hover {
  background-color: #e0461b;
  color: #FFFFFF !important;
  text-decoration: none;
  transform: translateY(-1px);
}

/* Mobile Nav Toggle */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 6px;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, #1B2232 0%, #151A27 100%);
  color: #FFFFFF;
  padding: 64px 0 54px 0;
  border-bottom: 4px solid #FF5B2E;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}

.hero-tag {
  display: inline-block;
  background-color: rgba(255, 91, 46, 0.2);
  border: 1px solid rgba(255, 91, 46, 0.4);
  color: #FF8564;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 18px;
}

.hero-title {
  font-size: 2.5rem;
  line-height: 1.2;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 18px;
}

.hero-subtitle-block {
  font-size: 1.125rem;
  color: #CBD5E1;
  line-height: 1.6;
  margin-bottom: 28px;
  padding-left: 14px;
  border-left: 3px solid #FF5B2E;
}

.hero-btn-group {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}

.btn-primary {
  background-color: #FF5B2E;
  color: #FFFFFF !important;
  font-weight: 600;
  font-size: 1rem;
  padding: 12px 24px;
  border-radius: 6px;
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(255, 91, 46, 0.35);
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.btn-primary:hover {
  background-color: #e0461b;
  transform: translateY(-2px);
  text-decoration: none;
}

.btn-secondary {
  background-color: transparent;
  color: #FFFFFF !important;
  font-weight: 600;
  font-size: 1rem;
  padding: 11px 22px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: #FFFFFF;
  text-decoration: none;
}

.hero-image-wrapper {
  position: relative;
}

.hero-image {
  width: 100%;
  height: 380px;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  border: 2px solid rgba(255, 255, 255, 0.15);
}

/* Page Header Banner (for interior pages) */
.page-header-banner {
  background: linear-gradient(135deg, #1B2232 0%, #151A27 100%);
  color: #FFFFFF;
  padding: 48px 0 40px 0;
  border-bottom: 3px solid #FF5B2E;
}

.page-header-banner h1 {
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.page-header-banner p {
  font-size: 1.05rem;
  color: #CBD5E1;
  max-width: 820px;
  line-height: 1.55;
}

/* Breadcrumbs */
.breadcrumbs {
  font-size: 0.8125rem;
  color: #94A3B8;
  margin-bottom: 14px;
}

.breadcrumbs a {
  color: #CBD5E1;
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: #FF5B2E;
}

/* Mission Statement Box (Mandatory 120+ words block) */
.mandatory-mission-box {
  background-color: #FFFFFF;
  border-left: 5px solid #FF5B2E;
  border-top: 1px solid #E2E8F0;
  border-right: 1px solid #E2E8F0;
  border-bottom: 1px solid #E2E8F0;
  border-radius: 0 10px 10px 0;
  padding: 28px 32px;
  margin: 36px 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.mandatory-mission-box h3 {
  font-size: 1.25rem;
  color: #1B2232;
  font-weight: 700;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.mandatory-mission-box h3::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  background-color: #FF5B2E;
  border-radius: 50%;
}

.mandatory-mission-text {
  font-size: 1.025rem;
  line-height: 1.7;
  color: #334155;
  font-weight: 450;
}

/* Funding Reinvestment Guarantee Box */
.reinvestment-box {
  background-color: #EFF6FF;
  border: 1px solid #BFDBFE;
  border-radius: 10px;
  padding: 20px 24px;
  margin: 28px 0;
  display: flex;
  align-items: center;
  gap: 18px;
}

.reinvestment-icon {
  font-size: 2rem;
  color: #2563EB;
  flex-shrink: 0;
}

.reinvestment-text {
  font-size: 0.95rem;
  color: #1E3A8A;
  line-height: 1.55;
  font-weight: 500;
}

/* Statistics Bar */
.stats-bar {
  background-color: #1B2232;
  color: #FFFFFF;
  padding: 36px 0;
  margin: 40px 0;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(27, 34, 50, 0.15);
}

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

.stat-item {
  padding: 0 16px;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.stat-item:last-child {
  border-right: none;
}

.stat-number {
  font-size: 2.25rem;
  font-weight: 800;
  color: #FF5B2E;
  line-height: 1.1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 0.875rem;
  color: #CBD5E1;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.stat-sub {
  font-size: 0.75rem;
  color: #94A3B8;
  margin-top: 4px;
}

/* Content Sections */
.content-section {
  padding: 56px 0;
}

.content-section.bg-white {
  background-color: #FFFFFF;
  border-top: 1px solid #E2E8F0;
  border-bottom: 1px solid #E2E8F0;
}

.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

.section-tag {
  color: #FF5B2E;
  font-weight: 700;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
  display: block;
}

.section-title {
  font-size: 2rem;
  font-weight: 800;
  color: #1B2232;
  margin-bottom: 14px;
  line-height: 1.25;
}

.section-desc {
  font-size: 1.05rem;
  color: #64748B;
  line-height: 1.6;
}

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

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

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

.card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 28px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

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

.card-icon {
  width: 50px;
  height: 50px;
  background-color: rgba(255, 91, 46, 0.1);
  color: #FF5B2E;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
  flex-shrink: 0;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1B2232;
  margin-bottom: 12px;
}

.card-body {
  font-size: 0.95rem;
  color: #475569;
  line-height: 1.6;
  flex-grow: 1;
}

.badge-active {
  display: inline-block;
  background-color: #DEF7EC;
  color: #03543F;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Progress Bars */
.progress-bar-container {
  background-color: #E2E8F0;
  border-radius: 8px;
  height: 12px;
  width: 100%;
  overflow: hidden;
  margin: 10px 0 16px 0;
}

.progress-bar-fill {
  background: linear-gradient(90deg, #FF5B2E, #f97316);
  height: 100%;
  border-radius: 8px;
  transition: width 0.6s ease;
}

/* Call to Action Banner */
.cta-banner {
  background: linear-gradient(135deg, #1B2232 0%, #151A27 100%);
  color: #FFFFFF;
  border-radius: 14px;
  padding: 48px;
  text-align: center;
  margin: 48px 0;
  border: 1px solid rgba(255, 91, 46, 0.3);
  box-shadow: 0 10px 30px rgba(27, 34, 50, 0.15);
}

.cta-banner h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 14px;
}

.cta-banner p {
  font-size: 1.05rem;
  color: #CBD5E1;
  max-width: 700px;
  margin: 0 auto 28px auto;
  line-height: 1.6;
}

.cta-banner .btn-group {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Content Typography & Narrative Blocks */
.prose {
  font-size: 1.05rem;
  line-height: 1.75;
  color: #334155;
}

.prose p {
  margin-bottom: 20px;
}

.prose h2 {
  font-size: 1.75rem;
  color: #1B2232;
  font-weight: 800;
  margin: 40px 0 18px 0;
  line-height: 1.3;
}

.prose h3 {
  font-size: 1.35rem;
  color: #1B2232;
  font-weight: 700;
  margin: 32px 0 14px 0;
  line-height: 1.35;
}

.prose ul, .prose ol {
  margin: 18px 0 24px 28px;
}

.prose li {
  margin-bottom: 8px;
}

/* Tables */
.table-wrapper {
  overflow-x: auto;
  margin: 24px 0;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  background-color: #FFFFFF;
}

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

table.data-table th {
  background-color: #F1F5F9;
  color: #1B2232;
  font-weight: 700;
  padding: 14px 18px;
  border-bottom: 2px solid #CBD5E1;
}

table.data-table td {
  padding: 14px 18px;
  border-bottom: 1px solid #E2E8F0;
  color: #334155;
}

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

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

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

.form-label {
  display: block;
  font-weight: 600;
  font-size: 0.9375rem;
  color: #1B2232;
  margin-bottom: 8px;
}

.form-label .required {
  color: #FF5B2E;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  font-size: 1rem;
  border: 1px solid #CBD5E1;
  border-radius: 8px;
  background-color: #FFFFFF;
  color: #1E293B;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  min-height: 44px;
}

.form-control:focus {
  outline: none;
  border-color: #FF5B2E;
  box-shadow: 0 0 0 3px rgba(255, 91, 46, 0.15);
}

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

.form-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.875rem;
  color: #475569;
  cursor: pointer;
  min-height: 44px;
}

.form-checkbox-label input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: #FF5B2E;
  flex-shrink: 0;
}

/* Modal Popup */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.7);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
}

.modal-content {
  background: #FFFFFF;
  border-radius: 14px;
  padding: 36px 32px;
  max-width: 520px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  animation: modalFadeIn 0.25s ease-out;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.modal-icon {
  width: 64px;
  height: 64px;
  background-color: #DEF7EC;
  color: #0E9F6E;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 18px auto;
}

.modal-title {
  font-size: 1.5rem;
  color: #1B2232;
  font-weight: 800;
  margin-bottom: 12px;
}

.modal-message {
  font-size: 1rem;
  color: #475569;
  line-height: 1.55;
  margin-bottom: 24px;
}

/* Site Footer */
.site-footer {
  background-color: #1B2232;
  color: #CBD5E1;
  padding: 56px 0 28px 0;
  margin-top: auto;
  border-top: 3px solid #FF5B2E;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand h4 {
  font-size: 1.15rem;
  color: #FFFFFF;
  font-weight: 700;
  margin-bottom: 12px;
}

.footer-disclosure-block {
  font-size: 0.875rem;
  color: #94A3B8;
  line-height: 1.6;
  margin-bottom: 16px;
}

.footer-nav-title {
  font-size: 0.9375rem;
  color: #FFFFFF;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

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

.footer-nav-list a {
  color: #CBD5E1;
  font-size: 0.9rem;
  text-decoration: none;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
}

.footer-nav-list a:hover {
  color: #FF5B2E;
  text-decoration: underline;
}

.footer-reg-table {
  font-size: 0.8125rem;
  color: #94A3B8;
  line-height: 1.7;
}

.footer-bottom {
  padding-top: 24px;
  font-size: 0.8125rem;
  color: #94A3B8;
  text-align: center;
}

/* Mobile Media Queries */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  .stat-item:nth-child(2) {
    border-right: none;
  }
  
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
  
  .footer-brand {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 1.85rem;
  }
  
  .mobile-menu-toggle {
    display: inline-flex;
  }
  
  .main-nav {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background-color: #1B2232;
    flex-direction: column;
    padding: 16px 24px 24px 24px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    border-bottom: 2px solid #FF5B2E;
  }
  
  .main-nav.is-open {
    display: flex;
  }
  
  .nav-list {
    flex-direction: column;
    width: 100%;
    align-items: stretch;
    gap: 6px;
  }
  
  .nav-link {
    width: 100%;
    justify-content: flex-start;
    padding: 12px 16px;
    border-radius: 6px;
  }
  
  .header-cta-btn {
    width: 100%;
    margin: 12px 0 0 0;
  }

  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .stat-item {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 16px;
  }
  
  .stat-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .footer-brand {
    grid-column: span 1;
  }

  .top-bar .container {
    flex-direction: column;
    align-items: flex-start;
  }

  .cta-banner {
    padding: 32px 20px;
  }
}
