/* ==========================================================================
   Guidan NonProfit Charity Theme - Custom Stylesheet
   Organization: LES AMIS DU MUSEE DE LA FIGURINE (Association loi 1901)
   Headquarters: Salle des Moulinières, 26790 Tulette, France
   Registration: RNA W262000959 | SIREN 509004255
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS Reset & Typography Base
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #2D3748;
  background-color: #F8F9FA;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  color: #1F2531;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 1rem;
}

h1 { font-size: 2.35rem; }
h2 { font-size: 1.85rem; margin-top: 2rem; }
h3 { font-size: 1.4rem; margin-top: 1.5rem; }
h4 { font-size: 1.15rem; margin-top: 1.25rem; }

p {
  margin-bottom: 1.25rem;
  color: #334155;
  font-size: 1.05rem;
  line-height: 1.75;
}

ul, ol {
  margin-bottom: 1.25rem;
  padding-left: 1.75rem;
  color: #334155;
}

li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

a {
  color: #1F2531;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #D99B00;
}

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

/* --------------------------------------------------------------------------
   2. Layout Containers & Grid System
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

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

.content-section.bg-white {
  background-color: #FFFFFF;
}

.content-section.bg-alt {
  background-color: #F1F5F9;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 36px;
  align-items: start;
}

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

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

/* --------------------------------------------------------------------------
   3. Top Utility Header (#1F2531)
   -------------------------------------------------------------------------- */
