/* ==========================================================================
   BCB BILLARD CLUB BAIGNOIS - OFFICIAL DESIGN SYSTEM STYLESHEET
   Association Loi 1901 | RNA: W162000876 | SIREN: 509767992
   Alone Theme Palette: #F3BA2F (Gold), #ED5236 (Coral), #1F2531 (Navy-Charcoal),
   #F8F9FA (Surface), #FFFFFF (White), #E2E8F0 (Border), #64748B (Slate Text)
   Zero External Dependencies | 100% Native Flexbox & CSS Grid
   ========================================================================== */

:root {
  --primary-gold: #F3BA2F;
  --accent-coral: #ED5236;
  --dark-navy: #1F2531;
  --navy-light: #2A3241;
  --bg-light: #F8F9FA;
  --white: #FFFFFF;
  --border-color: #E2E8F0;
  --text-slate: #64748B;
  --text-dark: #1E293B;
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 15px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.12);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --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: var(--font-family);
  background-color: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--dark-navy);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.45rem; }
h4 { font-size: 1.2rem; }

p {
  margin-bottom: 1.25rem;
  color: #334155;
  font-size: 1.05rem;
}

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

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

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

.documentary-photo {
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid #E5E7EB;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  margin: 20px 0 8px 0;
  object-fit: cover;
  max-height: 480px;
}

figcaption {
  font-size: 0.875rem;
  color: #64748B;
  font-style: italic;
  margin-bottom: 24px;
  padding: 0 4px;
  display: block;
  border-left: 3px solid var(--primary-gold);
  padding-left: 10px;
}

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

/* ==========================================================================
   TOP UTILITY STRIP & HEADER
   ========================================================================== */
.top-utility-strip {
  background-color: var(--dark-navy);
  color: #94A3B8;
  font-size: 0.82rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

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

.utility-info span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.utility-badge {
  background-color: rgba(243, 186, 47, 0.15);
  color: var(--primary-gold);
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
  border: 1px solid rgba(243, 186, 47, 0.3);
}

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

.utility-links a {
  color: #CBD5E1;
  font-weight: 500;
}

.utility-links a:hover {
  color: var(--primary-gold);
}

/* Sticky Main Navigation */
.main-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--white);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border-bottom: 3px solid var(--primary-gold);
}

.main-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
}

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

.brand-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--dark-navy) 0%, #2A3241 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-gold);
  font-size: 1.4rem;
  font-weight: 800;
  border: 2px solid var(--primary-gold);
  box-shadow: 0 2px 8px rgba(243, 186, 47, 0.3);
}

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

.brand-name {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--dark-navy);
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.brand-subline {
  font-size: 0.78rem;
  color: var(--text-slate);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

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

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--dark-navy);
  border-radius: var(--radius-sm);
  min-height: 44px;
  transition: var(--transition);
}

.nav-link:hover, .nav-item:hover > .nav-link {
  color: var(--accent-coral);
  background-color: rgba(237, 82, 54, 0.05);
}

.nav-item.active > .nav-link {
  color: var(--dark-navy);
  background-color: rgba(243, 186, 47, 0.2);
  border-bottom: 2px solid var(--primary-gold);
}

/* Dropdown Menu */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 260px;
  background-color: var(--white);
  border: 1px solid var(--border-color);
  border-top: 3px solid var(--accent-coral);
  box-shadow: var(--shadow-lg);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  list-style: none;
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.2s ease;
  z-index: 999;
}

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

.dropdown-link {
  display: block;
  padding: 12px 20px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-dark);
  min-height: 44px;
}

.dropdown-link:hover {
  background-color: var(--bg-light);
  color: var(--accent-coral);
  padding-left: 24px;
}

/* Contact Action Button in Nav */
.nav-cta-btn {
  background: linear-gradient(135deg, var(--accent-coral) 0%, #D83C21 100%);
  color: var(--white) !important;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 10px rgba(237, 82, 54, 0.3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  transition: var(--transition);
}

.nav-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(237, 82, 54, 0.4);
  background: #C4341B;
}

/* Hamburger Toggle Button */
.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 10px;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
  color: var(--dark-navy);
}

.menu-toggle svg {
  width: 24px;
  height: 24px;
  display: block;
}

