/* MUJDYN : Mutuelle des Jeunes Dynamiques de Nsessoum
   Palette « fusion crépuscule » : violet nuit de la bannière du village,
   orange du soleil levant, vert forêt de la banderole MUJDYN. */

@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-latin-full-normal.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree-latin-wght-italic.woff2") format("woff2");
  font-weight: 300 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Sansita Swashed";
  src: url("../fonts/sansita-swashed-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Couleurs de base */
  --night: #251238;
  --night-deep: #170a24;
  --dusk: #4a2266;
  --lilac: #c9b3dd;
  --lilac-soft: #e9ddf3;
  --ember: #f08a3c;
  --ember-hover: #f59c55;
  --ember-text: #a9481a;
  --forest: #1e5b3c;
  --forest-soft: #e3eee6;
  --cream: #fbf5ec;
  --sand: #f2e7d8;
  --ink: #241a2e;
  --muted: #5e5368;
  --line: #e2d5c4;

  /* Rôles */
  --bg: var(--cream);
  --text: var(--ink);
  --focus: #7b3fa0;

  /* Typographie : échelle modulaire 1.25 */
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Figtree", "Segoe UI", system-ui, sans-serif;
  --font-script: "Sansita Swashed", "Fraunces", Georgia, serif;
  --step--1: clamp(0.875rem, 0.85rem + 0.1vw, 0.94rem);
  --step-0: clamp(1.0625rem, 1.03rem + 0.15vw, 1.15rem);
  --step-1: clamp(1.25rem, 1.18rem + 0.35vw, 1.45rem);
  --step-2: clamp(1.5rem, 1.35rem + 0.7vw, 1.95rem);
  --step-3: clamp(1.9rem, 1.6rem + 1.4vw, 2.75rem);
  --step-4: clamp(2.35rem, 1.8rem + 2.7vw, 4.1rem);

  /* Espacements (base 8) */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4.5rem;
  --space-7: clamp(4.5rem, 3rem + 6vw, 8rem);

  --gutter: clamp(1rem, 0.5rem + 2.5vw, 2.5rem);
  --wrap: 72rem;
  --radius-s: 6px;
  --radius-m: 14px;
  --radius-l: 28px;
  --shadow-photo: 0 30px 60px -28px rgba(37, 18, 56, 0.55);

  /* Mouvement */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in: cubic-bezier(0.55, 0, 1, 0.45);
  --dur-fast: 160ms;
  --dur-med: 320ms;
  --dur-slow: 900ms;

  --header-h: 4.25rem;
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
}
img {
  height: auto;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  margin: 0;
  font-variation-settings: "SOFT" 50, "WONK" 0;
  text-wrap: balance;
}
h2 {
  font-size: var(--step-3);
  letter-spacing: -0.01em;
}
h3 {
  font-size: var(--step-1);
  line-height: 1.25;
}
p {
  margin: 0;
  text-wrap: pretty;
}
a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}
.on-dark :focus-visible,
.on-dark:focus-visible {
  outline-color: var(--ember);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--ember);
  color: var(--night);
  font-weight: 700;
  border-radius: var(--radius-s);
  text-decoration: none;
  transition: top var(--dur-fast) var(--ease-out);
}
.skip-link:focus {
  top: 0.75rem;
}

.wrap {
  width: min(100% - 2 * var(--gutter), var(--wrap));
  margin-inline: auto;
}
/* Les colonnes de grille peuvent rétrécir (onglets, tableaux) sans faire déborder la page */
.history-grid > *,
.actions-layout > *,
.festival-grid > *,
.culture-grid > *,
.join-grid > *,
.dues-grid > *,
.contact-grid > *,
.footer-grid > * {
  min-width: 0;
}

.section {
  padding-block: var(--space-7);
}
.section-head {
  max-width: 40rem;
  margin-bottom: var(--space-5);
}
.section-head p {
  margin-top: var(--space-2);
  color: var(--muted);
  font-size: var(--step-1);
  line-height: 1.5;
}

.icon {
  width: 1.5rem;
  height: 1.5rem;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Boutons ---------- */
.btn {
  --btn-bg: var(--ember);
  --btn-fg: var(--night);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3rem;
  padding: 0.75rem 1.4rem;
  border: 2px solid transparent;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: 700 1rem/1.2 var(--font-body);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.btn:hover {
  background: var(--ember-hover);
}
.btn:active {
  transform: scale(0.97);
}
.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--cream);
  border-color: rgba(251, 245, 236, 0.55);
}
.btn--ghost:hover {
  background: rgba(251, 245, 236, 0.12);
  border-color: var(--cream);
}
.btn--forest {
  --btn-bg: var(--forest);
  --btn-fg: var(--cream);
}
.btn--forest:hover {
  background: #17492f;
}
.btn--line {
  --btn-bg: transparent;
  --btn-fg: var(--dusk);
  border-color: currentColor;
}
.btn--line:hover {
  background: var(--lilac-soft);
}
.btn--small {
  min-height: 2.75rem;
  padding: 0.5rem 1.1rem;
  font-size: 0.95rem;
}

.text-link {
  color: var(--dusk);
  font-weight: 700;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
  text-decoration-color: var(--ember);
}
.text-link:hover {
  color: var(--ember-text);
}

