/* ==========================================================================
   LES JOLIES CHOSES, ATELIER CREART - FEUILLE DE STYLE OFFICIELLE
   Association Loi 1901 - RNA : W052003818 - SIREN : 819550351
   ========================================================================== */

:root {
  --color-navy: #0F172A;
  --color-midnight: #1E293B;
  --color-ice-blue: #E2E8F0;
  --color-emerald: #059669;
  --color-emerald-hover: #047857;
  --color-gold: #F59E0B;
  --color-warm-slate: #F8FAFC;
  --color-card-bg: #FFFFFF;
  --color-border: #E2E8F0;
  --color-charcoal: #334155;
  --color-text-dark: #0F172A;
  --color-platinum: #94A3B8;
  --color-teal: #0D9488;
  --color-teal-hover: #14B8A6;
  --font-body: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

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

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

body {
  background-color: var(--color-warm-slate);
  color: var(--color-charcoal);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  padding-top: 130px; /* Offset for double header */
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--color-emerald);
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease;
}

a:hover {
  color: var(--color-emerald-hover);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ==========================================================================
   HEADER & NAVIGATION SYSTEM
   ========================================================================== */

.site-header-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10000;
}

/* Row 1: Utility Bar */
.utility-bar {
  height: 38px;
  background: var(--color-navy);
  color: var(--color-ice-blue);
  font-family: var(--font-mono);
  font-size: 13px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(226, 232, 240, 0.12);
}

.utility-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.utility-meta {
  display: flex;
  gap: 20px;
  align-items: center;
}

.utility-meta span {
  display: inline-flex;
  align-items: center;
}

.utility-meta strong {
  color: #FFFFFF;
  margin-right: 4px;
}

.utility-link {
  color: var(--color-ice-blue);
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 10px;
}

.utility-link:hover {
  color: var(--color-gold);
}

/* Row 2: Main Sticky Header */
.main-header {
  background: var(--color-navy);
  border-bottom: 3px solid var(--color-emerald);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  height: 92px;
  display: flex;
  align-items: center;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.brand-link {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-decoration: none;
}

.brand-title {
  color: #FFFFFF;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  line-height: 1.2;
}

.brand-subtitle {
  color: var(--color-platinum);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.3px;
}

/* Navigation Menu */
.primary-nav {
  display: flex;
  align-items: center;
}

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

.nav-item {
  position: relative;
}

.nav-link, .nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 48px;
  padding: 0 14px;
  color: var(--color-ice-blue);
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  background: transparent;
  border: none;
  font-family: inherit;
  transition: background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.nav-link:hover, .nav-dropdown-toggle:hover, .nav-item:hover > .nav-dropdown-toggle {
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
}

.nav-dropdown-toggle .caret {
  font-size: 0.7rem;
  transition: transform 0.2s ease;
}

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

/* Dropdown Menu */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--color-midnight);
  border: 1px solid rgba(226, 232, 240, 0.15);
  border-radius: 8px;
  padding: 8px 0;
  min-width: 260px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  display: none;
  list-style: none;
  z-index: 10001;
}

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

.dropdown-item a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 20px;
  color: var(--color-ice-blue);
  font-size: 0.88rem;
  font-weight: 500;
  border-left: 3px solid transparent;
  transition: all 0.2s ease;
}

.dropdown-item a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #FFFFFF;
  border-left-color: var(--color-emerald);
  padding-left: 24px;
}

/* Header CTA */
.header-cta-btn {
  background: var(--color-emerald);
  color: #FFFFFF !important;
  font-weight: 600;
  font-size: 0.88rem;
  padding: 0 20px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.3);
  white-space: nowrap;
}

.header-cta-btn:hover {
  background: var(--color-emerald-hover);
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.5);
}

/* Mobile Toggle */
.mobile-nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(226, 232, 240, 0.3);
  color: var(--color-ice-blue);
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 1.2rem;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
}

/* ==========================================================================
   LAYOUT CONTAINERS & GRID
   ========================================================================== */

.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.container-narrow {
  max-width: 900px;
}

.content-wrapper {
  padding: 60px 0;
}

.content-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  align-items: start;
}

.content-single-col {
  max-width: 1000px;
  margin: 0 auto;
}

