/* ==========================================================================
   OFF THE BRIDGE - Association Loi 1901
   Feuille de style institutionnelle modulaire
   RNA : W022006281 | SIREN : 880532650 | Asnières-sur-Seine
   ========================================================================== */

:root {
  --primary-color: #002366;
  --primary-hover: #001a4d;
  --accent-gold: #FFD700;
  --accent-gold-hover: #e6c200;
  --bg-utility: #F4F6F9;
  --bg-white: #FFFFFF;
  --text-main: #1A202C;
  --text-muted: #4A5568;
  --text-light: #718096;
  --border-color: #E2E8F0;
  --border-dark: #CBD5E0;
  --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;
}

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

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-main);
  background-color: var(--bg-white);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

a:hover, a:focus {
  color: var(--primary-hover);
  text-decoration: underline;
}

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ==========================================================================
   HEADER SYSTEM (DOUBLE-DECKER TRUST GRID)
   ========================================================================== */

.site-header {
  width: 100%;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 999;
}

/* Row 1: Top Utility Strip */
.top-utility-strip {
  background: var(--bg-utility);
  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);
}

.utility-rna-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: #2D3748;
}

.utility-rna-badge .status-pill {
  background: #EBF8FF;
  color: var(--primary-color);
  padding: 2px 8px;
  border-radius: 12px;
  border: 1px solid #BEE3F8;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

.utility-search-box {
  display: flex;
  align-items: center;
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 3px 8px;
}

.utility-search-box input {
  border: none;
  outline: none;
  font-size: 12px;
  width: 140px;
  background: transparent;
  color: var(--text-main);
}

.utility-search-box button {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-light);
  font-size: 12px;
}

.utility-lang-selector {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--text-muted);
}

.utility-lang-selector span.active {
  font-weight: 700;
  color: var(--primary-color);
}

/* Row 2: Main Navigation Bar */
.main-nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  max-width: 1240px;
  margin: 0 auto;
}

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

.brand-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--primary-color);
  letter-spacing: -0.5px;
  line-height: 1.1;
  text-decoration: none;
}

.brand-subtitle {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 600;
}

.main-navigation {
  display: flex;
  align-items: center;
  gap: 6px;
}

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

.nav-item {
  position: relative;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  border-radius: var(--radius-sm);
  transition: background-color 0.2s, color 0.2s;
  text-decoration: none;
  min-height: 44px;
}

.nav-link:hover, .nav-link:focus, .nav-item:hover .nav-link {
  background-color: var(--bg-utility);
  color: var(--primary-color);
  text-decoration: none;
}

.nav-link.active-page {
  color: var(--primary-color);
  background-color: #EEF2F6;
  border-bottom: 2px solid var(--primary-color);
}

/* Hover-Activated Dropdown Menus */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-top: 2px solid var(--primary-color);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  box-shadow: var(--shadow-lg);
  min-width: 250px;
  padding: 8px 0;
  list-style: none;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  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 {
  margin: 0;
}

.dropdown-link {
  display: block;
  padding: 10px 18px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-main);
  transition: background-color 0.15s, color 0.15s;
  text-decoration: none;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.dropdown-link:hover, .dropdown-link:focus {
  background-color: var(--bg-utility);
  color: var(--primary-color);
  text-decoration: none;
}

