/* ==========================================================================
   INCLINAISONS - PORTAIL INSTITUTIONNEL LOI 1901
   FEUILLE DE STYLE OFFICIELLE (style.css)
   Conforme aux directives d'accessibilité WCAG AA et aux standards institutionnels
   ========================================================================== */

:root {
  --primary: #002366;          /* Royal Blue Institutionnel */
  --primary-dark: #001848;
  --primary-light: #0d388f;
  --accent: #FFD700;           /* Or Républicain / Accent */
  --accent-hover: #e6c200;
  --accent-text: #1a1a1a;
  --bg-light: #F4F6F9;         /* Gris clair utilitaire */
  --bg-card: #FFFFFF;
  --text-main: #1A202C;
  --text-muted: #4A5568;
  --text-light: #718096;
  --border-color: #E2E8F0;
  --border-focus: #002366;
  --white: #FFFFFF;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

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

body {
  font-family: var(--font-sans);
  color: var(--text-main);
  background-color: #FAFAFB;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: var(--radius-md);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease;
}

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

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

h1 { font-size: 2.25rem; }
h2 { font-size: 1.75rem; border-bottom: 2px solid var(--accent); padding-bottom: 0.5rem; margin-top: 1.5rem; }
h3 { font-size: 1.35rem; margin-top: 1.25rem; }
p { margin-bottom: 1rem; }

/* --- Structure Globale --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* --- Double-Decker Header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

/* Row 1 : Pinned Utility Strip */
.top-utility-strip {
  background: var(--bg-light);
  color: #333333;
  height: 42px;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  border-bottom: 1px solid var(--border-color);
}

.top-utility-left {
  display: flex;
  align-items: center;
  gap: 15px;
}

.rna-badge {
  font-weight: 600;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.association-status-tag {
  background: #E2E8F0;
  color: #2D3748;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.top-utility-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

.utility-search {
  display: flex;
  align-items: center;
  background: var(--white);
  border: 1px solid #CBD5E0;
  border-radius: 20px;
  padding: 2px 10px;
  height: 28px;
}

.utility-search input {
  border: none;
  background: transparent;
  font-size: 12px;
  outline: none;
  width: 140px;
}

.lang-selector {
  font-weight: 600;
  font-size: 12px;
  color: #4A5568;
}

/* Row 2 : Main Navigation Bar */
.main-navbar {
  background: var(--white);
  border-bottom: 2px solid var(--primary);
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-emblem {
  background: var(--primary);
  color: var(--accent);
  width: 44px;
  height: 44px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 900;
  border: 2px solid var(--accent);
}

.brand-text-block h1.org-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary);
  margin: 0;
  line-height: 1.1;
  letter-spacing: 0.5px;
}

.brand-text-block .org-tagline {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.8px;
}

/* Navigation Links & Dropdowns */
.nav-menu {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 5px;
  margin: 0;
  padding: 0;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px 14px;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.88rem;
  border-radius: var(--radius-sm);
  min-height: 44px;
  transition: all 0.2s ease;
}

.nav-link:hover,
.nav-item:hover > .nav-link {
  background-color: var(--bg-light);
  color: var(--primary-light);
}

.nav-link .caret {
  font-size: 10px;
  transition: transform 0.2s ease;
}

.nav-item:hover .caret {
  transform: rotate(180deg);
}

/* Dropdown Menu Specs */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 270px;
  background: var(--white);
  border: 1px solid var(--border-color);
  border-top: 3px solid var(--primary);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  box-shadow: var(--shadow-lg);
  list-style: none;
  padding: 8px 0;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 9999;
}

.nav-item:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item a {
  display: block;
  padding: 10px 18px;
  color: var(--text-main);
  font-size: 0.88rem;
  font-weight: 500;
  border-left: 3px solid transparent;
  transition: all 0.15s ease;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.dropdown-item a:hover {
  background-color: var(--bg-light);
  color: var(--primary);
  border-left-color: var(--accent);
  padding-left: 22px;
}

/* Primary CTA Button */
.btn-cta-contact {
  background-color: var(--primary);
  color: var(--white) !important;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  border: 2px solid var(--accent);
  font-size: 0.9rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.btn-cta-contact:hover {
  background-color: var(--primary-light);
  border-color: var(--white);
  transform: translateY(-1px);
}

.btn-cta-gold {
  background-color: var(--accent);
  color: var(--accent-text) !important;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  border: none;
  font-size: 0.95rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-cta-gold:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--primary) !important;
  border: 2px solid var(--primary);
  padding: 10px 22px;
  border-radius: var(--radius-md);
  font-weight: 600;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--white) !important;
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--primary);
  cursor: pointer;
  padding: 8px;
  min-width: 44px;
  min-height: 44px;
}

/* --- Hero Framework --- */
.hero-institutional {
  background: linear-gradient(135deg, rgba(0, 35, 102, 0.94) 0%, rgba(0, 24, 72, 0.92) 100%),
              url('images/hero-banner.webp') center/cover no-repeat;
  color: var(--white);
  padding: 3.5rem 0;
  margin-bottom: 2rem;
  box-shadow: inset 0 0 100px rgba(0,0,0,0.4);
}

.hero-content {
  max-width: 850px;
}

.hero-badge-pill {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 215, 0, 0.2);
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.hero-institutional h1 {
  color: var(--white);
  font-size: 2.4rem;
  margin-bottom: 1rem;
}

