/* ==========================================================================
   ASSOCIATION SAINT-VINCENT (Loi 1901) - FEUILLE DE STYLE INSTITUTIONNELLE
   SIREN : 852414929 | RNA : W343026793 | Poussan (34560), Hérault
   ========================================================================== */

:root {
  --primary-blue: #002366;
  --primary-blue-dark: #001744;
  --primary-blue-light: #0d3b8e;
  --accent-gold: #FFD700;
  --accent-gold-dark: #d4af37;
  --accent-gold-soft: #fff9db;
  --bg-light: #F4F6F9;
  --bg-white: #FFFFFF;
  --text-dark: #1e293b;
  --text-muted: #475569;
  --border-color: #cbd5e1;
  --border-light: #e2e8f0;
  --shadow-sm: 0 1px 3px rgba(0, 35, 102, 0.08);
  --shadow-md: 0 4px 6px -1px rgba(0, 35, 102, 0.1), 0 2px 4px -2px rgba(0, 35, 102, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 35, 102, 0.12), 0 4px 6px -4px rgba(0, 35, 102, 0.08);
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --max-width: 1240px;
}

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

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

body {
  font-family: var(--font-family);
  background-color: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

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

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   DOUBLE-DECKER TRUST GRID HEADER
   ========================================================================== */

.site-header {
  background: var(--bg-white);
  border-bottom: 2px solid var(--border-light);
  position: relative;
  z-index: 999;
}

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

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

.rna-badge {
  display: inline-flex;
  align-items: center;
  font-weight: 600;
  color: var(--primary-blue);
  background: #e6edf8;
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid #c7d8f3;
}

.loi-badge {
  color: var(--text-muted);
}

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

.search-simulation {
  display: flex;
  align-items: center;
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 12px;
}

.search-simulation input {
  border: none;
  outline: none;
  font-size: 12px;
  padding: 2px 4px;
  color: var(--text-dark);
  width: 130px;
  background: transparent;
}

.lang-selector {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
}

.lang-selector span.active {
  color: var(--primary-blue);
  border-bottom: 2px solid var(--primary-blue);
}

.lang-selector span.inactive {
  color: #94a3b8;
  cursor: not-allowed;
}

/* Row 2: Main Navigation Bar */
.main-nav-bar {
  background: var(--bg-white);
  box-shadow: var(--shadow-sm);
  padding: 16px 24px;
}

.main-nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
}

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

.brand-title {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--primary-blue);
  text-transform: uppercase;
  margin: 0;
  line-height: 1.2;
}

.brand-subtitle {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Nav Menu & Dropdowns */
.nav-menu-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links-list {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
}

.nav-item {
  position: relative;
}

.nav-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 10px 14px;
  color: var(--text-dark);
  font-weight: 600;
  font-size: 0.92rem;
  border-radius: 4px;
  background: transparent;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  min-height: 44px;
  min-width: 44px;
  transition: all 0.2s ease;
}

.nav-link-btn:hover,
.nav-item:hover .nav-link-btn {
  color: var(--primary-blue);
  background-color: #f1f5f9;
}

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

.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;
  color: var(--text-dark);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.15s ease;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.dropdown-item a:hover {
  background-color: #f8fafc;
  color: var(--primary-blue);
  padding-left: 22px;
  border-left: 3px solid var(--accent-gold);
}

.header-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary-blue);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 10px 22px;
  border-radius: 4px;
  border: 2px solid var(--primary-blue);
  box-shadow: var(--shadow-sm);
  min-height: 44px;
  margin-left: 12px;
  transition: all 0.2s ease;
}

.header-cta-btn:hover {
  background-color: var(--primary-blue-dark);
  border-color: var(--primary-blue-dark);
  color: #ffffff !important;
}

/* Mobile Nav Toggle */
.mobile-toggle-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 8px 10px;
  min-width: 44px;
  min-height: 44px;
  cursor: pointer;
}

.mobile-toggle-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--primary-blue);
  transition: transform 0.2s ease;
}

/* ==========================================================================
   PAGE HERO & BANNERS
   ========================================================================== */

.page-hero {
  background: linear-gradient(135deg, var(--primary-blue-dark) 0%, var(--primary-blue) 100%);
  color: #ffffff;
  padding: 56px 0 48px;
  position: relative;
  overflow: hidden;
  border-bottom: 4px solid var(--accent-gold);
}

