/* ==========================================================================
   JAZZ SOUS LES BIGARADIERS - SYSTÈME DE DESIGN INSTITUTIONNEL LOI 1901
   Couleurs : Deep Navy (#0E2335), Vibrant Teal (#00A3E0), Coral Red (#E54838)
   Canvas Off-White (#F4F6F8), Blanc Pur (#FFFFFF), Texte Slate (#1A1A1A)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700;800;900&family=Open+Sans:ital,wght@0,400;0,600;0,700;1,400&display=swap');

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

:root {
  --navy: #0E2335;
  --teal: #00A3E0;
  --teal-hover: #0088ba;
  --coral: #E54838;
  --coral-hover: #cc3d2f;
  --canvas: #F4F6F8;
  --white: #FFFFFF;
  --slate: #1A1A1A;
  --slate-light: #5A6A78;
  --border-color: #E2E8F0;
  --shadow-sm: 0 2px 4px rgba(14, 35, 53, 0.06);
  --shadow-md: 0 4px 12px rgba(14, 35, 53, 0.08);
  --shadow-lg: 0 8px 24px rgba(14, 35, 53, 0.12);
  --radius: 2px;
}

body {
  font-family: 'Open Sans', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--slate);
  background-color: var(--canvas);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Oswald', Arial, sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.1;
  color: var(--navy);
  letter-spacing: 0.02em;
}

h1 { font-size: 2.5rem; margin-bottom: 1.25rem; }
h2 { font-size: 2rem; margin-bottom: 1rem; }
h3 { font-size: 1.45rem; margin-bottom: 0.75rem; }
h4 { font-size: 1.2rem; margin-bottom: 0.5rem; }

p {
  margin-bottom: 1.25rem;
  max-width: 75ch;
}

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

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

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

.container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* ==========================================================================
   TOP ADMINISTRATIVE UTILITY STRIP
   ========================================================================== */
.admin-utility-strip {
  background-color: var(--navy);
  color: #CFD8DC;
  font-size: 13px;
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding: 8px 0;
}

