/* ==========================================================================
   MONTPELLIER CUBA SOLIDARITÉ - FEUILLE DE STYLE OFFICIELLE 2026
   Association Loi 1901 - RNA : W343003968 | SIREN : 488098849
   ========================================================================== */

:root {
  --spruce-green: #005A36;
  --spruce-dark: #02472B;
  --metallic-gold: #A68244;
  --gold-hover: #9E7D3B;
  --bright-gold: #D97706;
  --bright-gold-hover: #C87A00;
  --bg-light: #F4F5F4;
  --bg-alt: #EFEFEF;
  --white: #FFFFFF;
  --charcoal: #1C1A17;
  --charcoal-soft: #222222;
  --border-color: #E2E5E2;
  --border-dark: rgba(255, 255, 255, 0.15);
  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.08);
  --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
}

/* Reset et styles de base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

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

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
}

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

a:hover, a:focus {
  color: var(--metallic-gold);
}

/* Barre de progression de lecture */
#reading-progress-bar {
  background: var(--metallic-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 */
.site-header {
  background: var(--spruce-green);
  position: sticky;
  top: 0;
  z-index: 1000;
  height: 75px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
  box-shadow: var(--shadow-md);
}

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

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

.brand-logo-emblem {
  width: 44px;
  height: 44px;
  background: var(--spruce-dark);
  border: 2px solid var(--metallic-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 1px;
}

.brand-title-wrap {
  display: flex;
  flex-direction: column;
}

.brand-name {
  color: var(--white);
  font-size: 1.05rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.2;
}

.brand-sub {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.75rem;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  font-weight: 600;
}

/* Widget Horloge Analogique & Double Heure Numérique */
.clock-widget-badge {
  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: 42px;
  height: 42px;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

.analog-clock-face {
  fill: var(--spruce-dark);
  stroke: var(--metallic-gold);
  stroke-width: 2;
}

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

.clock-hand-hour {
  stroke: var(--white);
  stroke-width: 2.5;
  stroke-linecap: round;
  transform-origin: 20px 20px;
}

.clock-hand-minute {
  stroke: var(--metallic-gold);
  stroke-width: 1.8;
  stroke-linecap: round;
  transform-origin: 20px 20px;
}

.clock-hand-second {
  stroke: var(--bright-gold);
  stroke-width: 1;
  stroke-linecap: round;
  transform-origin: 20px 20px;
}

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

.time-row {
  display: flex;
  align-items: center;
  gap: 6px;
  line-height: 1.1;
}

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

.time-value {
  color: var(--white);
  font-size: 0.75rem;
  font-family: monospace;
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* Navigation Principale */
.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

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

.nav-item {
  position: relative;
}

.nav-link {
  color: var(--white);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 10px 14px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 5px;
  min-height: 44px;
  min-width: 44px;
  white-space: nowrap;
}

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

.caret-icon {
  font-size: 0.7rem;
  opacity: 0.8;
  transition: transform 0.2s ease;
}

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

/* Sous-menus déroulants */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--spruce-dark);
  border: 1px solid rgba(166, 130, 68, 0.4);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  border-radius: 4px;
  list-style: none;
  min-width: 240px;
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s ease;
  z-index: 1050;
}

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

.dropdown-link {
  display: block;
  padding: 10px 18px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1.4;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.dropdown-link:hover, .dropdown-link:focus {
  background: rgba(166, 130, 68, 0.25);
  color: var(--white);
  padding-left: 22px;
}

/* Boutons d'Action (CTAs) */
.btn-cta-gold {
  background: var(--bright-gold);
  color: var(--white) !important;
  padding: 12px 24px;
  font-weight: bold;
  text-transform: uppercase;
  border-radius: 4px;
  font-size: 0.85rem;
  letter-spacing: 0.8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  min-height: 44px;
  min-width: 44px;
  transition: background 0.2s ease, transform 0.1s ease;
}

.btn-cta-gold:hover, .btn-cta-gold:focus {
  background: var(--bright-gold-hover);
  transform: translateY(-1px);
}

.btn-cta-metallic {
  background: var(--metallic-gold);
  color: var(--white) !important;
  border: none;
  font-weight: bold;
  padding: 12px 24px;
  border-radius: 4px;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  min-height: 44px;
  min-width: 44px;
  transition: background 0.2s ease, transform 0.1s ease;
}

.btn-cta-metallic:hover, .btn-cta-metallic:focus {
  background: var(--gold-hover);
  transform: translateY(-1px);
}

.btn-cta-outline {
  background: transparent;
  color: var(--white) !important;
  border: 2px solid var(--metallic-gold);
  font-weight: bold;
  padding: 10px 22px;
  border-radius: 4px;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  min-height: 44px;
  min-width: 44px;
  transition: all 0.2s ease;
}

.btn-cta-outline:hover, .btn-cta-outline:focus {
  background: var(--metallic-gold);
  color: var(--white) !important;
}

/* Menu Burger Mobile */
.mobile-nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--white);
  padding: 8px;
  border-radius: 4px;
  font-size: 1.5rem;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}

/* Structure Principale & Grille de Mise en Page */
.page-wrapper {
  flex: 1;
  width: 100%;
}

.container-main {
  max-width: 1240px;
  margin: 0 auto;
  padding: 40px 20px;
}

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

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

.sidebar-column {
  position: sticky;
  top: 95px;
}

/* Bannière Hero Institutionnelle */
.hero-banner-section {
  background: linear-gradient(135deg, var(--spruce-dark) 0%, var(--spruce-green) 100%);
  color: var(--white);
  padding: 60px 0;
  position: relative;
  overflow: hidden;
  border-bottom: 4px solid var(--metallic-gold);
}

.hero-grid {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
}

.hero-badge-tag {
  display: inline-block;
  background: rgba(166, 130, 68, 0.25);
  border: 1px solid var(--metallic-gold);
  color: var(--white);
  padding: 6px 14px;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.hero-headline {
  font-size: 2.3rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 18px;
  color: var(--white);
}

.hero-summary-direct {
  font-size: 1.12rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 24px;
}

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

.hero-image-wrap {
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
  border: 3px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  overflow: hidden;
}

/* Boîte Institutionnelle et d'Engagement */
.institutional-mission-box {
  background: var(--bg-light);
  border-left: 5px solid var(--spruce-green);
  border-top: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 28px 32px;
  border-radius: 0 8px 8px 0;
  margin: 32px 0;
}

.institutional-mission-box h3 {
  color: var(--spruce-dark);
  font-size: 1.3rem;
  margin-bottom: 14px;
  font-weight: 700;
}

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

/* Grilles de Cartes d'Activités */
.cards-grid-4 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin: 36px 0;
}

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

.activity-preview-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--metallic-gold);
}

