/* JAM JAZZ ACTION MONTPELLIER - Feuille de Style Officielle (Association Loi 1901) */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700;800;900&family=Open+Sans:wght@400;500;600;700&display=swap');

:root {
  --navy-primary: #0E2335;
  --navy-dark: #081622;
  --teal-action: #00A3E0;
  --teal-hover: #0084b6;
  --coral-alert: #E54838;
  --coral-hover: #cc3728;
  --canvas-bg: #F4F6F8;
  --white: #FFFFFF;
  --text-slate: #1A1A1A;
  --text-muted: #556270;
  --border-light: #D8DEE4;
  --font-heading: 'Montserrat', 'Oswald', Arial, sans-serif;
  --font-body: 'Open Sans', 'Roboto', sans-serif;
}

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

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-slate);
  background-color: var(--canvas-bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  text-transform: uppercase;
  color: var(--navy-primary);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
}

h1 { font-size: 2.5rem; margin-bottom: 1.25rem; }
h2 { font-size: 1.875rem; margin-bottom: 1rem; }
h3 { font-size: 1.35rem; margin-bottom: 0.75rem; }
h4 { font-size: 1.1rem; margin-bottom: 0.5rem; }

p {
  margin-bottom: 1.15rem;
}

a {
  color: var(--teal-action);
  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: 0 auto;
  padding: 0 24px;
}

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

.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: 16px;
  font-weight: 500;
}

.admin-badge {
  background: rgba(0, 163, 224, 0.2);
  color: #93E0FF;
  padding: 2px 8px;
  border-radius: 2px;
  font-family: var(--font-heading);
  letter-spacing: 0.05em;
  font-weight: 700;
}

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

.admin-utility-right a.legal-link {
  color: #CBD5E1;
  text-decoration: underline;
  font-size: 0.8125rem;
}

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

.btn-utility-don {
  background-color: var(--coral-alert);
  color: var(--white) !important;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 2px;
  transition: background-color 0.2s ease, transform 0.15s ease;
  display: inline-block;
  white-space: nowrap;
}

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

/* ==========================================================================
   MAIN NAVIGATION BAR (#FFFFFF)
   ========================================================================== */
.main-header {
  background-color: var(--white);
  box-shadow: 0 2px 8px rgba(14, 35, 53, 0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
}

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

.brand-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--navy-primary);
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.brand-sub {
  font-size: 0.75rem;
  color: var(--teal-action);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 2px;
}

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

.nav-item {
  position: relative;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--navy-primary);
  padding: 10px 14px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  transition: color 0.2s ease, background-color 0.2s ease;
  border-radius: 2px;
  min-height: 44px;
}

.nav-link:hover, .nav-item:hover > .nav-link {
  color: var(--teal-action);
  background-color: rgba(0, 163, 224, 0.06);
}

.dropdown-caret {
  font-size: 0.65rem;
  margin-left: 2px;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--white);
  min-width: 220px;
  box-shadow: 0 8px 24px rgba(14, 35, 53, 0.15);
  border-radius: 2px;
  border-top: 3px solid var(--teal-action);
  padding: 8px 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 999;
}

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

.dropdown-item a {
  display: block;
  padding: 10px 18px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy-primary);
  transition: background-color 0.15s ease, color 0.15s ease;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.dropdown-item a:hover {
  background-color: var(--canvas-bg);
  color: var(--teal-action);
}

.mobile-toggle {
  display: none;
  background: none;
  border: 2px solid var(--navy-primary);
  color: var(--navy-primary);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.85rem;
  padding: 8px 14px;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
  border-radius: 2px;
  text-transform: uppercase;
}

/* ==========================================================================
   BUTTONS & CARDS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 14px 28px;
  border-radius: 2px;
  font-size: 0.875rem;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
  text-decoration: none;
  min-height: 44px;
}

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

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

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

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

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

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

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

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

/* CARDS: 2px radius, 4px top accent border */
.card {
  background-color: var(--white);
  border-radius: 2px;
  border-top: 4px solid var(--teal-action);
  box-shadow: 0 4px 16px rgba(14, 35, 53, 0.06);
  padding: 28px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(14, 35, 53, 0.12);
}

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

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

.card-img-wrap {
  position: relative;
  overflow: hidden;
  margin: -28px -28px 20px -28px;
  border-radius: 2px 2px 0 0;
}

.card-img-wrap img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

/* ==========================================================================
   PAGE HERO & BANNERS
   ========================================================================== */
.hero-banner-section {
  position: relative;
  background-color: var(--navy-primary);
  color: var(--white);
  padding: 80px 0 70px 0;
  overflow: hidden;
}

.hero-banner-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.28;
}

.hero-banner-content {
  position: relative;
  z-index: 2;
  max-width: 860px;
}

.hero-banner-content h1 {
  color: var(--white);
  font-size: 2.85rem;
  margin-bottom: 1rem;
}

.hero-mission-summary {
  font-size: 1.15rem;
  line-height: 1.6;
  color: #E2E8F0;
  margin-bottom: 24px;
  font-weight: 500;
  border-left: 4px solid var(--teal-action);
  padding-left: 16px;
}

.hero-cta-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.page-header-simple {
  background-color: var(--navy-primary);
  color: var(--white);
  padding: 56px 0;
  position: relative;
}

.page-header-simple h1 {
  color: var(--white);
  margin-bottom: 0.5rem;
}

.page-header-simple p {
  color: #CBD5E1;
  font-size: 1.1rem;
  max-width: 760px;
  margin-bottom: 0;
}

