@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;700&family=Syne:wght@500;700;800&display=swap');

:root {
  --brown-900: #2e1d14;
  --brown-800: #3f2a1d;
  --brown-700: #5b3a28;
  --brown-500: #8f5d3d;
  --terracotta: #b56b46;
  --beige-100: #f8f3ec;
  --beige-200: #f0e3d4;
  --beige-300: #e2cfb7;
  --white-soft: #fffcf9;
  --text-main: #2f2118;
  --text-muted: #755844;
  --shadow-soft: 0 20px 40px rgba(47, 33, 24, 0.14);
  --image-hover-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --image-hover-shadow: 0 24px 54px rgba(47, 33, 24, 0.18);
  --afro-pattern-line: rgba(91, 58, 40, 0.045);
  --afro-pattern-accent: rgba(181, 107, 70, 0.035);
  --afro-pattern-image:
    linear-gradient(135deg, transparent 0 45%, var(--afro-pattern-line) 45% 47%, transparent 47% 53%, var(--afro-pattern-line) 53% 55%, transparent 55% 100%),
    linear-gradient(45deg, transparent 0 47%, var(--afro-pattern-accent) 47% 49%, transparent 49% 51%, var(--afro-pattern-accent) 51% 53%, transparent 53% 100%),
    radial-gradient(circle at center, var(--afro-pattern-accent) 0 1.4px, transparent 1.8px);
  --afro-pattern-size: 72px 72px, 72px 72px, 36px 36px;
  --afro-pattern-position: 0 0, 0 0, 18px 18px;
}

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

html {
  min-height: 100%;
  scroll-behavior: smooth;
  background: var(--beige-100);
}

body {
  margin: 0;
  position: relative;
  min-height: 100vh;
  font-family: 'Outfit', sans-serif;
  color: var(--text-main);
  background: transparent;
  isolation: isolate;
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: var(--afro-pattern-image);
  background-size: var(--afro-pattern-size);
  background-position: var(--afro-pattern-position);
  opacity: 0.85;
  pointer-events: none;
}

body > * {
  position: relative;
  z-index: 0;
}

.custom-cursor,
.custom-cursor-dot {
  display: none;
}

@media (hover: hover) and (pointer: fine) {
  .custom-cursor,
  .custom-cursor-dot {
    --cursor-scale: 1;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 2147483647;
    display: block;
    border-radius: 999px;
    pointer-events: none;
    opacity: 0;
    transform: translate3d(-50%, -50%, 0) scale(var(--cursor-scale));
    will-change: transform, opacity;
  }

  .custom-cursor {
    width: 42px;
    height: 42px;
    border: 1px solid rgba(143, 93, 61, 0.34);
    background:
      radial-gradient(circle, rgba(181, 107, 70, 0.14) 0 34%, transparent 68%),
      rgba(255, 252, 249, 0.18);
    box-shadow: 0 0 28px rgba(181, 107, 70, 0.16);
    transition:
      opacity 0.12s ease,
      border-color 0.12s ease,
      background 0.12s ease,
      box-shadow 0.12s ease;
  }

  .custom-cursor-dot {
    --cursor-scale: 1;
    width: 7px;
    height: 7px;
    background: rgba(63, 42, 29, 0.82);
    box-shadow: 0 0 12px rgba(181, 107, 70, 0.28);
    transition:
      opacity 80ms ease,
      background 100ms ease,
      box-shadow 100ms ease;
  }

  body.custom-cursor-enabled,
  body.custom-cursor-enabled a,
  body.custom-cursor-enabled button,
  body.custom-cursor-enabled .card,
  body.custom-cursor-enabled .carousel-btn,
  body.custom-cursor-enabled .carousel-indicator,
  body.custom-cursor-enabled .gallery-page figure,
  body.custom-cursor-enabled .hero-visual,
  body.custom-cursor-enabled .vision-art,
  body.custom-cursor-enabled .section-visual,
  body.custom-cursor-enabled .inscription-visual {
    cursor: none;
  }

  body.custom-cursor-enabled input,
  body.custom-cursor-enabled select,
  body.custom-cursor-enabled textarea,
  body.custom-cursor-enabled label {
    cursor: auto;
  }

  body.custom-cursor-ready .custom-cursor,
  body.custom-cursor-ready .custom-cursor-dot {
    opacity: 1;
  }

  body.cursor-hover .custom-cursor {
    --cursor-scale: 1.34;
    border-color: rgba(181, 107, 70, 0.48);
    background:
      radial-gradient(circle, rgba(181, 107, 70, 0.2) 0 32%, transparent 70%),
      rgba(255, 252, 249, 0.24);
    box-shadow: 0 0 34px rgba(181, 107, 70, 0.2);
  }

  body.cursor-hover .custom-cursor-dot {
    --cursor-scale: 0.72;
    background: rgba(181, 107, 70, 0.92);
  }

  body.cursor-pressed .custom-cursor {
    --cursor-scale: 0.82;
    border-color: rgba(91, 58, 40, 0.5);
    background: rgba(181, 107, 70, 0.12);
  }

  body.cursor-pressed .custom-cursor-dot {
    --cursor-scale: 1.28;
    background: rgba(63, 42, 29, 0.9);
  }

  body.cursor-hidden .custom-cursor,
  body.cursor-hidden .custom-cursor-dot {
    opacity: 0;
  }
}