.card-image-box {
  height: 210px;
  overflow: hidden;
}

.card-image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  transition: transform 0.3s ease;
}

.activity-preview-card:hover .card-image-box img {
  transform: scale(1.03);
}

.card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-category-badge {
  color: var(--spruce-green);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 8px;
}

.card-title {
  color: var(--spruce-dark);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.3;
}

.card-text {
  color: var(--charcoal);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 20px;
  flex: 1;
}

.card-footer-cta {
  margin-top: auto;
}

/* Métriques & Indice de Solidarité */
.solidarity-index-panel {
  background: var(--spruce-green);
  color: var(--white);
  padding: 40px;
  border-radius: 8px;
  margin: 40px 0;
  box-shadow: var(--shadow-md);
  border-bottom: 4px solid var(--metallic-gold);
}

.solidarity-panel-header {
  text-align: center;
  margin-bottom: 30px;
}

.solidarity-panel-header h2 {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 8px;
}

.solidarity-panel-header p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
}

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

.metric-card {
  background: rgba(2, 71, 43, 0.6);
  border: 1px solid rgba(166, 130, 68, 0.4);
  padding: 22px 14px;
  border-radius: 6px;
}

.metric-number {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--bright-gold);
  margin-bottom: 6px;
  font-family: monospace;
}

.metric-title {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--white);
}

/* Hub des Opportunités de Bénévolat */
.volunteer-hub-container {
  background: var(--bg-light);
  border-radius: 8px;
  padding: 36px;
  margin: 40px 0;
  border: 1px solid var(--border-color);
}

.volunteer-roles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 24px;
}

.volunteer-role-item {
  background: var(--white);
  padding: 22px;
  border-radius: 6px;
  border: 1px solid var(--border-color);
}

.volunteer-role-item h4 {
  color: var(--spruce-dark);
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.volunteer-meta-tag {
  display: inline-block;
  background: var(--bg-alt);
  color: var(--spruce-green);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 4px;
  margin-bottom: 12px;
}

/* Sidebar "Journal de Bord 2026" */
.sidebar-box {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.sidebar-box-header {
  border-bottom: 2px solid var(--spruce-green);
  padding-bottom: 12px;
  margin-bottom: 18px;
}

.sidebar-box-header h3 {
  color: var(--spruce-dark);
  font-size: 1.15rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.sidebar-log-list {
  list-style: none;
}

.sidebar-log-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
}

.sidebar-log-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.sidebar-log-date {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--metallic-gold);
  text-transform: uppercase;
  display: block;
  margin-bottom: 4px;
}

.sidebar-log-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--charcoal);
  line-height: 1.4;
  margin-bottom: 4px;
}