/* ==========================================================================
   LAYOUT SECTIONS
   ========================================================================== */
.section {
  padding: 64px 0;
}

.section-alt {
  background-color: var(--white);
}

.section-navy {
  background-color: var(--navy-primary);
  color: var(--white);
}

.section-navy h2, .section-navy h3 {
  color: var(--white);
}

.section-header {
  margin-bottom: 40px;
  text-align: left;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-action);
  margin-bottom: 8px;
}

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

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

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

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

.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

/* Institutional Mission Callout Box (150+ words requirement) */
.mission-callout-box {
  background: var(--white);
  border-left: 6px solid var(--teal-action);
  padding: 32px 36px;
  border-radius: 2px;
  box-shadow: 0 6px 20px rgba(14, 35, 53, 0.08);
  margin: 40px 0;
}

.mission-callout-box h3 {
  color: var(--navy-primary);
  margin-bottom: 16px;
  font-size: 1.4rem;
}

.mission-callout-box p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-slate);
  margin-bottom: 12px;
}

/* Teal Interactive Action Banner */
.teal-action-banner {
  background-color: var(--teal-action);
  color: var(--white);
  padding: 48px 0;
  border-radius: 2px;
}

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

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

.teal-banner-text h3 {
  color: var(--white);
  font-size: 1.75rem;
  margin-bottom: 8px;
}

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

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

.teal-banner-form input {
  padding: 12px 16px;
  font-size: 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 2px;
  background: var(--white);
  color: var(--text-slate);
  min-width: 260px;
}

/* Circular Updates Column */
.circular-update-item {
  text-align: center;
}

.circular-avatar-wrap {
  width: 120px;
  height: 120px;
  margin: 0 auto 16px auto;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--teal-action);
  box-shadow: 0 4px 12px rgba(14, 35, 53, 0.1);
}

.circular-avatar-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.circular-update-item h4 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.circular-update-item p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Badge status */
.badge-status {
  display: inline-block;
  background-color: rgba(0, 163, 224, 0.15);
  color: #00739E;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.badge-coral {
  background-color: rgba(229, 72, 56, 0.15);
  color: var(--coral-alert);
}

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

.form-label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--navy-primary);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  font-size: 0.95rem;
  font-family: var(--font-body);
  border: 1px solid var(--border-light);
  border-radius: 2px;
  background-color: var(--white);
  color: var(--text-slate);
}

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

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

/* Tables */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  margin: 24px 0;
  box-shadow: 0 4px 16px rgba(14, 35, 53, 0.06);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  background-color: var(--white);
  font-size: 0.925rem;
}

.data-table th {
  background-color: var(--navy-primary);
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 14px 18px;
  text-align: left;
}

.data-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-slate);
}

.data-table tr:nth-child(even) {
  background-color: var(--canvas-bg);
}

/* Timeline */
.timeline {
  position: relative;
  margin: 32px 0;
  padding-left: 28px;
  border-left: 3px solid var(--teal-action);
}

.timeline-item {
  position: relative;
  margin-bottom: 32px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -35px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--coral-alert);
  border: 3px solid var(--white);
}

.timeline-year {
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--teal-action);
  font-size: 1.1rem;
  margin-bottom: 4px;
}

/* ==========================================================================
   MASTER FOOTER (#0E2335)
   ========================================================================== */
.master-footer {
  background-color: var(--navy-primary);
  color: #E2E8F0;
  padding-top: 64px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 56px;
}

.footer-col h4 {
  color: var(--white);
  font-size: 1.05rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

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

.footer-col p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #CBD5E1;
  margin-bottom: 12px;
}

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

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

.footer-links a {
  color: #CBD5E1;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s ease, transform 0.15s ease;
}

.footer-links a:hover {
  color: var(--teal-action);
  transform: translateX(3px);
}

.newsletter-box input[type="email"] {
  width: 100%;
  padding: 12px 14px;
  font-size: 0.875rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  margin-bottom: 10px;
}

.newsletter-box input[type="email"]:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.14);
  border-color: var(--teal-action);
}

/* MANDATORY BOTTOM LEGAL STRIP */
.footer-legal-bottom {
  background-color: var(--navy-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 24px 0;
  text-align: center;
}

.footer-legal-bottom p {
  font-size: 0.8125rem;
  line-height: 1.6;
  color: #94A3B8;
  margin: 0;
}

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

/* ==========================================================================
   MOBILE RESPONSIVENESS & PERFORMANCE GUIDELINES
   ========================================================================== */
@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-5 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  /* Force all multi-column CSS Grid structures to single column */
  .grid-2, .grid-3, .grid-4, .grid-5, .split-grid, .footer-grid {
    grid-template-columns: 1fr !important;
  }

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

  .mobile-toggle {
    display: block;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 16px;
    box-shadow: 0 12px 24px rgba(14, 35, 53, 0.15);
    border-top: 2px solid var(--teal-action);
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-item {
    width: 100%;
  }

  .nav-link {
    width: 100%;
    justify-content: space-between;
    padding: 12px 14px;
  }

  .dropdown-menu {
    position: static;
    box-shadow: none;
    border-top: none;
    border-left: 3px solid var(--teal-action);
    margin-left: 14px;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
    background-color: var(--canvas-bg);
  }

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

  .hero-banner-content h1 {
    font-size: 2.1rem;
  }

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

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

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

  .teal-banner-form input {
    width: 100%;
    min-width: 0;
  }
}