h1,
h2,
h3,
.nav-brand {
  font-family: 'Syne', sans-serif;
  line-height: 1.2;
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.site-header {
  position: relative;
  z-index: 1000;
}

.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 5%;
  background: rgba(255, 249, 241, 0.92);
  border-bottom: 1px solid rgba(63, 42, 29, 0.15);
  backdrop-filter: blur(10px);
}

.nav-brand {
  font-size: 1.1rem;
  letter-spacing: 0.03em;
  color: var(--brown-900);
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0;
  padding: 0;
  font-size: 0.9rem;
}

.nav-links a {
  padding: 0.35rem 0.55rem;
  border-radius: 0.45rem;
  color: var(--brown-800);
}

.nav-links a:hover,
.nav-links a.active {
  background: rgba(181, 107, 70, 0.13);
  color: var(--brown-900);
}

.menu-toggle {
  display: none;
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid rgba(63, 42, 29, 0.2);
  border-radius: 0.6rem;
  background: var(--white-soft);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
}

.menu-toggle .bar {
  width: 18px;
  height: 2px;
  background: var(--brown-900);
  transition: transform 0.22s ease, opacity 0.18s ease;
}

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 2rem;
  padding: 7.5rem 5% 3rem;
  background-image: var(--afro-pattern-image), linear-gradient(135deg, #fffdf9 0%, #f3e5d3 100%);
  background-size: var(--afro-pattern-size), auto;
  background-position: var(--afro-pattern-position), 0 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 15%, rgba(181, 107, 70, 0.15), transparent 45%);
  pointer-events: none;
}

.hero-content,
.hero-visual {
  position: relative;
  z-index: 1;
}

.hero-visual {
  overflow: hidden;
  border-radius: 1.25rem;
  box-shadow: var(--shadow-soft);
  isolation: isolate;
  transition: transform 0.35s var(--image-hover-ease), box-shadow 0.35s var(--image-hover-ease);
}

.teranga-badge {
  display: inline-block;
  padding: 0.4rem 0.85rem;
  border-radius: 100px;
  background: rgba(181, 107, 70, 0.15);
  color: var(--brown-800);
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 0.9rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 4rem);
  margin-bottom: 1rem;
}