/* ---------- En-tête ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  color: var(--cream);
  transition: background-color var(--dur-med) var(--ease-out), color var(--dur-med) var(--ease-out),
    box-shadow var(--dur-med) var(--ease-out);
}
.site-header.is-solid {
  background: rgba(251, 245, 236, 0.94);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
}
.site-header .wrap {
  height: 100%;
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  margin-right: auto;
  min-height: 44px;
}
.brand-mark {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 2px rgba(251, 245, 236, 0.9);
}
.site-header.is-solid .brand-mark {
  box-shadow: 0 0 0 1px var(--line);
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 0.04em;
}
.brand-place {
  font-size: 0.8rem;
  opacity: 0.85;
  margin-top: 0.2rem;
}

.nav-desktop {
  display: none;
}
.nav-desktop ul {
  display: flex;
  gap: 0.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-desktop a {
  display: block;
  white-space: nowrap;
  padding: 0.6rem 0.7rem;
  border-radius: var(--radius-s);
  text-decoration: none;
  font-size: 0.97rem;
  position: relative;
}
.nav-desktop a::after {
  content: "";
  position: absolute;
  left: 0.7rem;
  right: 0.7rem;
  bottom: 0.3rem;
  height: 2px;
  background: var(--ember);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-med) var(--ease-out);
}
.nav-desktop a:hover::after,
.nav-desktop a[aria-current="true"]::after {
  transform: scaleX(1);
}

.lang-switch {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid currentColor;
  border-color: color-mix(in srgb, currentColor 35%, transparent);
}
.lang-switch button {
  min-width: 2.75rem;
  min-height: 2.25rem;
  padding: 0 0.6rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font: 700 0.85rem/1 var(--font-body);
  cursor: pointer;
  transition: background-color var(--dur-fast), color var(--dur-fast);
}
.lang-switch button[aria-pressed="true"] {
  background: var(--ember);
  color: var(--night);
}
.header-cta {
  display: none;
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.9rem;
  height: 2.9rem;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.menu-toggle .icon {
  width: 1.7rem;
  height: 1.7rem;
}

/* Menu mobile */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  padding: 1rem var(--gutter) 2rem;
  background: var(--night);
  color: var(--cream);
  overflow-y: auto;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-12px);
  transition: opacity var(--dur-med) var(--ease-out), transform var(--dur-med) var(--ease-out),
    visibility 0s linear var(--dur-med);
}
.mobile-nav.is-open {
  visibility: visible;
  opacity: 1;
  transform: none;
  transition: opacity var(--dur-med) var(--ease-out), transform var(--dur-med) var(--ease-out), visibility 0s;
}
.mobile-nav-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: calc(var(--header-h) - 1rem);
}
.mobile-nav ul {
  list-style: none;
  margin: var(--space-3) 0;
  padding: 0;
}
.mobile-nav li + li {
  border-top: 1px solid rgba(201, 179, 221, 0.2);
}
.mobile-nav ul a {
  display: block;
  padding: 0.9rem 0;
  font-family: var(--font-display);
  font-size: var(--step-2);
  text-decoration: none;
}
.mobile-nav .btn {
  margin-top: auto;
}

