/* ==========================================================================
   GIVICO DESIGN SYSTEM STYLESHEET
   ASSOCIATION AGREEE POUR LA PECHE ET LA PROTECTION DU MILIEU AQUATIQUE DE BUGEAT
   High-Performance, Zero External JS Dependency, 100% Policy Compliant CSS
   ========================================================================== */

:root {
  --primary: #FF5722;
  --primary-hover: #E64A19;
  --secondary: #004D40;
  --secondary-hover: #00332C;
  --accent: #FFC107;
  --accent-light: #FFF9C4;
  --base-canvas: #FAF8F5;
  --card-canvas: #FFFFFF;
  --dark-canvas: #12211E;
  --text-main: #1F2937;
  --text-muted: #64748B;
  --text-light: #F8FAFC;
  --border-light: #EFEAE4;
  --border-subtle: #E2E8F0;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.12);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-pill: 9999px;
  --transition: all 0.25s ease-in-out;
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Base Reset & Typography */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background-color: var(--base-canvas);
  color: var(--text-main);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--secondary);
  text-decoration: none;
  transition: var(--transition);
}

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

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

h1, h2, h3, h4, h5, h6 {
  color: var(--secondary);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 1rem;
}

h1 { font-size: clamp(2.2rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-top: 1.5rem; }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); }
h4 { font-size: 1.15rem; }

p {
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
}

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

li {
  margin-bottom: 0.5rem;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.section {
  padding: 5rem 0;
}

.section-dark {
  background-color: var(--dark-canvas);
  color: var(--text-light);
}

.section-dark h2, .section-dark h3, .section-dark h4 {
  color: #FFFFFF;
}

.section-dark p {
  color: #E2E8F0;
}

.section-teal {
  background-color: var(--secondary);
  color: #FFFFFF;
}

.section-teal h2, .section-teal h3 {
  color: #FFFFFF;
}

.section-teal p {
  color: #E0F2F1;
}

.text-center { text-align: center; }
.text-right { text-align: right; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mt-4 { margin-top: 2rem; }

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

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

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }

/* Double-Decker Header */
.top-utility-strip {
  background-color: var(--secondary);
  color: #FFFFFF;
  font-size: 13px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-utility-strip a {
  color: #FFFFFF;
  opacity: 0.9;
}

.top-utility-strip a:hover {
  opacity: 1;
  color: var(--accent);
}

.top-utility-strip .inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.top-utility-strip .contact-items,
.top-utility-strip .meta-items {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.top-utility-strip .badge {
  background: rgba(255, 255, 255, 0.15);
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
}

/* Main Navigation */
.main-header {
  background: #FFFFFF;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--secondary);
  letter-spacing: -0.02em;
}

.brand-logo svg {
  width: 38px;
  height: 38px;
  fill: var(--primary);
  flex-shrink: 0;
}

.brand-logo .dot {
  color: var(--primary);
}

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

.brand-text .title {
  font-size: 1.15rem;
  font-weight: 900;
  line-height: 1.1;
  color: var(--secondary);
}

.brand-text .subtitle {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  padding: 0.5rem 0.25rem;
  position: relative;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
}

/* Buttons (Strict 44px+ Touch Target) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  min-width: 44px;
  padding: 0.75rem 1.75rem;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--radius-pill);
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  text-decoration: none;
  line-height: 1;
}

.btn-primary {
  background-color: var(--primary);
  color: #FFFFFF !important;
  box-shadow: 0 4px 14px rgba(255, 87, 34, 0.35);
}

.btn-primary:hover, .btn-primary:focus {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 87, 34, 0.45);
}

.btn-secondary {
  background-color: var(--secondary);
  color: #FFFFFF !important;
}

.btn-secondary:hover, .btn-secondary:focus {
  background-color: var(--secondary-hover);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border-color: #FFFFFF;
  color: #FFFFFF !important;
}

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

.btn-outline-dark {
  background: transparent;
  border-color: var(--secondary);
  color: var(--secondary) !important;
}

.btn-outline-dark:hover {
  background: var(--secondary);
  color: #FFFFFF !important;
}

/* Mobile Hamburger Toggle */
.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  min-height: 44px;
  min-width: 44px;
  align-items: center;
  justify-content: center;
}

.mobile-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background-color: var(--secondary);
  margin: 5px 0;
  border-radius: 2px;
  transition: var(--transition);
}

/* Cards (Givico Specification) */
.card {
  background: var(--card-canvas);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 2.25rem;
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(255, 87, 34, 0.3);
}

.card-title {
  color: var(--secondary);
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.card-body {
  flex-grow: 1;
}

/* Progress Bars for Public Ecological Projects */
.progress-container {
  margin: 1.25rem 0 0.5rem 0;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.progress-bar-bg {
  width: 100%;
  height: 10px;
  background-color: #E2E8F0;
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary) 0%, #FF8A65 100%);
  border-radius: var(--radius-pill);
  transition: width 1s ease-in-out;
}

/* Badges & Tags */
.badge-tag {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius-pill);
  background: #FFF3E0;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.badge-tag.teal {
  background: #E0F2F1;
  color: var(--secondary);
}

/* Hero Section */
.hero-banner {
  background-color: var(--dark-canvas);
  color: #FFFFFF;
  padding: 5rem 0 6rem 0;
  position: relative;
  overflow: hidden;
}

.hero-banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 80% 20%, rgba(0, 77, 64, 0.4) 0%, transparent 60%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
}

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

