/* ==========================================================================
   VESONTIO SPORTS VACANCES - MASTER STYLESHEET (GUIDAN NONPROFIT THEME)
   Association Loi 1901 | RNA: W251003660 | SIREN: 498696962 | Besançon
   Compliance: Google Ad Grants & French Regulatory Standards
   ========================================================================== */

:root {
  --sunshine-gold: #F3BA2F;
  --sunshine-gold-hover: #dfa61f;
  --energy-orange: #ED5236;
  --energy-orange-hover: #d83f23;
  --deep-navy: #1F2531;
  --navy-light: #2c3444;
  --soft-white: #F8F9FA;
  --pure-white: #FFFFFF;
  --border-color: #E2E8F0;
  --border-dark: #CBD5E1;
  --text-primary: #1F2531;
  --text-muted: #64748B;
  --text-light: #94A3B8;
  --success-green: #28A745;
  --success-bg: #DCFCE7;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.07);
  --shadow-md: 0 4px 15px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.08);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-main);
  background-color: var(--soft-white);
  color: var(--text-primary);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

h1 { font-size: 2.35rem; }
h2 { font-size: 1.85rem; margin-top: 1.75rem; }
h3 { font-size: 1.4rem; margin-top: 1.25rem; }
h4 { font-size: 1.15rem; }

p {
  margin-bottom: 1.2rem;
  color: #334155;
}

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

a:hover {
  color: var(--energy-orange-hover);
  text-decoration: underline;
}

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

li {
  margin-bottom: 0.4rem;
}

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

.section-wrapper {
  padding: 60px 0;
}

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

/* Top Utility Bar */
.top-utility-bar {
  background-color: var(--deep-navy);
  color: #E2E8F0;
  font-size: 0.85rem;
  padding: 8px 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: 12px;
}

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

.top-utility-item a {
  color: #F8F9FA;
  text-decoration: underline;
}

.top-utility-item a:hover {
  color: var(--sunshine-gold);
}

.top-badge-gov {
  background: rgba(243, 186, 47, 0.2);
  color: var(--sunshine-gold);
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.5px;
}

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

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 20px;
}

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

.site-brand-badge {
  background: var(--deep-navy);
  color: var(--sunshine-gold);
  width: 46px;
  height: 46px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.25rem;
  border: 2px solid var(--sunshine-gold);
}

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

.site-brand-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--deep-navy);
  line-height: 1.2;
  letter-spacing: -0.2px;
}

.site-brand-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

/* Navigation Menu */
.nav-menu {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.nav-item {
  position: relative;
}

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

.nav-link:hover, .nav-link.active {
  color: var(--energy-orange);
  background-color: rgba(237, 82, 54, 0.06);
  text-decoration: none;
}

/* Dropdown Sub-menus */
.nav-dropdown-toggle::after {
  content: "▼";
  font-size: 0.6rem;
  margin-left: 4px;
  transition: transform 0.2s ease;
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 260px;
  background-color: var(--pure-white);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  list-style: none;
  padding: 8px 0;
  margin: 0;
  display: none;
  z-index: 1010;
}

.nav-item:hover .nav-dropdown-menu,
.nav-item:focus-within .nav-dropdown-menu {
  display: block;
}

.nav-dropdown-item {
  margin: 0;
}

.nav-dropdown-link {
  display: block;
  padding: 12px 18px;
  min-height: 44px;
  color: var(--deep-navy);
  font-weight: 500;
  font-size: 0.9rem;
  transition: background-color 0.2s, color 0.2s;
  text-decoration: none;
}

.nav-dropdown-link:hover {
  background-color: var(--soft-white);
  color: var(--energy-orange);
  text-decoration: none;
}

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

.mobile-nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--deep-navy);
  transition: all 0.3s;
}

/* Buttons and CTAs */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  min-height: 44px;
  min-width: 44px;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background-color: var(--sunshine-gold);
  color: var(--deep-navy);
  box-shadow: 0 2px 6px rgba(243, 186, 47, 0.3);
}

.btn-primary:hover {
  background-color: var(--sunshine-gold-hover);
  color: var(--deep-navy);
}

.btn-accent {
  background-color: var(--energy-orange);
  color: var(--pure-white);
  box-shadow: 0 2px 6px rgba(237, 82, 54, 0.3);
}

.btn-accent:hover {
  background-color: var(--energy-orange-hover);
  color: var(--pure-white);
}

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

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

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

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

/* Badges & Tags */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.badge-active {
  background-color: var(--success-bg);
  color: var(--success-green);
  border: 1px solid #bbf7d0;
}

.badge-gold {
  background-color: #FEF3C7;
  color: #B45309;
  border: 1px solid #FDE68A;
}

.badge-navy {
  background-color: #F1F5F9;
  color: var(--deep-navy);
  border: 1px solid var(--border-color);
}

/* Hero Section */
.hero-banner {
  position: relative;
  background-size: cover;
  background-position: center;
  color: var(--pure-white);
  padding: 90px 0 80px 0;
  margin-bottom: 40px;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(31, 37, 49, 0.92) 0%, rgba(31, 37, 49, 0.80) 100%);
  z-index: 1;
}

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

.hero-title {
  color: var(--pure-white);
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
  line-height: 1.18;
}

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

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

