/* ==========================================================================
   ASSOCIATION ATTRACTION D'AILLEURS - FEUILLE DE STYLE OFFICIELLE
   Plateforme Institutionnelle Loi 1901 - Béziers (Hérault)
   ========================================================================== */

:root {
  --primary: #002366;           /* Royal Blue */
  --primary-dark: #001744;      /* Deep Navy */
  --primary-light: #0d388f;     /* Royal Soft */
  --accent: #FFD700;            /* Deep Gold */
  --accent-hover: #e6c200;      /* Darker Gold */
  --bg-utility: #F4F6F9;        /* Light Grey */
  --bg-white: #FFFFFF;          /* Pure White */
  --text-main: #1A202C;         /* Slate Charcoal */
  --text-muted: #4A5568;        /* Soft Charcoal */
  --text-light: #718096;        /* Light Gray */
  --border-color: #E2E8F0;      /* Neutral Border */
  --border-subtle: #EDF2F7;     /* Soft Divider */
  --success: #2E7D32;           /* Forest Green */
  --warning: #ED6C02;           /* Amber */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: Georgia, "Times New Roman", Times, serif;
  --shadow-sm: 0 1px 3px rgba(0, 35, 102, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 12px rgba(0, 35, 102, 0.08), 0 2px 4px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 25px rgba(0, 35, 102, 0.12), 0 5px 10px rgba(0, 0, 0, 0.04);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
}

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

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-white);
  color: var(--text-main);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a:hover {
  color: var(--primary-light);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-md);
}

h1, h2, h3, h4, h5, h6 {
  color: var(--primary);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.75rem;
}

h1 {
  font-size: 2.25rem;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 1.75rem;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 0.5rem;
  margin-top: 2rem;
}

h3 {
  font-size: 1.35rem;
  margin-top: 1.5rem;
}

p {
  margin-bottom: 1.25rem;
  color: var(--text-main);
}

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

li {
  margin-bottom: 0.5rem;
}

/* --------------------------------------------------------------------------
   Double-Decker Header System
   -------------------------------------------------------------------------- */
.header-wrapper {
  position: sticky;
  top: 0;
  z-index: 9999;
  background-color: var(--bg-white);
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid var(--border-color);
}

/* Row 1: Top Utility Strip */
.top-utility-strip {
  background-color: var(--bg-utility);
  color: #333333;
  height: 42px;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  border-bottom: 1px solid var(--border-color);
}

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

.rna-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: #E2E8F0;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.02em;
}

.official-tag {
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

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

.search-simulation {
  display: flex;
  align-items: center;
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 3px 10px;
  font-size: 12px;
  color: var(--text-light);
}

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

.lang-selector {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--primary);
  font-size: 12px;
}

.lang-fr {
  color: var(--primary);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 1px;
}

/* Row 2: Main Navigation Bar */
.main-nav-bar {
  background-color: var(--bg-white);
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 76px;
  max-width: 1280px;
  margin: 0 auto;
}

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

.brand-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-transform: uppercase;
}

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

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

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 12px 14px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  min-height: 44px;
}

.nav-link:hover,
.nav-item:hover > .nav-link {
  color: var(--primary);
  background-color: var(--bg-utility);
}

.nav-caret {
  font-size: 9px;
  color: var(--accent-hover);
  transition: transform 0.2s ease;
}

.nav-item:hover .nav-caret {
  transform: rotate(180deg);
}

/* Dropdown Menu Mapping */
.dropdown-panel {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  border-radius: var(--radius-sm);
  min-width: 290px;
  display: none;
  flex-direction: column;
  padding: 8px 0;
  z-index: 9999;
}

.nav-item:hover .dropdown-panel {
  display: flex;
}