/* ---------- Héros : ciel au crépuscule ---------- */
.hero {
  position: relative;
  isolation: isolate;
  color: var(--cream);
  padding-top: calc(var(--header-h) + clamp(2.5rem, 6vw, 5rem));
  background: linear-gradient(
    180deg,
    #170a24 0%,
    #251238 22%,
    #3e1b5a 46%,
    #6c2f7c 64%,
    #b65a7e 80%,
    #ee9a5b 94%,
    #f6b26b 100%
  );
  overflow: hidden;
}
.sky-stars {
  position: absolute;
  inset: 0 0 35% 0;
  z-index: -2;
  pointer-events: none;
}
.sky-stars::before,
.sky-stars::after {
  content: "";
  position: absolute;
  inset: 0;
  background-repeat: repeat;
}
.sky-stars::before {
  background-image: radial-gradient(1.4px 1.4px at 20px 30px, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 90px 140px, #fff 50%, transparent 51%),
    radial-gradient(1.6px 1.6px at 160px 60px, #f6e7ff 50%, transparent 51%),
    radial-gradient(1px 1px at 210px 170px, #fff 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 60px 190px, #ffe9cf 50%, transparent 51%),
    radial-gradient(1px 1px at 130px 100px, #fff 50%, transparent 51%);
  background-size: 233px 197px;
  opacity: 0.75;
}
.sky-stars::after {
  background-image: radial-gradient(1.8px 1.8px at 40px 80px, #fff 50%, transparent 51%),
    radial-gradient(1.1px 1.1px at 250px 40px, #fff 50%, transparent 51%),
    radial-gradient(1.3px 1.3px at 180px 220px, #efe0ff 50%, transparent 51%),
    radial-gradient(1px 1px at 290px 150px, #fff 50%, transparent 51%);
  background-size: 311px 263px;
  opacity: 0.5;
  animation: twinkle 5.5s ease-in-out infinite alternate;
}
@keyframes twinkle {
  from {
    opacity: 0.25;
  }
  to {
    opacity: 0.85;
  }
}

.hero-sun {
  position: absolute;
  z-index: -1;
  left: 64%;
  bottom: clamp(1.5rem, 4vw, 3.5rem);
  width: clamp(10rem, 24vw, 19rem);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, #fff6df 0%, #ffd690 30%, #f8a457 52%, rgba(248, 164, 87, 0.35) 62%, rgba(248, 164, 87, 0) 71%);
  filter: blur(0.5px);
  transform: translate(-50%, 0);
  animation: sunrise 2.6s var(--ease-out) 0.15s both;
}
@keyframes sunrise {
  from {
    transform: translate(-50%, 70%);
    opacity: 0.4;
  }
  to {
    transform: translate(-50%, 0);
    opacity: 1;
  }
}

.hero-inner {
  position: relative;
  display: grid;
  gap: var(--space-4);
}
.hero-copy {
  max-width: 38rem;
}
.motto {
  display: inline-flex;
  flex-direction: column;
  gap: 0.15rem;
  margin-bottom: var(--space-3);
}
.motto-text {
  font-family: var(--font-script);
  font-weight: 600;
  font-size: clamp(1.35rem, 1.1rem + 1.2vw, 1.9rem);
  color: #e6c7ff;
  line-height: 1.15;
}
.motto-note {
  font-size: var(--step--1);
  color: var(--lilac);
}
.hero h1 {
  font-size: var(--step-4);
  font-weight: 600;
  letter-spacing: -0.015em;
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144;
}
.hero h1 .line {
  display: block;
}
.hero-lead {
  margin-top: var(--space-3);
  max-width: 34rem;
  font-size: var(--step-1);
  line-height: 1.5;
  color: #f1e6f7;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: var(--space-4);
}

.hero-horizon {
  position: relative;
  margin-top: clamp(3rem, 8vw, 6rem);
  height: clamp(3.5rem, 11vw, 10rem);
}
.hero-horizon svg {
  position: absolute;
  inset: auto 0 0;
  width: 100%;
  height: 100%;
}
.ridge-back {
  fill: #3b1a4f;
  opacity: 0.85;
}
.ridge-front {
  fill: var(--night-deep);
}

/* La photo de groupe est posée sur l'horizon */
.hero-photo-band {
  position: relative;
  background: linear-gradient(var(--night-deep) 0 50%, var(--cream) 50% 100%);
}
.hero-photo {
  position: relative;
  margin: 0;
  border-radius: var(--radius-l);
  overflow: hidden;
  box-shadow: var(--shadow-photo);
  background: var(--dusk);
  aspect-ratio: 4 / 3;
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
}
.hero-photo figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 2.5rem 1.1rem 0.9rem;
  background: linear-gradient(transparent, rgba(23, 10, 36, 0.82));
  color: var(--cream);
  font-size: var(--step--1);
}

/* Repères chiffrés */
.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3) var(--space-2);
  margin: 0;
  padding: var(--space-5) 0 0;
}
.fact {
  display: flex;
  flex-direction: column-reverse;
  gap: 0.35rem;
  padding-left: 0.9rem;
  border-left: 3px solid var(--ember);
}
.fact dt {
  color: var(--muted);
  font-size: var(--step--1);
  line-height: 1.4;
}
.fact dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 0.9rem + 1.9vw, 1.95rem);
  white-space: nowrap;
  font-weight: 600;
  color: var(--dusk);
  line-height: 1.05;
  font-variant-numeric: lining-nums tabular-nums;
}
.facts-source {
  margin-top: var(--space-3);
  font-size: var(--step--1);
  color: var(--muted);
}

/* Chorégraphie d'ouverture : une seule séquence, au chargement */
.reveal-up {
  animation: rise var(--dur-slow) var(--ease-out) both;
  animation-delay: calc(var(--d, 0) * 110ms + 250ms);
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.hero-photo.reveal-photo {
  animation: unveil 1.3s var(--ease-out) 0.7s both;
}
@keyframes unveil {
  from {
    clip-path: inset(30% 8% 0 8% round var(--radius-l));
    transform: translateY(24px);
  }
  to {
    clip-path: inset(0 0 0 0 round var(--radius-l));
    transform: none;
  }
}

/* ---------- Histoire ---------- */
.history-grid {
  display: grid;
  gap: var(--space-5);
}
.history-intro p + p {
  margin-top: var(--space-2);
}
.history-intro .lead {
  font-size: var(--step-1);
  line-height: 1.55;
}
.quote-card {
  margin: var(--space-4) 0 0;
  padding: var(--space-3);
  background: var(--sand);
  border-radius: var(--radius-m);
}
.quote-card blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--step-2);
  line-height: 1.2;
  color: var(--dusk);
  font-variation-settings: "SOFT" 100, "WONK" 1;
}
.quote-card figcaption {
  margin-top: 0.75rem;
  font-size: var(--step--1);
  color: var(--muted);
}

.timeline-wrap {
  position: relative;
}
.timeline {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0 0 0 2.25rem;
}
.timeline::before,
.timeline-progress {
  content: "";
  position: absolute;
  left: 0.6rem;
  top: 0.4rem;
  bottom: 0.4rem;
  width: 2px;
  background: var(--line);
}
.timeline-progress {
  background: linear-gradient(var(--dusk), var(--ember));
  transform-origin: top;
  transform: scaleY(var(--progress, 0));
  transition: transform 120ms linear;
}
.timeline li {
  position: relative;
  padding-bottom: var(--space-4);
}
.timeline li:last-child {
  padding-bottom: 0;
}
.timeline li::before {
  content: "";
  position: absolute;
  left: calc(-2.25rem + 0.6rem - 7px + 1px);
  top: 0.35rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--cream);
  border: 2px solid var(--muted);
  transition: background-color var(--dur-med) var(--ease-out), border-color var(--dur-med) var(--ease-out),
    transform var(--dur-med) var(--ease-out);
}
.timeline li.is-lit::before {
  background: var(--ember);
  border-color: var(--ember);
  transform: scale(1.15);
}
.timeline time {
  display: block;
  font-weight: 700;
  color: var(--ember-text);
  font-size: var(--step--1);
  letter-spacing: 0.02em;
}
.timeline h3 {
  margin: 0.25rem 0 0.4rem;
}
.timeline p {
  color: var(--muted);
}

/* ---------- Documents (sous-section de l'Histoire) ---------- */
.documents {
  margin-top: var(--space-6);
  padding-top: var(--space-5);
  border-top: 1px solid var(--line);
}
.documents-head h3 {
  font-size: var(--step-2);
}
.documents-head p {
  margin-top: 0.5rem;
  color: var(--muted);
}
.doc-list {
  display: grid;
  gap: var(--space-3);
  margin: var(--space-4) 0 0;
  padding: 0;
  list-style: none;
}
.doc-card {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: #fffaf3;
}
.doc-thumb {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top;
  border-radius: 4px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 10px 20px -14px rgba(37, 18, 56, 0.6);
}
.doc-body time {
  font-size: var(--step--1);
  font-weight: 700;
  color: var(--ember-text);
}
.doc-body h4 {
  margin: 0.2rem 0 0.35rem;
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 600;
  line-height: 1.2;
}
.doc-body p {
  color: var(--muted);
  font-size: var(--step--1);
}
.doc-meta {
  margin-top: 0.35rem;
}
.doc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.85rem;
}
@media (min-width: 900px) {
  .doc-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .doc-card {
    grid-template-columns: 1fr;
  }
  .doc-thumb {
    aspect-ratio: 4 / 3;
  }
}