.hero-text {
  max-width: 62ch;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.hero-visual img {
  width: 100%;
  display: block;
  height: clamp(320px, 45vw, 620px);
  object-fit: cover;
  object-position: center;
  border-radius: 1.25rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.75rem 1.3rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(47, 33, 24, 0.12);
}

.btn-primary {
  background: var(--brown-800);
  color: var(--white-soft);
}

.btn-secondary {
  border-color: rgba(63, 42, 29, 0.25);
  color: var(--brown-800);
}

.hero-actions,
.cta-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.section {
  padding: 5rem 5%;
}

.section-alt {
  background-image: var(--afro-pattern-image), linear-gradient(180deg, #fff8ef 0%, #f7ecdf 100%);
  background-size: var(--afro-pattern-size), auto;
  background-position: var(--afro-pattern-position), 0 0;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 1.9rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  color: var(--terracotta);
  margin: 0 0 0.6rem;
  font-weight: 700;
}

.section-heading h2 {
  font-size: clamp(1.7rem, 3.8vw, 2.8rem);
}

.vision-grid,
.program-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.vision-grid article,
.program-grid article {
  background: var(--white-soft);
  border-radius: 1rem;
  padding: 1.2rem;
  border: 1px solid rgba(63, 42, 29, 0.12);
}

.vision-art {
  margin-top: 1.5rem;
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  isolation: isolate;
  transition: transform 0.35s var(--image-hover-ease), box-shadow 0.35s var(--image-hover-ease);
}

.vision-art img {
  width: 100%;
  display: block;
  border-radius: 1rem;
  border: 1px solid rgba(63, 42, 29, 0.15);
}

.content-split {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(280px, 1fr);
  gap: 1.25rem;
  align-items: center;
}

.content-split-reverse {
  align-items: stretch;
}

.section-visual {
  margin: 0;
}

.section-visual,
.inscription-visual {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  box-shadow: 0 16px 34px rgba(47, 33, 24, 0.12);
  isolation: isolate;
  transition: transform 0.35s var(--image-hover-ease), box-shadow 0.35s var(--image-hover-ease);
}

.section-visual img,
.inscription-visual img {
  width: 100%;
  display: block;
  border-radius: 1rem;
  border: 1px solid rgba(63, 42, 29, 0.15);
}

.feature-list {
  display: grid;
  gap: 0.85rem;
}

.feature-list article {
  background: var(--white-soft);
  border: 1px solid rgba(63, 42, 29, 0.12);
  border-radius: 1rem;
  padding: 1rem;
}

.feature-list h3 {
  margin-bottom: 0.45rem;
}

.feature-list p {
  margin: 0;
  color: var(--text-muted);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.card {
  position: relative;
  background: var(--white-soft);
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid rgba(63, 42, 29, 0.13);
  isolation: isolate;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card:hover,
.card:focus-within {
  transform: translateY(-5px);
  border-color: rgba(181, 107, 70, 0.35);
  box-shadow: 0 22px 50px rgba(47, 33, 24, 0.14);
}

.card img {
  width: 100%;
  display: block;
  height: 210px;
  object-fit: cover;
  transform-origin: center;
  transition: transform 0.45s var(--image-hover-ease), filter 0.45s var(--image-hover-ease);
  will-change: transform;
}

#highlights .card img {
  display: block;
  height: 240px;
  object-fit: contain;
  object-position: center;
  padding: 0.75rem;
  background: linear-gradient(135deg, var(--beige-100), var(--beige-200));
}

#impact .card img {
  display: block;
  height: 230px;
  object-fit: contain;
  object-position: center;
  padding: 0.65rem;
  background: linear-gradient(135deg, var(--beige-100), var(--beige-200));
}

.card-body {
  position: relative;
  z-index: 1;
  background: var(--white-soft);
  padding: 1rem;
}

.card-body h3 {
  font-size: 1.2rem;
  margin-bottom: 0.55rem;
}

.card-body p {
  margin: 0;
  color: var(--text-muted);
}

.carousel {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.75rem;
}

.carousel-track {
  position: relative;
  min-height: 360px;
  overflow: hidden;
}

.carousel-track-inner {
  display: flex;
  width: 100%;
  transition: transform 650ms cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: transform;
}

.carousel-slide {
  flex: 0 0 100%;
  margin: 0;
  display: block;
}

.gallery-page {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.gallery-page figure {
  margin: 0;
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  box-shadow: 0 16px 32px rgba(47, 33, 24, 0.1);
  isolation: isolate;
  transition: transform 0.35s var(--image-hover-ease), box-shadow 0.35s var(--image-hover-ease);
}

.gallery-page img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 1rem;
  border: 1px solid rgba(63, 42, 29, 0.13);
  background: var(--white-soft);
}

.hero-visual img,
.vision-art img,
.section-visual img,
.inscription-visual img,
.gallery-page img {
  transform-origin: center;
  transition: transform 0.45s var(--image-hover-ease), filter 0.45s var(--image-hover-ease);
  will-change: transform;
}

@keyframes imageSurfaceShimmer {
  0% { transform: translateX(-130%) skewX(-16deg); opacity: 0; }
  35% { opacity: 0.32; }
  100% { transform: translateX(160%) skewX(-16deg); opacity: 0; }
}

.card::after,
.hero-visual::after,
.vision-art::after,
.section-visual::after,
.inscription-visual::after,
.gallery-page figure::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(115deg, transparent 28%, rgba(255, 252, 249, 0.32) 48%, transparent 68%);
  opacity: 0;
  pointer-events: none;
  transform: translateX(-130%) skewX(-16deg);
}

.card:hover::after,
.card:focus-within::after,
.hero-visual:hover::after,
.hero-visual:focus-within::after,
.vision-art:hover::after,
.vision-art:focus-within::after,
.section-visual:hover::after,
.section-visual:focus-within::after,
.inscription-visual:hover::after,
.inscription-visual:focus-within::after,
.gallery-page figure:hover::after,
.gallery-page figure:focus-within::after {
  animation: imageSurfaceShimmer 850ms ease-out;
}

.hero-visual:hover,
.hero-visual:focus-within,
.vision-art:hover,
.vision-art:focus-within,
.section-visual:hover,
.section-visual:focus-within,
.inscription-visual:hover,
.inscription-visual:focus-within,
.gallery-page figure:hover,
.gallery-page figure:focus-within {
  transform: translateY(-4px);
  box-shadow: var(--image-hover-shadow);
}

.card:hover img,
.card:focus-within img,
.hero-visual:hover img,
.hero-visual:focus-within img,
.vision-art:hover img,
.vision-art:focus-within img,
.section-visual:hover img,
.section-visual:focus-within img,
.inscription-visual:hover img,
.inscription-visual:focus-within img,
.gallery-page figure:hover img,
.gallery-page figure:focus-within img {
  transform: scale(1.035);
  filter: saturate(1.06) contrast(1.03);
}

#highlights .card:hover img,
#highlights .card:focus-within img,
#impact .card:hover img,
#impact .card:focus-within img {
  transform: scale(1.018);
}