/* ==========================================================================
   HERO BANNER REGION
   ========================================================================== */

.institutional-hero {
  position: relative;
  min-height: 420px;
  background-color: var(--color-midnight);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  padding: 60px 0;
  border-bottom: 4px solid var(--color-emerald);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.82);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.hero-tag {
  display: inline-block;
  background: rgba(5, 150, 105, 0.25);
  color: #34D399;
  border: 1px solid var(--color-emerald);
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.hero-title {
  color: #FFFFFF;
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 14px;
  letter-spacing: -0.5px;
}

.hero-subtitle {
  color: var(--color-gold);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.hero-summary {
  color: var(--color-ice-blue);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 24px;
  max-width: 800px;
  border-left: 3px solid var(--color-emerald);
  padding-left: 16px;
}

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

/* ==========================================================================
   BUTTONS & CTAs
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 24px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-emerald);
  color: #FFFFFF !important;
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.25);
}

.btn-primary:hover {
  background: var(--color-emerald-hover);
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.4);
}

.btn-secondary {
  background: var(--color-midnight);
  color: #FFFFFF !important;
  border-color: rgba(226, 232, 240, 0.3);
}

.btn-secondary:hover {
  background: var(--color-navy);
  border-color: var(--color-emerald);
}

.btn-gold {
  background: var(--color-gold);
  color: #0F172A !important;
}

.btn-gold:hover {
  background: #D97706;
  color: #FFFFFF !important;
}

.btn-outline {
  background: transparent;
  border-color: var(--color-emerald);
  color: var(--color-emerald);
}

.btn-outline:hover {
  background: var(--color-emerald);
  color: #FFFFFF !important;
}

.cta-banner-node {
  background: var(--color-midnight);
  border-left: 4px solid var(--color-emerald);
  border-radius: 8px;
  padding: 30px;
  margin: 40px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: #FFFFFF;
}

.cta-banner-text h4 {
  color: #FFFFFF;
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.cta-banner-text p {
  color: var(--color-ice-blue);
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
}

/* ==========================================================================
   CARDS & INSTITUTIONAL SECTIONS
   ========================================================================== */

.content-card {
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 32px;
  margin-bottom: 30px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}

.content-card h2 {
  color: var(--color-text-dark);
  font-size: 1.65rem;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--color-border);
}

.content-card h3 {
  color: var(--color-midnight);
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 24px;
  margin-bottom: 12px;
}

.content-card p {
  margin-bottom: 18px;
  color: var(--color-charcoal);
  font-size: 1rem;
  line-height: 1.7;
}

.content-card ul, .content-card ol {
  margin-bottom: 20px;
  padding-left: 24px;
}

.content-card li {
  margin-bottom: 8px;
  line-height: 1.6;
}

/* Mission Statement Box */
.mission-statement-box {
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
  color: #FFFFFF;
  padding: 36px 40px;
  border-radius: 10px;
  border-left: 5px solid var(--color-gold);
  margin: 36px 0;
  box-shadow: 0 6px 24px rgba(15, 23, 42, 0.15);
}

.mission-statement-box h3 {
  color: var(--color-gold);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.mission-statement-box p {
  color: var(--color-ice-blue);
  font-size: 1.05rem;
  line-height: 1.8;
  margin: 0;
}

/* Reinvestment Clause Callout */
.reinvestment-callout {
  background: rgba(5, 150, 105, 0.08);
  border: 1px solid var(--color-emerald);
  border-radius: 8px;
  padding: 20px 24px;
  margin: 28px 0;
  display: flex;
  align-items: center;
  gap: 16px;
}

.reinvestment-callout .icon-badge {
  font-size: 1.8rem;
  color: var(--color-emerald);
  flex-shrink: 0;
}

.reinvestment-callout p {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 600;
  color: #065F46;
  line-height: 1.5;
}

/* Metric Dashboard */
.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 36px 0;
}

.metric-card {
  background: #FFFFFF;
  border: 1px solid var(--color-border);
  border-top: 4px solid var(--color-emerald);
  border-radius: 8px;
  padding: 24px 20px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.metric-value {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--color-navy);
  line-height: 1.1;
  margin-bottom: 6px;
  font-family: var(--font-mono);
}

.metric-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-charcoal);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.metric-sub {
  font-size: 0.8rem;
  color: var(--color-platinum);
  margin-top: 4px;
}

