/* ==========================================================================
   PRO-MOUV - ASSOCIATION LOI 1901
   Feuille de style institutionnelle conforme
   Couleurs : #005A36 / #02472B (Spruce Green), #A68244 / #9E7D3B (Metallic Gold),
              #D97706 / #C87A00 (Bright Gold), #F4F5F4 (Light Gray), #1C1A17 (Charcoal)
   ========================================================================== */

:root {
  --primary-green: #005A36;
  --primary-dark-green: #02472B;
  --accent-gold: #A68244;
  --accent-gold-dark: #9E7D3B;
  --bright-gold: #D97706;
  --bright-gold-hover: #C87A00;
  --bg-light-gray: #F4F5F4;
  --bg-alt-gray: #EFEFEF;
  --text-charcoal: #1C1A17;
  --text-muted: #4A4A4A;
  --color-white: #FFFFFF;
  --border-light: #D8DDD9;
  --header-height: 75px;
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
}

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

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

body {
  font-family: var(--font-family);
  background-color: var(--color-white);
  color: var(--text-charcoal);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

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

/* ==========================================================================
   BARRE DE PROGRESSION DE LECTURE (DYNAMIC PROGRESS BAR)
   ========================================================================== */
#reading-progress-bar {
  background: var(--accent-gold);
  height: 4px;
  position: fixed;
  top: 75px;
  left: 0;
  width: 0%;
  z-index: 999;
  transition: width 0.1s ease-out;
}

/* ==========================================================================
   EN-TÊTE FIXE (STICKY HEADER BAR)
   ========================================================================== */
.site-header {
  background: #005A36;
  position: sticky;
  top: 0;
  z-index: 1000;
  height: 75px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.header-left {
  display: flex;
  align-items: center;
}

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

.brand-emblem {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  background: var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-weight: 900;
  font-size: 1.25rem;
  letter-spacing: 1px;
}

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

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

.brand-tag {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.72rem;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

/* Widget Horloge Analogique & Double Affichage Numérique */
.clock-widget {
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  padding-left: 15px;
  margin-left: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.analog-clock-svg {
  width: 38px;
  height: 38px;
}

.clock-face {
  fill: #013821;
  stroke: var(--accent-gold);
  stroke-width: 2;
}

.clock-hands line {
  stroke-linecap: round;
}

.hour-hand {
  stroke: var(--color-white);
  stroke-width: 2.5;
}

.min-hand {
  stroke: var(--color-white);
  stroke-width: 1.75;
}

.sec-hand {
  stroke: var(--bright-gold);
  stroke-width: 1;
}

.center-dot {
  fill: var(--accent-gold);
}

.time-stack {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.time-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.time-label {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.65);
  text-transform: uppercase;
}

.time-val {
  font-size: 0.75rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #FFFFFF;
}

/* Menu de navigation droite */
.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-matrix {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 5px;
}

.nav-item {
  position: relative;
}

.nav-link {
  color: var(--color-white);
  padding: 10px 14px;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-link:hover,
.nav-item:hover > .nav-link {
  background: rgba(255, 255, 255, 0.12);
  color: var(--color-white);
}

.nav-arrow {
  font-size: 0.7rem;
  transition: transform 0.2s ease;
}

.nav-item:hover .nav-arrow {
  transform: translateY(2px);
}

/* Dropdown Menu */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #004D2E;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-top: 3px solid var(--accent-gold);
  border-radius: 0 0 6px 6px;
  list-style: none;
  min-width: 240px;
  padding: 8px 0;
  display: none;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

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

.dropdown-item a {
  display: block;
  padding: 10px 18px;
  color: var(--color-white);
  font-size: 0.84rem;
  font-weight: 500;
  transition: background-color 0.15s ease, padding-left 0.15s ease;
}

.dropdown-item a:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--accent-gold);
  padding-left: 22px;
}

/* Bouton Contact / Soutenir */
.btn-cta-contact {
  background: #D97706;
  color: #FFF;
  padding: 12px 24px;
  font-weight: bold;
  text-transform: uppercase;
  border-radius: 4px;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.2s ease;
  display: inline-block;
}

.btn-cta-contact:hover {
  background: var(--bright-gold-hover);
  color: #FFF;
}

/* Bouton hamburger mobile */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-white);
  font-size: 1.8rem;
  cursor: pointer;
  padding: 8px;
  min-width: 44px;
  min-height: 44px;
}

