/**
 * COUTILLAS ENDURANCE — STYLESHEET OFFICIEL (LOI 1901)
 * Architecture typographique et graphique institutionnelle
 * Palette : Midnight Navy (#0A192F), Forest Emerald (#1B4D3E), Burnt Terracotta (#C85A32), Alabaster (#F8F9FA)
 */

/* -------------------------------------------------------------
   1. RESET & VARIABLES FONDAMENTALES
   ------------------------------------------------------------- */
:root {
  --color-navy: #0A192F;
  --color-navy-dark: #060F1E;
  --color-emerald: #1B4D3E;
  --color-emerald-hover: #13392E;
  --color-terracotta: #C85A32;
  --color-terracotta-hover: #A94522;
  --color-canvas: #F8F9FA;
  --color-card-bg: #FFFFFF;
  --color-border: #E2E8F0;
  --color-border-subtle: #EDF2F7;
  --color-text-main: #1E293B;
  --color-text-heading: #0F172A;
  --color-text-muted: #64748B;
  --color-text-light: #94A3B8;

  --font-serif: 'Lora', Georgia, 'Times New Roman', serif;
  --font-display: 'Cinzel', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 15px rgba(0,0,0,0.05);
  --shadow-lg: 0 10px 30px rgba(10, 25, 47, 0.08);

  --container-max: 1200px;
  --line-height-body: 1.85;
}

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

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

body {
  background-color: var(--color-canvas);
  color: var(--color-text-main);
  font-family: var(--font-sans);
  line-height: var(--line-height-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* -------------------------------------------------------------
   2. TYPOGRAPHIE INSTITUTIONNELLE & STRUCTURE TEXTE
   ------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  color: var(--color-text-heading);
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
}

h1 { font-size: clamp(2rem, 3.5vw, 2.75rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.15rem); margin-top: 2rem; }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); margin-top: 1.5rem; }
h4 { font-size: 1.15rem; font-weight: 600; }

p {
  margin-bottom: 1.5rem;
  color: #334155;
  font-size: 1.035rem;
}

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

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

li {
  margin-bottom: 0.5rem;
}

a {
  color: var(--color-emerald);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--color-emerald-hover);
}

.lead-text {
  font-size: 1.2rem;
  line-height: 1.75;
  color: #1E293B;
  font-weight: 400;
  margin-bottom: 1.8rem;
}

.site-container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.page-main-flow {
  flex: 1 0 auto;
}

/* -------------------------------------------------------------
   3. HEADER & ROW 1 ADMINISTRATIVE UTILITY BAR
   ------------------------------------------------------------- */
.admin-utility-bar {
  background-color: var(--color-navy-dark);
  color: #CBD5E1;
  font-size: 0.8125rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.5rem 0;
}

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

.utility-left {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.utility-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(27, 77, 62, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.15rem 0.6rem;
  border-radius: var(--radius-sm);
  color: #A7F3D0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.pulse-indicator {
  width: 7px;
  height: 7px;
  background-color: #10B981;
  border-radius: 50%;
  box-shadow: 0 0 6px #10B981;
}

.utility-meta strong {
  color: #FFFFFF;
}

.utility-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.utility-link {
  color: #E2E8F0;
  text-decoration: none;
  transition: color 0.2s;
}

.utility-link:hover {
  color: #FFFFFF;
  text-decoration: underline;
}

.utility-sep {
  color: #475569;
}

.utility-tel {
  color: #F8FAFC;
  font-weight: 600;
  text-decoration: none;
}

.utility-tel:hover {
  color: #38BDF8;
}

/* -------------------------------------------------------------
   4. ROW 2 MAIN COMMAND NAVIGATION
   ------------------------------------------------------------- */
.main-header {
  background-color: var(--color-navy);
  border-bottom: 2px solid var(--color-emerald);
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: var(--shadow-md);
}

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

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

.brand-crest {
  width: 46px;
  height: 46px;
  background: linear-gradient(135deg, var(--color-emerald), #0E2920);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FCD34D;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.2);
}

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

.brand-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #FFFFFF;
  line-height: 1.1;
}

.brand-sub {
  font-size: 0.75rem;
  color: #94A3B8;
  letter-spacing: 0.02em;
}

/* Desktop Nav Items */
.desktop-navigation {
  display: block;
}

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

.nav-item {
  position: relative;
}

.nav-link, .nav-category-label {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: #F1F5F9;
  text-decoration: none;
  font-size: 0.935rem;
  font-weight: 500;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  cursor: pointer;
  min-height: 44px; /* WCAG touch target */
}

.nav-link:hover, .nav-category-label:hover {
  background-color: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
}

.nav-link.active {
  background-color: var(--color-emerald);
  color: #FFFFFF;
}

.nav-chevron {
  font-size: 0.75rem;
  color: #94A3B8;
  transition: transform 0.2s ease;
}

/* Dropdown Sub-menu */
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #0F233F;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
  padding: 0.5rem 0;
  min-width: 250px;
  list-style: none;
  z-index: 1000;
}