.card:focus-within,
.hero-visual:focus-within,
.vision-art:focus-within,
.section-visual:focus-within,
.inscription-visual:focus-within,
.gallery-page figure:focus-within {
  outline: 3px solid rgba(181, 107, 70, 0.32);
  outline-offset: 4px;
}

.card img:focus-visible,
.hero-visual img:focus-visible,
.vision-art img:focus-visible,
.section-visual img:focus-visible,
.inscription-visual img:focus-visible,
.gallery-page img:focus-visible {
  outline: 3px solid rgba(181, 107, 70, 0.4);
  outline-offset: -6px;
}

.carousel-btn {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  border: 1px solid rgba(63, 42, 29, 0.2);
  color: var(--brown-800);
  background: var(--white-soft);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.carousel-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(47, 33, 24, 0.12);
  border-color: rgba(181, 107, 70, 0.35);
}

.carousel-btn:focus-visible {
  outline: 3px solid rgba(181, 107, 70, 0.35);
  outline-offset: 2px;
}

.carousel-indicators {
  display: flex;
  gap: 0.45rem;
  justify-content: center;
  align-items: center;
  margin-top: 0.85rem;
  grid-column: 1 / -1;
}

.carousel-indicator {
  appearance: none;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 0;
  padding: 0;
  background: rgba(63, 42, 29, 0.18);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease, transform 0.25s ease, opacity 0.25s ease;
  opacity: 0.95;
}

.carousel-indicator[aria-current="true"] {
  width: 26px;
  background: rgba(181, 107, 70, 0.78);
  animation: indicatorGlow 1.8s ease-in-out infinite;
}

