/* ==========================================================================
   LES AMIS DU MUSEE FABRE - DESIGN SYSTEM & STYLESHEET
   Association Loi 1901 | RNA: W343000414 | SIREN: 352437818
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700;800;900&family=Open+Sans:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
  --navy: #0E2335;
  --navy-dark: #07131D;
  --navy-light: #18354E;
  --teal: #00A3E0;
  --teal-dark: #0081B3;
  --coral: #E54838;
  --coral-hover: #D03728;
  --offwhite: #F4F6F8;
  --purewhite: #FFFFFF;
  --darkslate: #1A1A1A;
  --slate-muted: #556270;
  --border-subtle: #E2E8F0;
  --shadow-sm: 0 2px 4px rgba(14, 35, 53, 0.06);
  --shadow-md: 0 4px 12px rgba(14, 35, 53, 0.08);
  --shadow-lg: 0 10px 25px rgba(14, 35, 53, 0.12);
  --radius-card: 2px;
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

body {
  font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 1.0625rem; /* ~17px */
  line-height: 1.68;
  color: var(--darkslate);
  background-color: var(--offwhite);
  -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.15;
  color: var(--navy);
  letter-spacing: -0.01em;
  margin-bottom: 0.8rem;
}

h1 { font-size: 2.35rem; }
h2 { font-size: 1.85rem; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.15rem; }

p {
  margin-bottom: 1.25rem;
  max-width: 78ch;
}

a {
  color: var(--teal);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--teal-dark);
}

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

/* Layout Utilities */
.site-container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.site-container-narrow {
  max-width: 960px;
}

.section-padding {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.section-padding-sm {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

/* Administrative Top Strip */
.admin-utility-strip {
  background-color: var(--navy-dark);
  color: #A0B3C6;
  font-size: 0.8125rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 8px 0;
}

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

.admin-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.admin-badge {
  font-weight: 700;
  color: #E2EDF7;
  letter-spacing: 0.03em;
}

.admin-divider {
  opacity: 0.4;
}

.admin-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.admin-link {
  color: #A0B3C6;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.admin-link:hover {
  color: var(--purewhite);
}

.btn-utility-don {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--coral);
  color: var(--purewhite) !important;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 6px 14px;
  border-radius: 2px;
  min-height: 44px;
  min-width: 44px;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-utility-don:hover {
  background-color: var(--coral-hover);
  transform: translateY(-1px);
}

/* Master Navigation Bar */
.master-header {
  background-color: var(--purewhite);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 2px solid var(--border-subtle);
}

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

.brand-logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-title-group {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 1.25rem;
  color: var(--navy);
  letter-spacing: 0.02em;
  line-height: 1.1;
  text-transform: uppercase;
}

.brand-subtitle {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--slate-muted);
  font-weight: 600;
}

/* Desktop Nav Menu */
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav-item {
  position: relative;
}

.nav-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--navy);
  padding: 12px 14px;
  border-radius: 2px;
  min-height: 44px;
  cursor: pointer;
  background: transparent;
  border: none;
}

.nav-link-btn:hover, .nav-item:hover > .nav-link-btn {
  color: var(--teal);
  background-color: #F8FAFC;
}

.nav-chevron {
  font-size: 0.65rem;
  transition: transform 0.2s ease;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 250px;
  background-color: var(--purewhite);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-subtle);
  border-top: 3px solid var(--teal);
  border-radius: 0 0 2px 2px;
  list-style: none;
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.2s ease;
  z-index: 1100;
}

.nav-item:hover .dropdown-menu,
.nav-item:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item a {
  display: block;
  padding: 10px 20px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--darkslate);
  min-height: 44px;
  display: flex;
  align-items: center;
}

.dropdown-item a:hover {
  background-color: #F0F7FB;
  color: var(--teal);
  padding-left: 24px;
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-subtle);
  border-radius: 2px;
  width: 44px;
  height: 44px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.mobile-nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--navy);
  transition: var(--transition);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 14px 28px;
  border-radius: 2px;
  min-height: 44px;
  min-width: 44px;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  white-space: nowrap;
}

.btn-teal {
  background-color: var(--teal);
  color: var(--purewhite);
}

