/* ==========================================================================
   ACTAPAH - SYSTÈME VISUEL ET ARCHITECTURAL NÉO-BRUTALISTE DATA-CARD
   Association Loi 1901 - Montpellier (Hérault)
   Couleurs : Ardoise (#2F4F4F), Orange Brûlé (#CC5500), Crème (#FFFDD0), Fusain (#1C1A17)
   ========================================================================== */

:root {
  --color-slate: #2F4F4F;
  --color-orange: #CC5500;
  --color-cream: #FFFDD0;
  --color-charcoal: #1C1A17;
  --color-white: #FFFFFF;
  --color-card-bg: #FCFBF4;
  --color-border: #2F4F4F;
  --color-muted: #536262;
  --color-tint: #F2EFC7;
  --shadow-neo: 4px 4px 0px #2F4F4F;
  --shadow-neo-lg: 6px 6px 0px #2F4F4F;
  --shadow-neo-sm: 2px 2px 0px #2F4F4F;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--color-cream);
  color: var(--color-charcoal);
  font-family: var(--font-sans);
  line-height: 1.65;
}

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

/* ==========================================================================
   EN-TÊTE LOGBOOK STICKY & BARRE DE PROGRESSION
   ========================================================================== */

.sticky-logbook-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--color-slate);
  color: var(--color-cream);
  border-bottom: 2px solid var(--color-charcoal);
  width: 100%;
}

.reading-progress-bar {
  position: sticky;
  top: 60px;
  left: 0;
  width: 0%;
  height: 4px;
  background-color: var(--color-orange);
  z-index: 1001;
  transition: width 0.1s ease-out;
}

.header-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logbook {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--color-cream);
}

.brand-sigle {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 1px;
  background-color: var(--color-orange);
  color: var(--color-white);
  padding: 0.2rem 0.6rem;
  border: 1px solid var(--color-cream);
  border-radius: 2px;
}

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

.brand-title {
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-cream);
  line-height: 1.2;
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--color-tint);
  opacity: 0.9;
}

/* ==========================================================================
   NAVIGATION PRINCIPALE & DROPDOWNS MATRICE
   ========================================================================== */

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

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

.nav-item {
  position: relative;
}

.nav-button {
  background: transparent;
  color: var(--color-cream);
  border: 1px solid transparent;
  padding: 0.5rem 0.85rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.15s ease;
  border-radius: 2px;
  min-height: 44px;
}

.nav-button:hover,
.nav-item:hover .nav-button,
.nav-button:focus {
  background-color: var(--color-orange);
  color: var(--color-white);
  border-color: var(--color-cream);
}

.dropdown-matrix {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  background-color: var(--color-card-bg);
  border: 2px solid var(--color-slate);
  box-shadow: var(--shadow-neo);
  list-style: none;
  display: none;
  padding: 0.5rem 0;
  z-index: 1050;
}

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

.dropdown-matrix li a {
  display: block;
  padding: 0.65rem 1.25rem;
  color: var(--color-charcoal);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  border-bottom: 1px dashed rgba(47, 79, 79, 0.2);
  min-height: 44px;
  display: flex;
  align-items: center;
  transition: background 0.15s ease, color 0.15s ease;
}

.dropdown-matrix li:last-child a {
  border-bottom: none;
}

.dropdown-matrix li a:hover,
.dropdown-matrix li a:focus {
  background-color: var(--color-orange);
  color: var(--color-white);
  padding-left: 1.5rem;
}

.btn-nav-cta {
  background-color: var(--color-orange);
  color: var(--color-white);
  text-decoration: none;
  padding: 0.45rem 0.9rem;
  font-weight: 700;
  font-size: 0.85rem;
  border: 1px solid var(--color-cream);
  box-shadow: 2px 2px 0px var(--color-charcoal);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.btn-nav-cta:hover {
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0px var(--color-charcoal);
  background-color: #B84700;
}

.mobile-nav-toggle {
  display: none;
  background: var(--color-orange);
  color: var(--color-white);
  border: 1px solid var(--color-cream);
  padding: 0.5rem 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  cursor: pointer;
  min-height: 44px;
  min-width: 44px;
}

/* ==========================================================================
   LAYOUT GÉNÉRAL, CONTENEURS & GRILLES
   ========================================================================== */

.page-wrapper {
  flex: 1 0 auto;
  max-width: 1300px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  width: 100%;
}

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

.single-column-layout {
  max-width: 1040px;
  margin: 0 auto;
}

/* ==========================================================================
   COMPOSANTS NÉO-BRUTALISTES & CARTES DATA
   ========================================================================== */

.neo-card {
  background-color: var(--color-white);
  border: 2px solid var(--color-slate);
  box-shadow: var(--shadow-neo);
  padding: 1.75rem;
  margin-bottom: 2rem;
  border-radius: 2px;
}

.neo-card-tinted {
  background-color: var(--color-tint);
  border: 2px solid var(--color-slate);
  box-shadow: var(--shadow-neo);
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.badge-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.25rem 0.5rem;
  background-color: var(--color-slate);
  color: var(--color-cream);
  margin-bottom: 0.75rem;
  border: 1px solid var(--color-slate);
}

.badge-tag-orange {
  background-color: var(--color-orange);
  color: var(--color-white);
  border-color: var(--color-orange);
}

.section-title {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--color-slate);
  margin-bottom: 1.25rem;
  line-height: 1.25;
  border-bottom: 3px solid var(--color-orange);
  padding-bottom: 0.5rem;
}

