/* ==========================================================================
   L'OASIS - ASSOCIATION LOI 1901
   FEUILLE DE STYLE OFFICIELLE DU PORTAIL D'UTILITE PUBLIQUE
   Charte graphique conforme aux directives institutionnelles
   ========================================================================== */

@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');

:root {
  --navy: #0E2335;
  --teal: #00A3E0;
  --coral: #E54838;
  --offwhite: #F4F6F8;
  --white: #FFFFFF;
  --slate: #1A1A1A;
  --slate-light: #4A5568;
  --border-color: #E2E8F0;
  --shadow-subtle: 0 4px 12px rgba(14, 35, 53, 0.08);
  --shadow-hover: 0 8px 24px rgba(14, 35, 53, 0.14);
}

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

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

body {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--slate);
  background-color: var(--offwhite);
  -webkit-font-smoothing: antialiased;
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  text-transform: uppercase;
  line-height: 1.1;
  color: var(--navy);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

h1 { font-size: 2.5rem; font-weight: 800; }
h2 { font-size: 1.95rem; font-weight: 700; }
h3 { font-size: 1.45rem; font-weight: 700; }
h4 { font-size: 1.2rem; font-weight: 600; }

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

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

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

/* LAYOUT CONTAINER */
.container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* UTILITY TOP STRIP */
.utility-strip {
  background-color: var(--navy);
  color: #CBD5E1;
  font-size: 0.8125rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.utility-strip .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

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

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

.utility-right a.legal-link {
  color: #CBD5E1;
  text-decoration: underline;
  font-weight: 600;
}

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

.btn-donate-strip {
  background-color: var(--coral);
  color: var(--white);
  padding: 6px 16px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 2px;
  white-space: nowrap;
  display: inline-block;
  min-height: 32px;
  line-height: 20px;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

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

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

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

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

.brand-logo .org-title {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--navy);
  letter-spacing: 0.04em;
  line-height: 1;
}

.brand-logo .org-subtitle {
  font-size: 0.75rem;
  color: var(--teal);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 3px;
}

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

.nav-item {
  position: relative;
}

.nav-link {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--navy);
  text-transform: uppercase;
  padding: 0.6rem 0.5rem;
  display: flex;
  align-items: center;
  gap: 5px;
  min-height: 44px;
}

.nav-link:hover {
  color: var(--teal);
}

/* DROPDOWN MENU */
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--white);
  min-width: 250px;
  box-shadow: var(--shadow-hover);
  border-radius: 2px;
  border-top: 3px solid var(--teal);
  list-style: none;
  padding: 0.5rem 0;
  z-index: 1010;
}

.dropdown-menu li a {
  display: block;
  padding: 0.65rem 1.25rem;
  color: var(--slate);
  font-size: 0.875rem;
  font-weight: 600;
  min-height: 44px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #F1F5F9;
}

.dropdown-menu li:last-child a {
  border-bottom: none;
}

.dropdown-menu li a:hover {
  background-color: var(--offwhite);
  color: var(--teal);
  padding-left: 1.5rem;
}

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

/* MOBILE TOGGLE */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-color);
  padding: 8px 12px;
  font-size: 1.25rem;
  color: var(--navy);
  border-radius: 2px;
  min-width: 44px;
  min-height: 44px;
  cursor: pointer;
}

/* HERO SECTION */
.hero-banner-section {
  position: relative;
  background-color: var(--navy);
  color: var(--white);
  overflow: hidden;
}

.hero-image-wrapper {
  width: 100%;
  height: 460px;
  overflow: hidden;
  position: relative;
}

.hero-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
  filter: brightness(0.85);
}

.hero-content-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
}

.hero-textbox {
  max-width: 820px;
  background: rgba(14, 35, 53, 0.88);
  padding: 2.5rem;
  border-left: 6px solid var(--teal);
  border-radius: 2px;
  backdrop-filter: blur(4px);
}

.hero-textbox h1 {
  color: var(--white);
  font-size: 2.35rem;
  margin-bottom: 1.1rem;
}