/* ==========================================================================
   STRUCTURE GÉNÉRALE DU CONTENU
   ========================================================================== */
.main-wrapper {
  display: flex;
  max-width: 1380px;
  margin: 0 auto;
  padding: 40px 24px 70px 24px;
  gap: 40px;
}

.content-column {
  flex: 1;
  min-width: 0;
}

.sidebar-column {
  width: 340px;
  flex-shrink: 0;
}

/* Fil d'ariane */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
}

.breadcrumb a {
  color: var(--primary-green);
}

.breadcrumb span.current {
  color: var(--text-charcoal);
  font-weight: 600;
}

/* Titres & typographie institutionnelle */
h1.page-title {
  color: var(--primary-dark-green);
  font-size: 2.3rem;
  line-height: 1.25;
  font-weight: 800;
  margin-bottom: 18px;
  letter-spacing: -0.5px;
}

h2.section-heading {
  color: var(--primary-green);
  font-size: 1.6rem;
  line-height: 1.35;
  font-weight: 700;
  margin: 36px 0 16px 0;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--accent-gold);
}

h3.sub-heading {
  color: var(--primary-dark-green);
  font-size: 1.25rem;
  font-weight: 700;
  margin: 24px 0 12px 0;
}

p {
  margin-bottom: 18px;
  color: var(--text-charcoal);
  text-align: justify;
}

.lead-summary {
  font-size: 1.12rem;
  line-height: 1.7;
  color: #1F2A23;
  font-weight: 500;
  margin-bottom: 28px;
  padding: 16px 20px;
  background: var(--bg-light-gray);
  border-left: 4px solid var(--primary-green);
  border-radius: 0 4px 4px 0;
}

/* ==========================================================================
   BOÎTES INSTITUTIONNELLES & ENGAGEMENT (EXACT 150+ WORDS)
   ========================================================================== */
.engagement-box {
  background: #F0F6F2;
  border: 2px solid var(--primary-green);
  border-radius: 6px;
  padding: 26px 28px;
  margin: 32px 0;
  position: relative;
}