/* ==========================================================================
   BUTTONS & CTA ELEMENTS (STRICT NON-COMMERCIAL CONTACT ONLY)
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 1.02rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  cursor: pointer;
  min-height: 48px;
  min-width: 44px;
  text-decoration: none;
  transition: var(--transition);
  border: none;
}

.btn-primary {
  background-color: var(--accent-coral);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(237, 82, 54, 0.25);
}

.btn-primary:hover {
  background-color: #D83C21;
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(237, 82, 54, 0.35);
}

.btn-gold {
  background-color: var(--primary-gold);
  color: var(--dark-navy);
  box-shadow: 0 4px 12px rgba(243, 186, 47, 0.3);
}

.btn-gold:hover {
  background-color: #E2A81B;
  color: var(--dark-navy);
  transform: translateY(-2px);
}

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

.btn-navy:hover {
  background-color: #151A23;
  color: var(--white);
  transform: translateY(-2px);
}

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

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

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

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

/* ==========================================================================
   HERO BANNER
   ========================================================================== */
.hero-banner {
  position: relative;
  background-color: var(--dark-navy);
  color: var(--white);
  padding: 80px 0 90px;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(31, 37, 49, 0.94) 0%, rgba(31, 37, 49, 0.82) 100%);
  z-index: 1;
}

.hero-bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

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

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: rgba(243, 186, 47, 0.2);
  color: var(--primary-gold);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
  border: 1px solid rgba(243, 186, 47, 0.35);
}

.hero-title {
  font-size: 3rem;
  color: var(--white);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero-summary-2-sentences {
  font-size: 1.28rem;
  line-height: 1.7;
  color: #E2E8F0;
  margin-bottom: 30px;
  font-weight: 400;
  border-left: 4px solid var(--primary-gold);
  padding-left: 18px;
}

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

/* ==========================================================================
   MANDATORY NOTRE MISSION BLOCK (120+ words)
   ========================================================================== */
.notre-mission-wrapper {
  background: linear-gradient(180deg, #FFFDF8 0%, #FFF8EA 100%);
  border: 2px solid #F8D88E;
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  margin: 40px 0;
  box-shadow: 0 8px 24px rgba(243, 186, 47, 0.12);
  position: relative;
}

.notre-mission-wrapper::before {
  content: "★";
  position: absolute;
  top: -16px;
  left: 36px;
  background-color: var(--primary-gold);
  color: var(--dark-navy);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 800;
  box-shadow: var(--shadow-sm);
}

.notre-mission-title {
  color: var(--dark-navy);
  font-size: 1.4rem;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.notre-mission-text {
  font-size: 1.1rem;
  line-height: 1.85;
  color: #2D3748;
  margin-bottom: 0;
}

/* ==========================================================================
   CONTENT SECTIONS & CARDS
   ========================================================================== */
.section {
  padding: 70px 0;
}

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

.section-header {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 50px;
}

.section-eyebrow {
  color: var(--accent-coral);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.88rem;
  letter-spacing: 1.2px;
  margin-bottom: 8px;
  display: block;
}

.section-title {
  font-size: 2.25rem;
  color: var(--dark-navy);
}

.section-intro {
  font-size: 1.12rem;
  color: var(--text-slate);
}

/* 4-Pillar Grid */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 30px;
}

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

.pillar-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-gold);
}

.pillar-icon {
  width: 52px;
  height: 52px;
  background-color: rgba(243, 186, 47, 0.15);
  color: var(--dark-navy);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 18px;
  border: 1px solid rgba(243, 186, 47, 0.3);
}

.pillar-title {
  font-size: 1.2rem;
  margin-bottom: 12px;
  color: var(--dark-navy);
}

.pillar-desc {
  font-size: 0.95rem;
  color: #475569;
  flex-grow: 1;
  margin-bottom: 16px;
}

.pillar-progress-wrap {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border-color);
}

.progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-slate);
  margin-bottom: 6px;
}

.progress-bar-bg {
  width: 100%;
  height: 8px;
  background-color: #EDF2F7;
  border-radius: 4px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-gold) 0%, var(--accent-coral) 100%);
  border-radius: 4px;
}

/* Impact in Numbers Grid */
.impact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 40px 0;
}

.impact-stat-box {
  background: var(--dark-navy);
  color: var(--white);
  padding: 30px 20px;
  border-radius: var(--radius-md);
  text-align: center;
  border-bottom: 4px solid var(--primary-gold);
}

