/* ==========================================================================
   123 JAZZ - PORTAIL OFFICIEL LOI 1901
   FEUILLE DE STYLE MAÎTRESSE : NEO-BRUTALIST EDITORIAL HYBRID
   Millésime réglementaire : 2026
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400;1,600&family=Playfair+Display:ital,wght@0,600;0,700;0,800;0,900;1,600&family=Space+Mono:wght@400;700&display=swap');

:root {
  --color-canvas-bg: #F5F5F0;
  --color-surface-white: #FFFFFF;
  --color-ink-primary: #1E293B;
  --color-ink-muted: #475569;
  --color-ink-subtle: #64748B;
  --color-accent-terracotta: #C2410C;
  --color-accent-terracotta-hover: #9A3412;
  --color-accent-ochre: #4D7C0F;
  --color-accent-cream-subtle: #FAF9F5;
  --color-border-structural: #1E293B;
  --color-border-subtle: #CBD5E1;
  --color-badge-bg: #FEF3C7;
  --color-badge-text: #92400E;
  
  --shadow-brutal-sm: 2px 2px 0px #1E293B;
  --shadow-brutal: 4px 4px 0px #1E293B;
  --shadow-brutal-lg: 6px 6px 0px #1E293B;
  --shadow-brutal-accent: 4px 4px 0px #C2410C;
  
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'Space Mono', monospace;
  
  --sidebar-width: 280px;
}

/* Base Reset & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--color-canvas-bg);
  color: var(--color-ink-primary);
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.68;
  color: var(--color-ink-primary);
  background-color: var(--color-canvas-bg);
  min-height: 100vh;
  word-wrap: break-word;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--color-ink-primary);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin-bottom: 0.8rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

h1 {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--color-border-structural);
  margin-top: 2.2rem;
  margin-bottom: 1.2rem;
}

h3 {
  font-size: clamp(1.3rem, 2vw, 1.65rem);
  margin-top: 1.5rem;
  margin-bottom: 0.8rem;
}

h4 {
  font-size: 1.15rem;
  font-weight: 700;
}

p {
  margin-bottom: 1.3rem;
  color: var(--color-ink-muted);
  font-size: 1.05rem;
  line-height: 1.72;
}

strong, b {
  color: var(--color-ink-primary);
  font-weight: 700;
}

a {
  color: var(--color-accent-terracotta);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--color-accent-terracotta-hover);
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--color-border-structural);
}

/* ==========================================================================
   MASTER LAYOUT GRID (Strict Two-Column Architecture)
   ========================================================================== */
.site-master-grid {
  display: grid;
  grid-template-columns: var(--sidebar-width) 1fr;
  width: 100%;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Left Sidebar Header */
.sidebar-wrapper {
  width: var(--sidebar-width);
  background-color: var(--color-surface-white);
  border-right: 2px solid var(--color-border-structural);
  padding: 28px 20px 40px 20px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--color-border-subtle) transparent;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 100;
}

/* Main Content Wrapper */
.content-master-canvas {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  justify-content: space-between;
  background-color: var(--color-canvas-bg);
  width: 100%;
  overflow-x: hidden;
}

.page-body-container {
  flex: 1 0 auto;
  padding: 40px 48px;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}

/* ==========================================================================
   SIDEBAR COMPONENTS
   ========================================================================== */
.sidebar-brand-block {
  padding-bottom: 20px;
  border-bottom: 2px solid var(--color-border-structural);
  margin-bottom: 20px;
}

.sidebar-logo {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 900;
  color: var(--color-ink-primary);
  letter-spacing: -0.03em;
  display: flex;
  align-items: baseline;
  gap: 6px;
  text-decoration: none !important;
}

.sidebar-logo .accent-dot {
  color: var(--color-accent-terracotta);
  font-size: 2.2rem;
  line-height: 0;
}

.sidebar-sub-identity {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent-terracotta);
  font-weight: 700;
  margin-top: 4px;
}