.btn-teal:hover {
  background-color: var(--teal-dark);
  color: var(--purewhite);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-coral {
  background-color: var(--coral);
  color: var(--purewhite);
}

.btn-coral:hover {
  background-color: var(--coral-hover);
  color: var(--purewhite);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

.btn-outline-white:hover {
  background-color: var(--purewhite);
  color: var(--navy);
}

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

.btn-outline-navy:hover {
  background-color: var(--navy);
  color: var(--purewhite);
}

/* Cards & Components */
.card {
  background-color: var(--purewhite);
  border-radius: var(--radius-card);
  border: 1px solid var(--border-subtle);
  border-top: 4px solid var(--teal);
  box-shadow: var(--shadow-sm);
  padding: 2rem;
  transition: var(--transition);
}

.card-coral {
  border-top-color: var(--coral);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* Hero Section */
.hero-section {
  position: relative;
  background-color: var(--navy);
  color: var(--purewhite);
  overflow: hidden;
  padding: 5.5rem 0;
}

.hero-bg-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-bg-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.28;
  filter: brightness(0.85);
}

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

.hero-subtitle-tag {
  display: inline-block;
  background-color: rgba(0, 163, 224, 0.2);
  color: #72D2F5;
  border: 1px solid rgba(0, 163, 224, 0.4);
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 6px 14px;
  margin-bottom: 1.25rem;
}

.hero-title {
  color: var(--purewhite);
  font-size: 3rem;
  margin-bottom: 1.25rem;
  line-height: 1.1;
}

.hero-lead-summary {
  font-size: 1.2rem;
  line-height: 1.6;
  color: #E2EDF7;
  margin-bottom: 2rem;
  font-weight: 400;
}

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

/* Institutional Callout */
.callout-institutional {
  background-color: var(--purewhite);
  border-left: 6px solid var(--teal);
  padding: 2.25rem;
  margin: 2.5rem 0;
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius-card);
}

.callout-title {
  color: var(--navy);
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.callout-quote {
  font-style: italic;
  font-weight: 600;
  color: var(--navy-light);
  border-left: 3px solid var(--coral);
  padding-left: 1rem;
  margin: 1.25rem 0;
}

/* Teal Quick Intake Strip */
.teal-intake-strip {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
  color: var(--purewhite);
  padding: 3rem 0;
  box-shadow: var(--shadow-sm);
}

.teal-intake-grid {
  display: grid;
  grid-template-columns: 1.2fr 1.8fr;
  gap: 32px;
  align-items: center;
}

.teal-intake-title {
  color: var(--purewhite);
  font-size: 1.65rem;
  margin-bottom: 0.5rem;
}

.teal-intake-form {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.teal-intake-form input {
  flex: 1;
  min-width: 200px;
  padding: 12px 16px;
  border-radius: 2px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  font-size: 0.95rem;
  min-height: 44px;
}

/* Grids */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

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

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

/* 5-Column Circular Section */
.circular-updates-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  text-align: center;
}

.circular-update-item {
  background: var(--purewhite);
  padding: 1.75rem 1rem;
  border-radius: 2px;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.circular-badge-number {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background-color: var(--navy);
  color: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 1.35rem;
  margin-bottom: 1rem;
  border: 3px solid #E2EDF7;
}

/* Status Badges */
.badge-status {
  display: inline-block;
  background-color: #E6F6FD;
  color: #0077A6;
  border: 1px solid #BAE6FD;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 2px;
}

/* Split Campaign Grid */
.campaign-split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.media-rounded-card {
  border-radius: 2px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-subtle);
}

/* Article Preview Cards */
.article-preview-card {
  background: var(--purewhite);
  border-radius: 2px;
  border: 1px solid var(--border-subtle);
  border-top: 4px solid var(--navy);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.article-preview-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.article-preview-card .img-frame {
  height: 200px;
  overflow: hidden;
}

.article-preview-card .img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.article-preview-card:hover .img-frame img {
  transform: scale(1.03);
}

.article-preview-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.article-meta {
  font-size: 0.8rem;
  color: var(--slate-muted);
  font-weight: 600;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.article-preview-body h3 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}

.article-preview-body p {
  font-size: 0.925rem;
  flex: 1;
  color: var(--slate-muted);
}

/* Association Transparency Notice Box */
.transparency-box {
  background-color: #EBF3F8;
  border: 1px solid #C4DCEB;
  border-radius: 2px;
  padding: 2.25rem;
  margin: 3rem 0;
}

.transparency-box h3 {
  color: var(--navy);
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
}

/* Tables */
.data-table-wrapper {
  overflow-x: auto;
  margin: 2rem 0;
  background: var(--purewhite);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
}

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

.data-table th, .data-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-subtle);
}

.data-table th {
  background-color: var(--navy);
  color: var(--purewhite);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

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

/* Forms */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
  color: var(--navy);
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  font-size: 1rem;
  border: 1px solid var(--border-subtle);
  border-radius: 2px;
  background-color: var(--purewhite);
  color: var(--darkslate);
  min-height: 44px;
}

.form-control:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(0, 163, 224, 0.15);
}

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