.page-title {
  font-size: 2.25rem;
  font-weight: 900;
  color: var(--color-slate);
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.lead-paragraph {
  font-size: 1.12rem;
  font-weight: 500;
  color: var(--color-charcoal);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

/* ==========================================================================
   HERO BANNER ACCUEIL & ÉLÉMENTS SPÉCIFIQUES
   ========================================================================== */

.hero-banner-container {
  border: 2px solid var(--color-slate);
  box-shadow: var(--shadow-neo-lg);
  background-color: var(--color-white);
  margin-bottom: 2.5rem;
  overflow: hidden;
}

.hero-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 480px;
  overflow: hidden;
  background-color: var(--color-slate);
}

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

.hero-content-block {
  padding: 2rem;
  background-color: var(--color-card-bg);
  border-top: 2px solid var(--color-slate);
}

.hero-headline {
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--color-slate);
  margin-bottom: 1rem;
  line-height: 1.2;
}

/* Résumé 2 phrases obligatoire sous le hero banner */
.summary-2-sentence-box {
  background-color: var(--color-white);
  border: 2px solid var(--color-orange);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  border-left: 6px solid var(--color-orange);
}

.summary-2-sentence-box p {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-charcoal);
  line-height: 1.6;
}

/* Panneau de métriques de solidarité */
.metrics-panel-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 2rem 0;
}

.metric-card {
  background-color: var(--color-slate);
  color: var(--color-cream);
  border: 2px solid var(--color-charcoal);
  box-shadow: var(--shadow-neo-sm);
  padding: 1.25rem 1rem;
  text-align: center;
}

.metric-number {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 900;
  color: var(--color-orange);
  line-height: 1.1;
  margin-bottom: 0.35rem;
}

.metric-label {
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.3;
}

/* Grille de 4 cartes d'activités pour index */
.activity-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
  margin: 2rem 0;
}

.activity-card {
  background-color: var(--color-white);
  border: 2px solid var(--color-slate);
  box-shadow: var(--shadow-neo);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.activity-card-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  border-bottom: 2px solid var(--color-slate);
}

.activity-card-body {
  padding: 1.5rem;
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.activity-card-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-slate);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.activity-card-desc {
  font-size: 0.95rem;
  color: var(--color-charcoal);
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

.btn-card-link {
  align-self: flex-start;
  background-color: var(--color-slate);
  color: var(--color-cream);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--color-slate);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  transition: all 0.15s ease;
}

.btn-card-link:hover {
  background-color: var(--color-orange);
  color: var(--color-white);
  border-color: var(--color-orange);
}

/* Boîte de transparence financière et d'utilité publique */
.transparency-box {
  background-color: var(--color-card-bg);
  border: 2px solid var(--color-slate);
  border-left: 8px solid var(--color-slate);
  padding: 1.5rem 1.75rem;
  margin: 2rem 0;
}

.transparency-box h4 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-slate);
  margin-bottom: 0.5rem;
}

.transparency-box p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--color-charcoal);
}

/* ==========================================================================
   IMAGES STANDARDS DANS LES ARTICLES & CONTENUS
   ========================================================================== */

.content-image-wrapper {
  margin: 2rem 0;
  border: 2px solid var(--color-slate);
  box-shadow: var(--shadow-neo);
  background-color: var(--color-white);
  overflow: hidden;
}

.content-image-wrapper img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

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

.sidebar-journal-2026 {
  background-color: var(--color-card-bg);
  border: 2px solid var(--color-slate);
  box-shadow: var(--shadow-neo);
  padding: 1.5rem;
  position: sticky;
  top: 80px;
}

.sidebar-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-slate);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-orange);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.journal-timeline {
  list-style: none;
  position: relative;
  padding-left: 1rem;
}

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

.journal-node {
  position: relative;
  margin-bottom: 1.5rem;
  padding-left: 1rem;
}

.journal-node::before {
  content: "";
  position: absolute;
  left: -1rem;
  top: 4px;
  width: 8px;
  height: 8px;
  background-color: var(--color-orange);
  border: 2px solid var(--color-slate);
  border-radius: 50%;
}

