/* ==========================================================================
   GUIDAN NONPROFIT THEME - UNIFIED MASTER STYLESHEET
   Association Loi 1901 : UNION ATHLETIQUE LA ROCHEFOUCAULD TENNIS DE TABLE
   RNA: W161000730 | SIREN: 498772136 | NAF: 93.19Z
   Compliant with Google Ad Grants & French Regulatory Guidelines
   ========================================================================== */

:root {
  --primary-gold: #F3BA2F;
  --primary-gold-hover: #dfa724;
  --secondary-orange: #ED5236;
  --secondary-orange-hover: #d84329;
  --navy-dark: #1F2531;
  --navy-light: #2A3241;
  --navy-subtle: #3E485C;
  --bg-offwhite: #F8F9FA;
  --surface-white: #FFFFFF;
  --border-color: #E2E8F0;
  --border-dark: #CBD5E1;
  --text-primary: #1F2531;
  --text-muted: #475569;
  --text-light: #64748B;
  --text-white: #FFFFFF;
  --success-green: #28A745;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --shadow-sm: 0 2px 6px rgba(31, 37, 49, 0.05);
  --shadow-md: 0 4px 16px rgba(31, 37, 49, 0.08);
  --shadow-lg: 0 10px 25px rgba(31, 37, 49, 0.12);
  --transition: all 0.25s ease-in-out;
}

/* Reset & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--surface-white);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
}

main {
  flex: 1 0 auto;
}

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

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

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

h1 { font-size: 2.25rem; letter-spacing: -0.02em; }
h2 { font-size: 1.75rem; letter-spacing: -0.01em; margin-top: 1.5rem; }
h3 { font-size: 1.35rem; margin-top: 1.25rem; }
h4 { font-size: 1.15rem; }

p {
  margin-bottom: 1.25rem;
  color: #334155;
  line-height: 1.7;
}

ul, ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
  color: #334155;
}

li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

/* Containers */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.container-narrow {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Top Utility Bar */
.top-utility-bar {
  background-color: var(--navy-dark);
  color: #E2E8F0;
  font-size: 0.8125rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-utility-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.utility-info {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.utility-badge {
  background: rgba(243, 186, 47, 0.15);
  color: var(--primary-gold);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.03em;
}

.utility-link {
  color: #CBD5E1;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: var(--transition);
}

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

/* Global Sticky Navbar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--surface-white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  border-bottom: 1px solid var(--border-color);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-icon {
  width: 44px;
  height: 44px;
  background: var(--navy-dark);
  color: var(--primary-gold);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  border: 2px solid var(--primary-gold);
}

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

.brand-title {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--navy-dark);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.brand-subtitle {
  font-size: 0.75rem;
  color: var(--text-light);
  font-weight: 500;
}

/* Nav Menu & Dropdowns */
.nav-menu {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 44px;
  min-width: 44px;
  padding: 0.5rem 0.85rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy-dark);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.nav-link:hover,
.nav-link:focus,
.nav-link.active {
  color: var(--secondary-orange);
  background-color: var(--bg-offwhite);
}

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

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

.dropdown-item {
  display: block;
  min-height: 44px;
  padding: 0.65rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy-dark);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.dropdown-item:hover,
.dropdown-item:focus {
  background-color: var(--bg-offwhite);
  color: var(--secondary-orange);
  padding-left: 1.25rem;
}

/* CTA Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  padding: 0.65rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  text-align: center;
  gap: 0.5rem;
}

.btn-primary {
  background-color: var(--primary-gold);
  color: var(--navy-dark);
  border-color: var(--primary-gold);
}

.btn-primary:hover {
  background-color: var(--primary-gold-hover);
  border-color: var(--primary-gold-hover);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

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

.btn-secondary:hover {
  background-color: var(--secondary-orange-hover);
  border-color: var(--secondary-orange-hover);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

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

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

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

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

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 0;
  gap: 5px;
}

.mobile-toggle span {
  width: 22px;
  height: 2px;
  background-color: var(--navy-dark);
  transition: var(--transition);
}

/* Section Styling */
.section {
  padding: 4.5rem 0;
}

.section-bg-alt {
  background-color: var(--bg-offwhite);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.section-tag {
  display: inline-block;
  background: rgba(243, 186, 47, 0.2);
  color: #925C03;
  font-weight: 700;
  font-size: 0.8125rem;
  padding: 4px 14px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
}

.section-tag.green {
  background: rgba(40, 167, 69, 0.15);
  color: #19692c;
}

.section-tag.orange {
  background: rgba(237, 82, 54, 0.15);
  color: var(--secondary-orange);
}

.section-title {
  font-size: 2rem;
  color: var(--navy-dark);
  margin-bottom: 0.75rem;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* Hero Banners */
.hero-banner {
  position: relative;
  background-color: var(--navy-dark);
  color: var(--text-white);
  padding: 5rem 0;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.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.84) 100%);
  z-index: 1;
}

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

.hero-tag {
  display: inline-block;
  background: var(--primary-gold);
  color: var(--navy-dark);
  font-weight: 800;
  font-size: 0.8125rem;
  padding: 4px 14px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
}

.hero-title {
  color: var(--text-white);
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.25rem;
}

.hero-lead {
  font-size: 1.2rem;
  color: #E2E8F0;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Mandatory Notre Mission Callout Box */
.mission-callout-card {
  background: var(--surface-white);
  border-left: 6px solid var(--primary-gold);
  padding: 2rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  margin: 2.5rem 0;
  border-top: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.mission-callout-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--navy-dark);
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.mission-callout-text {
  font-size: 1.05rem;
  line-height: 1.75;
  color: #334155;
  margin-bottom: 0;
}

/* Feature & Card Grids */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

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

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

.card {
  background: var(--surface-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  padding: 1.75rem;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  border-color: #CBD5E1;
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(243, 186, 47, 0.18);
  color: #925C03;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.card-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--navy-dark);
}

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

/* Guidan Progress Bars */
.progress-block {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.progress-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.progress-track {
  width: 100%;
  height: 8px;
  background-color: var(--border-color);
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-gold) 0%, var(--secondary-orange) 100%);
  border-radius: 999px;
  transition: width 1s ease-in-out;
}

/* Counter Metric Cards */
.metric-card {
  text-align: center;
  background: var(--surface-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  padding: 1.75rem 1rem;
  box-shadow: var(--shadow-sm);
}

.metric-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--navy-dark);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.metric-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Documentary Photos & Mandatory Figcaptions */
.doc-img-wrapper {
  margin: 1.5rem 0;
}

.doc-img {
  width: 100%;
  height: 380px;
  border-radius: 12px;
  border: 1px solid #E5E7EB;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  object-fit: cover;
}

.doc-img-sm {
  height: 240px;
}

figcaption.doc-caption {
  font-size: 0.875rem;
  font-style: italic;
  color: #64748B;
  margin-top: 0.5rem;
  margin-bottom: 1.25rem;
  padding-left: 0.25rem;
  border-left: 2px solid var(--primary-gold);
  line-height: 1.5;
}

/* Compliance Verification Badges */
.compliance-badge-grid {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 1.5rem 0;
}

.compliance-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--surface-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.85rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--navy-dark);
}

/* Data Tables */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  margin: 1.5rem 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9375rem;
}

.data-table th {
  background-color: var(--navy-dark);
  color: var(--surface-white);
  padding: 0.85rem 1rem;
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
}

.data-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-color);
  color: #334155;
}

