/* =========================================
   KiCaféCa — Site Vitrine
   CSS Principal — Mobile First
   ========================================= */

/* --- 1. RESET & VARIABLES --- */

:root {
  /* Palette */
  --warmth: #F4E8D1;
  --cream: #FDF8F0;
  --terracotta: #C45D3E;
  --terracotta-light: #E8A48C;
  --terracotta-dark: #A84B33;
  --olive: #5B7A5E;
  --olive-light: #8BAF8E;
  --olive-dark: #4A664D;
  --ink: #2C2420;
  --ink-light: #6B5D52;
  --gold: #D4A64E;
  --gold-light: #F0D898;
  --gold-dark: #B88D41;
  --blush: #E8C4B8;
  --sky: #7EAEC4;
  --lavender: #A88BC4;
  --mint: #6BBF8A;

  /* Typographie */
  --font-heading: 'Caveat', 'Georgia', serif;
  --font-sans: 'DM Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;

  /* Spacing */
  --container-md: 800px;
  --container-lg: 1100px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  --spacing-xxl: 64px;
  --spacing-xxxl: 96px;

  /* Transitions */
  --transition-fast: 0.25s ease;
  --transition-normal: 0.35s ease;
  --transition-bounce: 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);

  /* Ombres */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.15);

  /* Border radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-full: 999px;

  /* Gradients */
  --gradient-terracotta: linear-gradient(135deg, var(--terracotta) 0%, var(--terracotta-dark) 100%);
  --gradient-olive: linear-gradient(135deg, var(--olive) 0%, var(--olive-dark) 100%);
  --gradient-gold: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  --gradient-card: linear-gradient(135deg, var(--cream) 0%, var(--warmth) 100%);
  --gradient-blush: linear-gradient(135deg, var(--blush) 0%, var(--terracotta-light) 100%);
  --gradient-ink: linear-gradient(135deg, var(--ink) 0%, #1a1410 100%);
}

/* Reset base */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 1rem 0;
  color: var(--ink);
}

h1 { font-size: 2rem; letter-spacing: -0.02em; }
h2 { font-size: 1.75rem; letter-spacing: -0.015em; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p { margin: 0 0 1.5rem 0; }

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

a:hover, a:focus {
  color: var(--ink);
  text-decoration: underline;
}

a:focus {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

ul {
  margin: 0 0 1.5rem 0;
  padding-left: 1.5rem;
}

li { margin-bottom: 0.5rem; }

/* --- 2. UTILITAIRES --- */

.container {
  width: 100%;
  max-width: var(--container-lg);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.container-md { max-width: var(--container-md); }

.row {
  display: grid;
  gap: var(--spacing-lg);
}

.row-cols-1 { grid-template-columns: 1fr; }
.row-cols-2 { grid-template-columns: 1fr; }
.row-cols-3 { grid-template-columns: 1fr; }
.row-cols-4 { grid-template-columns: 1fr; }

.text-center { text-align: center; }

.mt-1 { margin-top: var(--spacing-sm); }
.mt-2 { margin-top: var(--spacing-md); }
.mt-3 { margin-top: var(--spacing-lg); }
.mt-4 { margin-top: var(--spacing-xl); }

.mb-1 { margin-bottom: var(--spacing-sm); }
.mb-2 { margin-bottom: var(--spacing-md); }
.mb-3 { margin-bottom: var(--spacing-lg); }
.mb-4 { margin-bottom: var(--spacing-xl); }

.py-1 { padding-top: var(--spacing-sm); padding-bottom: var(--spacing-sm); }
.py-2 { padding-top: var(--spacing-md); padding-bottom: var(--spacing-md); }
.py-3 { padding-top: var(--spacing-lg); padding-bottom: var(--spacing-lg); }
.py-4 { padding-top: var(--spacing-xl); padding-bottom: var(--spacing-xl); }

.d-flex { display: flex; }
.justify-between { justify-content: space-between; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --- 3. BUTTONS --- */

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-bounce);
  background: var(--gradient-terracotta);
  color: var(--cream);
  line-height: 1.4;
  box-shadow: 0 4px 12px rgba(196, 93, 62, 0.3);
}

.btn:hover, .btn:focus {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--terracotta);
  color: var(--terracotta);
  box-shadow: none;
}

.btn-outline:hover, .btn-outline:focus {
  background: var(--gradient-terracotta);
  color: var(--cream);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: var(--gradient-olive);
  color: var(--cream);
  box-shadow: 0 4px 12px rgba(91, 122, 94, 0.3);
}

.btn-secondary:hover, .btn-secondary:focus {
  background: linear-gradient(135deg, var(--olive-light) 0%, var(--olive) 100%);
}

.btn-small {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn.disabled {
  opacity: 0.4;
  pointer-events: none;
  cursor: default;
}

/* --- 4. CARDS --- */

.card {
  background: var(--gradient-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: var(--spacing-lg);
  transition: all var(--transition-bounce);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-top: 4px solid var(--terracotta);
}

.card:hover {
  box-shadow: var(--shadow-md);
}

.card-static {
  transition: none;
}

.page-association .card-static:hover {
  transform: none;
  box-shadow: var(--shadow-sm);
}

/* --- 5. BADGES --- */

.badge {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: var(--radius-full);
  background: var(--gradient-olive);
  color: var(--cream);
  box-shadow: var(--shadow-sm);
}

.badge-gold {
  background: var(--gradient-gold);
  color: var(--ink);
  box-shadow: 0 2px 8px rgba(212, 166, 78, 0.3);
}

/* --- 6. HEADER & NAVIGATION --- */

.site-header {
  background: var(--ink);
  color: var(--cream);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-md);
}

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

.site-branding {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  text-decoration: none;
  color: var(--cream);
  flex-shrink: 0;
}

.site-branding:hover, .site-branding:focus {
  color: var(--gold);
  text-decoration: none;
}

.site-branding img {
  height: 44px;
  width: auto;
  border-radius: var(--radius-sm);
}

.site-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}

.nav { position: relative; }

.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--cream);
  cursor: pointer;
  padding: var(--spacing-sm);
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast);
}