@keyframes indicatorGlow {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

.inline-link {
  display: inline-block;
  margin-top: 1rem;
  color: var(--brown-800);
  font-weight: 600;
  border-bottom: 1px solid rgba(63, 42, 29, 0.4);
}

.faq-list {
  display: grid;
  gap: 0.75rem;
}

.faq-list details {
  background: var(--white-soft);
  border: 1px solid rgba(63, 42, 29, 0.12);
  border-radius: 0.75rem;
  padding: 0.95rem 1rem;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 600;
}

.cta-section {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(340px, 1.2fr);
  align-items: start;
  gap: 1.2rem;
  background-image: var(--afro-pattern-image), linear-gradient(140deg, #f5e8d7 0%, #ead4be 100%);
  background-size: var(--afro-pattern-size), auto;
  background-position: var(--afro-pattern-position), 0 0;
}

.inscription-intro p {
  color: var(--text-muted);
  margin-top: 0.8rem;
}

.inscription-visual {
  margin: 1.25rem 0 0;
}

.inscription-form {
  background: rgba(255, 252, 249, 0.84);
  border: 1px solid rgba(63, 42, 29, 0.14);
  border-radius: 1rem;
  padding: 1.2rem;
  box-shadow: 0 18px 32px rgba(47, 33, 24, 0.08);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}

.form-field {
  display: grid;
  gap: 0.4rem;
}

.form-field-full {
  grid-column: 1 / -1;
}

.form-field label {
  font-weight: 600;
  color: var(--brown-900);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  font: inherit;
  color: var(--text-main);
  background: var(--white-soft);
  border: 1px solid rgba(63, 42, 29, 0.2);
  border-radius: 0.75rem;
  padding: 0.65rem 0.75rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

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

.form-field input:focus-visible,
.form-field select:focus-visible,
.form-field textarea:focus-visible {
  border-color: rgba(181, 107, 70, 0.75);
  box-shadow: 0 0 0 3px rgba(181, 107, 70, 0.2);
  outline: none;
}

.consent-field {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin: 1rem 0;
  color: var(--brown-800);
}

.consent-field input {
  margin-top: 0.2rem;
}

.form-help,
.form-status {
  margin: 0.85rem 0 0;
  font-size: 0.95rem;
}

.form-help {
  color: var(--text-muted);
}

.form-status {
  padding: 0.75rem 0.85rem;
  border-radius: 0.75rem;
  color: var(--brown-900);
  background: rgba(181, 107, 70, 0.12);
  border: 1px solid rgba(181, 107, 70, 0.2);
  font-weight: 600;
}

.form-status.is-success {
  color: #245638;
  background: rgba(60, 134, 86, 0.13);
  border-color: rgba(60, 134, 86, 0.28);
}

.form-status.is-error {
  color: #7a2e22;
  background: rgba(170, 62, 45, 0.13);
  border-color: rgba(170, 62, 45, 0.28);
}

.form-status:empty {
  display: none;
}

.contact-note {
  margin: 0.95rem 0 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.footer {
  position: relative;
  overflow: hidden;
  background-image:
    radial-gradient(circle at 12% 14%, rgba(181, 107, 70, 0.2), transparent 28%),
    radial-gradient(circle at 82% 20%, rgba(255, 217, 189, 0.08), transparent 26%),
    var(--afro-pattern-image),
    linear-gradient(135deg, #2f1b12 0%, #24140e 52%, #1b0f0a 100%);
  background-size: auto, auto, var(--afro-pattern-size), auto;
  background-position: 0 0, 0 0, var(--afro-pattern-position), 0 0;
  color: #f7eadc;
  padding: 3.25rem 5% 1.35rem;
}

.footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 252, 249, 0.08), transparent 42%, rgba(181, 107, 70, 0.12));
  pointer-events: none;
}

.footer-grid,
.footer-bottom {
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 1.04fr) minmax(230px, 0.88fr);
  gap: 1.25rem;
  align-items: start;
  max-width: 1120px;
  margin: 0 auto;
}

.footer-grid section {
  min-width: 0;
  min-height: 0;
  padding: 1.2rem;
  border: 1px solid rgba(255, 252, 249, 0.14);
  border-radius: 1.1rem;
  background: rgba(255, 252, 249, 0.07);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(14px);
}

.footer h2 {
  font-size: clamp(1.18rem, 1.65vw, 1.48rem);
  color: var(--white-soft);
  margin-bottom: 0.55rem;
}

.footer p {
  margin: 0.25rem 0;
  color: rgba(247, 234, 220, 0.82);
}

.footer-eyebrow {
  margin: 0 0 0.55rem;
  color: #e6b28f;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-contact {
  display: grid;
  gap: 0.28rem;
  margin-top: 0.9rem;
  font-style: normal;
}

.footer a {
  color: #fff8ef;
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.footer a:hover {
  color: #ffd9bd;
}

.footer a:focus-visible {
  outline: 3px solid rgba(255, 217, 189, 0.42);
  outline-offset: 3px;
}

.footer-map {
  overflow: hidden;
  margin-top: 0.8rem;
  border: 1px solid rgba(255, 252, 249, 0.18);
  border-radius: 0.95rem;
  background: rgba(255, 252, 249, 0.08);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.22);
}

.footer-map iframe {
  display: block;
  width: 100%;
  height: 150px;
  max-height: 150px;
  border: 0;
  filter: sepia(0.18) saturate(0.85) contrast(0.96);
}

.social-links {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.9rem;
}

.social-links a {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
  padding: 0.62rem 0.75rem;
  border: 1px solid rgba(255, 252, 249, 0.17);
  border-radius: 999px;
  background: rgba(255, 252, 249, 0.11);
  color: #fff8ef;
  font-weight: 700;
  line-height: 1.2;
  overflow: hidden;
}

.social-links a:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 217, 189, 0.5);
  background: rgba(255, 252, 249, 0.17);
}