.sidebar-registry-card {
  background-color: var(--color-accent-cream-subtle);
  border: 1px solid var(--color-border-structural);
  box-shadow: var(--shadow-brutal-sm);
  padding: 12px;
  margin-bottom: 24px;
  font-size: 0.78rem;
  line-height: 1.45;
}

.sidebar-registry-card .registry-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
  color: var(--color-ink-muted);
}

.sidebar-registry-card .registry-row:last-child {
  margin-bottom: 0;
}

.sidebar-registry-card .registry-label {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--color-ink-primary);
}

.sidebar-registry-card .registry-val {
  font-family: var(--font-mono);
  font-weight: 400;
}

.sidebar-registry-card .registry-link {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-accent-terracotta);
  text-decoration: underline;
}

/* Directory Tree Navigation */
.nav-category-group {
  margin-bottom: 22px;
}

.nav-category-title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent-terracotta);
  padding: 4px 6px;
  background-color: var(--color-canvas-bg);
  border-left: 3px solid var(--color-accent-terracotta);
  margin-bottom: 8px;
}

.nav-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.nav-link-item a {
  display: block;
  padding: 7px 10px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--color-ink-primary);
  border: 1px solid transparent;
  text-decoration: none;
  transition: background-color 0.12s, border-color 0.12s, transform 0.12s;
  min-height: 38px;
  display: flex;
  align-items: center;
}

.nav-link-item a:hover {
  background-color: var(--color-canvas-bg);
  border: 1px solid var(--color-border-structural);
  box-shadow: 2px 2px 0px var(--color-border-structural);
  color: var(--color-accent-terracotta);
  text-decoration: none;
}

.nav-link-item.active a {
  background-color: var(--color-ink-primary);
  color: var(--color-surface-white);
  border: 1px solid var(--color-border-structural);
  box-shadow: 2px 2px 0px var(--color-accent-terracotta);
}

.sidebar-footer-note {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--color-border-subtle);
  font-size: 0.74rem;
  color: var(--color-ink-subtle);
  line-height: 1.4;
  font-family: var(--font-mono);
}

/* ==========================================================================
   NEO-BRUTALIST EDITORIAL COMPONENTS
   ========================================================================== */
.editorial-card {
  background-color: var(--color-surface-white);
  border: 1px solid var(--color-border-structural);
  box-shadow: var(--shadow-brutal);
  padding: 32px;
  margin-bottom: 32px;
  position: relative;
}

.editorial-card.accent-edge {
  border-top: 5px solid var(--color-accent-terracotta);
}

.editorial-card.ochre-edge {
  border-top: 5px solid var(--color-accent-ochre);
}

.editorial-card.offset-card {
  margin-left: 12px;
  margin-right: -12px;
}

/* Section Header Band */
.section-banner {
  background-color: var(--color-surface-white);
  border: 1px solid var(--color-border-structural);
  box-shadow: var(--shadow-brutal-lg);
  padding: 36px 40px;
  margin-bottom: 36px;
}

.section-eyebrow-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background-color: var(--color-badge-bg);
  color: var(--color-badge-text);
  border: 1px solid var(--color-border-structural);
  padding: 4px 10px;
  margin-bottom: 14px;
}

/* Hero Asymmetric Unit */
.hero-asymmetric-wrapper {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  background-color: var(--color-surface-white);
  border: 1px solid var(--color-border-structural);
  box-shadow: var(--shadow-brutal-lg);
  padding: 40px;
  margin-bottom: 40px;
  align-items: center;
}

.hero-image-frame {
  position: relative;
  border: 1px solid var(--color-border-structural);
  box-shadow: var(--shadow-brutal);
  overflow: hidden;
  background-color: var(--color-ink-primary);
}

.hero-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.hero-image-frame:hover img {
  transform: scale(1.02);
}

/* Dedicated Mission Block (120+ words) */
.mission-callout-panel {
  background-color: #FFFBEB;
  border: 2px solid var(--color-border-structural);
  box-shadow: var(--shadow-brutal);
  padding: 32px 36px;
  margin: 36px 0;
  position: relative;
}