/* Master Footer */
.master-footer {
  background-color: var(--navy);
  color: #A0B3C6;
  padding-top: 5rem;
  border-top: 4px solid var(--teal);
}

.footer-grid-4 {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr 1.1fr 1.2fr;
  gap: 40px;
  margin-bottom: 4rem;
}

.footer-col h4 {
  color: var(--purewhite);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
  letter-spacing: 0.04em;
  position: relative;
  padding-bottom: 8px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background-color: var(--coral);
}

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

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

.footer-links a {
  color: #C3D3E2;
  font-size: 0.925rem;
  display: inline-flex;
  align-items: center;
  min-height: 32px;
}

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

.footer-newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 1rem;
}

.footer-newsletter-form input {
  padding: 12px 14px;
  border-radius: 2px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  color: var(--purewhite);
  font-size: 0.9rem;
  min-height: 44px;
}

.footer-newsletter-form input::placeholder {
  color: #7B90A5;
}

/* Mandatory Bottom Legal Strip */
.footer-legal-bottom {
  background-color: var(--navy-dark);
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
  line-height: 1.6;
  color: #8C9EA0;
}

.footer-legal-notice {
  margin: 0;
  max-width: 100%;
  text-align: center;
}

.footer-legal-notice strong {
  color: #D3E0EA;
}

/* Breadcrumbs & Internal Headers */
.page-header-banner {
  background-color: var(--navy);
  color: var(--purewhite);
  padding: 3.5rem 0;
  border-bottom: 4px solid var(--teal);
}

.page-header-banner h1 {
  color: var(--purewhite);
  margin-bottom: 0.5rem;
}

.breadcrumbs-trail {
  font-size: 0.85rem;
  color: #A0B3C6;
  margin-bottom: 0.75rem;
}

.breadcrumbs-trail a {
  color: #72D2F5;
}

/* Content Typography */
.content-body h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--border-subtle);
}

.content-body h3 {
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
}

.content-body ul, .content-body ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.content-body li {
  margin-bottom: 0.5rem;
}

/* Mobile Responsiveness Guidelines */
@media (max-width: 992px) {
  .hero-title {
    font-size: 2.25rem;
  }
  
  .teal-intake-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .circular-updates-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .footer-grid-4 {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  /* Force all multi-column CSS Grid structures to single column */
  .grid-2,
  .grid-3,
  .grid-4,
  .campaign-split-grid,
  .circular-updates-grid,
  .footer-grid-4 {
    grid-template-columns: 1fr !important;
  }
  
  .hero-title {
    font-size: 1.85rem;
  }
  
  .hero-section {
    padding: 3.5rem 0;
  }
  
  .admin-utility-flex {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .admin-right {
    width: 100%;
    justify-content: space-between;
  }
  
  .mobile-nav-toggle {
    display: flex;
  }
  
  .desktop-nav {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background: var(--purewhite);
    flex-direction: column;
    padding: 1rem 0;
    box-shadow: var(--shadow-lg);
    border-bottom: 3px solid var(--teal);
  }
  
  .desktop-nav.active {
    display: flex;
  }
  
  .nav-item {
    width: 100%;
  }
  
  .nav-link-btn {
    width: 100%;
    justify-content: space-between;
    padding: 14px 24px;
  }
  
  .dropdown-menu {
    position: static;
    display: none;
    box-shadow: none;
    border: none;
    border-left: 3px solid var(--teal);
    background: #F8FAFC;
    opacity: 1;
    visibility: visible;
    transform: none;
    padding: 4px 0 4px 16px;
  }
  
  .dropdown-menu.active {
    display: block;
  }
}
