/* ==========================================================================
   VIAS EN JAZZ — PORTAIL INSTITUTIONNEL (LOI 1901)
   Feuille de styles officielle conforme aux normes d'accessibilité & responsive
   ========================================================================== */

:root {
  --primary-green: #005A36;
  --primary-green-dark: #02472B;
  --accent-gold: #A68244;
  --accent-gold-dark: #9E7D3B;
  --accent-orange: #D97706;
  --accent-orange-hover: #C87A00;
  --bg-light-gray: #F4F5F4;
  --bg-light-gray-alt: #EFEFEF;
  --white: #FFFFFF;
  --text-charcoal: #1C1A17;
  --text-muted: #4A4844;
  --border-subtle: #D8DDD6;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-serif: 'Georgia', 'Cambria', 'Times New Roman', serif;
}

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

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

body {
  font-family: var(--font-sans);
  background-color: #FAFAFA;
  color: var(--text-charcoal);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Dynamic Reading 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;
}

/* ==========================================================================
   HEADER ARCHITECTURE
   ========================================================================== */

.site-header {
  background: var(--primary-green);
  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-block {
  display: flex;
  align-items: center;
  gap: 15px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--white);
}

.brand-icon {
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.12);
  border: 1.5px solid var(--accent-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-gold);
  font-weight: 800;
  font-size: 1.1rem;
}

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

.brand-title {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--white);
  line-height: 1.2;
}

.brand-tagline {
  font-size: 0.72rem;
  color: #D1E7DD;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Clock Widget Spec */
.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: 44px;
  height: 44px;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.3));
}

.dual-time-stack {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.time-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 0.68rem;
  color: #D1E7DD;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.time-label {
  font-weight: 700;
  color: var(--accent-gold);
  text-transform: uppercase;
  font-size: 0.62rem;
}

.time-value {
  font-family: monospace;
  font-weight: 600;
  color: var(--white);
  font-size: 0.75rem;
}

/* Header Right Block & Navigation */
.header-right-block {
  display: flex;
  align-items: center;
  gap: 20px;
}

.main-nav {
  display: flex;
  align-items: center;
}

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

.nav-item {
  position: relative;
}

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

.nav-link:hover, .nav-link:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  color: #FFECC7;
}

.dropdown-arrow {
  font-size: 0.65rem;
  opacity: 0.8;
  transition: transform 0.2s ease;
}

/* Dropdown Menu */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--primary-green-dark);
  min-width: 240px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  list-style: none;
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 1001;
}

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

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

.dropdown-link {
  display: block;
  padding: 10px 20px;
  color: #E2E8F0;
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 500;
  border-left: 3px solid transparent;
  transition: all 0.15s ease;
}

.dropdown-link:hover, .dropdown-link:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  border-left-color: var(--accent-gold);
  color: var(--white);
  padding-left: 24px;
}

/* Header High-Priority CTA */
.header-cta-btn {
  background: var(--accent-orange);
  color: var(--white);
  padding: 12px 24px;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  box-shadow: 0 2px 6px rgba(217, 119, 6, 0.3);
  transition: background-color 0.2s ease, transform 0.1s ease;
  white-space: nowrap;
}

.header-cta-btn:hover {
  background: var(--accent-orange-hover);
  transform: translateY(-1px);
}

/* Mobile Hamburger Toggle */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--white);
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 1.25rem;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
}

/* ==========================================================================
   LAYOUT, CONTAINERS & SIDEBAR STRUCTURE
   ========================================================================== */

.page-wrapper {
  max-width: 1280px;
  margin: 0 auto;
  padding: 30px 20px 60px;
  width: 100%;
}

.layout-with-sidebar {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 36px;
  align-items: start;
}

.main-content-column {
  min-width: 0;
}

/* Hero Section */
.page-hero {
  background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-dark) 100%);
  color: var(--white);
  padding: 48px 36px;
  border-radius: 8px;
  margin-bottom: 36px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 90, 54, 0.15);
}

.page-hero::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 40%;
  background: radial-gradient(circle, rgba(166, 130, 68, 0.12) 0%, rgba(0,0,0,0) 70%);
  pointer-events: none;
}

.hero-meta-badge {
  display: inline-block;
  background: rgba(166, 130, 68, 0.2);
  border: 1px solid var(--accent-gold);
  color: #FFE6A8;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.page-hero h1 {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 16px;
  color: var(--white);
}

.hero-intro-summary {
  font-size: 1.12rem;
  line-height: 1.7;
  color: #E6F3ED;
  max-width: 820px;
}

/* Institutional Mission Box */
.mission-callout-box {
  background: var(--bg-light-gray);
  border-left: 5px solid var(--primary-green);
  border-radius: 0 8px 8px 0;
  padding: 24px 28px;
  margin: 30px 0;
}