.dropdown-link {
  padding: 10px 18px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  border-left: 3px solid transparent;
  transition: all 0.15s ease;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.dropdown-link:hover {
  background-color: var(--bg-utility);
  color: var(--primary);
  border-left-color: var(--accent);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-contact-header {
  background-color: var(--primary);
  color: var(--bg-white);
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border: 2px solid var(--primary);
  transition: all 0.2s ease;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

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

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

/* --------------------------------------------------------------------------
   Layout Containers & Page Wrappers
   -------------------------------------------------------------------------- */
.site-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.main-content {
  flex: 1 0 auto;
  padding: 32px 20px 60px;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
}

/* Two-Column Desktop Grid (3fr / 1fr) */
.content-grid-two-column {
  display: grid;
  grid-template-columns: 3fr 1.15fr;
  gap: 36px;
  margin-top: 24px;
}

.grid-main-col {
  min-width: 0;
}

.grid-side-rail {
  min-width: 0;
}

/* Institutional Hero Framework */
.hero-framework {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--bg-white);
  border-radius: var(--radius-md);
  padding: 48px 40px;
  margin-bottom: 36px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.hero-framework h1 {
  color: var(--bg-white);
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.hero-framework h1 span {
  color: var(--accent);
}

.hero-badge-tag {
  display: inline-block;
  background-color: rgba(255, 215, 0, 0.2);
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.hero-summary-statement {
  font-size: 1.15rem;
  line-height: 1.6;
  color: #E2E8F0;
  margin-bottom: 24px;
  max-width: 900px;
  border-left: 4px solid var(--accent);
  padding-left: 16px;
}

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

.btn-primary-action {
  background-color: var(--accent);
  color: var(--primary-dark);
  font-weight: 700;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  min-height: 44px;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.btn-primary-action:hover {
  background-color: var(--bg-white);
  color: var(--primary);
  box-shadow: var(--shadow-md);
}

.btn-secondary-action {
  background-color: transparent;
  color: var(--bg-white);
  border: 2px solid var(--bg-white);
  font-weight: 700;
  padding: 12px 26px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  min-height: 44px;
  font-size: 0.95rem;
}

.btn-secondary-action:hover {
  background-color: rgba(255, 255, 255, 0.15);
  color: var(--bg-white);
}

/* Page Header Standard Banner */
.page-header-banner {
  background-color: var(--bg-utility);
  border-left: 6px solid var(--primary);
  padding: 28px 32px;
  border-radius: var(--radius-sm);
  margin-bottom: 32px;
}

.page-header-banner h1 {
  margin-bottom: 0.5rem;
}

.page-header-lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 0;
  line-height: 1.6;
}

/* Institutional Notice & Funding Disclosure Boxes */
.funding-disclosure-box {
  background-color: #F8FAFC;
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--accent-hover);
  padding: 20px 24px;
  border-radius: var(--radius-sm);
  margin: 28px 0;
}

.funding-disclosure-box h4 {
  color: var(--primary);
  margin-bottom: 8px;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.funding-disclosure-box p:last-child {
  margin-bottom: 0;
  font-style: italic;
  font-weight: 500;
  color: var(--primary-dark);
}

/* Side-rail Components */
.siderail-card {
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.siderail-card h3 {
  font-size: 1.15rem;
  margin-top: 0;
  margin-bottom: 16px;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 8px;
}

.stat-rail-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--border-subtle);
}

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

.stat-rail-number {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
}

.stat-rail-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.stat-rail-desc {
  font-size: 0.82rem;
  color: var(--text-light);
  margin-top: 4px;
  margin-bottom: 0;
}

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

.roadmap-step-card {
  background-color: var(--bg-utility);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  position: relative;
}

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

.roadmap-step-card h3 {
  font-size: 1.1rem;
  margin-top: 0;
  margin-bottom: 8px;
}

.roadmap-step-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* Image Embed Presentation */
.institutional-image-block {
  margin: 28px 0;
}

.institutional-image-block img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid var(--border-color);
}

/* Tables System */
.institutional-table-wrapper {
  overflow-x: auto;
  margin: 28px 0;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}

.institutional-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  background-color: var(--bg-white);
}

.institutional-table th {
  background-color: var(--primary);
  color: var(--bg-white);
  padding: 14px 18px;
  text-align: left;
  font-weight: 700;
  letter-spacing: 0.02em;
}

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

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

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

.table-badge-active {
  display: inline-block;
  background-color: #E8F5E9;
  color: #2E7D32;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
}

/* Form Styles */
.form-container {
  background-color: 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-label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--primary);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  color: var(--text-main);
  background-color: var(--bg-white);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  min-height: 44px;
}

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

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 35, 102, 0.12);
}