.nav-toggle:hover { background: rgba(255, 255, 255, 0.1); }

.nav-toggle:focus {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.nav-list {
  display: none;
  list-style: none;
  margin: 0;
  padding: var(--spacing-sm) 0;
  position: absolute;
  top: calc(100% + var(--spacing-sm));
  right: 0;
  background: var(--ink);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  min-width: 190px;
  z-index: 100;
  flex-direction: column;
}

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

.nav-item { margin: 0; }

.nav-link {
  display: block;
  padding: 0.75rem 1.25rem;
  color: var(--warmth);
  text-decoration: none;
  font-weight: 500;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.nav-link:hover, .nav-link:focus {
  color: var(--cream);
  background: rgba(255, 255, 255, 0.08);
  text-decoration: none;
}

.nav-link.active {
  color: var(--cream);
  background: var(--terracotta);
}

.nav-link.disabled {
  color: rgba(255, 255, 255, 0.3);
  pointer-events: none;
  cursor: default;
}

/* Dropdown */
.nav-dropdown { position: relative; }

.nav-dropdown-toggle {
  background: none;
  border: none;
  font: inherit;
  font-weight: 500;
  color: var(--warmth);
  text-decoration: none;
  cursor: pointer;
  width: 100%;
  text-align: left;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.dropdown-menu {
  display: none;
  list-style: none;
  margin: 0;
  padding: var(--spacing-sm) 0;
  background: var(--ink);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  min-width: 190px;
}

.dropdown-link {
  display: block;
  padding: 0.6rem 1.25rem;
  color: var(--warmth);
  text-decoration: none;
  font-weight: 500;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.dropdown-link:hover, .dropdown-link:focus {
  color: var(--cream);
  background: rgba(255, 255, 255, 0.08);
  text-decoration: none;
}

/* Desktop nav */
@media (min-width: 768px) {
  .nav-toggle { display: none; }

  .nav-list {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.25rem;
    position: static;
    background: none;
    box-shadow: none;
    min-width: unset;
    padding: 0;
    border-radius: 0;
  }

  .nav-dropdown {
    padding-bottom: 4px;
  }

  .nav-dropdown-toggle {
    width: auto;
    text-align: center;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
  }

  .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 200;
  }

  .nav-dropdown:hover .dropdown-menu,
  .nav-dropdown.open .dropdown-menu { display: block; }

  .nav-link {
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
  }

  .nav-link:hover, .nav-link:focus { background: rgba(255, 255, 255, 0.1); }
  .nav-link.active { background: var(--gradient-terracotta); }
}
@media (min-width: 768px) {
  .nav-toggle { display: none; }

  .nav-list {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.25rem;
    position: static;
    background: none;
    box-shadow: none;
    min-width: unset;
    padding: 0;
    border-radius: 0;
  }

  .nav-link {
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
  }

  .nav-link:hover, .nav-link:focus { background: rgba(255, 255, 255, 0.1); }
  .nav-link.active { background: var(--gradient-terracotta); }
}

/* --- 7. FOOTER --- */

.site-footer {
  background: var(--gradient-olive);
  color: var(--cream);
  padding: var(--spacing-lg) 0;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-md) var(--spacing-lg);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.footer-brand img {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
}

.footer-brand h4 {
  color: var(--cream);
  font-size: 1.125rem;
  margin: 0;
  font-weight: 600;
  line-height: 1.3;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm) var(--spacing-md);
}

.footer-links a {
  color: var(--warmth);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--cream);
  text-decoration: underline;
}

.footer-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--spacing-sm) var(--spacing-md);
  font-size: 0.9375rem;
}