/* ---------- Actions ---------- */
.actions {
  background: var(--sand);
}
.actions-layout {
  display: grid;
  gap: var(--space-5);
}
.action-list {
  display: grid;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}
.action-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.25rem 1rem;
  padding: var(--space-3) 0;
  border-top: 1px solid var(--line);
}
.action-icon {
  grid-row: 1;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--cream);
  color: var(--forest);
}
.action-list h3 {
  align-self: center;
}
.action-list p {
  grid-column: 2;
  color: var(--muted);
}
.actions-photo {
  margin: 0;
}
.actions-photo img {
  width: 100%;
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-photo);
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.actions-photo figcaption {
  margin-top: 0.75rem;
  font-size: var(--step--1);
  color: var(--muted);
}

/* ---------- Semaine culturelle ---------- */
.festival-grid {
  display: grid;
  gap: var(--space-5);
}
.communique {
  margin: 0 0 var(--space-4);
  padding: var(--space-3) var(--space-3) var(--space-3) var(--space-4);
  border-left: 4px solid var(--forest);
  background: var(--forest-soft);
  border-radius: 0 var(--radius-m) var(--radius-m) 0;
}
.communique blockquote {
  margin: 0;
  font-size: var(--step-0);
}
.communique figcaption {
  margin-top: 0.6rem;
  font-size: var(--step--1);
  color: var(--forest);
  font-weight: 700;
}

.tabs [role="tablist"] {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  padding-bottom: 0.4rem;
  scrollbar-width: thin;
}
.tabs [role="tab"] {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 3.5rem;
  padding: 0.55rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: var(--cream);
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background-color var(--dur-fast), border-color var(--dur-fast), color var(--dur-fast);
}
.tabs [role="tab"] .tab-day {
  font-size: var(--step--1);
  color: var(--muted);
}
.tabs [role="tab"] .tab-date {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
}
.tabs [role="tab"]:hover {
  border-color: var(--dusk);
}
.tabs [role="tab"][aria-selected="true"] {
  background: var(--dusk);
  border-color: var(--dusk);
  color: var(--cream);
}
.tabs [role="tab"][aria-selected="true"] .tab-day {
  color: var(--lilac);
}
.tabpanel {
  margin-top: var(--space-3);
}
.tabpanel[hidden] {
  display: none;
}
.tabpanel.is-entering {
  animation: fade-in var(--dur-med) var(--ease-out);
}
@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}
.schedule {
  list-style: none;
  margin: 0;
  padding: 0;
}
.schedule li {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px dashed var(--line);
}
.schedule time {
  font-weight: 700;
  color: var(--ember-text);
  font-variant-numeric: tabular-nums;
}
.schedule .where {
  display: block;
  font-size: var(--step--1);
  color: var(--muted);
}
.festival-signature {
  margin-top: var(--space-3);
  font-size: var(--step--1);
  color: var(--muted);
}

.festival-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2);
  align-content: start;
}
.festival-photos figure {
  margin: 0;
}
.festival-photos img {
  width: 100%;
  border-radius: var(--radius-m);
  object-fit: cover;
}
.festival-photos .wide {
  grid-column: span 2;
}
.festival-photos .wide img {
  aspect-ratio: 16 / 10;
}
.festival-photos .tall img {
  aspect-ratio: 3 / 4;
}
.festival-photos figcaption {
  margin-top: 0.4rem;
  font-size: var(--step--1);
  color: var(--muted);
}

/* ---------- Culture (nuit étoilée) ---------- */
.culture {
  position: relative;
  isolation: isolate;
  background: linear-gradient(180deg, var(--night-deep), var(--night) 55%, var(--dusk));
  color: var(--cream);
  overflow: hidden;
}
.culture .sky-stars {
  inset: 0;
}
.culture .section-head p {
  color: var(--lilac);
}
.culture-grid {
  display: grid;
  gap: var(--space-5);
}
.culture-motto {
  padding: var(--space-4) var(--space-3);
  border: 1px solid rgba(201, 179, 221, 0.3);
  border-radius: var(--radius-l);
  text-align: center;
  background: rgba(23, 10, 36, 0.35);
}
.culture-motto .motto-text {
  display: block;
  font-size: clamp(1.9rem, 1.3rem + 2.6vw, 3.2rem);
}
.culture-motto p {
  margin-top: var(--space-2);
  color: var(--lilac);
}
.pillars {
  display: grid;
  gap: var(--space-3);
  list-style: none;
  margin: 0;
  padding: 0;
}
.pillars li {
  padding-top: var(--space-2);
  border-top: 1px solid rgba(201, 179, 221, 0.3);
}
.pillars h3 {
  color: #ffd6a8;
  font-size: var(--step-1);
}
.pillars p {
  margin-top: 0.4rem;
  color: #e7dcef;
}