.engagement-box-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.engagement-box-title {
  color: var(--primary-dark-green);
  font-size: 1.25rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.engagement-badge {
  background: var(--primary-green);
  color: var(--color-white);
  padding: 4px 10px;
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 3px;
  text-transform: uppercase;
}

/* ==========================================================================
   BOUTONS ET CTA
   ========================================================================== */
.btn-primary-gold {
  background: #A68244;
  color: #FFFFFF;
  border: none;
  font-weight: bold;
  padding: 12px 24px;
  border-radius: 4px;
  font-size: 0.9rem;
  cursor: pointer;
  display: inline-block;
  text-align: center;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.btn-primary-gold:hover {
  background: var(--accent-gold-dark);
  color: #FFFFFF;
}

.btn-secondary-green {
  background: var(--primary-green);
  color: #FFFFFF;
  border: none;
  font-weight: bold;
  padding: 12px 24px;
  border-radius: 4px;
  font-size: 0.9rem;
  cursor: pointer;
  display: inline-block;
  text-align: center;
  transition: background-color 0.2s ease;
}

.btn-secondary-green:hover {
  background: var(--primary-dark-green);
  color: #FFFFFF;
}

/* ==========================================================================
   PANEL D'INDICES DE SOLIDARITÉ & MÉTRIQUES
   ========================================================================== */
.metrics-panel {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  background: var(--primary-dark-green);
  color: var(--color-white);
  padding: 32px 28px;
  border-radius: 8px;
  margin: 36px 0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.metric-card {
  text-align: center;
  padding: 10px;
  border-right: 1px solid rgba(255, 255, 255, 0.15);
}

.metric-card:last-child {
  border-right: none;
}

.metric-value {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--bright-gold);
  line-height: 1.1;
  margin-bottom: 6px;
}

.metric-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ==========================================================================
   GRILLES DE CARTES D'ACTIVITÉS & HUBS
   ========================================================================== */
.cards-grid-4 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin: 28px 0 36px 0;
}

.activity-card {
  background: var(--bg-light-gray);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.activity-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.activity-card-header {
  background: var(--primary-green);
  color: var(--color-white);
  padding: 14px 20px;
  font-weight: 700;
  font-size: 1.05rem;
}

.activity-card-img-wrap {
  width: 100%;
  height: 200px;
  overflow: hidden;
  position: relative;
}

.activity-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.activity-card:hover .activity-card-img-wrap img {
  transform: scale(1.03);
}

.activity-card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.activity-card-text {
  font-size: 0.94rem;
  color: var(--text-charcoal);
  margin-bottom: 16px;
  line-height: 1.6;
}

.activity-card-footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.badge-2026 {
  background: rgba(0, 90, 54, 0.1);
  color: var(--primary-green);
  padding: 4px 8px;
  font-size: 0.76rem;
  font-weight: 700;
  border-radius: 4px;
  border: 1px solid rgba(0, 90, 54, 0.2);
}

/* Grilles génériques à 2 ou 3 colonnes */
.grid-2-cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin: 24px 0;
}

.grid-3-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 24px 0;
}

.info-card {
  background: var(--bg-light-gray);
  border: 1px solid var(--border-light);
  border-radius: 6px;
  padding: 22px;
}

.info-card-title {
  color: var(--primary-dark-green);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 6px;
}

/* ==========================================================================
   PROFILS DE GOUVERNANCE (BUREAU & STATUTS)
   ========================================================================== */
.governance-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 28px 0;
}

.governance-card {
  background: var(--bg-light-gray);
  border: 1px solid var(--border-light);
  border-top: 4px solid var(--primary-green);
  border-radius: 6px;
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.governance-role {
  color: var(--accent-gold);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.governance-name {
  color: var(--primary-dark-green);
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.governance-bio {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-charcoal);
  margin-bottom: 16px;
}

.governance-status {
  margin-top: auto;
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 0.78rem;
  color: var(--primary-dark-green);
  font-weight: 600;
}

/* ==========================================================================
   REGISTRE DOUBLE COLONNE & TABLEAUX D'OBSERVATION
   ========================================================================== */
.registry-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 24px 0;
}

.registry-box {
  background: var(--bg-light-gray);
  border: 1px solid var(--border-light);
  border-radius: 6px;
  padding: 20px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 0.9rem;
}

.data-table th, .data-table td {
  padding: 12px 14px;
  border: 1px solid var(--border-light);
  text-align: left;
}

.data-table th {
  background: var(--primary-green);
  color: var(--color-white);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
}

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

/* ==========================================================================
   FORMULAIRES STYLISÉS (CONTACT & BÉNÉVOLAT)
   ========================================================================== */
.styled-form {
  background: var(--bg-light-gray);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 30px;
  margin: 28px 0;
}

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

.form-label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: var(--primary-dark-green);
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border-light);
  border-radius: 4px;
  font-family: inherit;
  font-size: 0.95rem;
  background: #FFFFFF;
  color: var(--text-charcoal);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--primary-green);
  box-shadow: 0 0 0 3px rgba(0, 90, 54, 0.15);
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-legal-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-top: 14px;
}

/* ==========================================================================
   SIDEBAR : JOURNAL DE BORD 2026
   ========================================================================== */
.sidebar-card {
  background: var(--bg-light-gray);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 28px;
}