.mission-callout-header {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--color-accent-terracotta);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.mission-callout-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--color-ink-primary);
  font-weight: 500;
  margin-bottom: 0;
}

/* Button & CTAs (Standard: "Contact" / "Contactez-nous") */
.btn-brutal-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 14px 28px;
  background-color: var(--color-accent-terracotta);
  color: var(--color-surface-white) !important;
  border: 2px solid var(--color-border-structural);
  box-shadow: var(--shadow-brutal);
  cursor: pointer;
  text-decoration: none !important;
  transition: transform 0.1s ease, box-shadow 0.1s ease, background-color 0.15s ease;
  min-height: 48px;
  white-space: nowrap;
}

.btn-brutal-primary:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-brutal-lg);
  background-color: var(--color-accent-terracotta-hover);
}

.btn-brutal-primary:active {
  transform: translate(2px, 2px);
  box-shadow: var(--shadow-brutal-sm);
}

.btn-brutal-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.92rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 12px 24px;
  background-color: var(--color-surface-white);
  color: var(--color-ink-primary) !important;
  border: 2px solid var(--color-border-structural);
  box-shadow: var(--shadow-brutal);
  cursor: pointer;
  text-decoration: none !important;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
  min-height: 46px;
  white-space: nowrap;
}

.btn-brutal-secondary:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-brutal-lg);
  background-color: var(--color-accent-cream-subtle);
}

/* Grids & Columns */
.grid-2-cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin: 32px 0;
}

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

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

/* Matrix & Data Display */
.metric-stat-box {
  background-color: var(--color-surface-white);
  border: 1px solid var(--color-border-structural);
  box-shadow: var(--shadow-brutal);
  padding: 24px;
  text-align: left;
}

.metric-stat-num {
  font-family: var(--font-mono);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-accent-terracotta);
  line-height: 1;
  margin-bottom: 8px;
}

.metric-stat-label {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--color-ink-primary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.metric-stat-desc {
  font-size: 0.88rem;
  color: var(--color-ink-muted);
  line-height: 1.5;
  margin-bottom: 0;
}

/* Regulatory Financial Matrix / Tables */
.data-table-wrapper {
  width: 100%;
  overflow-x: auto;
  margin: 28px 0;
  border: 1px solid var(--color-border-structural);
  box-shadow: var(--shadow-brutal);
}

.brutal-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  background-color: var(--color-surface-white);
}

.brutal-table th {
  background-color: var(--color-ink-primary);
  color: var(--color-surface-white);
  font-family: var(--font-mono);
  font-size: 0.84rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 14px 16px;
  border: 1px solid var(--color-border-structural);
}

.brutal-table td {
  padding: 14px 16px;
  font-size: 0.92rem;
  border: 1px solid var(--color-border-structural);
  color: var(--color-ink-muted);
}

.brutal-table tr:nth-child(even) {
  background-color: var(--color-accent-cream-subtle);
}

.brutal-table tr:hover {
  background-color: #FEF3C7;
}

/* Chronological Timeline */
.timeline-track {
  position: relative;
  padding-left: 36px;
  margin: 32px 0;
}

.timeline-track::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 0;
  bottom: 0;
  width: 3px;
  background-color: var(--color-border-structural);
}

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

.timeline-item::before {
  content: '';
  position: absolute;
  left: -32px;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 0;
  background-color: var(--color-accent-terracotta);
  border: 2px solid var(--color-border-structural);
}

.timeline-year {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-accent-terracotta);
  margin-bottom: 4px;
}

/* Forms (Contact Form, etc.) */
.form-group {
  margin-bottom: 22px;
}

.form-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.84rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-ink-primary);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 1rem;
  border: 2px solid var(--color-border-structural);
  background-color: var(--color-surface-white);
  color: var(--color-ink-primary);
  box-shadow: var(--shadow-brutal-sm);
  outline: none;
  transition: box-shadow 0.15s, border-color 0.15s;
}