/* 4-Card Activity Grid (Index) */
.activity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin: 36px 0;
}

.activity-card {
  background: #FFFFFF;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.activity-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.activity-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

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

.activity-tag {
  color: var(--color-emerald);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 8px;
}

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

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

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 32px 0;
}

.gallery-item {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.gallery-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.03);
}

/* In-Page Image Blocks */
.inpage-image-block {
  margin: 32px 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.inpage-image-block img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
}

/* Sidebar Styling */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.sidebar-card {
  background: #FFFFFF;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.sidebar-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--color-border);
}

.sidebar-card p {
  font-size: 0.92rem;
  color: var(--color-charcoal);
  line-height: 1.6;
  margin-bottom: 16px;
}

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

.sidebar-links li {
  margin-bottom: 10px;
}

.sidebar-links a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-navy);
  padding: 6px 0;
  border-bottom: 1px dashed var(--color-border);
}

.sidebar-links a:hover {
  color: var(--color-emerald);
  padding-left: 6px;
}

/* Data Tables */
.data-table-wrapper {
  overflow-x: auto;
  margin: 28px 0;
}

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

.data-table th {
  background: var(--color-midnight);
  color: #FFFFFF;
  padding: 12px 16px;
  font-weight: 600;
  border: 1px solid var(--color-midnight);
}

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

.data-table tr:nth-child(even) td {
  background: rgba(248, 250, 252, 0.8);
}

.data-table tr:hover td {
  background: rgba(5, 150, 105, 0.05);
}

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

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

.form-control {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  font-size: 0.95rem;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  background: #FFFFFF;
  color: var(--color-charcoal);
  font-family: inherit;
}

.form-control:focus {
  outline: none;
  border-color: var(--color-emerald);
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15);
}

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

/* ==========================================================================
   FOOTER MATRIX
   ========================================================================== */

.site-footer {
  background: var(--color-navy);
  color: var(--color-platinum);
  padding: 60px 20px 30px 20px;
  border-top: 4px solid var(--color-emerald);
  font-size: 0.92rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-col h4 {
  color: #FFFFFF;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 18px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(226, 232, 240, 0.15);
  padding-bottom: 8px;
}

.footer-col p {
  line-height: 1.65;
  margin-bottom: 14px;
}

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

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

.footer-links a {
  color: var(--color-platinum);
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 2px 0;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.footer-links a:hover {
  color: var(--color-teal);
  padding-left: 4px;
}

.footer-base {
  max-width: 1200px;
  margin: 40px auto 0 auto;
  padding-top: 24px;
  border-top: 1px solid rgba(226, 232, 240, 0.12);
  text-align: center;
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--color-platinum);
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */

@media (max-width: 992px) {
  .utility-bar {
    height: auto;
    padding: 6px 0;
  }

  .utility-bar .container {
    flex-direction: column;
    gap: 4px;
    text-align: center;
  }

  .utility-meta {
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
  }

  .main-header {
    height: auto;
    padding: 12px 0;
  }

  body {
    padding-top: 150px;
  }

  .content-grid {
    grid-template-columns: 1fr;
  }

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

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

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

@media (max-width: 768px) {
  body {
    padding-top: 170px;
  }

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

  .primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--color-navy);
    border-bottom: 2px solid var(--color-emerald);
    display: none;
    flex-direction: column;
    padding: 16px 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  }

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

  .nav-menu {
    flex-direction: column;
    width: 100%;
    gap: 6px;
  }

  .nav-link, .nav-dropdown-toggle {
    width: 100%;
    justify-content: space-between;
  }

  .dropdown-menu {
    position: static;
    display: none;
    background: rgba(30, 41, 59, 0.6);
    border: none;
    box-shadow: none;
    padding-left: 12px;
    margin-top: 4px;
  }

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

  .header-cta-btn {
    width: 100%;
    margin-top: 14px;
  }

  .hero-title {
    font-size: 1.85rem;
  }

  .metric-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

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

  .cta-banner-node {
    flex-direction: column;
    align-items: flex-start;
  }
}