.sidebar-header {
  background: var(--primary-green);
  color: var(--color-white);
  padding: 14px 18px;
  font-weight: 700;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sidebar-body {
  padding: 18px;
}

.timeline-list {
  list-style: none;
  position: relative;
  padding-left: 18px;
}

.timeline-list::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 4px;
  bottom: 6px;
  width: 2px;
  background: var(--accent-gold);
}

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

.timeline-item::before {
  content: "";
  position: absolute;
  left: -18px;
  top: 5px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary-green);
  border: 2px solid var(--color-white);
}

.timeline-date {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--accent-gold);
  text-transform: uppercase;
  margin-bottom: 3px;
}

.timeline-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary-dark-green);
  line-height: 1.3;
  margin-bottom: 4px;
}

.timeline-desc {
  font-size: 0.82rem;
  color: var(--text-charcoal);
  line-height: 1.45;
}

.sidebar-meta-box {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-left: 3px solid var(--bright-gold);
  padding: 12px 14px;
  border-radius: 4px;
  margin-top: 16px;
  font-size: 0.82rem;
}

/* ==========================================================================
   PIED DE PAGE (FOOTER ARCHITECTURE)
   ========================================================================== */
.site-footer {
  background: #02472B;
  color: #FFFFFF;
  padding: 60px 30px 24px 30px;
  margin-top: 60px;
  border-top: 4px solid var(--accent-gold);
}

.footer-top {
  max-width: 1380px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-col h4 {
  color: var(--accent-gold);
  font-size: 1.05rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 18px;
}

.footer-col p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.88rem;
  line-height: 1.6;
  text-align: left;
}

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

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

.footer-nav a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.88rem;
  transition: color 0.2s ease, padding-left 0.2s ease;
  display: inline-block;
}

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

.footer-badge-box {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  padding: 14px;
  margin-top: 14px;
}

.footer-badge-box p {
  font-size: 0.8rem;
  margin-bottom: 6px;
  color: rgba(255, 255, 255, 0.75);
}

.footer-compliance-block {
  max-width: 1380px;
  margin: 30px auto 0 auto;
  padding-top: 20px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  text-align: center;
}

.footer-compliance-block a {
  color: var(--accent-gold);
  text-decoration: underline;
}

/* ==========================================================================
   MEDIA QUERIES (MOBILE RESPONSIVENESS)
   ========================================================================== */
@media (max-width: 992px) {
  .site-header {
    padding: 0 20px;
  }

  .nav-matrix {
    display: none;
    position: absolute;
    top: 75px;
    left: 0;
    right: 0;
    background: #004D2E;
    flex-direction: column;
    padding: 16px 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  }

  .nav-matrix.is-open {
    display: flex;
  }

  .nav-item {
    width: 100%;
  }

  .nav-link {
    width: 100%;
    padding: 12px 16px;
    min-height: 44px;
    font-size: 1rem;
  }

  .dropdown-menu {
    position: static;
    display: block;
    background: #013821;
    border: none;
    padding: 4px 0 8px 16px;
    box-shadow: none;
  }

  .dropdown-item a {
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 8px 12px;
  }

  .mobile-toggle {
    display: block;
  }

  .metrics-panel {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .metric-card {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding-bottom: 16px;
  }

  .metric-card:nth-child(3), .metric-card:nth-child(4) {
    border-bottom: none;
  }

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

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

@media (max-width: 768px) {
  .main-wrapper {
    flex-direction: column;
    padding: 24px 16px 50px 16px;
    gap: 30px;
  }

  .sidebar-column {
    width: 100%;
  }

  .clock-widget {
    display: none;
  }

  h1.page-title {
    font-size: 1.8rem;
  }

  .cards-grid-4, .grid-2-cols, .grid-3-cols, .registry-container, .form-row-2 {
    grid-template-columns: 1fr;
  }

  .metrics-panel {
    grid-template-columns: 1fr;
  }

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

  .site-header {
    height: 70px;
  }

  #reading-progress-bar {
    top: 70px;
  }
}