.hero-summary-2sent {
  font-size: 1.15rem;
  line-height: 1.6;
  color: #E2E8F0;
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.hero-cta-group {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 0.9375rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 12px 24px;
  border-radius: 2px;
  min-height: 44px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 2px solid transparent;
}

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

.btn-primary:hover {
  background-color: #0084b6;
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 163, 224, 0.35);
}

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

.btn-coral:hover {
  background-color: #cb3526;
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(229, 72, 56, 0.35);
}

.btn-secondary {
  background-color: transparent;
  color: var(--white);
  border-color: var(--white);
}

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

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

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

/* SECTIONS */
.section {
  padding: 4rem 0;
}

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

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

.section-eyebrow {
  color: var(--teal);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 800;
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.4rem;
}

.section-title {
  color: var(--navy);
}

/* CARDS */
.card-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

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

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

.card {
  background-color: var(--white);
  border-radius: 2px;
  border-top: 4px solid var(--teal);
  box-shadow: var(--shadow-subtle);
  padding: 1.75rem;
  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(-3px);
  box-shadow: var(--shadow-hover);
}

.card-img-wrap {
  margin: -1.75rem -1.75rem 1.25rem -1.75rem;
  overflow: hidden;
  height: 200px;
}

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

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

.card-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.card-text {
  font-size: 0.95rem;
  color: var(--slate-light);
  flex-grow: 1;
}

.card-footer-link {
  margin-top: 1.25rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--teal);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* CALLOUT BLOCK (150+ words institutional mission) */
.callout-mission-block {
  background-color: #EBF8FC;
  border-left: 5px solid var(--teal);
  padding: 2rem;
  border-radius: 2px;
  margin: 2.5rem 0;
}

.callout-mission-block h3 {
  color: var(--navy);
  margin-bottom: 0.75rem;
}

.callout-mission-block p {
  color: #1E293B;
  font-size: 1.05rem;
  line-height: 1.7;
}

.statutory-quote {
  font-style: italic;
  font-weight: 700;
  color: var(--navy);
  border-left: 3px solid var(--coral);
  padding-left: 1rem;
  margin: 1.25rem 0;
  display: block;
}

/* TEAL BANNER FORM */
.teal-banner-form {
  background-color: var(--teal);
  color: var(--white);
  padding: 3rem 0;
  border-radius: 2px;
}

.teal-banner-form .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.teal-banner-text {
  max-width: 540px;
}

.teal-banner-text h2 {
  color: var(--white);
  margin-bottom: 0.5rem;
}

.teal-banner-text p {
  color: #E0F2FE;
  margin-bottom: 0;
}

.inline-form {
  display: flex;
  gap: 10px;
  flex-grow: 1;
  max-width: 520px;
}

.inline-form input[type="text"],
.inline-form input[type="email"] {
  flex-grow: 1;
  padding: 12px 16px;
  border: none;
  border-radius: 2px;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 0.95rem;
  min-height: 44px;
}

/* CIRCULAR UPDATES SECTION (5-column) */
.circle-grid-5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
  text-align: center;
}

.circle-item {
  background: var(--white);
  padding: 1.5rem 1rem;
  border-radius: 2px;
  box-shadow: var(--shadow-subtle);
  border-top: 3px solid var(--teal);
}

.circle-badge {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: #EBF8FC;
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem auto;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  border: 2px solid var(--teal);
}