.footer-contact a {
  color: var(--gold);
  font-weight: 600;
  text-decoration: none;
}

.footer-contact a:hover { text-decoration: underline; }

.footer-contact span { color: rgba(255, 255, 255, 0.7); }

.footer-bottom {
  text-align: center;
  padding-top: var(--spacing-md);
  margin-top: var(--spacing-md);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer-bottom p { margin: 0; }

.footer-bottom a {
  color: var(--gold);
  text-decoration: underline;
  font-weight: 600;
}

/* --- 8. SECTIONS GÉNÉRIQUES --- */

.section { padding: var(--spacing-xxl) 0; }

.section-header {
  text-align: center;
  margin-bottom: var(--spacing-xl);
}

.section-title {
  font-size: 2rem;
  color: var(--ink);
  margin-bottom: var(--spacing-sm);
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--ink-light);
  max-width: 600px;
  margin: 0 auto;
}

/* --- 9. PAGE D'ACCUEIL --- */

.hero {
  background: var(--gradient-olive);
  color: var(--cream);
  padding: var(--spacing-xxl) 0 var(--spacing-lg) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 80%;
  height: 120%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
  border-radius: 50%;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: var(--spacing-sm);
  line-height: 1.2;
  font-weight: 700;
}

.hero .hero-baseline {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: var(--spacing-md);
}

.hero p {
  font-size: 1.25rem;
  color: var(--warmth);
  max-width: 800px;
  margin: 0 auto var(--spacing-lg) auto;
  font-weight: 500;
}

.hero .btn { margin-top: var(--spacing-md); }

.features { background: var(--cream); }

.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-xxl);
  text-align: center;
}

.feature-item {
  padding: var(--spacing-lg);
  background: var(--gradient-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(255,255,255,0.3);
}

.feature-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--spacing-md) auto;
  border-radius: 50%;
  background: var(--gradient-terracotta);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(196, 93, 62, 0.3);
  transition: transform var(--transition-normal);
}

.feature-item:hover .feature-icon { transform: scale(1.1); }