.footer .social-links svg,
.footer .social-link svg {
  display: block;
  width: 20px;
  height: 20px;
  min-width: 20px;
  max-width: 20px;
  min-height: 20px;
  max-height: 20px;
  flex: 0 0 20px;
  fill: currentColor;
}

.social-links span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  max-width: 1120px;
  margin: 1.15rem auto 0;
  padding-top: 0.95rem;
  border-top: 1px solid rgba(255, 252, 249, 0.13);
  color: rgba(247, 234, 220, 0.75);
}

.footer-bottom p {
  margin: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  filter: blur(12px);
  transition: opacity 0.8s ease, transform 0.8s ease, filter 0.8s ease;
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal.show {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

@keyframes ctaShimmer {
  0% { transform: rotate(18deg) translateX(-180%); opacity: 0; }
  18% { opacity: 0.35; }
  60% { opacity: 0.22; }
  100% { transform: rotate(18deg) translateX(240%); opacity: 0; }
}

.btn-primary.pulse {
  position: relative;
  overflow: hidden;
}

.btn-primary.pulse::after {
  content: "";
  position: absolute;
  top: -45%;
  left: -60%;
  width: 60%;
  height: 190%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.65), transparent);
  transform: rotate(18deg) translateX(-180%);
  opacity: 0;
  pointer-events: none;
  animation: ctaShimmer 2.8s ease-in-out infinite;
}

.teranga-badge {
  position: relative;
  overflow: hidden;
}

@keyframes badgeShimmer {
  0% { transform: translateX(-120%); opacity: 0; }
  20% { opacity: 0.25; }
  70% { opacity: 0.16; }
  100% { transform: translateX(160%); opacity: 0; }
}

.teranga-badge::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -40%;
  width: 60%;
  height: 200%;
  background: radial-gradient(circle at 30% 30%, rgba(181, 107, 70, 0.30), transparent 65%);
  opacity: 0.14;
  transform: translateX(-120%);
  pointer-events: none;
  animation: badgeShimmer 3.6s ease-in-out infinite;
}