.mission-callout-box h3 {
  color: var(--primary-green-dark);
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.mission-callout-box p {
  color: var(--text-charcoal);
  font-size: 0.98rem;
  line-height: 1.7;
}

/* Standard Buttons */
.btn-primary-gold {
  display: inline-block;
  background: var(--accent-gold);
  color: var(--white);
  border: none;
  font-weight: bold;
  padding: 12px 24px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.btn-primary-gold:hover {
  background: var(--accent-gold-dark);
  color: var(--white);
  transform: translateY(-1px);
}

.btn-orange-cta {
  display: inline-block;
  background: var(--accent-orange);
  color: var(--white);
  border: none;
  font-weight: bold;
  padding: 12px 24px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

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

/* Content Blocks & Typography */
.content-article {
  background: var(--white);
  padding: 36px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  margin-bottom: 30px;
}

.content-article h2 {
  color: var(--primary-green-dark);
  font-size: 1.55rem;
  font-weight: 800;
  margin: 32px 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--bg-light-gray-alt);
}

.content-article h2:first-of-type {
  margin-top: 0;
}

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

.content-article p {
  margin-bottom: 18px;
  font-size: 1rem;
  color: var(--text-charcoal);
}

.content-article ul, .content-article ol {
  margin: 16px 0 24px 24px;
  color: var(--text-charcoal);
}

.content-article li {
  margin-bottom: 10px;
  line-height: 1.6;
}

/* Images & Figures */
.featured-image-wrapper {
  margin: 28px 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
}

.featured-image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Grid Components */
.grid-2-col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin: 28px 0;
}

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

.grid-4-col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin: 28px 0;
}

/* Cards */
.custom-card {
  background: var(--white);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.custom-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.custom-card-header {
  color: var(--primary-green-dark);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.custom-card-badge {
  display: inline-block;
  align-self: flex-start;
  background: var(--bg-light-gray);
  color: var(--primary-green);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 12px;
}

.custom-card p {
  font-size: 0.94rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 18px;
  flex-grow: 1;
}

/* Solidarity Metrics Panel */
.metrics-panel {
  background: var(--primary-green-dark);
  color: var(--white);
  border-radius: 8px;
  padding: 36px 30px;
  margin: 36px 0;
}

.metrics-title {
  text-align: center;
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 28px;
  color: var(--accent-gold);
}

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

.metric-node {
  padding: 16px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.metric-number {
  font-size: 2rem;
  font-weight: 900;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 8px;
}

.metric-label {
  font-size: 0.85rem;
  color: #D1E7DD;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

/* ==========================================================================
   SIDEBAR: JOURNAL DE BORD 2026
   ========================================================================== */

.sidebar-container {
  background: var(--bg-light-gray);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}

.sidebar-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary-green-dark);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent-gold);
  display: flex;
  align-items: center;
  gap: 8px;
}

.sidebar-section {
  margin-bottom: 26px;
}

.sidebar-section:last-child {
  margin-bottom: 0;
}

.sidebar-subtitle {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--primary-green);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.journal-log-entry {
  background: var(--white);
  border-left: 3px solid var(--accent-gold);
  padding: 12px 14px;
  border-radius: 0 4px 4px 0;
  margin-bottom: 12px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.journal-log-date {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--accent-orange);
  margin-bottom: 4px;
}

.journal-log-heading {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-charcoal);
  margin-bottom: 4px;
}

.journal-log-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.sidebar-info-box {
  background: var(--white);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 16px;
  margin-top: 14px;
}

.sidebar-info-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--text-muted);
}

.sidebar-info-val {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary-green-dark);
  margin-bottom: 8px;
}

/* ==========================================================================
   FORMS & INSTITUTIONAL INPUTS
   ========================================================================== */

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

.institutional-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-charcoal);
  margin-bottom: 6px;
}

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

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

/* ==========================================================================
   FOOTER ARCHITECTURE
   ========================================================================== */

.site-footer {
  background: var(--primary-green-dark);
  color: var(--white);
  margin-top: auto;
  border-top: 4px solid var(--accent-gold);
}

.footer-top-grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: 60px 20px 40px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
}

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

.footer-col p {
  color: #E2E8F0;
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 12px;
}

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

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

.footer-nav-list a {
  color: #CBD5E1;
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.15s ease, padding-left 0.15s ease;
}

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

.footer-compliance-box {
  background: rgba(0, 0, 0, 0.25);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 24px 20px;
}

.footer-compliance-content {
  max-width: 1280px;
  margin: 0 auto;
  font-size: 0.82rem;
  color: #CBD5E1;
  line-height: 1.6;
  text-align: center;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS (992px & 768px)
   ========================================================================== */

@media (max-width: 992px) {
  .site-header {
    padding: 0 20px;
  }
  
  .layout-with-sidebar {
    grid-template-columns: 1fr;
  }
  
  .sidebar-container {
    margin-top: 30px;
  }
  
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-top-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .site-header {
    height: auto;
    min-height: 75px;
    padding: 12px 16px;
    flex-wrap: wrap;
  }
  
  #reading-progress-bar {
    top: 75px;
  }
  
  .header-left-block {
    width: 100%;
    justify-content: space-between;
  }
  
  .clock-widget {
    margin-left: auto;
  }
  
  .mobile-nav-toggle {
    display: block;
  }
  
  .header-right-block {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    margin-top: 10px;
  }
  
  .header-right-block.is-active {
    display: flex;
  }
  
  .main-nav {
    width: 100%;
  }
  
  .nav-list {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 4px;
  }
  
  .nav-link {
    padding: 12px 14px;
    min-height: 44px;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.05);
  }
  
  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: rgba(0, 0, 0, 0.2);
    box-shadow: none;
    border: none;
    border-left: 2px solid var(--accent-gold);
    border-radius: 0;
    margin-left: 12px;
    display: none;
  }
  
  .nav-item.mobile-open .dropdown-menu {
    display: block;
  }
  
  .dropdown-link {
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  
  .header-cta-btn {
    text-align: center;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 12px;
  }
  
  .page-hero {
    padding: 32px 20px;
  }
  
  .page-hero h1 {
    font-size: 1.65rem;
  }
  
  .grid-2-col, .grid-3-col, .grid-4-col {
    grid-template-columns: 1fr;
  }
  
  .metrics-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-top-grid {
    grid-template-columns: 1fr;
  }
}