.page-hero-inner {
  position: relative;
  z-index: 2;
}

.hero-tagline {
  display: inline-block;
  background: rgba(255, 215, 0, 0.2);
  color: var(--accent-gold);
  border: 1px solid var(--accent-gold);
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.page-hero h1 {
  font-size: 2.35rem;
  font-weight: 800;
  line-height: 1.25;
  color: #ffffff;
  margin-bottom: 16px;
  max-width: 850px;
}

.page-hero p.lead {
  font-size: 1.15rem;
  color: #e2e8f0;
  line-height: 1.6;
  max-width: 820px;
  margin-bottom: 24px;
}

.hero-summary-statement {
  background: rgba(255, 255, 255, 0.08);
  border-left: 4px solid var(--accent-gold);
  padding: 16px 20px;
  border-radius: 0 4px 4px 0;
  font-size: 1.05rem;
  font-weight: 500;
  color: #ffffff;
  max-width: 850px;
  margin-bottom: 24px;
}

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

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-gold);
  color: var(--primary-blue-dark) !important;
  font-weight: 700;
  font-size: 1rem;
  padding: 12px 26px;
  border-radius: 4px;
  border: 2px solid var(--accent-gold);
  box-shadow: var(--shadow-sm);
  min-height: 44px;
  transition: all 0.2s ease;
}

.btn-primary:hover {
  background: var(--accent-gold-dark);
  border-color: var(--accent-gold-dark);
  color: #000000 !important;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: #ffffff !important;
  font-weight: 700;
  font-size: 1rem;
  padding: 12px 24px;
  border-radius: 4px;
  border: 2px solid #ffffff;
  min-height: 44px;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff !important;
}

.btn-outline-blue {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--primary-blue);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 10px 22px;
  border-radius: 4px;
  border: 2px solid var(--primary-blue);
  min-height: 44px;
  transition: all 0.2s ease;
}

.btn-outline-blue:hover {
  background: var(--primary-blue);
  color: #ffffff;
}

/* ==========================================================================
   STATUTORY NOTICES & REINVESTMENT BANNERS
   ========================================================================== */

.statutory-banner {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-left: 5px solid var(--primary-blue);
  padding: 18px 24px;
  border-radius: 6px;
  margin: 28px 0;
  box-shadow: var(--shadow-sm);
}

.statutory-banner.gold {
  border-left-color: var(--accent-gold-dark);
  background: #fffdf5;
}

.statutory-banner h4 {
  font-size: 1.05rem;
  color: var(--primary-blue);
  font-weight: 700;
  margin-bottom: 6px;
}

.statutory-banner p {
  color: var(--text-dark);
  font-size: 0.95rem;
  line-height: 1.55;
  margin: 0;
}

/* ==========================================================================
   TWO-COLUMN DESKTOP GRID (3fr Main / 1fr Side-Rail)
   ========================================================================== */

.two-col-layout {
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 36px;
  padding: 48px 0;
}

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

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

/* ==========================================================================
   SIDEBAR COMPONENTS & CARDS
   ========================================================================== */

.side-card {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 24px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
}

.side-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-blue);
  border-bottom: 2px solid var(--accent-gold);
  padding-bottom: 10px;
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.key-metric-item {
  display: flex;
  flex-direction: column;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-light);
}

.key-metric-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.key-metric-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary-blue);
  line-height: 1.1;
}

.key-metric-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 4px;
}

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

.anchor-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.9rem;
  color: var(--text-dark);
}

.anchor-list li:last-child {
  border-bottom: none;
}

.anchor-list strong {
  color: var(--primary-blue);
  display: block;
}

/* ==========================================================================
   CONTENT CARDS & INSTITUTIONAL SECTIONS
   ========================================================================== */

.content-card {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 32px;
  margin-bottom: 32px;
  box-shadow: var(--shadow-sm);
}

.section-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary-blue);
  margin-bottom: 20px;
  line-height: 1.3;
}

.section-title-sm {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary-blue);
  margin: 24px 0 14px;
}

.lead-paragraph {
  font-size: 1.08rem;
  line-height: 1.7;
  color: var(--text-dark);
  margin-bottom: 20px;
}

p.body-text {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-dark);
  margin-bottom: 18px;
}

/* Image Container */
.institutional-img-box {
  margin: 24px 0;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  background: #000;
}

