/* ==========================================================================
   CERCLE DU COMM ET BRIDGE CLUB - INSTITUTIONAL STYLESHEET (LOI 1901)
   Color Palette: Royal Blue (#002366), Deep Gold (#FFD700), Light Grey (#F4F6F9)
   ========================================================================== */

:root {
  --primary: #002366;
  --primary-dark: #001744;
  --primary-light: #0d388e;
  --accent: #FFD700;
  --accent-hover: #e6c200;
  --bg-light: #F4F6F9;
  --bg-alt: #eef2f7;
  --text-dark: #1e293b;
  --text-muted: #475569;
  --border-color: #cbd5e1;
  --border-subtle: #e2e8f0;
  --white: #FFFFFF;
  --radius-sm: 4px;
  --radius-md: 8px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,35,102,0.08);
  --shadow-lg: 0 10px 25px rgba(0,35,102,0.12);
  --transition: all 0.25s ease-in-out;
}

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

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text-dark);
  background-color: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

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

/* ==========================================================================
   CONTAINER & LAYOUT
   ========================================================================== */

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

.section-spacing {
  padding-top: 56px;
  padding-bottom: 56px;
}

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

.two-column-grid {
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 36px;
  align-items: start;
}

.equal-two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
}

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

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

/* ==========================================================================
   DOUBLE-DECKER HEADER SYSTEM
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 9999;
  background-color: var(--white);
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid var(--border-subtle);
}

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

.top-utility-strip .rna-badge {
  font-weight: 600;
  letter-spacing: 0.2px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.top-utility-strip .rna-badge strong {
  color: var(--primary);
}

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

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

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

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

.lang-selector {
  font-weight: 600;
  font-size: 12px;
  color: var(--text-dark);
}

/* Row 2: Main Navigation Bar */
.main-nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  background-color: var(--white);
}

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

.brand-symbol {
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 20px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--accent);
}

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

.brand-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  line-height: 1.2;
}

.brand-subtitle {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

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

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  text-decoration: none;
}

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

/* Hover-Activated Dropdown */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 9999;
  background-color: var(--white);
  min-width: 280px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  border-top: 3px solid var(--primary);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  list-style: none;
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: var(--transition);
}

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

.dropdown-link {
  display: block;
  min-height: 44px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: var(--transition);
}

.dropdown-link:hover {
  background-color: var(--bg-light);
  color: var(--primary);
  border-left-color: var(--accent);
  text-decoration: none;
}

/* Header Action Button */
.btn-header-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 20px;
  background-color: var(--primary);
  color: var(--white) !important;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--primary);
  text-decoration: none !important;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.btn-header-contact:hover {
  background-color: var(--accent);
  color: var(--primary) !important;
  border-color: var(--accent-hover);
}

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

/* ==========================================================================
   HERO FRAMEWORK & PAGE HEADERS
   ========================================================================== */

.hero-banner {
  position: relative;
  background-color: var(--primary-dark);
  color: var(--white);
  padding: 64px 0;
  overflow: hidden;
}

.hero-banner-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.35;
  mix-blend-mode: overlay;
}

.hero-banner-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.hero-badge {
  display: inline-block;
  background-color: var(--accent);
  color: var(--primary-dark);
  font-weight: 800;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
}

.hero-title {
  font-size: 38px;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 18px;
  color: var(--white);
}

.hero-summary {
  font-size: 19px;
  line-height: 1.6;
  color: #e2e8f0;
  margin-bottom: 28px;
  font-weight: 400;
}

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

.page-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  padding: 48px 0;
  border-bottom: 4px solid var(--accent);
}

.page-header-title {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 12px;
}

.page-header-lead {
  font-size: 17px;
  color: #e2e8f0;
  max-width: 780px;
}

.breadcrumb {
  display: flex;
  gap: 8px;
  font-size: 13px;
  margin-bottom: 14px;
  color: #cbd5e1;
}

.breadcrumb a {
  color: #cbd5e1;
  text-decoration: underline;
}

.breadcrumb a:hover {
  color: var(--accent);
}

/* ==========================================================================
   BUTTONS & ACTION CONTROLS
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 24px;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none !important;
  border: 2px solid transparent;
}

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

.btn-primary:hover {
  background-color: var(--primary-light);
  border-color: var(--primary-light);
  color: var(--white) !important;
}

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

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

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

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

/* ==========================================================================
   CARDS, BLOCKS & TWO-COLUMN MAIN/SIDE-RAIL
   ========================================================================== */

.card {
  background: var(--white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

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

.card-media {
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 18px;
}

.card-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
  line-height: 1.35;
}

.card-text {
  font-size: 15px;
  color: var(--text-dark);
  line-height: 1.6;
}

/* Side Rail "Chiffres Clés" & Sticky Sidebar */
.side-rail {
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
}

.side-rail-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent);
}