.has-dropdown:hover .dropdown-menu {
  display: block;
}

.has-dropdown:hover .nav-chevron {
  transform: rotate(180deg);
}

.dropdown-link {
  display: block;
  padding: 0.65rem 1.25rem;
  color: #E2E8F0;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.15s ease;
  min-height: 44px;
  line-height: 1.4;
}

.dropdown-link:hover, .dropdown-link.active {
  background-color: var(--color-emerald);
  color: #FFFFFF;
}

/* Nav Action & Mobile Toggle */
.nav-action-wrapper {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn-nav-cta {
  background-color: var(--color-terracotta);
  color: #FFFFFF !important;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.1s ease;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-nav-cta:hover {
  background-color: var(--color-terracotta-hover);
  transform: translateY(-1px);
}

.mobile-toggle-btn {
  display: none;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-sm);
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  padding: 0;
}

.mobile-toggle-btn .bar {
  width: 22px;
  height: 2px;
  background-color: #FFFFFF;
  transition: all 0.3s ease;
}

/* Mobile Drawer */
.mobile-drawer {
  display: none;
  background-color: #0A192F;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem 0;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}

.mobile-drawer.is-open {
  display: block;
}

.mobile-group-header {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: #94A3B8;
  letter-spacing: 0.08em;
  padding: 0.75rem 1.5rem 0.35rem 1.5rem;
  text-transform: uppercase;
}

.mobile-menu-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem 0;
}

.mobile-link {
  display: block;
  padding: 0.75rem 1.5rem;
  color: #F1F5F9;
  text-decoration: none;
  font-size: 1rem;
  min-height: 44px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-link.active, .mobile-link:hover {
  background-color: var(--color-emerald);
  color: #FFFFFF;
}

.mobile-drawer-cta {
  padding: 1rem 1.5rem 0.5rem 1.5rem;
}

/* -------------------------------------------------------------
   5. HERO BANNER & MANDATORY HERO PHOTOGRAPHY
   ------------------------------------------------------------- */
.hero-block {
  position: relative;
  background-color: var(--color-navy);
  color: #FFFFFF;
  padding: 3.5rem 0 4rem 0;
  overflow: hidden;
  border-bottom: 1px solid var(--color-border);
}

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

.hero-badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-sm);
  padding: 0.35rem 0.85rem;
  font-size: 0.8rem;
  font-family: var(--font-mono);
  color: #A7F3D0;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
}

.hero-title {
  color: #FFFFFF;
  margin-bottom: 1.25rem;
  max-width: 950px;
}

.hero-summary {
  font-size: 1.22rem;
  line-height: 1.8;
  color: #E2E8F0;
  max-width: 880px;
  margin-bottom: 2rem;
  font-weight: 400;
}

.hero-actions-group {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.hero-photo-wrapper {
  margin-top: 1rem;
}

.hero-photo-wrapper img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 15px 40px rgba(0,0,0,0.35);
}

.hero-photo-wrapper figcaption {
  font-size: 0.875rem;
  color: #CBD5E1;
  font-style: italic;
  margin-top: 0.75rem;
  margin-bottom: 0;
  text-align: right;
}

/* -------------------------------------------------------------
   6. REAL DOCUMENTARY PHOTOGRAPHY PROTOCOL
   ------------------------------------------------------------- */
.documentary-photo {
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid #E2E8F0;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  margin: 20px 0 8px 0;
  object-fit: cover;
  display: block;
}

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

.photo-card-media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.photo-card-media img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
  margin: 0;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

/* -------------------------------------------------------------
   7. MANDATORY CALLOUT CARD ('NOTRE MISSION' 120+ WORDS)
   ------------------------------------------------------------- */