.journal-date {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-orange);
  display: block;
}

.journal-event-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-slate);
  margin: 0.15rem 0;
}

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

.sidebar-cta-box {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px dashed rgba(47, 79, 79, 0.3);
}

.sidebar-cta-btn {
  display: block;
  text-align: center;
  background-color: var(--color-orange);
  color: var(--color-white);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.65rem 1rem;
  border: 1px solid var(--color-charcoal);
  box-shadow: 2px 2px 0px var(--color-charcoal);
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sidebar-cta-btn:hover {
  background-color: #B84700;
}

/* ==========================================================================
   TABLEAUX DE DONNÉES & CALENDRIERS 2026
   ========================================================================== */

.data-table-container {
  overflow-x: auto;
  margin: 2rem 0;
  border: 2px solid var(--color-slate);
  box-shadow: var(--shadow-neo-sm);
  background: var(--color-white);
}

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

.data-table th {
  background-color: var(--color-slate);
  color: var(--color-cream);
  padding: 0.85rem 1rem;
  font-weight: 700;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid var(--color-charcoal);
}

.data-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid #E2DFC8;
  color: var(--color-charcoal);
}

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

.data-table tr:hover {
  background-color: var(--color-tint);
}

/* ==========================================================================
   FORMULAIRE DE CONTACT & BOUTONS
   ========================================================================== */

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-slate);
  margin-bottom: 0.35rem;
  font-family: var(--font-mono);
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--color-slate);
  background-color: var(--color-white);
  color: var(--color-charcoal);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  border-radius: 2px;
}

.form-control:focus {
  outline: none;
  border-color: var(--color-orange);
  box-shadow: 0 0 0 2px rgba(204, 85, 0, 0.25);
}

.btn-submit-neo {
  background-color: var(--color-orange);
  color: var(--color-white);
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.75rem 1.75rem;
  border: 2px solid var(--color-charcoal);
  box-shadow: 3px 3px 0px var(--color-charcoal);
  cursor: pointer;
  min-height: 48px;
  min-width: 160px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.1s ease;
}

.btn-submit-neo:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0px var(--color-charcoal);
  background-color: #B84700;
}

/* ==========================================================================
   PIED DE PAGE INSTITUTIONNEL & MENTIONS LÉGALES
   ========================================================================== */

.institutional-footer {
  flex-shrink: 0;
  background-color: var(--color-slate);
  color: var(--color-cream);
  border-top: 3px solid var(--color-orange);
  padding: 3rem 1.5rem 2rem;
  font-size: 0.9rem;
}

.footer-container {
  max-width: 1300px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-column h4 {
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-cream);
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--color-orange);
  padding-bottom: 0.4rem;
  display: inline-block;
}

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

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links li a {
  color: var(--color-cream);
  text-decoration: none;
  opacity: 0.9;
  transition: opacity 0.15s ease, color 0.15s ease;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.footer-links li a:hover {
  opacity: 1;
  color: var(--color-orange);
  text-decoration: underline;
}

.footer-compliance-block {
  background-color: rgba(28, 26, 23, 0.4);
  border: 1px solid rgba(255, 253, 208, 0.2);
  padding: 1.5rem;
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--color-cream);
  margin-top: 2rem;
  border-left: 4px solid var(--color-orange);
}

.footer-compliance-block p {
  margin-bottom: 0.5rem;
}

.footer-compliance-block p:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   RÉPONSIVITÉ MOBILE & TABLETTES (STRICT REQUIREMENTS)
   ========================================================================== */

@media (max-width: 992px) {
  .layout-grid-with-sidebar {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .sidebar-journal-2026 {
    position: static;
    margin-top: 2rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

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

  .activity-cards-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .header-container {
    height: auto;
    padding: 0.75rem 1rem;
    flex-wrap: wrap;
  }

  .reading-progress-bar {
    top: 54px;
  }

  .mobile-nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-desktop {
    display: none;
    width: 100%;
    flex-direction: column;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 253, 208, 0.2);
  }

  .nav-desktop.active {
    display: flex;
  }

  .nav-menu {
    flex-direction: column;
    width: 100%;
    gap: 0.5rem;
  }

  .nav-item {
    width: 100%;
  }

  .nav-button {
    width: 100%;
    justify-content: space-between;
    background-color: rgba(255, 253, 208, 0.05);
  }

  .dropdown-matrix {
    position: static;
    width: 100%;
    box-shadow: none;
    border-width: 1px;
    margin-top: 0.25rem;
    margin-bottom: 0.5rem;
  }

  .btn-nav-cta {
    width: 100%;
    justify-content: center;
    margin-top: 0.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

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

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

  .page-title {
    font-size: 1.75rem;
  }

  .section-title {
    font-size: 1.4rem;
  }
}
