/* ==========================================================================
   CRôC Festival — feuille de style commune (responsive)
   Remplace les fichiers CSS par page générés par Nicepage.
   Points de rupture : 1200px (menu burger), 900px (colonnes), 600px (mobile)
   ========================================================================== */

@font-face { font-family: 'TANMERINGUE'; src: url(fonts/TANMERINGUE.otf); font-display: swap; }
@font-face { font-family: 'SIFONN_PRO'; src: url(fonts/SIFONN_PRO.otf); font-display: swap; }
@font-face { font-family: 'BeVietnam'; src: url(fonts/BeVietnam-Regular.ttf); font-display: swap; }

:root {
  --cream: #faf6e9;
  --green: #163a37;
  --green-2: #1d4a46;
  --teal: #4fa39a;
  --teal-dark: #2f7a72;
  --lilac: #b39bcb;
  --gold: #ffd166;
  --coral: #e8615d;
  --ink: #1b1b1b;
  --muted: #6b6b6b;

  --f-title: 'TANMERINGUE', 'SIFONN_PRO', Georgia, serif;
  --f-display: 'SIFONN_PRO', 'BeVietnam', system-ui, sans-serif;
  --f-body: 'BeVietnam', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --section-y: clamp(56px, 8vw, 112px);
  --radius: 18px;
  --header-h: 84px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 16px; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body.c-body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: clamp(0.95rem, 0.9rem + 0.2vw, 1.05rem);
  line-height: 1.65;
  overflow-x: hidden;
}
:where(.c-body) img { max-width: 100%; height: auto; display: block; }
:where(.c-body) iframe { max-width: 100%; }
[hidden] { display: none !important; }
:where(.c-body) p { margin: 0 0 1em; }
:where(.c-body) p:last-child { margin-bottom: 0; }
:where(.c-body) :where(h1, h2, h3, h4, h5, h6) { margin: 0; font-weight: 400; line-height: 1.15; }
:where(.c-body) a { color: inherit; }
:where(.c-body) strong { font-weight: 700; }
.c-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.c-skip { position: absolute; left: 8px; top: -60px; z-index: 200; background: var(--green); color: var(--cream); padding: 10px 16px; border-radius: 8px; }
.c-skip:focus { top: 8px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.c-wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.c-narrow { max-width: calc(820px + 2 * var(--gutter)); }

.c-section { position: relative; padding-block: var(--section-y); isolation: isolate; overflow: hidden; }
.c-section--dark { background: var(--green); color: var(--cream); }
.c-section--tight-top { padding-top: clamp(24px, 4vw, 48px); }

/* Taches vertes décoratives (remplacent les dizaines d'images « Deco.png » positionnées au pixel) */
.c-blobs::before, .c-blobs::after {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  background: url(images/Deco.png) center / contain no-repeat;
  aspect-ratio: 1; opacity: .9;
}
.c-blobs::before { width: clamp(180px, 32vw, 520px); right: clamp(-200px, -12vw, -60px); top: 4%; }
.c-blobs::after  { width: clamp(140px, 22vw, 360px); left: clamp(-160px, -9vw, -50px); bottom: 6%; }
.c-blobs--alt::before { right: auto; left: clamp(-200px, -12vw, -60px); top: 30%; }
.c-blobs--alt::after  { left: auto; right: clamp(-160px, -9vw, -50px); bottom: 2%; }

/* ---------- Titres ---------- */
.c-title {
  font-family: var(--f-title);
  font-weight: 700;
  color: var(--teal);
  font-size: clamp(2.1rem, 1.3rem + 3.6vw, 3.75rem);
  text-align: center;
  letter-spacing: .01em;
  line-height: 1.05;
  margin: 0 auto clamp(28px, 4vw, 48px);
  width: fit-content;
  max-width: 100%;
  padding-bottom: .22em;
  border-bottom: 3px double var(--gold);
  overflow-wrap: anywhere;
}
.c-section--dark .c-title { color: var(--cream); }
.c-lead { text-align: center; font-style: italic; font-size: clamp(1.05rem, 1rem + .3vw, 1.25rem); margin: calc(-1 * clamp(14px, 2vw, 28px)) auto clamp(28px, 4vw, 44px); }

/* ---------- Boutons ---------- */
.c-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  font-family: var(--f-display); text-transform: uppercase; letter-spacing: .04em;
  font-size: .9rem; line-height: 1.2; text-decoration: none; text-align: center;
  padding: .75em 1.6em; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--green); color: var(--cream);
  transition: background-color .25s, color .25s, transform .15s;
}
.c-btn:hover { background: var(--teal); color: #fff; }
.c-btn:active { transform: translateY(1px); }
.c-btn--teal { background: var(--teal); color: #fff; }
.c-btn--teal:hover { background: var(--cream); color: var(--green); }
.c-btn--light { background: var(--cream); color: var(--green); }
.c-btn--light:hover { background: var(--gold); color: var(--green); }
.c-btn--sm { font-size: .78rem; padding: .6em 1.2em; }
.c-actions { display: flex; flex-wrap: wrap; gap: 14px 20px; justify-content: center; margin-top: clamp(28px, 4vw, 44px); }

/* ==========================================================================
   En-tête + navigation
   ========================================================================== */
.c-header { position: sticky; top: 0; z-index: 100; background: var(--cream); transition: box-shadow .25s; }
.c-header.is-scrolled { box-shadow: 0 4px 18px rgba(22, 58, 55, .14); }
.c-header__in { max-width: calc(1440px + 2 * var(--gutter)); display: flex; align-items: center; gap: clamp(12px, 2vw, 28px); min-height: var(--header-h); padding-block: 8px; }
.c-logo { flex: none; display: block; width: clamp(56px, 6vw, 72px); }
.c-logo img { width: 100%; height: auto; }

.c-nav { flex: 1; min-width: 0; outline: none; }
.c-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: nowrap; justify-content: center; gap: 6px clamp(12px, 1.4vw, 26px); }
.c-nav a {
  font-family: var(--f-title); text-transform: uppercase; color: var(--green);
  font-size: clamp(.8rem, .4rem + .38vw, .92rem); text-decoration: none; white-space: nowrap;
  padding: 6px 0; border-bottom: 2px solid currentColor; transition: color .2s;
}
.c-nav a:hover, .c-nav a[aria-current="page"] { color: var(--teal); }
.c-nav__close, .c-nav__title { display: none; }
.c-header__cta { flex: none; }

.c-burger {
  display: none; flex: none; width: 46px; height: 46px; border: 0; border-radius: 12px; cursor: pointer;
  background: var(--green); color: var(--cream); padding: 0; position: relative;
}
.c-burger span, .c-burger span::before, .c-burger span::after {
  position: absolute; left: 12px; width: 22px; height: 2.5px; border-radius: 2px; background: currentColor; content: "";
}
.c-burger span { top: 50%; transform: translateY(-50%); }
.c-burger span::before { left: 0; top: -7px; }
.c-burger span::after { left: 0; top: 7px; }
.c-overlay { display: none; }

@media (max-width: 1199px) {
  :root { --header-h: 72px; }
  .c-burger { display: block; }
  .c-header__cta { margin-left: auto; }
  .c-nav {
    position: fixed; inset: 0 0 0 auto; width: min(340px, 86vw); z-index: 120;
    background: var(--green); color: var(--cream);
    padding: 22px 28px 40px; overflow-y: auto;
    transform: translateX(100%); visibility: hidden;
    transition: transform .3s ease, visibility 0s linear .3s;
  }
  .c-nav.is-open { transform: none; visibility: visible; transition: transform .3s ease; }
  .c-nav ul { flex-direction: column; align-items: flex-start; gap: 4px; margin-top: 18px; }
  .c-nav li { width: 100%; }
  .c-nav a { display: block; color: var(--cream); font-size: 1.25rem; border: 0; padding: 12px 0; border-bottom: 1px solid rgba(250, 246, 233, .15); white-space: normal; }
  .c-nav a:hover, .c-nav a[aria-current="page"] { color: var(--gold); }
  .c-nav__title { display: block; font-family: var(--f-display); color: var(--gold); letter-spacing: .08em; text-transform: uppercase; font-size: .85rem; padding-top: 12px; }
  .c-nav__close {
    display: grid; place-items: center; position: absolute; top: 14px; right: 14px; width: 44px; height: 44px;
    border: 0; border-radius: 50%; background: rgba(250, 246, 233, .12); color: var(--cream); font-size: 28px; line-height: 1; cursor: pointer;
  }
  .c-overlay { display: block; position: fixed; inset: 0; z-index: 110; background: rgba(22, 58, 55, .55); opacity: 0; visibility: hidden; transition: opacity .3s, visibility 0s linear .3s; }
  .c-overlay.is-open { opacity: 1; visibility: visible; transition: opacity .3s; }
  body.c-nav-open { overflow: hidden; }
}
/* Même affichage « burger » quand le menu ne tient pas sur une ligne (détecté par croc.js) */
  html.c-compact { --header-h: 72px; }
  html.c-compact .c-burger { display: block; }
  html.c-compact .c-header__cta { margin-left: auto; }
  html.c-compact .c-nav {
    position: fixed; inset: 0 0 0 auto; width: min(340px, 86vw); z-index: 120;
    background: var(--green); color: var(--cream);
    padding: 22px 28px 40px; overflow-y: auto;
    transform: translateX(100%); visibility: hidden;
    transition: transform .3s ease, visibility 0s linear .3s;
  }
  html.c-compact .c-nav.is-open { transform: none; visibility: visible; transition: transform .3s ease; }
  html.c-compact .c-nav ul { flex-direction: column; align-items: flex-start; gap: 4px; margin-top: 18px; }
  html.c-compact .c-nav li { width: 100%; }
  html.c-compact .c-nav a { display: block; color: var(--cream); font-size: 1.25rem; border: 0; padding: 12px 0; border-bottom: 1px solid rgba(250, 246, 233, .15); white-space: normal; }
  html.c-compact .c-nav a:hover, html.c-compact .c-nav a[aria-current="page"] { color: var(--gold); }
  html.c-compact .c-nav__title { display: block; font-family: var(--f-display); color: var(--gold); letter-spacing: .08em; text-transform: uppercase; font-size: .85rem; padding-top: 12px; }
  html.c-compact .c-nav__close {
    display: grid; place-items: center; position: absolute; top: 14px; right: 14px; width: 44px; height: 44px;
    border: 0; border-radius: 50%; background: rgba(250, 246, 233, .12); color: var(--cream); font-size: 28px; line-height: 1; cursor: pointer;
  }
  html.c-compact .c-overlay { display: block; position: fixed; inset: 0; z-index: 110; background: rgba(22, 58, 55, .55); opacity: 0; visibility: hidden; transition: opacity .3s, visibility 0s linear .3s; }
  html.c-compact .c-overlay.is-open { opacity: 1; visibility: visible; transition: opacity .3s; }
  html.c-compact body.c-nav-open { overflow: hidden; }

@media (max-width: 380px) {
  .c-header__cta { font-size: .7rem; padding: .6em .9em; }
}

/* Vague crème sous l'en-tête / sous le hero */
.c-wave { display: block; width: 100%; height: auto; pointer-events: none; user-select: none; }
.c-wave--flip { transform: scale(-1, -1); }

/* ==========================================================================
   Pied de page
   ========================================================================== */
.c-footer { position: relative; background: var(--green); color: var(--cream); margin-top: -1px; }
.c-footer__wave { position: absolute; left: 0; right: 0; bottom: 100%; width: 100%; height: auto; pointer-events: none; }
.c-footer__grid {
  display: grid; gap: 36px 40px; padding-block: clamp(40px, 6vw, 64px) clamp(28px, 4vw, 40px);
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr);
}
.c-footer__brand { display: flex; gap: 18px; align-items: center; }
.c-footer__brand img { width: 96px; flex: none; }
.c-footer__name { font-family: var(--f-display); font-size: 1.9rem; line-height: 1; margin: 0 0 6px; }
.c-footer__tag { font-size: .8rem; text-transform: uppercase; line-height: 1.3; margin: 0 0 12px; }
.c-social { display: flex; gap: 12px; list-style: none; margin: 0; padding: 0; }
.c-social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; transition: background .2s; }
.c-social a:hover { background: rgba(250, 246, 233, .12); }
.c-social img { width: 30px; height: 30px; }
.c-footer h2 { font-family: var(--f-display); color: var(--teal); text-transform: uppercase; letter-spacing: .05em; font-size: .95rem; margin: 6px 0 14px; }
.c-footer ul.c-links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, max-content); gap: 8px 26px; font-size: .9rem; }
.c-footer ul.c-info { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: .9rem; }
.c-footer a { text-decoration: none; overflow-wrap: anywhere; }
.c-footer a:hover { color: var(--gold); text-decoration: underline; }
.c-footer__bottom { border-top: 1px solid rgba(250, 246, 233, .35); }
.c-footer__bottom .c-wrap { display: flex; flex-wrap: wrap; gap: 8px 32px; align-items: center; justify-content: space-between; padding-block: 18px; font-size: .82rem; }
.c-footer__legal { display: flex; flex-wrap: wrap; gap: 8px 28px; }

