/* ==========================================================================
   ART SCIENCE PENSEE - Association Loi 1901 - Charte Graphique Officielle 2026
   Siège social : Château de Mouans-Sartoux, Rue du Château, 06370 Mouans-Sartoux
   RNA : W061000789 | SIREN : 398660217
   ========================================================================== */

:root {
  --spruce-green: #005A36;
  --spruce-green-dark: #02472B;
  --accent-gold: #A68244;
  --accent-gold-dark: #9E7D3B;
  --bright-gold: #D97706;
  --bright-gold-hover: #C87A00;
  --bg-light-gray: #F4F5F4;
  --card-light-gray: #EFEFEF;
  --pure-white: #FFFFFF;
  --charcoal-text: #1C1A17;
  --charcoal-muted: #3D3A35;
  --border-light: #D8DDD6;
  --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --header-height: 75px;
}

*, *::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(--pure-white);
  color: var(--charcoal-text);
  line-height: 1.65;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
}

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

/* ==========================================================================
   HEADER ARCHITECTURE
   ========================================================================== */
.site-header {
  background: var(--spruce-green);
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-height);
  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;
  flex-direction: column;
  text-decoration: none;
  color: var(--pure-white);
}

.brand-title {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--pure-white);
}

.brand-subtitle {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.03em;
}

/* Clock Widget Spec */
.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: 38px;
  height: 38px;
  flex-shrink: 0;
}

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

.time-row {
  display: flex;
  align-items: baseline;
  gap: 5px;
  white-space: nowrap;
}

.time-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.75);
}

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

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

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

.nav-item {
  position: relative;
}

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

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

.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--spruce-green-dark);
  min-width: 250px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  border-radius: 4px;
  list-style: none;
  padding: 8px 0;
  display: none;
  z-index: 1010;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.nav-dropdown-link {
  display: block;
  padding: 10px 18px;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: background-color 0.2s, padding-left 0.2s;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.nav-dropdown-link:hover {
  background-color: var(--spruce-green);
  color: var(--pure-white);
  padding-left: 22px;
}

.header-cta-btn {
  background: var(--bright-gold);
  color: #FFF;
  padding: 12px 24px;
  font-weight: bold;
  text-transform: uppercase;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  transition: background-color 0.2s, transform 0.1s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  min-height: 44px;
  min-width: 44px;
}

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

.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: var(--pure-white);
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
  min-height: 44px;
  min-width: 44px;
  font-size: 1.2rem;
}

/* ==========================================================================
   PAGE HERO BANNER
   ========================================================================== */
.page-hero {
  background-color: var(--spruce-green);
  color: var(--pure-white);
  padding: 55px 30px;
  border-bottom: 4px solid var(--accent-gold);
}

.page-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.page-hero-title {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 12px;
  color: var(--pure-white);
}

.page-hero-subtitle {
  font-size: 1.08rem;
  max-width: 820px;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.55;
}

.breadcrumb-nav {
  margin-top: 18px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.75);
}

.breadcrumb-nav a {
  color: var(--pure-white);
  text-decoration: underline;
}

.breadcrumb-nav span {
  margin: 0 8px;
}

/* ==========================================================================
   LAYOUT ARCHITECTURE (MAIN CONTENT & SIDEBAR)
   ========================================================================== */
.layout-wrapper {
  background-color: var(--pure-white);
  padding: 40px 20px 60px;
}

.layout-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  align-items: start;
}

.layout-fullwidth {
  max-width: 1200px;
  margin: 0 auto;
}

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

/* ==========================================================================
   SIDEBAR ARCHITECTURE ("Journal de Bord 2026")
   ========================================================================== */
.sidebar-aside {
  background: var(--bg-light-gray);
  border: 1px solid var(--border-light);
  border-radius: 6px;
  padding: 24px;
}

.sidebar-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--spruce-green);
  text-transform: uppercase;
  border-bottom: 2px solid var(--accent-gold);
  padding-bottom: 10px;
  margin-bottom: 18px;
  letter-spacing: 0.03em;
}

.sidebar-meta-box {
  background: var(--pure-white);
  border: 1px solid var(--border-light);
  border-radius: 4px;
  padding: 14px;
  margin-bottom: 20px;
}

.sidebar-meta-item {
  font-size: 0.85rem;
  margin-bottom: 8px;
  color: var(--charcoal-muted);
}

.sidebar-meta-item strong {
  color: var(--spruce-green-dark);
}

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

.sidebar-log-list {
  list-style: none;
  margin-bottom: 24px;
}

.sidebar-log-item {
  padding: 12px 0;
  border-bottom: 1px solid #E2E6E1;
  font-size: 0.88rem;
}

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

.sidebar-log-date {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-gold-dark);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.sidebar-log-text {
  color: var(--charcoal-text);
  line-height: 1.45;
}

.sidebar-cta-box {
  background: var(--spruce-green-dark);
  color: var(--pure-white);
  border-radius: 4px;
  padding: 20px;
  text-align: center;
  margin-top: 20px;
}

.sidebar-cta-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--pure-white);
}

.sidebar-cta-desc {
  font-size: 0.82rem;
  line-height: 1.45;
  margin-bottom: 15px;
  color: rgba(255, 255, 255, 0.88);
}

/* ==========================================================================
   BUTTONS & CTAs
   ========================================================================== */
.btn-gold {
  background: var(--accent-gold);
  color: #FFFFFF;
  border: none;
  font-weight: bold;
  padding: 12px 24px;
  border-radius: 4px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.1s;
  min-height: 44px;
  min-width: 44px;
}

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

.btn-bright {
  background: var(--bright-gold);
  color: #FFFFFF;
  border: none;
  font-weight: bold;
  padding: 12px 24px;
  border-radius: 4px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background-color 0.2s;
  min-height: 44px;
  min-width: 44px;
}

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