/* ---------- Mots-clés fang (mode Fang) ---------- */
.fang-kicker {
  display: none;
  margin: 0 0 0.6rem;
  font-family: var(--font-script);
  font-weight: 600;
  font-size: clamp(1.3rem, 1.1rem + 0.9vw, 1.7rem);
  line-height: 1.1;
  color: var(--ember-text);
}
.is-fang .fang-kicker {
  display: block;
  animation: fade-in var(--dur-med) var(--ease-out);
}
.on-dark .fang-kicker,
.fang-kicker--hero {
  color: #ffd6a8;
}
.fang-gloss {
  font-family: var(--font-body);
  font-size: var(--step--1);
  font-weight: 400;
  color: var(--muted);
}
.on-dark .fang-gloss,
.fang-kicker--hero .fang-gloss {
  color: var(--lilac);
}

.fang-only {
  display: none;
}
.is-fang .fang-only {
  display: block;
  color: #ffd6a8;
}

/* ---------- Petit lexique fang ---------- */
.lexicon {
  margin-top: var(--space-6);
  padding-top: var(--space-5);
  border-top: 1px solid rgba(201, 179, 221, 0.3);
}
.lexicon[hidden] {
  display: none;
}
.lexicon-preview {
  margin-bottom: var(--space-3);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-s);
  background: #ffd6a8;
  color: var(--night);
  font-weight: 700;
  font-size: var(--step--1);
}
.lexicon-head h3 {
  font-size: var(--step-2);
  color: var(--cream);
}
.lexicon-head p {
  margin-top: 0.5rem;
  max-width: 36rem;
  color: var(--lilac);
}
.lexicon-tools {
  display: grid;
  gap: var(--space-2);
  margin-top: var(--space-4);
}
.lexicon-search {
  display: grid;
  gap: 0.4rem;
  max-width: 26rem;
}
.lexicon-search label {
  font-weight: 700;
  color: #eadff2;
}
.lexicon-search input {
  min-height: 3rem;
  padding: 0.7rem 1rem;
  border: 1.5px solid rgba(201, 179, 221, 0.45);
  border-radius: 999px;
  background: rgba(23, 10, 36, 0.55);
  color: var(--cream);
  font: inherit;
  font-size: 1rem;
}
.lexicon-search input:focus-visible {
  outline: 3px solid var(--ember);
  outline-offset: 2px;
}
.lexicon-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.lex-chip {
  min-height: 2.75rem;
  padding: 0 1rem;
  border: 1px solid rgba(201, 179, 221, 0.45);
  border-radius: 999px;
  background: transparent;
  color: #eadff2;
  font: 700 0.95rem/1 var(--font-body);
  cursor: pointer;
  transition: background-color var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast);
}
.lex-chip:hover {
  border-color: var(--cream);
}
.lex-chip[aria-pressed="true"] {
  background: var(--ember);
  border-color: var(--ember);
  color: var(--night);
}
.lexicon-count {
  margin-top: var(--space-3);
  font-size: var(--step--1);
  color: var(--lilac);
}
.lexicon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 13rem), 1fr));
  gap: 0.75rem;
  margin: var(--space-2) 0 0;
  padding: 0;
  list-style: none;
}
.lex-card {
  position: relative;
  padding: 1rem 1.1rem;
  border-radius: var(--radius-m);
  background: rgba(23, 10, 36, 0.45);
  border: 1px solid rgba(201, 179, 221, 0.25);
  animation: fade-in var(--dur-med) var(--ease-out);
}
.lex-card.is-draft {
  border-style: dashed;
  border-color: rgba(255, 214, 168, 0.6);
}
.lex-word {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--step-2);
  line-height: 1.1;
  color: #ffd6a8;
  font-variation-settings: "SOFT" 100, "WONK" 1;
}
.lex-meaning {
  margin-top: 0.35rem;
  color: var(--cream);
}
.lex-meta {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--lilac);
}
.lex-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: #ffd6a8;
  color: var(--night);
  font-size: 0.75rem;
  font-weight: 700;
}
.lexicon-source {
  margin-top: var(--space-3);
  max-width: 48rem;
  font-size: var(--step--1);
  color: var(--lilac);
}