.admin-utility-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.admin-utility-left {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

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

.admin-utility-left .badge-rna {
  background: rgba(0, 163, 224, 0.25);
  color: #79D4F6;
  padding: 2px 8px;
  border-radius: 2px;
  font-size: 11px;
  letter-spacing: 0.05em;
}

.admin-utility-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.admin-utility-right a.legal-link {
  color: #CFD8DC;
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.admin-utility-right a.legal-link:hover {
  color: var(--white);
}

.btn-donate-strip {
  background-color: var(--coral);
  color: var(--white) !important;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: 2px;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background-color 0.2s ease, transform 0.15s ease;
  min-height: 36px;
}

.btn-donate-strip:hover {
  background-color: var(--coral-hover);
  transform: translateY(-1px);
}

/* ==========================================================================
   MAIN NAVIGATION BAR
   ========================================================================== */
.main-header {
  background-color: var(--white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.main-nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 84px;
}

.brand-identity {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand-logo-mark {
  width: 48px;
  height: 48px;
  background: var(--navy);
  color: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
  border-top: 4px solid var(--coral);
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 18px;
  line-height: 1;
}

.brand-text h1 {
  font-size: 1.15rem;
  margin-bottom: 0;
  color: var(--navy);
  letter-spacing: 0.03em;
}

.brand-text span {
  font-size: 11px;
  color: var(--slate-light);
  font-weight: 600;
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.nav-menu-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.nav-item {
  position: relative;
}

.nav-link {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--navy);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-radius: 2px;
  min-height: 44px;
  transition: all 0.2s ease;
}

.nav-link:hover, .nav-item:hover > .nav-link {
  color: var(--teal);
  background-color: var(--canvas);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 250px;
  background-color: var(--white);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  border-top: 4px solid var(--teal);
  border-radius: var(--radius);
  list-style: none;
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.2s ease;
  z-index: 1001;
}

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

.dropdown-menu li a {
  display: block;
  padding: 10px 20px;
  font-family: 'Open Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  min-height: 44px;
  line-height: 24px;
}

.dropdown-menu li a:hover {
  background-color: var(--canvas);
  color: var(--teal);
  padding-left: 24px;
}

.mobile-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-color);
  padding: 10px;
  border-radius: 2px;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  margin: 5px 0;
}

/* ==========================================================================
   BUTTONS & CALLS TO ACTION
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 12px 24px;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 44px;
  white-space: nowrap;
  border: none;
}

.btn-teal {
  background-color: var(--teal);
  color: var(--white) !important;
}

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

.btn-coral {
  background-color: var(--coral);
  color: var(--white) !important;
}

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

.btn-outline {
  background-color: transparent;
  color: var(--navy) !important;
  border: 2px solid var(--navy);
}

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

.btn-outline-white {
  background-color: transparent;
  color: var(--white) !important;
  border: 2px solid var(--white);
}

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

/* ==========================================================================
   HERO BANNER
   ========================================================================== */
.hero-section {
  position: relative;
  background: linear-gradient(135deg, rgba(14, 35, 53, 0.94) 0%, rgba(14, 35, 53, 0.82) 100%),
              url('images/hero-banner.webp') center center / cover no-repeat;
  color: var(--white);
  padding: 90px 0;
  border-bottom: 4px solid var(--teal);
}

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

.hero-tag {
  display: inline-block;
  background-color: var(--coral);
  color: var(--white);
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 2px;
  margin-bottom: 16px;
}

.hero-title {
  color: var(--white);
  font-size: 2.85rem;
  line-height: 1.1;
  margin-bottom: 18px;
}

.hero-lead-summary {
  font-size: 18px;
  line-height: 1.6;
  color: #E2E8F0;
  margin-bottom: 28px;
  max-width: 800px;
  font-weight: 400;
}

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

/* ==========================================================================
   INSTITUTIONAL CALLOUT & STATUTORY BLOCKS
   ========================================================================== */
.institutional-callout {
  background-color: var(--white);
  border-left: 6px solid var(--teal);
  box-shadow: var(--shadow-md);
  padding: 36px;
  margin: -40px auto 48px auto;
  position: relative;
  z-index: 10;
  border-radius: var(--radius);
}

.institutional-callout h3 {
  color: var(--navy);
  font-size: 1.4rem;
  margin-bottom: 14px;
}

.institutional-callout p {
  color: var(--slate);
  font-size: 16px;
  line-height: 1.7;
}

.statutory-quote-box {
  background-color: rgba(0, 163, 224, 0.08);
  border-left: 4px solid var(--teal);
  padding: 20px 24px;
  margin: 24px 0;
  font-style: italic;
  color: var(--navy);
  font-weight: 600;
}

/* ==========================================================================
   CARDS & GRIDS
   ========================================================================== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin: 36px 0;
}

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

.card-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin: 36px 0;
}

.card {
  background-color: var(--white);
  border-radius: var(--radius);
  border-top: 4px solid var(--teal);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

.card.card-coral {
  border-top-color: var(--coral);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-media {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-color: #E2E8F0;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.card:hover .card-media img {
  transform: scale(1.03);
}

.card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-meta {
  font-size: 12px;
  font-weight: 700;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.card-title {
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: var(--navy);
}

.card-text {
  font-size: 15px;
  color: #4A5568;
  line-height: 1.6;
  margin-bottom: 20px;
  flex: 1;
}

/* ==========================================================================
   TEAL BANNER & ACTION MODULE
   ========================================================================== */
.teal-action-banner {
  background-color: var(--teal);
  color: var(--white);
  padding: 60px 0;
  margin: 50px 0;
}

.teal-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  flex-wrap: wrap;
}

.teal-banner-text {
  flex: 1;
  min-width: 300px;
}

.teal-banner-text h2 {
  color: var(--white);
  font-size: 2rem;
  margin-bottom: 10px;
}

.teal-banner-text p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0;
  font-size: 16px;
}

.teal-banner-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  min-width: 320px;
}

.form-control {
  padding: 12px 16px;
  font-size: 15px;
  border: 1px solid #CBD5E1;
  border-radius: 2px;
  font-family: 'Open Sans', sans-serif;
  color: var(--slate);
  background-color: var(--white);
  min-height: 44px;
}

.form-control:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(0, 163, 224, 0.2);
}

/* ==========================================================================
   PAGE HEADERS (INTERIOR PAGES)
   ========================================================================== */