.sidebar-log-desc {
  font-size: 0.82rem;
  color: #555555;
  line-height: 1.5;
}

.sidebar-cta-card {
  background: var(--spruce-dark);
  color: var(--white);
  padding: 24px;
  border-radius: 8px;
  text-align: center;
  border-top: 4px solid var(--bright-gold);
}

.sidebar-cta-card h4 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--white);
}

.sidebar-cta-card p {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 18px;
  line-height: 1.5;
}

/* Sections de Contenu Institutionnel Riches */
.article-section {
  margin-bottom: 36px;
}

.article-section h2 {
  color: var(--spruce-dark);
  font-size: 1.65rem;
  font-weight: 800;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border-color);
}

.article-section h3 {
  color: var(--spruce-green);
  font-size: 1.3rem;
  font-weight: 700;
  margin: 22px 0 12px;
}

.article-section p {
  margin-bottom: 18px;
  font-size: 1.02rem;
  line-height: 1.75;
}

.article-section ul, .article-section ol {
  margin: 16px 0 24px 24px;
}

.article-section li {
  margin-bottom: 10px;
  font-size: 1rem;
  line-height: 1.6;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  background: var(--white);
}

.data-table th, .data-table td {
  border: 1px solid var(--border-color);
  padding: 12px 16px;
  text-align: left;
  font-size: 0.92rem;
}

.data-table th {
  background: var(--bg-light);
  color: var(--spruce-dark);
  font-weight: 700;
}

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

/* Formulaires Institutionnels */
.form-container-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 32px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 36px;
}

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

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

.form-control {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

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

/* Pied de Page Institutionnel */
.site-footer {
  background: var(--spruce-dark);
  color: var(--white);
  padding: 60px 0 24px;
  margin-top: auto;
  border-top: 4px solid var(--metallic-gold);
}

.footer-main-grid {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px 40px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 36px;
}

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

.footer-col p {
  color: rgba(255, 255, 255, 0.82);
  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: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  display: inline-block;
  min-height: 32px;
  line-height: 32px;
}

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

.footer-compliance-row {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  max-width: 1240px;
  margin: 0 auto;
  padding: 24px 20px 0;
  text-align: center;
}

.footer-compliance-text {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.8rem;
  line-height: 1.7;
}

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

@media (max-width: 992px) {
  .site-header {
    padding: 0 16px;
  }

  .brand-name {
    font-size: 0.95rem;
  }

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

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

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

  .layout-with-sidebar {
    grid-template-columns: 1fr;
  }

  .sidebar-column {
    position: static;
  }

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

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

@media (max-width: 768px) {
  .site-header {
    height: 70px;
    padding: 0 14px;
  }

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

  .brand-title-wrap {
    display: none;
  }

  .clock-widget-badge {
    margin-left: 8px;
    padding-left: 8px;
  }

  .time-label {
    display: none;
  }

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

  .header-right {
    gap: 8px;
  }

  /* Menu déroulant responsive plein écran / coulissant */
  .nav-menu-list {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 85%;
    max-width: 360px;
    height: calc(100vh - 70px);
    background: var(--spruce-dark);
    flex-direction: column;
    align-items: stretch;
    padding: 20px;
    overflow-y: auto;
    transition: left 0.3s ease;
    box-shadow: 4px 0 16px rgba(0, 0, 0, 0.4);
    z-index: 9999;
  }

  .nav-menu-list.active {
    left: 0;
  }

  .nav-item {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav-link {
    width: 100%;
    justify-content: space-between;
    padding: 14px 8px;
    font-size: 1rem;
    min-height: 48px;
  }

  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: rgba(0, 0, 0, 0.2);
    border: none;
    box-shadow: none;
    padding: 0 0 10px 14px;
    display: none;
  }

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

  .dropdown-link {
    min-height: 44px;
    padding: 10px 12px;
  }

  .btn-cta-gold {
    padding: 8px 14px;
    font-size: 0.78rem;
  }

  .hero-headline {
    font-size: 1.7rem;
  }

  .hero-summary-direct {
    font-size: 1rem;
  }

  .cards-grid-4,
  .volunteer-roles-grid,
  .metrics-row,
  .footer-main-grid {
    grid-template-columns: 1fr;
  }

  .solidarity-index-panel {
    padding: 24px 16px;
  }

  .container-main {
    padding: 24px 14px;
  }
}