/* ---------- Projets ---------- */
.projects-grid {
  display: grid;
  gap: var(--space-3);
}
.project {
  display: flex;
  flex-direction: column;
  padding: var(--space-3);
  border-radius: var(--radius-m);
  background: #fffaf3;
  border: 1px solid var(--line);
}
.project-status {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  background: var(--forest-soft);
  color: var(--forest);
}
.project-status::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: currentColor;
}
.project-status[data-status="todo"] {
  background: var(--lilac-soft);
  color: var(--dusk);
}
.project-icon {
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  background: var(--forest-soft);
  color: var(--forest);
}
.project-icon .icon {
  width: 1.6rem;
  height: 1.6rem;
}
.project h3 {
  margin: var(--space-2) 0 0.5rem;
  font-size: var(--step-2);
}
.project p {
  color: var(--muted);
}
.project-budget {
  margin-top: auto;
  padding-top: var(--space-3);
}
.budget-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: var(--step--1);
  color: var(--muted);
}
.budget-row strong {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.meter {
  position: relative;
  height: 10px;
  margin: 0.6rem 0;
  border-radius: 999px;
  background: var(--sand);
  overflow: hidden;
}
.meter-fill {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--forest), #3f8a5f);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 1.4s var(--ease-out);
}
.meter.is-visible .meter-fill {
  transform: scaleX(var(--value, 0));
}
.meter--unknown {
  background: repeating-linear-gradient(-45deg, var(--sand) 0 8px, #ebdcc8 8px 16px);
}
.project .btn {
  margin-top: var(--space-3);
  align-self: flex-start;
}

/* ---------- Galerie ---------- */
.gallery {
  background: var(--sand);
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: 0.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.gallery-grid li {
  aspect-ratio: 1;
}
.gallery-grid .g-wide {
  grid-column: span 2;
  aspect-ratio: 2 / 1;
}
.gallery-grid .g-tall {
  grid-row: span 2;
  aspect-ratio: auto;
}
.gallery-grid a {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: var(--radius-m);
  overflow: hidden;
  background: var(--dusk);
  cursor: zoom-in;
}
.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms var(--ease-out), opacity var(--dur-med);
}
.gallery-grid a:hover img {
  transform: scale(1.04);
}
.gallery-grid .zoom-hint {
  position: absolute;
  right: 0.6rem;
  bottom: 0.6rem;
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: rgba(251, 245, 236, 0.9);
  color: var(--night);
  opacity: 0;
  transition: opacity var(--dur-fast);
}
.gallery-grid a:hover .zoom-hint,
.gallery-grid a:focus-visible .zoom-hint {
  opacity: 1;
}
.gallery-grid .zoom-hint .icon {
  width: 1.1rem;
  height: 1.1rem;
}
.gallery-foot {
  margin-top: var(--space-3);
  color: var(--muted);
  font-size: var(--step--1);
}

/* Visionneuse */
.lightbox {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(23, 10, 36, 0.96);
  color: var(--cream);
}
.lightbox::backdrop {
  background: rgba(23, 10, 36, 0.7);
}
.lightbox[open] {
  display: grid;
  grid-template-rows: auto 1fr auto;
  animation: fade-in var(--dur-med) var(--ease-out);
}
.lightbox-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem var(--gutter);
  font-variant-numeric: tabular-nums;
}
.lightbox-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 0;
  padding: 0 var(--gutter);
}
.lightbox-stage img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: var(--radius-s);
}
.lightbox-stage img.is-swapping {
  animation: fade-in var(--dur-med) var(--ease-out);
}
.lightbox-caption {
  padding: 1rem var(--gutter) 1.5rem;
  text-align: center;
  max-width: 48rem;
  margin: 0 auto;
}
.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border: 0;
  border-radius: 50%;
  background: rgba(251, 245, 236, 0.12);
  color: var(--cream);
  cursor: pointer;
  transition: background-color var(--dur-fast);
}
.icon-btn:hover {
  background: rgba(251, 245, 236, 0.24);
}
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}
.lightbox-prev {
  left: 0.5rem;
}
.lightbox-next {
  right: 0.5rem;
}

/* ---------- Adhésion ---------- */
.join-grid {
  display: grid;
  gap: var(--space-5);
}
.steps {
  list-style: none;
  margin: var(--space-4) 0 0;
  padding: 0;
  counter-reset: step;
}
.steps li {
  position: relative;
  padding: 0 0 var(--space-3) 3.25rem;
  counter-increment: step;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -0.1rem;
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--dusk);
  color: var(--cream);
  font-family: var(--font-display);
  font-weight: 700;
}
.steps h3 {
  font-size: var(--step-1);
}
.steps p {
  color: var(--muted);
  margin-top: 0.25rem;
}

.fees {
  padding: var(--space-4) var(--space-3);
  border-radius: var(--radius-l);
  background: var(--night);
  color: var(--cream);
}
.fees h3 {
  font-size: var(--step-2);
}
.fees > p {
  margin-top: 0.5rem;
  color: var(--lilac);
}
.fees dl {
  margin: var(--space-3) 0 0;
}
.fees .fee {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.85rem 0;
  border-top: 1px solid rgba(201, 179, 221, 0.25);
}
.fees dt {
  color: #eadff2;
}
.fees dd {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--step-1);
  color: #ffd6a8;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.fees .btn {
  margin-top: var(--space-3);
}