.stat-number {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--primary-gold);
  line-height: 1;
  margin-bottom: 10px;
}

.stat-label {
  font-size: 0.92rem;
  color: #CBD5E1;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Agenda / Schedule Table */
.agenda-table-wrap {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow-x: auto;
  box-shadow: var(--shadow-sm);
  margin-top: 24px;
}

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

.agenda-table th {
  background-color: #F1F5F9;
  color: var(--dark-navy);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 16px 20px;
  border-bottom: 2px solid var(--border-color);
}

.agenda-table td {
  padding: 18px 20px;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.96rem;
  color: #334155;
}

.agenda-table tr:hover {
  background-color: #FAFBFD;
}

.badge-free {
  display: inline-block;
  background-color: #DCFCE7;
  color: #166534;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 700;
  border: 1px solid #BBF7D0;
}

.badge-active {
  display: inline-block;
  background-color: #FEF3C7;
  color: #92400E;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 700;
  border: 1px solid #FDE68A;
}

/* Activity / Program Module Cards */
.programs-list {
  display: flex;
  flex-direction: column;
  gap: 36px;
  margin-top: 30px;
}

.program-module-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 420px 1fr;
  box-shadow: var(--shadow-sm);
}

.program-image-side img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 280px;
}

.program-body-side {
  padding: 32px 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Forms & Modal */
.form-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
}

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

.form-label {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--dark-navy);
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  font-size: 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background-color: #FFFFFF;
  color: var(--text-dark);
  font-family: inherit;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-coral);
  box-shadow: 0 0 0 3px rgba(237, 82, 54, 0.15);
}

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

/* Modal Confirmation */
.modal-backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(31, 37, 49, 0.7);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop.active {
  display: flex;
}

.modal-window {
  background: var(--white);
  max-width: 520px;
  width: 100%;
  border-radius: var(--radius-lg);
  padding: 36px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  border-top: 5px solid var(--primary-gold);
  animation: modalPop 0.3s ease-out;
}

@keyframes modalPop {
  from { transform: scale(0.92); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-icon-success {
  width: 64px;
  height: 64px;
  background-color: #DCFCE7;
  color: #15803D;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 20px;
}

/* ==========================================================================
   FOOTER (MANDATORY NON-COMMERCIAL DISCLOSURES)
   ========================================================================== */
.main-footer {
  background-color: var(--dark-navy);
  color: #CBD5E1;
  padding: 70px 0 30px;
  border-top: 4px solid var(--primary-gold);
}

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

.footer-col-title {
  color: var(--primary-gold);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}

.footer-text {
  font-size: 0.94rem;
  line-height: 1.7;
  color: #94A3B8;
  margin-bottom: 16px;
}

.footer-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-nav-link {
  color: #CBD5E1;
  font-size: 0.94rem;
  display: inline-block;
}

.footer-nav-link:hover {
  color: var(--primary-gold);
  padding-left: 4px;
}

.footer-legal-box {
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 16px;
  font-size: 0.86rem;
  color: #94A3B8;
  line-height: 1.6;
}

.footer-bottom-strip {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  text-align: center;
  font-size: 0.86rem;
  color: #94A3B8;
}

.footer-noncommercial-statement {
  background: rgba(243, 186, 47, 0.08);
  border: 1px solid rgba(243, 186, 47, 0.25);
  border-radius: var(--radius-sm);
  padding: 14px 20px;
  margin-bottom: 30px;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #E2E8F0;
  text-align: center;
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 992px) {
  .pillars-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .impact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .program-module-card {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

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

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

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

  .dropdown-menu {
    position: static;
    width: 100%;
    box-shadow: none;
    border: none;
    border-left: 3px solid var(--primary-gold);
    opacity: 1;
    visibility: visible;
    transform: none;
    padding-left: 14px;
    margin: 6px 0 10px;
    background-color: #F8F9FA;
  }
}

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.65rem; }
  .hero-title { font-size: 2.2rem; }
  .hero-summary-2-sentences { font-size: 1.05rem; }
  
  .pillars-grid {
    grid-template-columns: 1fr;
  }
  
  .impact-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .top-utility-strip .container {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .hero-actions {
    flex-direction: column;
  }
  
  .btn {
    width: 100%;
  }

  .notre-mission-wrapper {
    padding: 24px 20px;
  }
}