/* Mandatory Notre Mission Statement Block */
.mission-statement-box {
  background-color: var(--pure-white);
  border-left: 6px solid var(--sunshine-gold);
  border-radius: var(--radius-md);
  padding: 30px;
  box-shadow: var(--shadow-md);
  margin: 35px 0;
  border-top: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.mission-statement-box h2 {
  color: var(--deep-navy);
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.mission-statement-box p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #1E293B;
  margin-bottom: 0;
}

/* Compliance Verification Badges Grid */
.compliance-banner {
  background-color: #F8FAFC;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  margin: 30px 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.compliance-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.compliance-icon {
  background-color: var(--deep-navy);
  color: var(--sunshine-gold);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.compliance-text strong {
  display: block;
  font-size: 0.88rem;
  color: var(--deep-navy);
}

.compliance-text span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Grid Layouts */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

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

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

/* Card Elevation & Structure */
.card {
  background-color: var(--pure-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

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

.card-gold {
  border-top: 4px solid var(--sunshine-gold);
}

.card-navy {
  border-top: 4px solid var(--deep-navy);
}

/* Guidan Progress Bar */
.progress-wrapper {
  margin: 16px 0;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--deep-navy);
}

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

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--sunshine-gold), var(--energy-orange));
  border-radius: 20px;
  transition: width 0.8s ease;
}

/* Operational Agenda Tracker */
.agenda-table-wrapper {
  width: 100%;
  overflow-x: auto;
  margin: 25px 0;
  background: var(--pure-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

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

.agenda-table th {
  background-color: var(--deep-navy);
  color: var(--pure-white);
  padding: 14px 16px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.agenda-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-color);
  color: #334155;
}

.agenda-table tr:last-child td {
  border-bottom: none;
}

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

/* Impact Metrics Counter Grid */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin: 40px 0;
}

.metric-card {
  background: var(--pure-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px 18px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.metric-value {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--energy-orange);
  line-height: 1;
  margin-bottom: 8px;
}

.metric-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Documentary Photography Rules & Caption Styling */
.documentary-photo-container {
  margin: 20px 0 8px 0;
}

.documentary-img {
  width: 100%;
  height: auto;
  max-height: 480px;
  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;
  display: block;
}

figcaption {
  font-size: 0.875rem;
  color: #64748B;
  margin-bottom: 20px;
  font-style: italic;
  line-height: 1.45;
  padding: 0 4px;
}

/* Forms & Interactive Controls */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--deep-navy);
  margin-bottom: 6px;
}

.form-label span.req {
  color: var(--energy-orange);
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  font-size: 0.95rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background-color: var(--pure-white);
  color: var(--text-primary);
  min-height: 44px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: inherit;
}

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

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

/* Thank You Popup Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(31, 37, 49, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-box {
  background-color: var(--pure-white);
  border-radius: var(--radius-lg);
  max-width: 520px;
  width: 100%;
  padding: 36px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  position: relative;
  transform: scale(0.95);
  transition: transform 0.25s ease;
}

.modal-overlay.active .modal-box {
  transform: scale(1);
}

.modal-icon {
  width: 64px;
  height: 64px;
  background-color: var(--success-bg);
  color: var(--success-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 18px auto;
}

.modal-title {
  font-size: 1.5rem;
  color: var(--deep-navy);
  margin-bottom: 12px;
}

.modal-desc {
  font-size: 0.95rem;
  color: #475569;
  margin-bottom: 24px;
}

/* Global Footer & Compliance Hub */
.site-footer {
  background-color: var(--deep-navy);
  color: #CBD5E1;
  padding: 60px 0 30px 0;
  margin-top: auto;
  border-top: 4px solid var(--sunshine-gold);
}

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

.footer-col h3 {
  color: var(--pure-white);
  font-size: 1.15rem;
  margin-bottom: 18px;
  border-bottom: 2px solid var(--sunshine-gold);
  padding-bottom: 8px;
  display: inline-block;
}

.footer-disclosure-text {
  font-size: 0.9rem;
  line-height: 1.65;
  color: #CBD5E1;
  margin-bottom: 16px;
}

.footer-reinvest-statement {
  background: rgba(255, 255, 255, 0.05);
  border-left: 3px solid var(--sunshine-gold);
  padding: 12px 14px;
  font-size: 0.85rem;
  color: #E2E8F0;
  margin-bottom: 16px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

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

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

.footer-links a {
  color: #CBD5E1;
  font-size: 0.9rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  transition: color 0.2s;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--sunshine-gold);
  text-decoration: underline;
}

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

/* Timeline Components */
.timeline {
  position: relative;
  margin: 40px 0;
  padding-left: 30px;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 10px;
  width: 3px;
  background-color: var(--sunshine-gold);
}

.timeline-item {
  position: relative;
  margin-bottom: 30px;
}

.timeline-dot {
  position: absolute;
  left: -26px;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: var(--energy-orange);
  border: 3px solid var(--pure-white);
  box-shadow: 0 0 0 2px var(--sunshine-gold);
}

.timeline-content {
  background: var(--pure-white);
  padding: 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

/* Responsive Rules & Mobile Breakpoints */
@media (max-width: 992px) {
  .navbar-inner {
    position: relative;
  }

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

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

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

  .nav-link {
    width: 100%;
    padding: 12px;
  }

  .nav-dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    background-color: var(--soft-white);
    padding-left: 15px;
    margin-top: 4px;
  }

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

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

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

  .hero-title { font-size: 2.1rem; }
  .hero-lead { font-size: 1.05rem; }

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

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

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

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

  .compliance-banner {
    grid-template-columns: 1fr;
  }
}