.circle-item h4 {
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.circle-item p {
  font-size: 0.8125rem;
  color: var(--slate-light);
  line-height: 1.4;
  margin-bottom: 0;
}

/* DATA TABLES */
.data-table-wrap {
  overflow-x: auto;
  margin: 2rem 0;
  background: var(--white);
  border-radius: 2px;
  box-shadow: var(--shadow-subtle);
}

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

table.civic-table th {
  background-color: var(--navy);
  color: var(--white);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 14px 18px;
}

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

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

.badge-status {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 2px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background-color: #E2F5EA;
  color: #166534;
}

.badge-status.badge-coral {
  background-color: #FEE2E2;
  color: #991B1B;
}

/* GENERAL CONTENT PAGES */
.page-header-band {
  background-color: var(--navy);
  color: var(--white);
  padding: 3rem 0;
  border-bottom: 4px solid var(--teal);
}

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

.page-header-lead {
  font-size: 1.15rem;
  color: #CBD5E1;
  max-width: 800px;
  margin-bottom: 0;
}

.breadcrumbs {
  font-size: 0.8125rem;
  color: #94A3B8;
  margin-bottom: 1rem;
}

.breadcrumbs a {
  color: var(--teal);
}

.page-content-flow {
  max-width: 900px;
  margin: 0 auto;
}

.editorial-article {
  background-color: var(--white);
  padding: 2.5rem;
  border-radius: 2px;
  box-shadow: var(--shadow-subtle);
  margin-bottom: 2rem;
}

.editorial-article h2 {
  margin-top: 2rem;
  border-bottom: 2px solid var(--offwhite);
  padding-bottom: 0.5rem;
}

.editorial-article ul, .editorial-article ol {
  margin: 1rem 0 1.5rem 1.75rem;
}

.editorial-article li {
  margin-bottom: 0.5rem;
}

/* INTAKE FORM (CONTACT) */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.4rem;
  color: var(--navy);
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: 2px;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  min-height: 44px;
}

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

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

/* FOOTER */
.site-footer {
  background-color: var(--navy);
  color: #CBD5E1;
  padding-top: 4rem;
  margin-top: 4rem;
}

.footer-grid-4 {
  display: grid;
  grid-template-columns: 2fr 1fr 1.3fr 1.7fr;
  gap: 2.5rem;
  padding-bottom: 3.5rem;
}

.footer-col h4 {
  color: var(--white);
  font-size: 1rem;
  letter-spacing: 0.05em;
  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-color: var(--teal);
}

.footer-col p {
  font-size: 0.875rem;
  line-height: 1.6;
  color: #94A3B8;
  margin-bottom: 0.75rem;
}

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

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

.footer-links li a {
  color: #CBD5E1;
  font-size: 0.875rem;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  transition: color 0.2s ease, transform 0.2s ease;
}

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

.newsletter-box input[type="email"] {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
  color: var(--white);
  border-radius: 2px;
  margin-bottom: 8px;
  min-height: 44px;
}

.newsletter-box input[type="email"]::placeholder {
  color: #94A3B8;
}

.legal-notice-strip {
  background-color: #081622;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.75rem 0;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: #94A3B8;
  text-align: center;
}

.legal-notice-strip p {
  max-width: 1100px;
  margin: 0 auto;
}

.legal-notice-strip strong {
  color: #CBD5E1;
}

/* MEDIA QUERIES BREAKPOINTS */
@media (max-width: 992px) {
  .navbar {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .nav-toggle {
    display: block;
    position: absolute;
    top: 1rem;
    right: 20px;
  }

  .nav-menu {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 0;
    margin-top: 1rem;
    border-top: 1px solid var(--border-color);
  }

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

  .nav-item {
    width: 100%;
  }

  .nav-link {
    padding: 12px 0;
    width: 100%;
    justify-content: space-between;
    border-bottom: 1px solid #F1F5F9;
  }

  .dropdown-menu {
    position: static;
    box-shadow: none;
    border-top: none;
    border-left: 3px solid var(--teal);
    background-color: #F8FAFC;
    padding: 0;
    width: 100%;
  }

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

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

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

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
  h3 { font-size: 1.25rem; }

  .hero-image-wrapper {
    height: 520px;
  }

  .hero-textbox {
    padding: 1.5rem;
  }

  .hero-textbox h1 {
    font-size: 1.75rem;
  }

  /* Multi-Column Collapse Rule */
  .card-grid-2,
  .card-grid-3,
  .card-grid-4,
  .circle-grid-5,
  .footer-grid-4,
  .split-grid-2 {
    grid-template-columns: 1fr !important;
  }

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

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

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