.stat-item {
  padding: 14px 0;
  border-bottom: 1px solid var(--border-color);
}

.stat-item:last-child {
  border-bottom: none;
}

.stat-number {
  font-size: 28px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
  display: block;
}

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

.notice-box {
  background-color: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-left: 4px solid #16a34a;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  margin: 24px 0;
  font-size: 15px;
  color: #14532d;
}

.notice-box-warning {
  background-color: #fffbeb;
  border: 1px solid #fde68a;
  border-left: 4px solid var(--accent);
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  margin: 24px 0;
  font-size: 15px;
  color: #78350f;
}

.notice-box-info {
  background-color: #eff6ff;
  border: 1px solid #bfdbfe;
  border-left: 4px solid var(--primary);
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  margin: 24px 0;
  font-size: 15px;
  color: #1e3a8a;
}

/* ==========================================================================
   PROGRAMS, TIMELINE & TABLES
   ========================================================================== */

.program-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.program-card-header {
  padding: 16px 20px;
  background: var(--bg-light);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.program-status-tag {
  display: inline-block;
  background: #dcfce7;
  color: #166534;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-sm);
}

.program-body {
  padding: 24px 20px;
  flex-grow: 1;
}

.program-meta-list {
  list-style: none;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
  font-size: 14px;
}

.program-meta-list li {
  margin-bottom: 8px;
  display: flex;
  gap: 8px;
}

.program-meta-list strong {
  color: var(--primary);
  min-width: 120px;
}

/* Structured Financial & Compliance Tables */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  margin: 24px 0;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}

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

.institutional-table th {
  background-color: var(--primary);
  color: var(--white);
  padding: 12px 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 13px;
}

.institutional-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-subtle);
}

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

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

.institutional-table tfoot td {
  font-weight: 800;
  background-color: var(--bg-alt);
  border-top: 2px solid var(--primary);
}

/* 3-Step Roadmap */
.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
}

.roadmap-step {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  position: relative;
  box-shadow: var(--shadow-sm);
}

.step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: var(--primary);
  color: var(--accent);
  font-weight: 800;
  font-size: 18px;
  border-radius: 50%;
  margin-bottom: 14px;
}

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

/* ==========================================================================
   FORMS & INTAKE
   ========================================================================== */

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

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

.form-label .required {
  color: #dc2626;
}

.form-control {
  width: 100%;
  padding: 12px 14px;
  font-size: 15px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background-color: var(--white);
  color: var(--text-dark);
  outline: none;
  transition: var(--transition);
}

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

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

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

.site-footer {
  background-color: var(--primary-dark);
  color: #cbd5e1;
  font-size: 14px;
  padding-top: 56px;
  border-top: 4px solid var(--accent);
}

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

.footer-column h4 {
  font-size: 16px;
  font-weight: 800;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
  position: relative;
  padding-bottom: 8px;
}

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

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

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

.footer-links a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 14px;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--accent);
  text-decoration: underline;
  padding-left: 4px;
}

.footer-meta-block {
  font-size: 13px;
  line-height: 1.6;
  margin-top: 12px;
  color: #94a3b8;
}

.footer-bottom {
  background-color: #000f2e;
  padding: 24px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 13px;
  line-height: 1.6;
}

.footer-notice-box {
  background-color: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin-bottom: 16px;
  color: #e2e8f0;
}

/* ==========================================================================
   MOBILE RESPONSIVENESS (BREAKPOINTS: 992px, 768px)
   ========================================================================== */

@media (max-width: 992px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--white);
    flex-direction: column;
    padding: 16px 0;
    box-shadow: var(--shadow-lg);
    border-bottom: 2px solid var(--primary);
  }

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

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

  .nav-item {
    width: 100%;
  }

  .nav-link {
    width: 100%;
    padding: 12px 24px;
    border-bottom: 1px solid var(--border-subtle);
  }

  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    border-left: 4px solid var(--accent);
    background-color: var(--bg-light);
    padding: 4px 0 4px 16px;
  }

  .two-column-grid,
  .equal-two-column,
  .three-column-grid,
  .four-column-grid,
  .roadmap-grid,
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .top-utility-strip {
    font-size: 12px;
    padding: 0 12px;
  }

  .utility-search {
    display: none;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 26px;
  }

  .hero-summary {
    font-size: 16px;
  }

  .page-header-title {
    font-size: 24px;
  }

  .main-nav-bar {
    padding: 10px 14px;
  }

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

  .btn-header-contact {
    display: none;
  }

  .top-utility-strip {
    flex-direction: column;
    height: auto;
    padding: 8px 12px;
    gap: 4px;
    text-align: center;
  }
}