.top-utility-bar {
  background-color: #1F2531;
  color: #E2E8F0;
  font-size: 0.875rem;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.utility-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

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

.utility-info span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.utility-status {
  color: #F3BA2F;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* --------------------------------------------------------------------------
   4. Main Navigation (#FFFFFF with #F3BA2F Hover)
   -------------------------------------------------------------------------- */
.site-header {
  background-color: #FFFFFF;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 84px;
}

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

.brand-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #1F2531;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.brand-subtitle {
  font-size: 0.75rem;
  color: #64748B;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
  gap: 4px;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 12px 16px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #1F2531;
  border-radius: 6px;
  transition: all 0.2s ease;
  min-height: 44px;
}

.nav-link:hover, .nav-link.active {
  color: #B47800;
  background-color: rgba(243, 186, 47, 0.12);
}

/* Dropdown Menu */
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background-color: #FFFFFF;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  border: 1px solid #E2E8F0;
  padding: 8px 0;
  list-style: none;
  z-index: 1100;
}

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

.dropdown-link {
  display: block;
  padding: 10px 20px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #334155;
  transition: background-color 0.2s ease, color 0.2s ease;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.dropdown-link:hover {
  background-color: #FFF9EB;
  color: #B47800;
}

/* Nav Action Button */
.btn-nav-contact {
  background-color: #F3BA2F;
  color: #1F2531;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: 6px;
  margin-left: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(243, 186, 47, 0.35);
}

.btn-nav-contact:hover {
  background-color: #E2A71B;
  color: #000000;
  transform: translateY(-1px);
}

/* Mobile Nav Toggle */
.mobile-toggle-btn {
  display: none;
  background: none;
  border: 1px solid #E2E8F0;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 1.25rem;
  color: #1F2531;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
}

/* --------------------------------------------------------------------------
   5. Hero Banner & Donit Split Layouts
   -------------------------------------------------------------------------- */
.hero-banner {
  background: linear-gradient(135deg, #1F2531 0%, #2A3445 100%);
  color: #FFFFFF;
  padding: 70px 0;
  position: relative;
  overflow: hidden;
}

.hero-banner::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: radial-gradient(circle at top right, rgba(243, 186, 47, 0.15), transparent 70%);
  pointer-events: none;
}

.hero-banner h1 {
  color: #FFFFFF;
  font-size: 2.75rem;
  line-height: 1.18;
  margin-bottom: 1.25rem;
}

.hero-banner p.lead {
  font-size: 1.15rem;
  color: #E2E8F0;
  margin-bottom: 2rem;
  line-height: 1.7;
}

/* 2-Sentence Public Interest Declaration */
.public-interest-declaration {
  background-color: rgba(255, 255, 255, 0.08);
  border-left: 4px solid #F3BA2F;
  padding: 16px 20px;
  border-radius: 0 8px 8px 0;
  margin-bottom: 24px;
  font-size: 1.05rem;
  line-height: 1.65;
  color: #F8FAFC;
  font-weight: 500;
}

.hero-cta-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.btn-primary {
  background-color: #F3BA2F;
  color: #1F2531;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  font-size: 1rem;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(243, 186, 47, 0.35);
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background-color: #E2A71B;
  color: #000000;
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: transparent;
  color: #FFFFFF;
  border: 2px solid #FFFFFF;
  font-weight: 600;
  padding: 12px 26px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  font-size: 1rem;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background-color: #FFFFFF;
  color: #1F2531;
}

/* --------------------------------------------------------------------------
   6. Mandatory "Our Mission" Callout Block
   -------------------------------------------------------------------------- */
.our-mission-callout {
  background: #FFFFFF;
  border: 2px solid #F3BA2F;
  border-radius: 12px;
  padding: 36px 40px;
  margin: 40px 0;
  box-shadow: 0 6px 20px rgba(243, 186, 47, 0.12);
  position: relative;
}

.our-mission-callout .mission-badge {
  display: inline-block;
  color: #925800;
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.our-mission-callout h2 {
  margin-top: 0;
  margin-bottom: 16px;
  font-size: 1.85rem;
  color: #1F2531;
}

.our-mission-callout p.mission-narrative {
  font-size: 1.12rem;
  line-height: 1.8;
  color: #1E293B;
  font-weight: 500;
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   7. Donit Frame & Figcaption Images
   -------------------------------------------------------------------------- */
.donit-photo-frame {
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid #E5E7EB;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  margin: 20px 0 8px 0;
  object-fit: cover;
  display: block;
}

.donit-caption {
  font-size: 0.875rem;
  color: #64748B;
  margin-bottom: 20px;
  font-style: italic;
  line-height: 1.5;
  display: block;
}

/* --------------------------------------------------------------------------
   8. Cards & Action Grids
   -------------------------------------------------------------------------- */
.card {
  background-color: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 28px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

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

.card-title {
  font-size: 1.3rem;
  margin-top: 12px;
  margin-bottom: 12px;
  color: #1F2531;
}

.card-text {
  font-size: 0.98rem;
  color: #475569;
  line-height: 1.65;
  margin-bottom: 20px;
  flex-grow: 1;
}

.card-meta {
  font-size: 0.85rem;
  color: #64748B;
  margin-bottom: 12px;
  font-weight: 500;
}

.card-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #F8F9FA;
  color: #1F2531;
  border: 1px solid #CBD5E1;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 6px;
  min-height: 44px;
  transition: all 0.2s ease;
  align-self: flex-start;
}

.card-btn:hover {
  background-color: #F3BA2F;
  border-color: #F3BA2F;
  color: #1F2531;
}

/* Stat Box */
.stat-box {
  background-color: #FFFFFF;
  border-top: 4px solid #F3BA2F;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  text-align: center;
}

.stat-number {
  font-size: 2.25rem;
  font-weight: 800;
  color: #1F2531;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 0.95rem;
  color: #64748B;
  font-weight: 600;
}

/* Alert Box */
.alert-urgent {
  background-color: #FFF5F5;
  border-left: 4px solid #ED5236;
  padding: 18px 22px;
  border-radius: 0 8px 8px 0;
  margin: 24px 0;
  color: #9B2C2C;
}

.alert-urgent strong {
  color: #742A2A;
}

/* --------------------------------------------------------------------------
   9. Forms (AJAX Ready)
   -------------------------------------------------------------------------- */
.form-container {
  background-color: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 36px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

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

.form-label {
  display: block;
  font-weight: 600;
  color: #1F2531;
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #CBD5E1;
  border-radius: 6px;
  font-size: 1rem;
  color: #1F2531;
  background-color: #FFFFFF;
  min-height: 44px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  font-family: inherit;
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none;
  border-color: #F3BA2F;
  box-shadow: 0 0 0 3px rgba(243, 186, 47, 0.25);
}

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

.form-help {
  font-size: 0.85rem;
  color: #64748B;
  margin-top: 6px;
}

/* --------------------------------------------------------------------------
   10. Modal Dialog (#FFFFFF / #1F2531 overlay)
   -------------------------------------------------------------------------- */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(15, 23, 42, 0.7);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
}

.modal-box {
  background-color: #FFFFFF;
  border-radius: 12px;
  max-width: 520px;
  width: 100%;
  padding: 36px;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  position: relative;
  animation: modalFadeIn 0.25s ease-out;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.modal-icon {
  width: 64px;
  height: 64px;
  background-color: #FFF9EB;
  border: 2px solid #F3BA2F;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px auto;
  font-size: 32px;
  color: #925800;
}

.modal-title {
  font-size: 1.6rem;
  margin-bottom: 12px;
  color: #1F2531;
}

.modal-message {
  font-size: 1.05rem;
  color: #475569;
  line-height: 1.65;
  margin-bottom: 24px;
}

.modal-close-btn {
  background-color: #1F2531;
  color: #FFFFFF;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  min-height: 44px;
  transition: background-color 0.2s ease;
}

.modal-close-btn:hover {
  background-color: #334155;
}

/* --------------------------------------------------------------------------
   11. Financial Data Tables & Transparency Grids
   -------------------------------------------------------------------------- */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  background-color: #FFFFFF;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.data-table th, .data-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid #E2E8F0;
  font-size: 0.95rem;
}

.data-table th {
  background-color: #1F2531;
  color: #FFFFFF;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}

.data-table tr:hover {
  background-color: #F8FAFC;
}

/* --------------------------------------------------------------------------
   12. Footer (#1F2531)
   -------------------------------------------------------------------------- */
.site-footer {
  background-color: #1F2531;
  color: #94A3B8;
  padding-top: 60px;
  border-top: 4px solid #F3BA2F;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-title {
  color: #FFFFFF;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 18px;
}

.footer-text {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #CBD5E1;
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

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

.footer-links a {
  color: #CBD5E1;
  font-size: 0.95rem;
  transition: color 0.2s ease;
  display: inline-block;
  min-height: 32px;
  line-height: 32px;
}

.footer-links a:hover {
  color: #F3BA2F;
}

.footer-disclosure {
  padding: 28px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.88rem;
  line-height: 1.7;
  color: #94A3B8;
  text-align: justify;
}

.footer-bottom {
  padding: 24px 0;
  text-align: center;
  font-size: 0.85rem;
  color: #64748B;
}

/* --------------------------------------------------------------------------
   13. Responsive Media Queries
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .grid-4, .grid-3, .grid-2 {
    grid-template-columns: 1fr;
  }
  .footer-top {
    grid-template-columns: 1fr;
  }
  
  .utility-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .mobile-toggle-btn {
    display: block;
  }
  
  .main-nav {
    display: none;
    position: absolute;
    top: 84px;
    left: 0;
    right: 0;
    background-color: #FFFFFF;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    padding: 20px;
    flex-direction: column;
    align-items: stretch;
    border-top: 1px solid #E2E8F0;
  }
  
  .main-nav.active {
    display: flex;
  }
  
  .nav-links {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }
  
  .dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    padding-left: 16px;
    background-color: #F8FAFC;
    display: block;
  }
  
  .btn-nav-contact {
    margin-left: 0;
    margin-top: 12px;
    width: 100%;
  }
  
  .hero-banner h1 {
    font-size: 2rem;
  }
  
  .our-mission-callout {
    padding: 24px 20px;
  }
}