/* Accessibilité clavier */
.btn:focus-visible,
.menu-toggle:focus-visible,
.nav-links a:focus-visible,
.inline-link:focus-visible,
.consent-field:focus-within {
  outline: 3px solid rgba(181, 107, 70, 0.35);
  outline-offset: 2px;
}

@media (hover: none), (pointer: coarse) {
  .custom-cursor,
  .custom-cursor-dot {
    display: none !important;
  }

  body.custom-cursor-enabled,
  body.custom-cursor-enabled * {
    cursor: auto;
  }
}

@media (max-width: 1080px) {
  .nav-links {
    gap: 0.4rem;
    font-size: 0.82rem;
  }

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

  .vision-grid,
  .cards-grid,
  .form-grid,
  .content-split {
    grid-template-columns: 1fr 1fr;
  }

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

  .footer-grid {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 1fr) minmax(220px, 0.9fr);
  }

  .footer-social {
    grid-column: auto;
  }

  .social-links {
    grid-template-columns: 1fr;
  }

  .social-links a {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  :root {
    --afro-pattern-size: 56px 56px, 56px 56px, 28px 28px;
    --afro-pattern-position: 0 0, 0 0, 14px 14px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    display: flex;
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 5%;
    background: #fff6eb;
    border-bottom: 1px solid rgba(63, 42, 29, 0.15);
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .nav-links.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.active .bar:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .section {
    padding: 4rem 5%;
  }

  .vision-grid,
  .cards-grid,
  .form-grid,
  .content-split {
    grid-template-columns: 1fr;
  }

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

  .gallery-page img {
    height: 260px;
  }

  .cta-section {
    grid-template-columns: 1fr;
  }

  .footer {
    padding: 2.5rem 5% 1.25rem;
  }

  .footer-grid,
  .social-links {
    grid-template-columns: 1fr;
  }

  .footer-social {
    grid-column: auto;
  }

  .social-links a {
    justify-content: flex-start;
  }

  .footer-map iframe {
    height: 150px;
    max-height: 150px;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .custom-cursor,
  .custom-cursor-dot {
    display: none !important;
  }

  body.custom-cursor-enabled,
  body.custom-cursor-enabled * {
    cursor: auto;
  }

  /* Reveal: ne pas masquer le contenu */
  .reveal {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none !important;
  }

  .btn,
  .card,
  .card img,
  .hero-visual,
  .hero-visual img,
  .vision-art,
  .vision-art img,
  .section-visual,
  .section-visual img,
  .inscription-visual,
  .inscription-visual img,
  .gallery-page figure,
  .gallery-page img,
  .carousel-track-inner,
  .menu-toggle .bar,
  .carousel-btn,
  .carousel-indicator {
    transition-duration: 0ms !important;
    animation: none !important;
  }

  /* Désactive les effets shimmer */
  .btn-primary.pulse::after,
  .teranga-badge::after,
  .card::after,
  .hero-visual::after,
  .vision-art::after,
  .section-visual::after,
  .inscription-visual::after,
  .gallery-page figure::after {
    animation: none !important;
    opacity: 0 !important;
  }

  /* Evite un lift “à la volée” */
  .btn:hover,
  .card:hover,
  .hero-visual:hover,
  .hero-visual:focus-within,
  .vision-art:hover,
  .vision-art:focus-within,
  .section-visual:hover,
  .section-visual:focus-within,
  .inscription-visual:hover,
  .inscription-visual:focus-within,
  .gallery-page figure:hover,
  .gallery-page figure:focus-within,
  .carousel-btn:hover {
    transform: none !important;
  }

  .card:hover img,
  .card:focus-within img,
  .hero-visual:hover img,
  .hero-visual:focus-within img,
  .vision-art:hover img,
  .vision-art:focus-within img,
  .section-visual:hover img,
  .section-visual:focus-within img,
  .inscription-visual:hover img,
  .inscription-visual:focus-within img,
  .gallery-page figure:hover img,
  .gallery-page figure:focus-within img {
    transform: none !important;
    filter: none !important;
  }

  .btn:hover,
  .card:hover,
  .carousel-btn:hover {
    box-shadow: none !important;
  }
}