.data-table tr:nth-child(even) {
  background-color: #F8FAFC;
}

.data-table tr:hover {
  background-color: #F1F5F9;
}

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

.form-group {
  margin-bottom: 1.35rem;
}

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

.form-control {
  width: 100%;
  min-height: 44px;
  padding: 0.65rem 0.85rem;
  font-size: 0.9375rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  background-color: var(--surface-white);
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-gold);
  box-shadow: 0 0 0 3px rgba(243, 186, 47, 0.2);
}

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

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.form-check input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
}

/* Modal Popup */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(31, 37, 49, 0.7);
  backdrop-filter: blur(4px);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-content {
  background: var(--surface-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  max-width: 520px;
  width: 100%;
  padding: 2.25rem;
  text-align: center;
  position: relative;
  border-top: 6px solid var(--primary-gold);
}

.modal-icon {
  width: 60px;
  height: 60px;
  background: rgba(40, 167, 69, 0.15);
  color: var(--success-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 1.25rem auto;
}

.modal-title {
  font-size: 1.5rem;
  color: var(--navy-dark);
  margin-bottom: 0.75rem;
}

.modal-body {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

/* Global Footer & Compliance Hub */
.site-footer {
  background-color: var(--navy-dark);
  color: #CBD5E1;
  padding-top: 4.5rem;
  padding-bottom: 2rem;
  border-top: 4px solid var(--primary-gold);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 2.5rem;
  margin-bottom: 3.5rem;
}

.footer-brand h3 {
  color: var(--surface-white);
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.footer-disclosure-text {
  font-size: 0.875rem;
  line-height: 1.65;
  color: #94A3B8;
  margin-bottom: 1.25rem;
}

.footer-reinvestment-box {
  background: rgba(255, 255, 255, 0.05);
  border-left: 3px solid var(--primary-gold);
  padding: 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  line-height: 1.55;
  color: #CBD5E1;
}

.footer-column h4 {
  color: var(--surface-white);
  font-size: 1rem;
  margin-bottom: 1.25rem;
  border-bottom: 2px solid var(--primary-gold);
  padding-bottom: 0.4rem;
  display: inline-block;
}

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

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

.footer-links a {
  color: #94A3B8;
  font-size: 0.875rem;
  transition: var(--transition);
}

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

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.875rem;
  color: #94A3B8;
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

.footer-legal-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.75rem;
  text-align: center;
  font-size: 0.8125rem;
  color: #94A3B8;
  line-height: 1.6;
}

/* Mobile Media Queries */
@media (max-width: 992px) {
  .navbar {
    height: 70px;
  }

  .mobile-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    height: calc(100vh - 70px);
    background: var(--surface-white);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem;
    overflow-y: auto;
    display: none;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
  }

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

  .nav-item {
    width: 100%;
    border-bottom: 1px solid var(--border-color);
  }

  .nav-link {
    width: 100%;
    justify-content: space-between;
    padding: 0.85rem 0.5rem;
    font-size: 1rem;
  }

  .dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    padding-left: 1rem;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
    background: #F8FAFC;
    border-radius: var(--radius-sm);
    margin-bottom: 0.5rem;
  }

  .dropdown.open .dropdown-menu {
    display: block;
  }

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

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

@media (max-width: 768px) {
  h1 { font-size: 1.85rem; }
  h2 { font-size: 1.45rem; }
  h3 { font-size: 1.2rem; }

  .top-utility-inner {
    flex-direction: column;
    align-items: flex-start;
  }

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

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

  .doc-img {
    height: 250px;
  }

  .hero-title {
    font-size: 1.85rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .form-card {
    padding: 1.5rem;
  }
}