.btn-secondary {
  background: transparent;
  color: var(--spruce-green);
  border: 2px solid var(--spruce-green);
  font-weight: 700;
  padding: 10px 22px;
  border-radius: 4px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
  min-height: 44px;
  min-width: 44px;
}

.btn-secondary:hover {
  background: var(--spruce-green);
  color: var(--pure-white);
}

.btn-full {
  width: 100%;
}

/* ==========================================================================
   INSTITUTIONAL BOXES & CARDS
   ========================================================================== */
.institutional-box {
  background: var(--bg-light-gray);
  border-left: 5px solid var(--accent-gold);
  padding: 24px 28px;
  border-radius: 0 6px 6px 0;
  margin: 28px 0;
}

.institutional-box-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--spruce-green-dark);
  margin-bottom: 10px;
}

.institutional-box-text {
  font-size: 0.96rem;
  color: var(--charcoal-text);
  line-height: 1.65;
}

.section-title {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--spruce-green-dark);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--card-light-gray);
}

.section-intro {
  font-size: 1.05rem;
  color: var(--charcoal-muted);
  line-height: 1.65;
  margin-bottom: 26px;
}

.article-body p {
  margin-bottom: 18px;
  color: var(--charcoal-text);
  line-height: 1.7;
}

.article-body h2 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--spruce-green);
  margin: 32px 0 14px;
}

.article-body h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--spruce-green-dark);
  margin: 24px 0 10px;
}

.article-body ul, .article-body ol {
  margin: 0 0 20px 24px;
}

.article-body li {
  margin-bottom: 8px;
  line-height: 1.6;
}

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

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

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

.info-card {
  background: var(--pure-white);
  border: 1px solid var(--border-light);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}

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

.card-image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background-color: var(--bg-light-gray);
  overflow: hidden;
}

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

.card-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-badge {
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--bg-light-gray);
  color: var(--spruce-green-dark);
  border: 1px solid var(--accent-gold);
  border-radius: 3px;
  padding: 3px 8px;
  margin-bottom: 12px;
}

.card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--spruce-green);
  margin-bottom: 10px;
  line-height: 1.35;
}

.card-summary {
  font-size: 0.92rem;
  color: var(--charcoal-muted);
  line-height: 1.55;
  margin-bottom: 16px;
  flex-grow: 1;
}

/* ==========================================================================
   METRICS PANEL (Solidarity Index)
   ========================================================================== */
.metrics-panel {
  background: var(--spruce-green);
  color: var(--pure-white);
  border-radius: 6px;
  padding: 32px 24px;
  margin: 36px 0;
}

.metrics-panel-title {
  font-size: 1.25rem;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 24px;
  color: var(--pure-white);
}

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

.metric-card {
  padding: 16px 10px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

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

.metric-label {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.35;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* ==========================================================================
   DATA TABLES & REGISTRIES
   ========================================================================== */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  margin: 24px 0;
  border: 1px solid var(--border-light);
  border-radius: 4px;
}

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

.data-table th {
  background: var(--spruce-green);
  color: var(--pure-white);
  padding: 12px 16px;
  font-weight: 700;
  border-bottom: 2px solid var(--accent-gold);
}

.data-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-light);
  color: var(--charcoal-text);
}

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

/* ==========================================================================
   FORMS & INPUTS
   ========================================================================== */
.form-container {
  background: var(--bg-light-gray);
  border: 1px solid var(--border-light);
  border-radius: 6px;
  padding: 30px;
  margin: 30px 0;
}

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

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

.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border-light);
  border-radius: 4px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--charcoal-text);
  background-color: var(--pure-white);
  min-height: 44px;
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none;
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 2px rgba(166, 130, 68, 0.2);
}

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

/* ==========================================================================
   FOOTER ARCHITECTURE
   ========================================================================== */
.site-footer {
  background: var(--spruce-green-dark);
  color: var(--pure-white);
  padding: 55px 30px 30px;
  border-top: 4px solid var(--accent-gold);
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 36px;
  margin-bottom: 40px;
}

.footer-col-title {
  font-size: 1.05rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--pure-white);
  margin-bottom: 16px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-text {
  font-size: 0.88rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 14px;
}

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

.footer-link-item {
  margin-bottom: 8px;
}

.footer-link {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  font-size: 0.88rem;
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  transition: color 0.2s, padding-left 0.2s;
}

.footer-link:hover {
  color: var(--pure-white);
  text-decoration: underline;
  padding-left: 4px;
}

.footer-compliance-notice {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 24px;
  font-size: 0.82rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.75);
  text-align: justify;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 992px) {
  .site-header {
    padding: 0 20px;
  }
  
  .layout-container {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .card-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .site-header {
    height: auto;
    min-height: var(--header-height);
    padding: 10px 15px;
    flex-wrap: wrap;
  }
  
  .clock-widget-badge {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  .header-right {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    display: none;
    padding-top: 15px;
  }
  
  .header-right.active {
    display: flex;
  }
  
  .nav-menu-row {
    flex-direction: column;
    width: 100%;
    gap: 0;
  }
  
  .nav-item {
    width: 100%;
  }
  
  .nav-link {
    width: 100%;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .nav-dropdown {
    position: static;
    box-shadow: none;
    background-color: rgba(0, 0, 0, 0.25);
    padding: 0;
  }
  
  .nav-dropdown-link {
    padding: 12px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }
  
  .header-cta-btn {
    width: 100%;
    margin-top: 10px;
  }
  
  .card-grid-2, .card-grid-3, .card-grid-4 {
    grid-template-columns: 1fr;
  }
  
  .metrics-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .page-hero {
    padding: 35px 20px;
  }
  
  .page-hero-title {
    font-size: 1.65rem;
  }
}