/* ---------- Soutenir ---------- */
.support {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(160deg, #3e1b5a 0%, #6c2f7c 45%, #c8667a 80%, #ee9a5b 100%);
  color: var(--cream);
}
.support .section-head p {
  color: #f6e9f2;
}
.momo-grid {
  display: grid;
  gap: var(--space-3);
}
.momo {
  padding: var(--space-3);
  border-radius: var(--radius-m);
  background: var(--cream);
  color: var(--ink);
  box-shadow: 0 24px 40px -28px rgba(23, 10, 36, 0.8);
}
.momo-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.momo-badge {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
}
.momo-badge--orange {
  background: #ff7900;
  color: #000;
}
.momo-badge--mtn {
  background: #ffcb05;
  color: #000;
}
.momo h3 {
  font-size: var(--step-1);
}
.momo-number {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: var(--space-2);
}
.momo-number output,
.momo-number .number {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 600;
  color: var(--dusk);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}
.momo-pending {
  color: var(--muted);
}
.momo-howto {
  margin-top: var(--space-2);
  font-size: var(--step--1);
  color: var(--muted);
}
.momo-howto kbd {
  font-family: inherit;
  font-weight: 700;
  color: var(--ink);
  padding: 0.05rem 0.35rem;
  border-radius: 4px;
  background: var(--sand);
}
.support-note {
  margin-top: var(--space-4);
  max-width: 44rem;
  color: #fff4ec;
}
.toast {
  position: fixed;
  left: 50%;
  bottom: 1.25rem;
  z-index: 70;
  padding: 0.75rem 1.1rem;
  border-radius: 999px;
  background: var(--night);
  color: var(--cream);
  font-weight: 700;
  box-shadow: 0 12px 30px -10px rgba(23, 10, 36, 0.6);
  transform: translate(-50%, 150%);
  opacity: 0;
  transition: transform var(--dur-med) var(--ease-out), opacity var(--dur-med) var(--ease-out);
  pointer-events: none;
}
.toast.is-visible {
  transform: translate(-50%, 0);
  opacity: 1;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  gap: var(--space-5);
}
.form {
  display: grid;
  gap: var(--space-3);
}
.form-row {
  display: grid;
  gap: var(--space-3);
}
.field {
  display: grid;
  gap: 0.4rem;
  align-content: start;
}
.field label {
  font-weight: 700;
}
.field .req {
  color: var(--ember-text);
}
.field .hint {
  font-size: var(--step--1);
  color: var(--muted);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 3rem;
  padding: 0.7rem 0.9rem;
  border: 1.5px solid #cbbba7;
  border-radius: var(--radius-s);
  background: #fffdf9;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}
.field textarea {
  min-height: 9rem;
  resize: vertical;
}
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: none;
  border-color: var(--dusk);
  box-shadow: 0 0 0 3px rgba(123, 63, 160, 0.3);
}
.field [aria-invalid="true"] {
  border-color: #b3261e;
}
.field .error {
  display: flex;
  gap: 0.4rem;
  align-items: center;
  font-size: var(--step--1);
  color: #b3261e;
  font-weight: 700;
}
.field .error:empty {
  display: none;
}
.hp-field {
  position: absolute;
  left: -9999px;
}
.form-status {
  padding: 0.9rem 1rem;
  border-radius: var(--radius-s);
  font-weight: 700;
}
.form-status:empty {
  display: none;
}
.form-status[data-type="success"] {
  background: var(--forest-soft);
  color: var(--forest);
}
.form-status[data-type="error"] {
  background: #fbe9e7;
  color: #8c1d18;
}
.form .btn[aria-busy="true"] {
  opacity: 0.7;
  cursor: progress;
}
.consent {
  font-size: var(--step--1);
  color: var(--muted);
}

.place {
  display: grid;
  gap: var(--space-3);
  align-content: start;
}
.place-map {
  position: relative;
  max-width: 20rem;
  margin: 0 auto;
}
.place-map svg {
  width: 100%;
  height: auto;
  overflow: visible;
}
.map-land {
  fill: var(--sand);
  stroke: var(--dusk);
  stroke-width: 1.5;
  stroke-linejoin: round;
}
.map-city {
  fill: var(--muted);
}
.map-label {
  paint-order: stroke;
  stroke: var(--cream);
  stroke-width: 5px;
  stroke-linejoin: round;
  font-family: var(--font-body);
  font-size: 15px;
  fill: var(--ink);
}
.map-label--main {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  fill: var(--dusk);
}
.map-pin {
  fill: var(--ember);
  stroke: var(--cream);
  stroke-width: 2;
}
.map-pulse {
  fill: none;
  stroke: var(--ember);
  stroke-width: 2;
  transform-box: fill-box;
  transform-origin: center;
  animation: pulse 2.4s var(--ease-out) infinite;
}
@keyframes pulse {
  from {
    transform: scale(0.6);
    opacity: 0.9;
  }
  to {
    transform: scale(2.6);
    opacity: 0;
  }
}
.place address {
  font-style: normal;
}
.contact-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}
.contact-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
}

/* ---------- Pied de page ---------- */
.site-footer {
  position: relative;
  isolation: isolate;
  background: var(--night-deep);
  color: #e9e0f0;
  padding-bottom: var(--space-4);
  overflow: hidden;
}
.footer-ridge {
  display: block;
  width: 100%;
  height: clamp(3rem, 7vw, 6rem);
  background: var(--cream);
}
.footer-ridge path {
  fill: var(--night-deep);
}
.footer-grid {
  display: grid;
  gap: var(--space-4);
  padding-top: var(--space-4);
}
.footer-logo {
  width: 9rem;
  height: 9rem;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(201, 179, 221, 0.25);
}
.footer-brand .brand-name {
  font-size: 1.6rem;
}
.footer-brand .motto-text {
  display: block;
  margin-top: var(--space-2);
  font-size: 1.45rem;
}
.footer-brand p {
  margin-top: 0.5rem;
  color: var(--lilac);
  max-width: 24rem;
}
.footer-nav h2 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  color: #ffd6a8;
  margin-bottom: 0.6rem;
}
.footer-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 2;
  column-gap: var(--space-3);
}
.footer-nav a {
  display: inline-block;
  padding: 0.35rem 0;
  text-decoration: none;
}
.footer-nav a:hover {
  text-decoration: underline;
  text-decoration-color: var(--ember);
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: var(--space-5);
  padding-top: var(--space-3);
  border-top: 1px solid rgba(201, 179, 221, 0.2);
  font-size: var(--step--1);
  color: var(--lilac);
}

/* Bandeau de langue fang */
.lang-notice {
  position: fixed;
  left: var(--gutter);
  right: var(--gutter);
  bottom: 1rem;
  z-index: 55;
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  max-width: 40rem;
  margin: 0 auto;
  padding: 0.9rem 1rem 0.9rem 1.2rem;
  border-radius: var(--radius-m);
  background: var(--night);
  color: var(--cream);
  box-shadow: 0 18px 40px -16px rgba(23, 10, 36, 0.7);
}
.lang-notice[hidden] {
  display: none;
}
.lang-notice p {
  font-size: var(--step--1);
}
.lang-notice strong {
  font-family: var(--font-script);
  font-size: 1.2rem;
  color: #ffd6a8;
}