.page-header {
  background: linear-gradient(135deg, var(--navy) 0%, #173854 100%);
  color: var(--white);
  padding: 60px 0;
  margin-bottom: 40px;
  border-bottom: 4px solid var(--teal);
}

.page-header h1 {
  color: var(--white);
  font-size: 2.4rem;
  margin-bottom: 12px;
}

.page-header p.lead {
  font-size: 18px;
  color: #CFD8DC;
  margin-bottom: 0;
  max-width: 800px;
}

.breadcrumb-nav {
  font-size: 13px;
  font-weight: 600;
  color: #94A3B8;
  margin-bottom: 14px;
}

.breadcrumb-nav a {
  color: #CBD5E1;
}

.breadcrumb-nav span {
  margin: 0 8px;
}

/* ==========================================================================
   CONTENT BLOCKS, TABLES & ARTICLE BODY
   ========================================================================== */
.content-section {
  padding: 40px 0;
}

.prose-block {
  background: var(--white);
  padding: 40px;
  border-radius: 2px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 32px;
}

.prose-block h2 {
  font-size: 1.75rem;
  border-bottom: 2px solid var(--canvas);
  padding-bottom: 12px;
  margin-top: 28px;
  margin-bottom: 16px;
}

.prose-block h3 {
  font-size: 1.3rem;
  margin-top: 24px;
  margin-bottom: 12px;
}

.prose-block ul, .prose-block ol {
  margin: 16px 0 24px 28px;
}

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

.badge-status {
  display: inline-block;
  background-color: #E0F2FE;
  color: #0369A1;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 2px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid #BAE6FD;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
  margin: 24px 0;
}

.statutory-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.statutory-table th {
  background-color: var(--navy);
  color: var(--white);
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 14px 18px;
  text-align: left;
}

.statutory-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-color);
  font-size: 14px;
  color: var(--slate);
}

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

/* ==========================================================================
   MASTER FOOTER
   ========================================================================== */
.main-footer {
  background-color: var(--navy);
  color: #E2E8F0;
  padding-top: 60px;
  margin-top: 80px;
  border-top: 4px solid var(--coral);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.1fr 1.1fr;
  gap: 36px;
  margin-bottom: 48px;
}

.footer-col h4 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 18px;
  letter-spacing: 0.04em;
  position: relative;
  padding-bottom: 8px;
}

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

.footer-col p {
  font-size: 14px;
  line-height: 1.6;
  color: #94A3B8;
  margin-bottom: 12px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: #CBD5E1;
  font-size: 14px;
  transition: color 0.2s ease, padding-left 0.2s ease;
  display: inline-block;
  min-height: 24px;
}

.footer-col ul li a:hover {
  color: var(--teal);
  padding-left: 4px;
}

.footer-legal-tag {
  background: rgba(255, 255, 255, 0.08);
  padding: 8px 12px;
  border-radius: 2px;
  font-size: 12px;
  color: #94A3B8;
  margin-top: 14px;
  line-height: 1.5;
}

.footer-newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

.footer-bottom-strip {
  background-color: #081622;
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-legal-notice {
  font-size: 12px;
  line-height: 1.6;
  color: #94A3B8;
  text-align: center;
  max-width: 1000px;
  margin: 0 auto;
}

.footer-legal-notice strong {
  color: #E2E8F0;
}

/* ==========================================================================
   MOBILE & RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 992px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .card-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .card-grid,
  .card-grid-4,
  .card-grid-2,
  .footer-grid {
    grid-template-columns: 1fr !important;
  }

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

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

  .mobile-toggle {
    display: block;
  }

  .main-nav-list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--white);
    flex-direction: column;
    padding: 16px 24px;
    box-shadow: var(--shadow-lg);
    border-top: 2px solid var(--teal);
  }

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

  .nav-item {
    width: 100%;
  }

  .nav-link {
    width: 100%;
    justify-content: space-between;
  }

  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    padding-left: 16px;
    background-color: var(--canvas);
    display: none;
  }

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

  .hero-title {
    font-size: 2rem;
  }

  .hero-cta-group {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-cta-group .btn {
    width: 100%;
  }

  .teal-banner-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .teal-banner-form {
    flex-direction: column;
  }
}