.feature-icon svg {
  width: 40px;
  height: 40px;
  color: var(--cream);
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.feature-item h3 {
  font-size: 1.5rem;
  margin-bottom: var(--spacing-sm);
  color: var(--ink);
  font-weight: 600;
}

.feature-item p { color: var(--ink-light); }

/* --- 10. PAGE PROGRAMMATION --- */

.programmation-hero {
  background: var(--gradient-ink);
  color: var(--cream);
  padding: var(--spacing-xxl) 0;
  text-align: center;
}

.programmation-hero .section-title { color: var(--cream); }
.programmation-hero .section-subtitle { color: var(--warmth); }

.programmation-calendar {
  background: var(--warmth);
  padding: var(--spacing-xxl) 0;
}

.calendar-container {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.calendar-header {
  background: var(--gradient-terracotta);
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  padding: var(--spacing-md) var(--spacing-lg);
}

.calendar-logo {
  width: 60px;
  height: 60px;
  object-fit: contain;
  flex-shrink: 0;
}

.calendar-title h1 {
  font-family: 'Caveat', cursive;
  font-size: 2.5rem;
  color: #fff;
  line-height: 1.1;
  margin: 0;
}

.calendar-title p {
  font-size: 0.875rem;
  color: var(--blush);
  margin-top: 4px;
}

.calendar-desktop { display: block; }
.calendar-mobile { display: none; }

.calendar-grid {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  margin: 0;
}

.calendar-grid thead th {
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: var(--spacing-sm) 4px;
  text-align: center;
}

.calendar-grid tbody td {
  border: 1px solid #ddd3c5;
  vertical-align: top;
  padding: 4px 4px var(--spacing-sm);
  height: 100px;
  background: #fff;
}

.calendar-grid tbody td:empty { background: #f3ede4; }
.calendar-grid tbody td.outside { background: #eae3d8; color: #ccc; }

.day-num {
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--ink);
  margin-bottom: 4px;
  line-height: 1;
}

.event {
  display: block;
  padding: 3px 7px;
  border-radius: 5px;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.35;
  margin-bottom: 3px;
  word-wrap: break-word;
}

.event:last-child { margin-bottom: 0; }

.ev-ouverture {
  background: none;
  color: var(--ink-light);
  font-style: italic;
  padding: 0 7px;
  border: 1px dashed #ccc;
}

.ev-recurrent { background: var(--gold-light); color: var(--ink); }
.ev-nouveau { background: var(--lavender); color: #fff; }
.ev-special { background: var(--sky); color: #fff; }
.ev-jeu { background: var(--mint); color: #fff; }

.calendar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-lg);
  padding: var(--spacing-lg) var(--spacing-xl);
  background: var(--warmth);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  align-items: center;
  justify-content: center;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  color: var(--ink-light);
  font-weight: 500;
}

.legend-dot {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  flex-shrink: 0;
}

.legend-note {
  margin-left: 0;
  font-size: 0.8125rem;
  color: var(--terracotta);
  font-weight: 600;
  margin-top: var(--spacing-sm);
  width: 100%;
  text-align: center;
}

/* --- 11. PAGE ASSOCIATION --- */

.about-hero {
  background: var(--gradient-olive);
  color: var(--cream);
  padding: var(--spacing-xxl) 0;
  text-align: center;
}

.about-hero p {
  color: var(--warmth);
  font-size: 1.25rem;
  font-weight: 500;
}

.values-section {
  background: var(--warmth);
  padding: var(--spacing-xl) 0;
}

.values-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-lg);
}

.value-item {
  padding: var(--spacing-lg);
  background: var(--gradient-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  border: 1px solid rgba(255,255,255,0.2);
}

.value-item:hover { box-shadow: var(--shadow-md); }

.value-item h3 {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-sm);
  color: var(--ink);
  font-weight: 600;
}

.value-item p {
  color: var(--ink-light);
  margin: 0;
}

.value-heading {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-md);
}

.value-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.value-item:nth-child(1) .value-icon { background: var(--gradient-terracotta); }
.value-item:nth-child(2) .value-icon { background: var(--gradient-gold); }
.value-item:nth-child(3) .value-icon { background: var(--gradient-olive); }
.value-item:nth-child(4) .value-icon { background: var(--gradient-blush); }

.charter-heading {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-md);
}

.charter-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient-terracotta);
  color: var(--cream);
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(196, 93, 62, 0.3);
  flex-shrink: 0;
}

.intro-highlight {
  border-left: 4px solid var(--terracotta);
  padding-left: var(--spacing-lg);
  font-size: 1.125rem;
  color: var(--ink);
  margin-bottom: var(--spacing-lg);
}

.section-highlight-terracotta {
  background: var(--gradient-terracotta);
  color: var(--cream);
  padding: var(--spacing-xl) 0;
}

.section-highlight-terracotta h2,
.section-highlight-terracotta h3 { color: var(--cream); }

.section-highlight-terracotta p,
.section-highlight-terracotta li,
.section-highlight-terracotta em { color: rgba(255, 255, 255, 0.95); }

.section-highlight-terracotta strong { color: var(--cream); }

.section-highlight-terracotta .section-subtitle { color: var(--warmth); }

/* --- 12. PAGE NEWSLETTERS --- */

.newsletter-hero {
  background: var(--gradient-blush);
  color: var(--ink);
  padding: var(--spacing-xxl) 0;
  text-align: center;
}

.newsletter-hero h1 { color: var(--ink); font-weight: 700; }
.newsletter-hero .section-subtitle { color: var(--ink-light); font-weight: 500; }

.archives {
  background: var(--gradient-card);
  padding: var(--spacing-xl) 0;
}