.nav-cta-btn {
  background-color: var(--primary-color);
  color: #FFFFFF !important;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  transition: background-color 0.2s;
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav-cta-btn:hover {
  background-color: var(--primary-hover);
  text-decoration: none;
}

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

/* ==========================================================================
   PAGE HERO & BREADCRUMBS
   ========================================================================== */

.page-hero-banner {
  background: linear-gradient(135deg, var(--primary-color) 0%, #001540 100%);
  color: #FFFFFF;
  padding: 48px 0;
  position: relative;
  overflow: hidden;
}

.page-hero-banner h1 {
  font-size: 34px;
  font-weight: 800;
  margin-bottom: 12px;
  color: #FFFFFF;
}

.page-hero-banner p.hero-lead {
  font-size: 18px;
  max-width: 800px;
  color: #E2E8F0;
  line-height: 1.5;
}

.institutional-badge-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.institutional-badge {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.institutional-badge.gold {
  background: var(--accent-gold);
  color: #1A202C;
  font-weight: 700;
  border: none;
}

/* Breadcrumbs */
.breadcrumb-trail {
  padding: 12px 0;
  font-size: 13px;
  color: var(--text-light);
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-utility);
}

.breadcrumb-trail a {
  color: var(--primary-color);
}

.breadcrumb-trail span.sep {
  margin: 0 8px;
  color: var(--text-light);
}

/* ==========================================================================
   HOMEPAGE SPECIFIC LAYOUT: TWO-COLUMN GRID (3fr Main / 1fr Side-Rail)
   ========================================================================== */

.home-hero-section {
  padding: 40px 0 20px;
  background: #FFFFFF;
}

.home-hero-header {
  margin-bottom: 24px;
}

.home-hero-header h1 {
  font-size: 36px;
  font-weight: 800;
  color: var(--primary-color);
  line-height: 1.2;
  margin-bottom: 14px;
}

.homepage-summary-box {
  background: #F7FAFC;
  border-left: 4px solid var(--primary-color);
  padding: 16px 20px;
  margin-bottom: 24px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.homepage-summary-box p {
  font-size: 17px;
  font-weight: 500;
  color: #2D3748;
  line-height: 1.6;
}

.hero-media-wrapper {
  margin-bottom: 36px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
}

.hero-media-wrapper img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* 3fr / 1fr Desktop Grid */
.home-desktop-grid {
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 36px;
  margin: 36px 0;
}

.main-column-content {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.side-rail-column {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Side-Rail Chiffres Clés Card */
.stat-card-widget {
  background: var(--bg-utility);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
}

.stat-card-widget h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 16px;
  border-bottom: 2px solid var(--accent-gold);
  padding-bottom: 8px;
}

.stat-item-block {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
}

.stat-item-block:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.stat-big-number {
  font-size: 32px;
  font-weight: 800;
  color: var(--primary-color);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 600;
}

.stat-desc {
  font-size: 12px;
  color: var(--text-light);
  margin-top: 4px;
}

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

.step-card {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  position: relative;
}

.step-badge {
  background: var(--primary-color);
  color: #FFFFFF;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 12px;
}

.step-card h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 8px;
}

.step-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Regulatory Reinvestment Statement Banner */
.regulatory-reinvestment-banner {
  background: #FEFCBF;
  border: 1px solid #ECC94B;
  border-radius: var(--radius-md);
  padding: 18px 24px;
  color: #744210;
  font-size: 14.5px;
  font-weight: 600;
  margin: 24px 0;
  display: flex;
  align-items: center;
  gap: 14px;
}

.reinvestment-icon {
  font-size: 24px;
  color: #B7791F;
}

/* ==========================================================================
   CONTENT BLOCKS & TYPOGRAPHY
   ========================================================================== */

.page-content-area {
  padding: 40px 0 60px;
  flex: 1;
}

.section-block {
  margin-bottom: 40px;
}

.section-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 16px;
  position: relative;
  padding-bottom: 8px;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 48px;
  height: 3px;
  background: var(--accent-gold);
}

.lead-text {
  font-size: 17px;
  color: var(--text-main);
  line-height: 1.7;
  margin-bottom: 20px;
}

p.body-text {
  font-size: 15.5px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 18px;
}

/* Cards Grid */
.cards-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin: 24px 0;
}

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

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

.info-card {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.info-card.featured {
  border-top: 4px solid var(--primary-color);
}

.info-card-media {
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 16px;
  aspect-ratio: 16 / 9;
}

.info-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.info-card h3 {
  font-size: 19px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.info-card h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 8px;
}

.card-status-tag {
  display: inline-block;
  background: #E2E8F0;
  color: #2D3748;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 12px;
  margin-bottom: 12px;
  align-self: flex-start;
}

.card-status-tag.active {
  background: #C6F6D5;
  color: #22543D;
}

.card-status-tag.gold {
  background: #FEFCBF;
  color: #744210;
}

/* ==========================================================================
   TABLES & FINANCIAL DISCLOSURES
   ========================================================================== */

.table-responsive {
  width: 100%;
  overflow-x: auto;
  margin: 24px 0;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.institutional-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14.5px;
}

.institutional-table thead {
  background: var(--primary-color);
  color: #FFFFFF;
}

.institutional-table th {
  padding: 14px 18px;
  font-weight: 700;
  font-size: 13.5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

.institutional-table tbody tr:nth-child(even) {
  background-color: var(--bg-utility);
}

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

.institutional-table tfoot {
  background: #EDF2F7;
  font-weight: 700;
}

.institutional-table tfoot td {
  border-top: 2px solid var(--border-dark);
  color: var(--primary-color);
}

/* ==========================================================================
   BUTTONS & FORMS
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14.5px;
  padding: 11px 22px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  min-height: 44px;
}

.btn-primary {
  background-color: var(--primary-color);
  color: #FFFFFF !important;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  text-decoration: none;
}

.btn-gold {
  background-color: var(--accent-gold);
  color: #1A202C !important;
  font-weight: 700;
}

.btn-gold:hover {
  background-color: var(--accent-gold-hover);
  text-decoration: none;
}

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

.btn-outline:hover {
  background-color: var(--bg-utility);
  color: var(--primary-hover);
  text-decoration: none;
}

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

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

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 6px;
}

.form-group label .required {
  color: #E53E3E;
}

.form-control {
  width: 100%;
  padding: 11px 14px;
  font-size: 15px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  outline: none;
  font-family: inherit;
  transition: border-color 0.2s;
  background: #FFFFFF;
}

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

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

.form-helper {
  font-size: 12px;
  color: var(--text-light);
  margin-top: 5px;
}

/* FAQ Accordions */
.faq-item {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-question {
  background: var(--bg-utility);
  padding: 16px 20px;
  font-weight: 700;
  font-size: 16px;
  color: var(--primary-color);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-answer {
  padding: 18px 20px;
  background: #FFFFFF;
  border-top: 1px solid var(--border-color);
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ==========================================================================
   FOOTER SYSTEM (MANDATORY REGULATORY & LOI 1901 DISCLOSURES)
   ========================================================================== */

.site-footer {
  background-color: #0A192F;
  color: #E2E8F0;
  border-top: 4px solid var(--accent-gold);
  margin-top: auto;
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 2fr 1.2fr 1.2fr 1.4fr;
  gap: 36px;
  padding: 50px 0 36px;
}

.footer-col h4 {
  color: #FFFFFF;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 18px;
  position: relative;
  padding-bottom: 8px;
}

.footer-col h4::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 28px;
  height: 2px;
  background: var(--accent-gold);
}

.footer-legal-summary {
  font-size: 13.5px;
  color: #CBD5E0;
  line-height: 1.6;
  margin-bottom: 16px;
}

.footer-admin-tags {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12.5px;
  color: #A0AEC0;
}

.footer-admin-tags strong {
  color: #E2E8F0;
}

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

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

.footer-nav-list a {
  color: #CBD5E0;
  font-size: 14px;
  text-decoration: none;
  transition: color 0.15s;
}

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

/* Mandatory Footer Bottom Strip */
.footer-bottom-strip {
  background: #06101E;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 22px 0;
  font-size: 12.5px;
  color: #A0AEC0;
  line-height: 1.6;
}

.footer-notice-text {
  text-align: center;
  max-width: 1000px;
  margin: 0 auto;
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES (STRICT BREAKPOINTS: 992px, 768px)
   ========================================================================== */

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

  .utility-tools {
    width: 100%;
    justify-content: center;
  }

  .main-nav-bar {
    position: relative;
  }

  .mobile-nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .main-navigation {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #FFFFFF;
    flex-direction: column;
    padding: 16px;
    box-shadow: var(--shadow-lg);
    border-bottom: 2px solid var(--primary-color);
  }

  .main-navigation.is-open {
    display: flex;
  }

  .nav-menu-list {
    flex-direction: column;
    width: 100%;
    align-items: stretch;
    gap: 4px;
  }

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

  .dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    border-left: 3px solid var(--primary-color);
    background: var(--bg-utility);
    border-radius: 0;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
    margin: 4px 0 8px 12px;
  }

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

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

  .home-desktop-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

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

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

  .footer-top-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }
}

@media (max-width: 768px) {
  body {
    font-size: 15px;
  }

  .brand-title {
    font-size: 20px;
  }

  .page-hero-banner h1 {
    font-size: 26px;
  }

  .home-hero-header h1 {
    font-size: 26px;
  }

  .cards-grid-2, .cards-grid-3, .cards-grid-4 {
    grid-template-columns: 1fr;
  }

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