.hero-summary-2sentences {
  font-size: 1.15rem;
  line-height: 1.7;
  color: #E2E8F0;
  margin-bottom: 1.5rem;
  border-left: 4px solid var(--accent);
  padding-left: 1rem;
  background: rgba(255,255,255,0.06);
  padding: 12px 16px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

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

/* --- Two-Column Layout (3fr / 1fr) --- */
.layout-2cols {
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 2rem;
  margin: 2rem 0;
}

.main-column {
  min-width: 0;
}

.side-rail {
  min-width: 0;
}

/* Side-rail cards */
.rail-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-top: 4px solid var(--primary);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.rail-card h3 {
  font-size: 1.1rem;
  color: var(--primary);
  margin-top: 0;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.5rem;
}

.stat-metric-box {
  padding: 0.85rem 0;
  border-bottom: 1px dashed var(--border-color);
}

.stat-metric-box:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.stat-number {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.administrative-list {
  list-style: none;
  font-size: 0.85rem;
}

.administrative-list li {
  margin-bottom: 0.65rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--border-color);
}

.administrative-list li:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.administrative-list strong {
  display: block;
  color: var(--primary);
  font-size: 0.8rem;
  text-transform: uppercase;
}

/* --- Content Modules & Cards --- */
.card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  margin-bottom: 1.75rem;
  box-shadow: var(--shadow-sm);
}

.card-accent-border {
  border-left: 4px solid var(--primary);
}

.card-gold-border {
  border-left: 4px solid var(--accent);
}

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

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

.program-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.program-card img {
  border-radius: 0;
  height: 200px;
  width: 100%;
}

.program-card-body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.program-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  margin-bottom: 0.75rem;
}

.status-tag {
  background: #EBF8FF;
  color: #2B6CB0;
  border: 1px solid #BEE3F8;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
}

.status-tag-active {
  background: #F0FFF4;
  color: #276749;
  border-color: #C6F6D5;
}

/* --- Reinvestment & Funding Disclosures --- */
.funding-disclosure-banner {
  background-color: #EBF8FF;
  border: 1px solid #BEE3F8;
  border-left: 6px solid var(--primary);
  padding: 1.25rem;
  border-radius: var(--radius-md);
  margin: 2rem 0;
  font-size: 0.95rem;
}

.reinvestment-statement {
  background: #FFFDF0;
  border: 1px solid #FFE082;
  border-left: 6px solid var(--accent);
  padding: 1.25rem;
  border-radius: var(--radius-md);
  margin: 1.5rem 0;
  font-size: 0.95rem;
  color: #5D4037;
}

.reinvestment-statement strong {
  color: #002366;
  font-size: 1.05rem;
  display: block;
  margin-bottom: 4px;
}

/* --- Roadmap 3 Étapes --- */
.roadmap-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 2rem 0;
}

.step-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  position: relative;
  box-shadow: var(--shadow-sm);
}

.step-number {
  width: 36px;
  height: 36px;
  background: var(--primary);
  color: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

/* --- Tableaux Comptables & Transparence --- */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  margin: 1.5rem 0;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}

.table-institutional {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  font-size: 0.9rem;
  text-align: left;
}

.table-institutional th {
  background: var(--primary);
  color: var(--white);
  padding: 12px 16px;
  font-weight: 600;
}

.table-institutional td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
}

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

.table-institutional tr:hover td {
  background: #EDF2F7;
}

.table-institutional tfoot td {
  background: #E2E8F0;
  font-weight: 700;
  color: var(--primary);
}

/* --- Formulaires Institutionnels --- */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--text-main);
  font-size: 0.9rem;
}

.form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  min-height: 44px;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

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

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

/* --- Footer Institutionnel --- */
.site-footer {
  background-color: var(--primary-dark);
  color: #E2E8F0;
  padding: 3.5rem 0 1.5rem;
  margin-top: 4rem;
  border-top: 4px solid var(--accent);
}

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

.footer-col h4 {
  color: var(--accent);
  font-size: 1.05rem;
  margin-bottom: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-col p {
  font-size: 0.88rem;
  color: #CBD5E0;
  line-height: 1.6;
}

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

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

.footer-links a {
  color: #CBD5E0;
  font-size: 0.88rem;
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
  min-height: 32px;
}

.footer-links a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.footer-bottom-notice {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 1.5rem;
  font-size: 0.82rem;
  color: #A0AEC0;
  text-align: center;
  line-height: 1.7;
}

/* --- Mobile & Responsive --- */
@media (max-width: 992px) {
  .layout-2cols {
    grid-template-columns: 1fr;
  }
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .roadmap-steps {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .top-utility-strip {
    height: auto;
    padding: 8px 12px;
    flex-direction: column;
    gap: 6px;
    text-align: center;
  }
  .top-utility-left,
  .top-utility-right {
    justify-content: center;
  }
  .utility-search {
    display: none;
  }
  .mobile-nav-toggle {
    display: block;
  }
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    border-bottom: 2px solid var(--primary);
    box-shadow: var(--shadow-lg);
    padding: 10px 0;
  }
  .nav-menu.is-active {
    display: flex;
  }
  .nav-link {
    padding: 12px 20px;
    border-bottom: 1px solid var(--border-color);
  }
  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    border-left: 4px solid var(--accent);
    background: #F8FAFC;
    padding-left: 15px;
    display: none;
  }
  .nav-item.is-open .dropdown-menu {
    display: block;
  }
  .grid-2, .grid-3 {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  h1 { font-size: 1.85rem; }
  h2 { font-size: 1.45rem; }
}