.archive-item {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  padding: var(--spacing-lg);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  background: var(--gradient-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  border: 1px solid rgba(255,255,255,0.2);
}

.archive-item:hover { box-shadow: var(--shadow-md); }
.archive-item:last-child { border-bottom: none; }

.archive-item h3 {
  font-size: 1.25rem;
  margin: 0;
  color: var(--ink);
  font-weight: 600;
}

.archive-meta {
  font-size: 0.875rem;
  color: var(--ink-light);
}

.archive-link {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  color: var(--terracotta);
  font-weight: 600;
}

.archive-link:hover { text-decoration: underline; }

/* --- 13. RESPONSIVE --- */

@media (min-width: 768px) {
  .hero h1 { font-size: 3.5rem; }
  .hero .hero-baseline { font-size: 0.9375rem; }
  .hero p { font-size: 1.5rem; }

  .row-cols-2 { grid-template-columns: repeat(2, 1fr); }
  .row-cols-3 { grid-template-columns: repeat(3, 1fr); }
  .row-cols-4 { grid-template-columns: repeat(4, 1fr); }

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

  .intro-highlight { padding-left: var(--spacing-xl); }

  .calendar-header { flex-direction: row; }
  .calendar-title h1 { font-size: 2.5rem; }
}

@media (min-width: 1024px) {
  .container { padding: 0; }
}

@media (max-width: 768px) {
  .calendar-header {
    flex-direction: column;
    text-align: center;
    gap: var(--spacing-sm);
  }

  .calendar-logo { width: 40px; height: 40px; }
  .calendar-title h1 { font-size: 1.75rem; }

  .calendar-desktop { display: none; }
  .calendar-mobile { display: block; }

  .calendar-mobile {
    padding: var(--spacing-md);
    background: var(--warmth);
  }

  .mobile-day {
    background: #fff;
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
  }

  .mobile-day-header {
    background: var(--gradient-terracotta);
    color: #fff;
    padding: var(--spacing-sm) var(--spacing-md);
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .mobile-day-date {
    font-weight: 700;
    font-size: 1.125rem;
    margin-left: auto;
  }

  .mobile-week-1 .mobile-day-header { background: var(--gradient-terracotta); }
  .mobile-week-2 .mobile-day-header { background: linear-gradient(135deg, #b86b4c 0%, #a0533b 100%); }
  .mobile-week-3 .mobile-day-header { background: linear-gradient(135deg, #c47b5c 0%, #a8634b 100%); }
  .mobile-week-4 .mobile-day-header { background: linear-gradient(135deg, #d08b6c 0%, #b8735b 100%); }
  .mobile-week-5 .mobile-day-header { background: linear-gradient(135deg, #dc9b7c 0%, #c8836b 100%); }

  .week-separator {
    position: relative;
    text-align: center;
    margin: var(--spacing-md) 0;
  }
  .week-separator::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--terracotta-light);
    opacity: 0.5;
  }
  .week-separator span {
    background: var(--warmth);
    padding: 0 var(--spacing-sm);
    font-size: 0.75rem;
    color: var(--ink-light);
    position: relative;
    z-index: 1;
    font-weight: 500;
  }

  .mobile-day-body {
    padding: var(--spacing-md);
  }

  .mobile-day-body .event {
    margin-bottom: var(--spacing-sm);
    font-size: 0.9375rem;
  }

  .mobile-day-body .event:last-child { margin-bottom: 0; }

  .calendar-legend {
    flex-direction: column;
    gap: var(--spacing-sm);
    text-align: center;
  }
}

@media (max-width: 480px) {
  .calendar-grid thead th {
    font-size: 0.625rem;
    padding: 4px;
  }

  .calendar-grid tbody td {
    height: auto;
    min-height: 60px;
    padding: 2px;
  }

  .day-num { font-size: 0.875rem; }
  .event { font-size: 0.65rem; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* Print */
@media print {
  .site-header, .site-footer, .hero, .subscribe-section { break-before: avoid; }
  .site-footer { background: white; color: black; padding: 1rem 0; }
  .site-footer a { color: black; text-decoration: underline; }
  .card { box-shadow: none; border: 1px solid #ddd; }
  .btn, .nav-toggle { display: none; }
}

/* --- 14. BACK TO TOP --- */

.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--gradient-terracotta);
  color: var(--cream);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition-normal);
  z-index: 999;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-4px) scale(1.1);
  box-shadow: var(--shadow-lg);
}