.mission-callout-card {
  background: linear-gradient(135deg, #FFFFFF 0%, #F0FDF4 100%);
  border: 2px solid var(--color-emerald);
  border-left: 8px solid var(--color-emerald);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2.5rem;
  margin: 2.5rem 0;
  box-shadow: var(--shadow-md);
  position: relative;
}

.mission-callout-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

.mission-callout-icon {
  width: 36px;
  height: 36px;
  background-color: var(--color-emerald);
  color: #FFFFFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.mission-callout-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--color-emerald);
  margin: 0;
}

.mission-statement-body {
  font-size: 1.1rem;
  line-height: 1.9;
  color: #1E293B;
  font-weight: 500;
  margin-bottom: 1rem;
}

.mission-wordcount-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-text-muted);
  background-color: #E2E8F0;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
}

/* -------------------------------------------------------------
   8. BUTTONS & CALL-TO-ACTION (CTA) ENGINES
   ------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.975rem;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 44px;
  border: 1px solid transparent;
  line-height: 1.2;
}

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

.btn-primary:hover {
  background-color: var(--color-emerald-hover);
  box-shadow: 0 4px 12px rgba(27, 77, 62, 0.25);
  transform: translateY(-1px);
}

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

.btn-secondary:hover {
  background-color: var(--color-terracotta-hover);
  box-shadow: 0 4px 12px rgba(200, 90, 50, 0.25);
  transform: translateY(-1px);
}

.btn-outline {
  background-color: transparent;
  border-color: #CBD5E1;
  color: var(--color-text-heading) !important;
}

.btn-outline:hover {
  background-color: #F1F5F9;
  border-color: #94A3B8;
}

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

.btn-outline-white:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: #FFFFFF;
}

.btn-block {
  width: 100%;
}

.cta-banner-strip {
  background: linear-gradient(135deg, var(--color-navy) 0%, #112A45 100%);
  color: #FFFFFF;
  border-radius: var(--radius-xl);
  padding: 3rem 2.5rem;
  margin: 3.5rem 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
}

.cta-banner-text h3 {
  color: #FFFFFF;
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.cta-banner-text p {
  color: #CBD5E1;
  margin-bottom: 0;
  max-width: 650px;
}

/* -------------------------------------------------------------
   9. CONTENT PANELS, GRIDS & CARDS
   ------------------------------------------------------------- */
.content-section {
  padding: 3.5rem 0;
}

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

.section-header {
  margin-bottom: 2.5rem;
}

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

.section-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--color-emerald);
  background-color: #E6F4EA;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}

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

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

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

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

.card-panel:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: #CBD5E1;
}

.card-panel h3, .card-panel h4 {
  margin-top: 0;
}

/* Activity Badge & Metadata */
.activity-status-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  background-color: #0F172A;
  color: #38BDF8;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  letter-spacing: 0.04em;
  margin-bottom: 1rem;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.metadata-list {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 0.75rem 0;
}

.metadata-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  padding: 0.3rem 0;
}

.metadata-label {
  color: var(--color-text-muted);
  font-weight: 500;
}

.metadata-value {
  color: var(--color-text-heading);
  font-weight: 600;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

/* -------------------------------------------------------------
   10. IMPACT MATRIX & FINANCIAL LEDGER TABLE
   ------------------------------------------------------------- */
.stats-matrix {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin: 2.5rem 0;
}

.stat-card {
  background: #FFFFFF;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.stat-figure {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-emerald);
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

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

.ledger-table-wrapper {
  overflow-x: auto;
  background-color: #FFFFFF;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  margin: 2rem 0;
}

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

.ledger-table th {
  background-color: #F1F5F9;
  color: var(--color-text-heading);
  padding: 1rem 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.825rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 2px solid var(--color-border);
}

.ledger-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--color-border);
  color: #334155;
}

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

.ledger-table td.font-mono {
  font-family: var(--font-mono);
  font-size: 0.9rem;
}

.ledger-table tfoot td {
  font-weight: 700;
  background-color: #F8FAFC;
  border-top: 2px solid var(--color-border);
}

/* -------------------------------------------------------------
   11. FORMS & INPUT CONTROLS (AJAX READY)
   ------------------------------------------------------------- */