@media (max-width: 899px) {
  .c-footer__grid { grid-template-columns: 1fr 1fr; }
  .c-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .c-footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .c-footer__brand { flex-direction: column; text-align: center; }
  .c-footer__brand .c-social { justify-content: center; }
  .c-footer__col { text-align: center; }
  .c-footer ul.c-links { justify-content: center; }
  .c-footer__bottom .c-wrap { flex-direction: column; text-align: center; }
  .c-footer__legal { justify-content: center; }
}

/* ==========================================================================
   Fenêtre « Nous soutenir »
   ========================================================================== */
.c-dialog {
  width: min(640px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow: auto;
  border: 0; border-radius: 22px; padding: clamp(24px, 5vw, 44px); background: var(--cream); color: var(--ink);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
}
.c-dialog::backdrop { background: rgba(22, 58, 55, .7); }
.c-dialog h2 { font-family: var(--f-display); color: var(--green); font-size: clamp(1.2rem, 1rem + 1vw, 1.5rem); margin: 0 36px 16px 0; }
.c-dialog h3 { font-family: var(--f-display); color: var(--teal); font-size: 1rem; margin: 18px 0 6px; }
.c-dialog__close { position: absolute; top: 12px; right: 12px; width: 42px; height: 42px; border-radius: 50%; border: 0; background: transparent; font-size: 28px; line-height: 1; cursor: pointer; color: var(--green); }
.c-dialog__close:hover { background: rgba(22, 58, 55, .08); }
.c-dialog .c-actions { justify-content: flex-end; margin-top: 24px; }

/* ==========================================================================
   Accueil — hero (carrousel)
   ========================================================================== */
.c-hero { position: relative; background: var(--green); color: #fff; overflow: hidden; }
.c-hero__track { display: grid; }
.c-slide {
  grid-area: 1 / 1; position: relative; display: flex; align-items: center;
  min-height: clamp(520px, 78vh, 860px);
  padding-block: clamp(56px, 9vw, 120px) clamp(110px, 14vw, 200px);
  background-size: cover; background-position: center;
  opacity: 0; visibility: hidden; transition: opacity .8s ease, visibility 0s linear .8s;
}
.c-slide.is-active { opacity: 1; visibility: visible; transition: opacity .8s ease; }
.c-slide::before { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .35); }
.c-slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to right, var(--shade) 0%, var(--shade) 30%, rgba(0, 0, 0, 0) 85%); }
.c-slide--green { --shade: #163a37; }
.c-slide--brown { --shade: #944711; }
.c-slide__body { position: relative; z-index: 1; max-width: 720px; }
@media (min-width: 701px) { .c-slide > .c-wrap { padding-inline: max(var(--gutter), 76px); } }
.c-hero__brand { font-family: var(--f-display); font-size: clamp(3.2rem, 2rem + 6vw, 6rem); line-height: 1; margin: 0 0 .15em; }
.c-hero__title { font-family: var(--f-body); text-transform: uppercase; font-size: clamp(1.6rem, 1rem + 3vw, 3.4rem); line-height: 1.1; }
.c-hero__tagline { font-style: italic; font-size: clamp(1rem, .95rem + .3vw, 1.25rem); margin-top: 1.2em !important; }
.c-hero__date { font-family: var(--f-display); font-size: clamp(2.2rem, 1.4rem + 4vw, 4.6rem); line-height: 1.05; margin-bottom: .4em; }
.c-hero__text { font-size: clamp(.92rem, .88rem + .2vw, 1.02rem); max-width: 62ch; }
.c-hero__text p { margin-bottom: .8em; }
.c-hero .c-btn { margin-top: 18px; }

.c-hero__ctrl {
  position: absolute; top: 50%; z-index: 3; transform: translateY(-50%);
  width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(0, 0, 0, .25); color: #fff; display: grid; place-items: center;
}
.c-hero__ctrl:hover { background: rgba(0, 0, 0, .45); }
.c-hero__ctrl svg { width: 22px; height: 22px; }
.c-hero__ctrl--prev { left: clamp(6px, 1.5vw, 20px); }
.c-hero__ctrl--next { right: clamp(6px, 1.5vw, 20px); }
.c-hero__dots { position: absolute; z-index: 3; left: 0; right: 0; bottom: clamp(70px, 9vw, 130px); display: flex; justify-content: center; gap: 10px; }
.c-hero__dots button { width: 12px; height: 12px; padding: 0; border-radius: 50%; border: 2px solid #fff; background: transparent; cursor: pointer; }
.c-hero__dots button[aria-current="true"] { background: #fff; }
.c-hero .c-wave { position: absolute; left: 0; right: 0; bottom: -1px; z-index: 2; }
@media (max-width: 700px) {
  .c-hero__ctrl { top: auto; bottom: clamp(56px, 12vw, 90px); transform: none; width: 40px; height: 40px; }
  .c-hero__dots { bottom: clamp(70px, 14vw, 100px); }
  .c-slide::after { background: linear-gradient(to bottom, var(--shade) 0%, rgba(0, 0, 0, .55) 100%); opacity: .85; }
  .c-slide { padding-bottom: clamp(140px, 30vw, 180px); }
}
@media (prefers-reduced-motion: reduce) { .c-slide { transition: none; } html { scroll-behavior: auto; } }

/* ==========================================================================
   Accueil — sections
   ========================================================================== */
.c-feed iframe { display: block; width: 100%; border: 0; min-height: 420px; }

.c-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); }
.c-cols--rule > * + * { border-left: 2px solid var(--gold); padding-left: clamp(24px, 4vw, 56px); }
.c-intro { font-style: italic; }
.c-photo { margin: clamp(32px, 5vw, 56px) auto 0; max-width: 860px; border-radius: var(--radius); overflow: hidden; box-shadow: 0 10px 30px rgba(22, 58, 55, .18); }
.c-photo img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
@media (max-width: 899px) {
  .c-cols { grid-template-columns: 1fr; }
  .c-cols--rule > * + * { border-left: 0; padding-left: 0; border-top: 2px solid var(--gold); padding-top: 24px; }
}

/* Compte à rebours */
.c-countdown { text-align: center; }
.c-countdown__name { font-size: clamp(1.1rem, 1rem + .5vw, 1.4rem); margin-bottom: 24px !important; }
.c-countdown__grid { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(10px, 2vw, 22px); }
.c-countdown__item { min-width: clamp(70px, 18vw, 120px); padding: 14px 10px; border-radius: 16px; background: var(--green); color: var(--cream); }
.c-countdown__num { display: block; font-family: var(--f-title); color: var(--gold); font-size: clamp(2rem, 1.2rem + 3.5vw, 4rem); line-height: 1; }
.c-countdown__label { display: block; font-family: var(--f-display); text-transform: uppercase; font-size: clamp(.68rem, .62rem + .25vw, .9rem); letter-spacing: .06em; margin-top: 6px; }
.c-countdown__msg { font-family: var(--f-display); color: var(--teal); font-size: clamp(1.2rem, 1rem + 1vw, 1.7rem); }

/* Cartes de l'agenda */
.c-cards { display: grid; gap: clamp(18px, 3vw, 32px); grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 380px)); justify-content: center; }
.c-event { position: relative; display: flex; flex-direction: column; background: var(--green); color: var(--cream); border-radius: 36px; overflow: hidden; box-shadow: 0 10px 28px rgba(22, 58, 55, .2); }
.c-event__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.c-event__media img { width: 100%; height: 100%; object-fit: cover; }
.c-event__date { position: absolute; left: 14px; top: 14px; font-family: var(--f-title); font-size: 1.25rem; line-height: 1.05; color: var(--cream); background: var(--green); padding: 10px 14px; border-radius: 14px; box-shadow: 0 4px 12px rgba(0, 0, 0, .3); }
.c-event__body { padding: 20px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.c-event__title { font-family: var(--f-display); color: var(--gold); text-transform: uppercase; font-size: 1rem; letter-spacing: .03em; }
.c-event__body p { font-size: .92rem; margin: 0; }
.c-event__link { margin-top: auto; align-self: flex-start; font-size: .9rem; text-decoration: underline; }
.c-event__link:hover { color: var(--gold); }

/* Partenaires */
.c-partners { display: grid; gap: clamp(14px, 2vw, 22px); grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.c-partner { background: #fff; border-radius: 14px; padding: 22px 18px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; box-shadow: 0 4px 16px rgba(22, 58, 55, .07); }
.c-partner img { width: 100%; max-width: 190px; aspect-ratio: 1772 / 1505; object-fit: contain; }
.c-partner h3 { font-family: var(--f-display); font-size: 1.15rem; color: var(--ink); margin-top: 6px; }
.c-partner p { font-style: italic; color: var(--muted); font-size: .85rem; line-height: 1.4; margin: 0; }
.c-partner a { margin-top: auto; padding-top: 8px; text-transform: uppercase; letter-spacing: .15em; font-size: .78rem; color: var(--ink); text-underline-offset: 4px; }
.c-partner a:hover { color: var(--teal); }
@media (max-width: 420px) { .c-partners { grid-template-columns: 1fr 1fr; } .c-partner { padding: 16px 10px; } .c-partner h3 { font-size: 1rem; } }

/* Nous rejoindre */
.c-join { display: grid; gap: clamp(32px, 4vw, 48px); grid-template-columns: repeat(3, minmax(0, 1fr)); text-align: center; }
.c-join__item { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.c-join__item img { width: clamp(110px, 12vw, 150px); }
.c-join__item p { max-width: 32ch; flex: 1; }
@media (max-width: 899px) { .c-join { grid-template-columns: 1fr; } }

/* Formulaire de contact (balisage Nicepage conservé pour l'envoi) */
.c-contact { max-width: 760px; margin-inline: auto; }

/* ==========================================================================
   Formulaires Nicepage — habillage responsive
   ========================================================================== */
.c-form .u-form { width: 100%; }
.c-form form { display: flex; flex-wrap: wrap; gap: 14px 24px; margin: 0; padding: 0; }
.c-form .u-form-group { width: 100% !important; margin: 0 !important; padding: 0 !important; flex: 1 1 100%; max-width: 100%; min-width: 0; }
.c-form .u-form-partition-factor-2 { flex: 1 1 calc(50% - 12px); }
@media (max-width: 640px) { .c-form .u-form-partition-factor-2 { flex-basis: 100%; } }
.c-form, .c-form label, .c-form input, .c-form select, .c-form textarea, .c-form p, .c-form .u-btn { font-family: var(--f-body); }
.c-form label { display: block; font-weight: 700; font-size: .9rem; margin: 0 0 6px; color: var(--ink); }
.c-form .u-label { white-space: normal; }
.c-form input[type="text"], .c-form input[type="email"], .c-form input[type="number"], .c-form input[type="tel"],
.c-form textarea, .c-form select {
  width: 100% !important; max-width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  background: #fff; border: 1px solid #c9c2ad; border-radius: 10px; padding: 12px 14px; height: auto; margin: 0;
}
.c-form textarea { min-height: 120px; resize: vertical; }
.c-form select[size] { padding: 6px; }
.c-form input:focus, .c-form textarea:focus, .c-form select:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(79, 163, 154, .25); }
.c-form .u-form-control-hidden { display: none !important; }
.c-form .u-form-send-message { display: none; width: 100%; padding: 12px 16px; border-radius: 10px; margin-top: 8px; }
.c-form .u-form-send-success { background: #e4f3ef; color: #1d5a52; }
.c-form .u-form-send-error { background: #fbe6e5; color: #8a2522; }
.c-form .u-form-submit { display: flex; justify-content: center; margin-top: 8px !important; }
.c-form .u-btn-submit, .c-form .u-form-submit .u-btn {
  font-family: var(--f-display) !important;
  display: inline-flex; align-items: center; justify-content: center; min-width: 200px;
  font-family: var(--f-display); text-transform: uppercase; letter-spacing: .05em; font-size: .95rem; text-decoration: none;
  background: var(--green) !important; color: var(--cream) !important; border: 0; border-radius: 999px; padding: 14px 32px !important; margin: 0 !important; width: auto !important;
}
.c-form .u-btn-submit:hover { background: var(--teal) !important; }
.c-form .u-form-text { font-size: .92rem; margin: 0 !important; }
.c-form .u-form-text.c-form-heading, .c-form .c-form-heading {
  font-family: var(--f-display); color: var(--teal-dark); font-size: clamp(1.3rem, 1.05rem + 1.1vw, 1.9rem) !important; line-height: 1.2; margin-top: 22px !important;
}
.c-form .c-form-heading br:first-child { display: none; }
.c-form .u-form-checkbox-group-wrapper, .c-form .u-form-radio-button-wrapper { display: grid; gap: 8px; }
.c-form .u-input-row { display: flex; align-items: flex-start; gap: 10px; }
.c-form .u-input-row label { font-weight: 400; margin: 0; font-size: .95rem; line-height: 1.4; }
.c-form input[type="checkbox"], .c-form input[type="radio"] { width: 18px; height: 18px; flex: none; margin: 3px 0 0; accent-color: var(--teal); }
.c-form .u-form-agree { display: flex; align-items: flex-start; gap: 10px; }
.c-form .u-form-agree label { font-weight: 400; margin: 0; font-size: .95rem; line-height: 1.45; }
.c-form .c-form-note { color: var(--teal-dark); font-style: italic; font-size: .86rem; }
.c-form .u-form-agree > label:first-child:empty { display: none; }
.c-form .u-form-select-wrapper { position: relative; }
.c-form .u-form-select-wrapper svg { position: absolute; right: 14px; top: 50%; width: 12px; transform: translateY(-50%); pointer-events: none; }
.c-form .u-form-select-wrapper select:not([size]) { appearance: none; padding-right: 36px; }
.c-form .u-form-signature canvas { width: 100% !important; height: 180px !important; background: #fff; border: 1px solid #c9c2ad; border-radius: 10px; display: block; }
.c-form .u-form-signature > div { position: relative; }
.c-form .u-form-signature .u-signature-clear-button, .c-form #signature-clear-button { position: absolute; top: 8px; right: 12px; font-size: .8rem; margin: 0; cursor: pointer; }
.c-form .u-form-file-upload .u-btn { display: inline-flex; background: var(--green); color: var(--cream); border-radius: 999px; padding: 10px 22px; font-family: var(--f-display); font-size: .82rem; text-transform: uppercase; cursor: pointer; }
.c-form .u-form-file-upload p { font-size: .78rem; margin: 6px 0 0; color: var(--muted); }
.c-form .u-form-number .u-input { width: 140px !important; }
.c-form .c-slots { font-size: .88rem; color: var(--coral); line-height: 1.95; align-self: end; }
@media (max-width: 640px) { .c-form .c-slots { display: none; } }
.c-form .c-slot-time { display: block; font-size: .8rem; font-style: italic; color: var(--coral); }

/* ==========================================================================
   Pages de formulaire
   ========================================================================== */
.c-formhead { text-align: right; max-width: 860px; margin-inline: auto; padding-bottom: 18px; border-bottom: 3px double var(--gold); margin-bottom: clamp(28px, 4vw, 44px); }
.c-formhead__kicker { font-family: var(--f-display); font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.4rem); color: var(--green); }
.c-formhead__title { font-family: var(--f-display); color: var(--teal-dark); font-size: clamp(1.6rem, 1rem + 2.8vw, 2.6rem); text-transform: uppercase; margin: 4px 0 6px; overflow-wrap: anywhere; }
.c-formhead__sub { font-family: var(--f-display); font-style: italic; color: var(--teal-dark); font-size: clamp(1rem, .9rem + .7vw, 1.5rem); }
@media (max-width: 640px) { .c-formhead { text-align: center; } }
.c-prose { max-width: 860px; margin-inline: auto; }
.c-prose h2 { font-family: var(--f-display); color: var(--coral); font-size: clamp(1.35rem, 1.1rem + 1vw, 1.8rem); margin: 1.6em 0 .5em; }
.c-prose h2:first-child { margin-top: 0; }
.c-prose h2.c-h-teal { color: var(--teal-dark); }
.c-prose h3 { font-family: var(--f-display); color: var(--teal); font-size: 1.05rem; margin: 1.3em 0 .3em; }
.c-prose .c-alert { color: var(--coral); }
.c-prose .c-teal { color: var(--teal-dark); }
.c-card { background: rgba(255, 255, 255, .7); border-radius: 22px; padding: clamp(20px, 4vw, 44px); box-shadow: 0 6px 24px rgba(22, 58, 55, .08); max-width: 860px; margin-inline: auto; }
.c-card + .c-card { margin-top: clamp(24px, 4vw, 40px); }
.c-card > h2 { margin-top: 0; }

/* ==========================================================================
   Page Festival 2026
   ========================================================================== */
.c-fest-hero { background: var(--green); color: var(--cream); }
.c-fest-hero .c-wave { position: relative; z-index: 1; }
.c-fest-hero__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; padding-block: clamp(8px, 2vw, 24px) var(--section-y); }
.c-fest-hero h1 { font-family: var(--f-display); font-size: clamp(2.6rem, 1.6rem + 4.5vw, 5rem); line-height: 1; margin-bottom: .5em; }
.c-fest-hero__text { font-size: clamp(1rem, .95rem + .25vw, 1.15rem); }
.c-fest-hero__poster { border-radius: 20px; overflow: hidden; box-shadow: 0 16px 40px rgba(0, 0, 0, .35); max-width: 460px; justify-self: center; width: 100%; }
@media (max-width: 899px) {
  .c-fest-hero__grid { grid-template-columns: 1fr; }
  .c-fest-hero__poster { order: -1; max-width: 380px; }
}
.c-embed { max-width: 820px; margin-inline: auto; }
.c-embed__frame { position: relative; width: 100%; aspect-ratio: var(--ratio, 4 / 5); border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(63, 69, 81, .16); background: rgba(255, 255, 255, .04); }
.c-embed__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.c-embed__link { display: inline-block; margin-top: 10px; font-size: .85rem; opacity: .85; }
.c-section--dark + .c-section--dark { border-top: 1px solid rgba(250, 246, 233, .08); }

/* ==========================================================================
   Frise chronologique (Le Lore)
   ========================================================================== */
.c-subtitle { font-family: var(--f-display); text-align: center; font-size: clamp(1.1rem, 1rem + .6vw, 1.45rem); margin: calc(-1 * clamp(14px, 2vw, 28px)) 0 clamp(28px, 4vw, 48px); }
.c-timeline { position: relative; max-width: 980px; margin-inline: auto; list-style: none; padding: 0; margin-block: 0; --dot: 44px; --line: 50%; }
.c-timeline::before { content: ""; position: absolute; top: 0; bottom: 0; left: var(--line); width: 10px; transform: translateX(-50%); border-left: 3px solid var(--cream); border-right: 3px solid var(--cream); }
.c-tl { position: relative; display: grid; grid-template-columns: 1fr var(--dot) 1fr; column-gap: clamp(20px, 4vw, 48px); align-items: center; padding-block: clamp(18px, 3vw, 34px); }
.c-tl__dot { grid-column: 2; grid-row: 1; width: var(--dot); height: var(--dot); border-radius: 50%; background: var(--lilac); position: relative; z-index: 1; display: block; transition: transform .2s; }
.c-tl__dot:hover { transform: scale(1.12); }
.c-tl__media { grid-column: 1; grid-row: 1; justify-self: end; width: min(100%, 200px); }
.c-tl__media img { border-radius: 8px; border: 3px solid #fff; box-shadow: 0 8px 22px rgba(0, 0, 0, .35); transition: transform .25s; }
.c-tl__media:hover img { transform: translateY(-4px) rotate(-1deg); }
.c-tl__text { grid-column: 3; grid-row: 1; justify-self: start; max-width: 300px; text-align: center; }
.c-tl__year { display: block; font-family: var(--f-display); color: var(--lilac); font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); line-height: 1; margin-bottom: 8px; text-decoration: none; }
.c-tl__text p { font-size: .95rem; margin: 0; }
.c-tl:nth-child(even) .c-tl__media { grid-column: 3; justify-self: start; }
.c-tl:nth-child(even) .c-tl__text { grid-column: 1; justify-self: end; }
.c-tl--start { padding-bottom: 0; }
.c-tl--start .c-tl__text { grid-column: 1 / -1 !important; justify-self: center !important; grid-row: 1; text-align: center; max-width: none; margin-bottom: 18px; }
.c-tl--start .c-tl__text a { font-family: var(--f-display); font-size: 1.15rem; text-decoration: none; }
.c-tl--start .c-tl__dot { grid-row: 2; }
.c-tl--teal .c-tl__dot { background: var(--teal); }
.c-tl--teal .c-tl__year { color: var(--teal); }
.c-tl--wide .c-tl__text { grid-column: 1 / -1 !important; justify-self: center !important; grid-row: 2; max-width: 360px; margin-top: 14px; background: var(--green); padding: 8px 12px; position: relative; z-index: 1; }
.c-tl--wide .c-tl__dot { grid-row: 1; }
.c-tl--final .c-tl__dot { background: var(--gold); }
.c-tl--final .c-tl__media { grid-column: 1 / -1 !important; justify-self: center !important; width: min(100%, 260px); grid-row: 2; margin-top: -22px; }
.c-tl--final .c-tl__text { grid-column: 1 / -1 !important; justify-self: center !important; grid-row: 3; margin-top: 14px; background: var(--green); }
.c-tl--final .c-tl__year { color: var(--gold); }
.c-tl--final .c-tl__dot { grid-row: 1; z-index: 2; }
.c-tl--final { padding-bottom: 0; }
.c-tl--final::after { content: ""; position: absolute; left: 0; right: 0; top: calc(50% + 10px); bottom: 0; background: var(--green); z-index: 0; }
.c-tl--final > * { position: relative; z-index: 1; }

@media (max-width: 700px) {
  .c-timeline { --dot: 32px; --line: 16px; }
  .c-timeline .c-tl { grid-template-columns: var(--dot) 1fr; column-gap: 18px; align-items: start; padding-block: 18px; }
  .c-timeline .c-tl .c-tl__dot { grid-column: 1 !important; grid-row: 1 / span 2 !important; align-self: start; margin-top: 4px; }
  .c-timeline .c-tl .c-tl__text { grid-column: 2 !important; grid-row: 1 !important; justify-self: start !important; text-align: left; max-width: none; margin: 0 !important; padding: 0 !important; background: none !important; }
  .c-timeline .c-tl .c-tl__media { grid-column: 2 !important; grid-row: 2 !important; justify-self: start !important; width: min(100%, 180px) !important; margin-top: 12px !important; }
  .c-timeline .c-tl--start { padding-top: 0; }
  .c-timeline .c-tl--start .c-tl__text { margin-top: 2px !important; }
  .c-timeline .c-tl--final::after { display: none; }
}
/* ==========================================================================
   L'histoire (chapitres)
   ========================================================================== */
.c-chapters { max-width: 860px; margin-inline: auto; }
.c-chapter { padding-block: clamp(28px, 4vw, 44px); border-top: 1px solid rgba(250, 246, 233, .12); scroll-margin-top: calc(var(--header-h) + 16px); }
.c-chapter:first-of-type { border-top: 0; }
.c-chapter__head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px 24px; margin-bottom: 20px; }
.c-chapter h2 { font-family: var(--f-display); color: var(--teal); font-size: clamp(1.5rem, 1.1rem + 1.8vw, 2.4rem); line-height: 1.1; }
.c-chapter h2 span { display: block; }
.c-chapter p { font-size: .98rem; }
.c-preface { font-style: italic; max-width: 860px; margin: 0 auto clamp(12px, 2vw, 20px); font-size: 1rem; }

/* ==========================================================================
   Pages simples (mentions, politique, inscriptions closes, en travaux)
   ========================================================================== */
.c-legal { max-width: 860px; margin-inline: auto; }
.c-legal h1 { font-family: var(--f-title); color: var(--teal); font-size: clamp(2rem, 1.4rem + 2.5vw, 3rem); margin-bottom: .8em; }
.c-legal h2 { font-family: var(--f-display); color: var(--green); font-size: clamp(1.15rem, 1rem + .6vw, 1.4rem); margin: 1.8em 0 .6em; }
.c-legal ul { padding-left: 1.2em; margin: 0 0 1em; }
.c-legal li { margin-bottom: .3em; }
.c-legal a { color: var(--teal-dark); overflow-wrap: anywhere; }
.c-legal dl { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; margin: 0 0 1em; }
.c-legal dt { font-weight: 700; }
.c-legal dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 520px) { .c-legal dl { grid-template-columns: 1fr; } .c-legal dd { margin-bottom: 8px; } }

.c-closed { min-height: 70vh; display: grid; place-items: center; text-align: center; }
.c-closed img.c-closed__logo { width: clamp(150px, 30vw, 220px); margin: 0 auto 24px; }
.c-closed h1 { font-family: var(--f-display); color: var(--teal); text-transform: uppercase; font-size: clamp(1.1rem, 1rem + .8vw, 1.5rem); margin-bottom: 1em; }
.c-closed p { max-width: 60ch; margin-inline: auto; }
.c-closed .c-social { justify-content: center; margin: 24px 0; }
.c-closed .c-btn { margin-top: 24px; }

.c-wip { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; text-align: center; background: var(--cream); padding: var(--gutter); }
.c-wip img { width: clamp(160px, 40vw, 300px); margin: 0 auto 20px; }
.c-wip p { font-family: var(--f-display); font-size: clamp(1.4rem, 1rem + 2vw, 2.2rem); color: var(--green); }

/* Nicepage impose sa propre police aux libellés de cases à cocher : on la remplace */
.c-form .u-input-row label, .c-form .u-form-agree label, .c-form .c-slot-time {
  font-family: var(--f-body) !important; font-size: .95rem !important; line-height: 1.4 !important;
}
.c-form .c-slot-time { font-size: .8rem !important; }

@media (prefers-reduced-motion: no-preference) { html.c-ready { scroll-behavior: smooth; } }