/* ---------- Cotisations 2026 ---------- */
.fees-sub {
  margin-top: var(--space-3);
  color: var(--lilac);
  font-size: var(--step--1);
}
.dues {
  background: linear-gradient(180deg, var(--cream), #f7eee2);
}
.dues-grid {
  display: grid;
  gap: var(--space-5);
}
.dues-total {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.75rem;
}
.dues-amount {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--step-4);
  line-height: 1;
  color: var(--dusk);
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144;
  font-variant-numeric: lining-nums;
}
.dues-caption {
  font-size: var(--step-1);
  color: var(--muted);
}
.fund-chart {
  margin: var(--space-4) 0 0;
}
.fund-bar {
  display: flex;
  gap: 2px;
  height: 3rem;
}
.fund-seg {
  position: relative;
  flex: var(--share) 1 0;
  display: flex;
  align-items: center;
  padding-left: 0.6rem;
  background: var(--c);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  transform-origin: left;
  transition: transform 1.1s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 140ms);
}
.js .fund-bar:not(.is-visible) .fund-seg {
  transform: scaleX(0);
}
.fund-seg:first-child {
  border-radius: 6px 0 0 6px;
}
.fund-seg:last-child {
  border-radius: 0 6px 6px 0;
}
.fund-seg-label {
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}
.fund-seg::after {
  content: attr(data-tip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translate(-50%, 4px);
  padding: 0.35rem 0.6rem;
  border-radius: 6px;
  background: var(--night);
  color: var(--cream);
  font-size: 0.85rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-fast), transform var(--dur-fast);
}
.fund-seg:hover::after {
  opacity: 1;
  transform: translate(-50%, 0);
}
.fund-table {
  width: 100%;
  margin-top: var(--space-3);
  border-collapse: collapse;
}
.fund-table th,
.fund-table td {
  padding: 0.85rem 0;
  border-top: 1px solid var(--line);
  vertical-align: top;
  text-align: left;
}
.fund-table th {
  display: flex;
  gap: 0.75rem;
  font-weight: 400;
}
.fund-table td {
  padding-left: 1rem;
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.fund-table td:first-of-type {
  font-weight: 700;
}
.fund-table td:last-child {
  color: var(--muted);
  width: 3.5rem;
}
.swatch {
  flex: none;
  width: 0.9rem;
  height: 0.9rem;
  margin-top: 0.3rem;
  border-radius: 3px;
  background: var(--c);
}
.fund-name {
  display: block;
  font-weight: 700;
}
.fund-desc {
  display: block;
  font-size: var(--step--1);
  color: var(--muted);
}
.dues-source {
  margin-top: var(--space-2);
  font-size: var(--step--1);
  color: var(--muted);
}
.members-wall {
  padding: var(--space-4) var(--space-3);
  border-radius: var(--radius-l);
  background: #fffaf3;
  border: 1px solid var(--line);
}
.members-wall h3 {
  font-size: var(--step-2);
}
.members-wall > p {
  margin-top: 0.5rem;
  color: var(--muted);
}
.member-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: var(--space-3) 0;
  padding: 0;
}
.member-chips li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.85rem 0.3rem 0.3rem;
  border-radius: 999px;
  background: var(--cream);
  border: 1px solid var(--line);
  font-size: 0.95rem;
}
.chip-avatar {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--dusk);
  color: var(--cream);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.member-chips li:nth-child(3n + 2) .chip-avatar {
  background: var(--forest);
}
.member-chips li:nth-child(3n) .chip-avatar {
  background: var(--ember);
  color: var(--night);
}
@media (min-width: 900px) {
  .dues-grid {
    grid-template-columns: 6fr 5fr;
    align-items: start;
  }
}

/* ---------- Mises en page larges ---------- */
@media (min-width: 640px) {
  .gallery-grid .g-wide {
    aspect-ratio: auto;
  }
  .facts {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .hero-photo {
    aspect-ratio: 16 / 9;
  }
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
  .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .pillars {
    grid-template-columns: 1fr 1fr;
  }
  .momo-grid {
    grid-template-columns: 1fr 1fr;
  }
  .projects-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 900px) {
  .history-grid {
    grid-template-columns: 5fr 6fr;
    align-items: start;
  }
  .history-intro {
    position: sticky;
    top: calc(var(--header-h) + 2rem);
  }
  .actions-layout {
    grid-template-columns: 7fr 5fr;
    align-items: start;
  }
  .actions-photo {
    position: sticky;
    top: calc(var(--header-h) + 2rem);
  }
  .action-list {
    grid-template-columns: 1fr 1fr;
    column-gap: var(--space-4);
  }
  .festival-grid {
    grid-template-columns: 7fr 5fr;
    align-items: start;
  }
  .culture-grid {
    grid-template-columns: 5fr 6fr;
    align-items: center;
  }
  .join-grid {
    grid-template-columns: 6fr 5fr;
    align-items: start;
  }
  .contact-grid {
    grid-template-columns: 7fr 4fr;
    align-items: start;
  }
  .footer-grid {
    grid-template-columns: 5fr 6fr;
  }
  .gallery-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .projects-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1240px) {
  .nav-desktop {
    display: block;
  }
  .menu-toggle {
    display: none;
  }
  .header-cta {
    display: inline-flex;
  }
  .hero-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 479px) {
  /* La part en % est déjà écrite sur la barre : on la garde pour les lecteurs d'écran seulement */
  .fund-table td:last-child {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    padding: 0;
    border: 0;
  }
}

/* Petits téléphones : on garde les cibles tactiles et on serre le logo */
@media (max-width: 440px) {
  /* Le logo porte déjà le sigle : on libère la place pour le choix de langue */
  .site-header .brand-text {
    display: none;
  }
}
@media (max-width: 380px) {
  .brand-place {
    display: none;
  }
  .lang-switch button {
    min-width: 2.5rem;
    padding: 0 0.4rem;
  }
}

/* ---------- Réduire les animations ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0ms !important;
    transition-duration: 0.01ms !important;
  }
  .sky-stars::after {
    animation: none;
    opacity: 0.6;
  }
  .map-pulse {
    display: none;
  }
  .gallery-grid a:hover img {
    transform: none;
  }
}

@media print {
  .site-header,
  .mobile-nav,
  .lang-notice,
  .hero-sun,
  .sky-stars,
  .lightbox {
    display: none !important;
  }
  .hero,
  .culture,
  .support,
  .site-footer {
    background: none;
    color: #000;
  }
}