.hero-summary-block {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  border-left: 4px solid var(--primary);
  padding: 1.25rem 1.75rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 1.5rem 0 2rem 0;
  font-size: 1.15rem;
  line-height: 1.8;
  color: #F1F5F9;
  font-weight: 500;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

/* Dedicated "Our Mission" Continuous Block */
.mission-callout {
  background: #FFFFFF;
  border: 2px solid var(--border-light);
  border-left: 6px solid var(--primary);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  margin: 3rem 0;
}

.mission-callout h3 {
  color: var(--secondary);
  margin-bottom: 1rem;
  font-size: 1.6rem;
}

.mission-callout p.continuous-mission-text {
  font-size: 1.15rem;
  line-height: 1.85;
  color: #1F2937;
  font-weight: 500;
  margin-bottom: 0;
}

/* Documentary Photos Protocol Styling */
figure.doc-photo {
  margin: 2rem 0;
}

figure.doc-photo img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid #E5E7EB;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  margin: 0;
}

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

/* Impact Counters */
.counter-box {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.counter-number {
  font-size: 2.75rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.counter-label {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Forms (Contact, Volunteer) */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 0.5rem;
}

.form-control {
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-family: inherit;
  color: var(--text-main);
  background-color: #FFFFFF;
  border: 1.5px solid #CBD5E1;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 87, 34, 0.15);
}

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

/* Tables (Event Calendar, Matrix) */
.table-responsive {
  overflow-x: auto;
  margin: 2rem 0;
  background: #FFFFFF;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}

.custom-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.custom-table th {
  background-color: var(--secondary);
  color: #FFFFFF;
  padding: 1rem 1.25rem;
  font-weight: 700;
  font-size: 0.95rem;
}

.custom-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #E2E8F0;
  font-size: 0.95rem;
}

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

.custom-table tr:hover td {
  background-color: #F8FAFC;
}

/* Timeline Components */
.timeline {
  position: relative;
  padding-left: 2rem;
  margin: 2.5rem 0;
  border-left: 3px solid var(--secondary);
}

.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -2.45rem;
  top: 0.35rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid #FFFFFF;
}

.timeline-year {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.timeline-title {
  font-size: 1.3rem;
  color: var(--secondary);
  margin-bottom: 0.5rem;
}

/* Funding Notice Strip */
.funding-notice {
  background: #E0F2F1;
  border: 1px solid #B2DFDB;
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
  color: #004D40;
  font-weight: 600;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Footer Section */
.site-footer {
  background-color: var(--dark-canvas);
  color: #CBD5E1;
  padding-top: 4.5rem;
  border-top: 4px solid var(--primary);
}

.footer-top {
  padding-bottom: 3.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.footer-col h4::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background: var(--primary);
}

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

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

.footer-links a {
  color: #94A3B8;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 44px;
}

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

.mandatory-disclosure-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-top: 2rem;
  font-size: 0.95rem;
  line-height: 1.7;
  color: #E2E8F0;
}

.footer-bottom {
  padding: 1.75rem 0;
  background-color: #0B1412;
  font-size: 0.875rem;
  color: #94A3B8;
  text-align: center;
}

.footer-bottom a {
  color: #CBD5E1;
  text-decoration: underline;
}

.footer-bottom a:hover {
  color: var(--primary);
}

/* Modal Popup */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  backdrop-filter: blur(4px);
}

.modal-content {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  max-width: 520px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-lg);
  position: relative;
  animation: modalFadeIn 0.3s ease-out;
}

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

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

.modal-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.modal-close-btn:hover {
  background: #F1F5F9;
  color: var(--text-main);
}

/* Responsive Media Queries */
@media (max-width: 992px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .mobile-toggle {
    display: flex;
  }
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #FFFFFF;
    flex-direction: column;
    padding: 1.5rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-top: 1px solid var(--border-light);
    gap: 0.75rem;
  }
  .nav-menu.is-active {
    display: flex;
  }
  .nav-link {
    width: 100%;
    padding: 0.75rem 0;
  }
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }
  .hero-banner {
    padding: 3.5rem 0;
  }
  .section {
    padding: 3.5rem 0;
  }
  .top-utility-strip .inner {
    flex-direction: column;
    align-items: flex-start;
  }
  figure.doc-photo img {
    height: 260px;
  }
}