/* Program & Activity Cards */
.activity-card {
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.activity-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
  gap: 16px;
  flex-wrap: wrap;
}

.status-tag-live {
  background-color: #E8F5E9;
  color: #1B5E20;
  border: 1px solid #A5D6A7;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}

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

.timeline-list::before {
  content: "";
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 8px;
  width: 3px;
  background-color: var(--border-color);
}

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

.timeline-item::before {
  content: "";
  position: absolute;
  left: -28px;
  top: 4px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background-color: var(--primary);
  border: 3px solid var(--accent);
}

.timeline-date {
  font-weight: 800;
  color: var(--primary);
  font-size: 1.05rem;
  margin-bottom: 4px;
}

/* --------------------------------------------------------------------------
   Mandatory Footer Disclosures & Legal Block
   -------------------------------------------------------------------------- */
.site-footer {
  background-color: var(--primary-dark);
  color: #E2E8F0;
  padding: 48px 24px 28px;
  border-top: 4px solid var(--accent);
  margin-top: auto;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
}

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

.footer-col h4 {
  color: var(--accent);
  font-size: 1.1rem;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.footer-col p {
  color: #CBD5E0;
  font-size: 0.88rem;
  line-height: 1.6;
}

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

.footer-col li {
  margin-bottom: 8px;
}

.footer-col a {
  color: #CBD5E0;
  font-size: 0.88rem;
  transition: color 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
}

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

.footer-legal-notice {
  background-color: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 24px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  line-height: 1.6;
  color: #A0AEC0;
  margin-bottom: 24px;
}

.footer-bottom-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 20px;
  font-size: 0.82rem;
  color: #A0AEC0;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-nav-legal {
  display: flex;
  gap: 18px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-nav-legal a {
  color: #CBD5E0;
  text-decoration: underline;
}

.footer-nav-legal a:hover {
  color: var(--accent);
}

/* --------------------------------------------------------------------------
   Responsive Media Queries (Strict Rules: max-width 992px & 768px)
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
  .content-grid-two-column {
    grid-template-columns: 1fr;
    gap: 32px;
  }

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

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

  .main-nav-bar {
    padding: 12px 20px;
  }

  .nav-menu-list {
    gap: 4px;
  }

  .nav-link {
    padding: 8px 10px;
    font-size: 0.82rem;
  }

  .dropdown-panel {
    min-width: 240px;
  }
}

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

  .top-utility-right {
    width: 100%;
    justify-content: space-between;
  }

  .main-nav-bar {
    flex-wrap: wrap;
    padding: 14px 16px;
  }

  .mobile-toggle-btn {
    display: block;
  }

  .nav-actions {
    display: none;
  }

  .nav-menu-list {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    margin-top: 14px;
    border-top: 1px solid var(--border-color);
    padding-top: 10px;
  }

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

  .nav-link {
    width: 100%;
    justify-content: space-between;
    padding: 12px 14px;
    background-color: var(--bg-utility);
    margin-bottom: 4px;
  }

  .dropdown-panel {
    position: static;
    display: flex;
    box-shadow: none;
    border: none;
    border-left: 3px solid var(--accent);
    padding-left: 12px;
    margin-bottom: 8px;
  }

  .hero-framework {
    padding: 32px 20px;
  }

  .hero-framework h1 {
    font-size: 1.85rem;
  }

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

  .footer-bottom-bar {
    flex-direction: column;
    align-items: flex-start;
  }
}