.form-card {
  background-color: #FFFFFF;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

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

.form-control {
  width: 100%;
  padding: 0.85rem 1rem;
  font-size: 1rem;
  font-family: var(--font-sans);
  color: var(--color-text-main);
  background-color: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: var(--radius-sm);
  transition: border-color 0.2s, box-shadow 0.2s;
  min-height: 44px;
}

.form-control:focus {
  outline: none;
  border-color: var(--color-emerald);
  box-shadow: 0 0 0 3px rgba(27, 77, 62, 0.15);
}

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

.form-hint {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-top: 0.35rem;
}

/* -------------------------------------------------------------
   12. ACCESSIBLE MODAL CONFIRMATION
   ------------------------------------------------------------- */
.modal-backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 25, 47, 0.75);
  backdrop-filter: blur(4px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-backdrop.is-visible {
  display: flex;
}

.modal-dialog {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  max-width: 520px;
  width: 100%;
  padding: 2.25rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  border: 1px solid var(--color-border);
  animation: modalFadeIn 0.2s ease-out forwards;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: translateY(12px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.modal-icon-badge {
  width: 50px;
  height: 50px;
  background-color: #ECFDF5;
  color: #059669;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.modal-title {
  margin: 0;
  font-size: 1.35rem;
  color: var(--color-text-heading);
}

.modal-desc {
  font-size: 0.975rem;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.modal-receipt {
  background-color: #F8FAFC;
  border: 1px dashed #CBD5E1;
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  margin-bottom: 1.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-receipt code {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--color-emerald);
}

/* -------------------------------------------------------------
   13. FOOTER DISCLOSURES & LEGAL IDENTIFIERS
   ------------------------------------------------------------- */
.main-footer {
  background-color: var(--color-navy);
  color: #E2E8F0;
  border-top: 4px solid var(--color-emerald);
  padding-top: 4rem;
  font-size: 0.95rem;
}

.footer-content-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 2.5rem;
  margin-bottom: 3.5rem;
}

.footer-brand-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 0.25rem;
}

.footer-brand-sub {
  font-size: 0.8rem;
  color: #A7F3D0;
  display: block;
  margin-bottom: 1rem;
}

.footer-about-text {
  font-size: 0.9rem;
  color: #94A3B8;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.footer-identifiers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.85rem;
  border-radius: var(--radius-sm);
  color: #CBD5E1;
}

.footer-identifiers strong {
  color: #FFFFFF;
}

.footer-col-title {
  color: #FFFFFF;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-col-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 35px;
  height: 2px;
  background-color: var(--color-terracotta);
}

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

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

.footer-menu a {
  color: #94A3B8;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

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

.footer-address {
  font-style: normal;
  color: #CBD5E1;
  font-size: 0.925rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.footer-contact-items {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 0.875rem;
}

.contact-label {
  color: #94A3B8;
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.contact-value {
  color: #FFFFFF;
  text-decoration: none;
  font-weight: 500;
}

.contact-value:hover {
  color: #38BDF8;
}

/* Disclosure Card */
.footer-disclosure-section {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2rem 0;
}

.disclosure-card {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.75rem;
}

.disclosure-p-en {
  color: #E2E8F0;
  font-size: 0.925rem;
  line-height: 1.7;
  margin-bottom: 0.75rem;
  font-weight: 500;
}

.disclosure-p-fr {
  color: #94A3B8;
  font-size: 0.85rem;
  line-height: 1.65;
  margin-bottom: 0;
}

/* Copyright Bar */
.footer-bottom-bar {
  background-color: var(--color-navy-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.25rem 0;
  font-size: 0.825rem;
  color: #94A3B8;
}

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

.copyright-line {
  margin: 0;
  color: #94A3B8;
}

.bottom-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

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

.bottom-links a:hover {
  color: #FFFFFF;
}

.bottom-links .sep {
  color: #475569;
}

/* -------------------------------------------------------------
   14. RESPONSIVE MEDIA QUERIES (992px & 768px STRICT)
   ------------------------------------------------------------- */
@media (max-width: 992px) {
  .cards-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .stats-matrix {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-content-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .desktop-navigation {
    display: none;
  }

  .mobile-toggle-btn {
    display: flex;
  }

  .cta-banner-strip {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 768px) {
  .cards-grid-2,
  .cards-grid-3,
  .cards-grid-4 {
    grid-template-columns: 1fr;
  }

  .stats-matrix {
    grid-template-columns: 1fr;
  }

  .footer-content-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .d-none-mobile {
    display: none;
  }

  .utility-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .utility-right {
    width: 100%;
    justify-content: space-between;
  }

  .mission-callout-card {
    padding: 1.5rem;
  }

  .bottom-bar-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