.form-control:focus {
  border-color: var(--color-accent-terracotta);
  box-shadow: 4px 4px 0px var(--color-accent-terracotta);
}

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

/* ==========================================================================
   MEGA FOOTER (UNIVERSAL ARCHITECTURAL CANVAS)
   ========================================================================== */
.site-mega-footer {
  background-color: var(--color-surface-white);
  border-top: 2px solid var(--color-border-structural);
  padding: 56px 48px 36px 48px;
  width: 100%;
  box-sizing: border-box;
}

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

.footer-col-title {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent-terracotta);
  padding-bottom: 8px;
  border-bottom: 2px solid var(--color-border-structural);
  margin-bottom: 18px;
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links-list a {
  font-size: 0.92rem;
  color: var(--color-ink-muted);
  text-decoration: none;
  transition: color 0.15s, transform 0.15s;
  display: inline-block;
}

.footer-links-list a:hover {
  color: var(--color-accent-terracotta);
  transform: translateX(4px);
  text-decoration: underline;
}

.footer-id-block p {
  font-size: 0.88rem;
  line-height: 1.6;
  margin-bottom: 12px;
}

.footer-badge-2026 {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  background-color: var(--color-badge-bg);
  color: var(--color-badge-text);
  border: 1px solid var(--color-border-structural);
  padding: 4px 8px;
  margin-top: 8px;
}

/* Mega Footer Bottom Trust Baseline Block */
.footer-trust-baseline {
  border-top: 1px solid var(--color-border-structural);
  padding-top: 32px;
  font-size: 0.82rem;
  line-height: 1.7;
  color: var(--color-ink-subtle);
}

.footer-trust-baseline p {
  font-size: 0.82rem;
  margin-bottom: 10px;
  color: var(--color-ink-subtle);
}

.footer-trust-baseline strong {
  color: var(--color-ink-primary);
}

/* Mobile Toggle Header */
.mobile-topbar-header {
  display: none;
  background-color: var(--color-surface-white);
  border-bottom: 2px solid var(--color-border-structural);
  padding: 14px 20px;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 200;
}

.mobile-menu-btn {
  background: var(--color-canvas-bg);
  border: 2px solid var(--color-border-structural);
  box-shadow: var(--shadow-brutal-sm);
  padding: 8px 14px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES (1024px, 768px, 480px)
   ========================================================================== */
@media (max-width: 1024px) {
  .site-master-grid {
    grid-template-columns: 240px 1fr;
  }
  
  :root {
    --sidebar-width: 240px;
  }
  
  .page-body-container {
    padding: 32px 28px;
  }
  
  .hero-asymmetric-wrapper {
    grid-template-columns: 1fr;
    padding: 28px;
  }
  
  .mega-footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
  
  .grid-4-cols {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .grid-3-cols {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .site-master-grid {
    display: flex;
    flex-direction: column;
  }
  
  .mobile-topbar-header {
    display: flex;
  }
  
  .sidebar-wrapper {
    position: static;
    width: 100%;
    height: auto;
    border-right: none;
    border-bottom: 2px solid var(--color-border-structural);
    padding: 24px 20px;
    display: none;
  }
  
  .sidebar-wrapper.mobile-open {
    display: flex;
  }
  
  .page-body-container {
    padding: 24px 18px;
  }
  
  .section-banner {
    padding: 24px 20px;
  }
  
  .grid-2-cols,
  .grid-3-cols,
  .grid-4-cols {
    grid-template-columns: 1fr;
  }
  
  .mega-footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  
  .editorial-card.offset-card {
    margin-left: 0;
    margin-right: 0;
  }
  
  .site-mega-footer {
    padding: 40px 20px 24px 20px;
  }
  
  .btn-brutal-primary,
  .btn-brutal-secondary {
    width: 100%;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 15px;
  }
  
  .page-body-container {
    padding: 18px 14px;
  }
  
  .editorial-card {
    padding: 20px 16px;
  }
  
  .mission-callout-panel {
    padding: 22px 18px;
  }
}