.institutional-img-box img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

/* Roadmap Grid */
.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 28px 0;
}

.roadmap-step {
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 22px;
  position: relative;
}

.step-badge {
  display: inline-block;
  background: var(--primary-blue);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 12px;
}

.roadmap-step h4 {
  font-size: 1.1rem;
  color: var(--primary-blue);
  margin-bottom: 10px;
}

.roadmap-step p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

/* Program Cards */
.program-item {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease;
}

.program-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 12px;
}

.program-header h3 {
  font-size: 1.3rem;
  color: var(--primary-blue);
  margin: 0;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
  padding: 4px 10px;
  border-radius: 14px;
  font-size: 0.8rem;
  font-weight: 700;
}

/* Tables for Financial & Governance */
.data-table-wrapper {
  overflow-x: auto;
  margin: 24px 0;
  border: 1px solid var(--border-color);
  border-radius: 6px;
}

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

.institutional-table th {
  background: var(--primary-blue);
  color: #ffffff;
  padding: 14px 18px;
  font-weight: 700;
  border-bottom: 2px solid var(--accent-gold);
}

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

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

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

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

/* Forms */
.form-card {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 32px;
  box-shadow: var(--shadow-sm);
  margin: 24px 0;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  font-size: 0.95rem;
  font-family: inherit;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  background: #ffffff;
  color: var(--text-dark);
  min-height: 44px;
  outline: none;
  transition: border-color 0.2s ease;
}

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

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

/* FAQ Accordion */
.faq-box {
  border: 1px solid var(--border-color);
  border-radius: 6px;
  margin-bottom: 16px;
  background: var(--bg-white);
  overflow: hidden;
}

.faq-question {
  padding: 18px 24px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary-blue);
  background: #f8fafc;
  border-bottom: 1px solid var(--border-light);
  cursor: pointer;
}

.faq-answer {
  padding: 20px 24px;
  color: var(--text-dark);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ==========================================================================
   MANDATORY FOOTER & DISCLOSURES
   ========================================================================== */

.site-footer {
  background: var(--primary-blue-dark);
  color: #e2e8f0;
  border-top: 4px solid var(--accent-gold);
  padding: 56px 0 28px;
  font-size: 0.92rem;
  margin-top: 64px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1.2fr 1.2fr 1.6fr;
  gap: 36px;
  margin-bottom: 40px;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 1.08rem;
  font-weight: 700;
  margin-bottom: 18px;
  border-bottom: 2px solid var(--accent-gold);
  padding-bottom: 8px;
  display: inline-block;
}

.footer-col p {
  color: #cbd5e1;
  line-height: 1.6;
  margin-bottom: 12px;
}

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

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

.footer-links a {
  color: #cbd5e1;
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  transition: color 0.15s ease, padding-left 0.15s ease;
}

.footer-links a:hover {
  color: var(--accent-gold);
  padding-left: 6px;
}

.footer-admin-details {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 16px;
  border-radius: 4px;
  font-size: 0.85rem;
  line-height: 1.55;
  color: #cbd5e1;
}

.footer-admin-details strong {
  color: #ffffff;
}

.footer-bottom-notice {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 24px;
  margin-top: 20px;
  font-size: 0.84rem;
  color: #94a3b8;
  line-height: 1.6;
  text-align: center;
}

.footer-policy-strip {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.footer-policy-strip a {
  color: var(--accent-gold);
  font-weight: 600;
  font-size: 0.88rem;
}

.footer-policy-strip a:hover {
  text-decoration: underline;
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES (Strict max-width: 992px & 768px)
   ========================================================================== */

@media (max-width: 992px) {
  .two-col-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .roadmap-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }

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

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

  .nav-links-list {
    flex-direction: column;
    width: 100%;
    align-items: stretch;
  }

  .nav-item {
    width: 100%;
  }

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

  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border-left: 3px solid var(--primary-blue);
    margin: 4px 0 8px 16px;
    background: #f8fafc;
  }

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

  .header-cta-btn {
    margin: 12px 0 0 0;
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .top-utility-strip {
    flex-direction: column;
    height: auto;
    padding: 8px 16px;
    gap: 6px;
  }

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

  .page-hero {
    padding: 36px 0 32px;
  }

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

  .page-hero p.lead {
    font-size: 1rem;
  }

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

  .search-simulation input {
    width: 90px;
  }
}
