/* ==========================================================================
   Symphonie EMRI — feuille de style unique
   Valeurs reprises 1:1 de la maquette Claude Design (Symphonie.dc.html),
   converties en classes + points de rupture responsive.
   ========================================================================== */

:root {
  --orange: #E8612C;
  --orange-dark: #d4521f;
  --gold: #F2A20D;
  --yellow: #FBB034;
  --blue: #4FA3D1;
  --teal: #2D6E7C;
  --cream: #EFE7DC;
  --ink: #14110E;

  --navy: #14293A;
  --navy-card: #1B3A47;
  --navy-text: #CBDBDF;
  --navy-muted: #9FB6BC;
  --navy-link: #7FB4C6;

  --paper: #FFFDF8;
  --sand: #F7EFE2;
  --sand-soft: #FBF6EC;
  --chip: #F4EEE2;

  --text: #14110E;
  --text-soft: #4A4138;
  --text-mid: #534B43;
  --text-muted: #6E645B;
  --text-faint: #8B8077;
  --text-dim: #9A8E7E;

  --border: #E7DCC8;
  --border-soft: #EAE0CF;
  --border-warm: #F0E8DA;

  --display: 'Big Shoulders Display', 'Hanken Grotesk', system-ui, sans-serif;
  --sans: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --container: 1180px;
  --gutter: 32px;
  --header-h: 90px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
}

/* Verrou de défilement — posé sur <html> (voir lockScroll dans site.js).
   L'overlay reste en position:fixed donc calé sur le viewport, insensible
   au décalage appliqué à <body>. */
html.is-locked { overflow: hidden; }
html.is-locked body {
  position: fixed;
  left: 0;
  right: var(--scrollbar-width, 0px);
  width: auto;
}

::selection { background: var(--yellow); color: var(--ink); }

img { max-width: 100%; }

a { color: inherit; }

button {
  font: inherit;
  color: inherit;
  border: 0;
  background: none;
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
  border-radius: 4px;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--ink);
  color: #fff;
  padding: 12px 20px;
  font-weight: 700;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Éléments typographiques récurrents ---------- */

.kicker {
  font-weight: 800;
  font-size: 12.5px;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--orange);
}

.section-title {
  font-family: var(--display);
  font-weight: 900;
  font-size: 46px;
  line-height: .95;
  text-transform: uppercase;
  margin: 8px 0 0;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
}

.btn {
  display: inline-block;
  font-family: var(--display);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: .02em;
  padding: 13px 24px;
  border-radius: 7px;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .15s ease, background-color .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--orange { color: #fff; background: var(--orange); }
.btn--orange:hover { background: var(--orange-dark); transform: translateY(-2px); }
.btn--yellow { color: var(--ink); background: var(--yellow); }

/* ---------- Header ---------- */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 2px solid var(--ink);
}

.header__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 13px var(--gutter);
}

.header__logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.header__logo img { height: 52px; width: auto; display: block; }

.nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-weight: 700;
  font-size: 15px;
}
.nav a {
  color: var(--ink);
  text-decoration: none;
  transition: color .12s ease;
}
.nav a:hover { color: var(--orange); }

.header__cta {
  font-family: var(--display);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: .02em;
  color: #fff;
  background: var(--orange);
  padding: 10px 22px;
  border-radius: 6px;
  flex-shrink: 0;
  transition: background-color .12s ease;
}
.header__cta:hover { background: var(--orange-dark); }

.burger {
  display: none;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--ink);
  border-radius: 8px;
}
.burger span {
  display: block;
  position: relative;
  width: 20px; height: 2px;
  background: var(--ink);
  transition: background-color .15s ease;
}
.burger span::before,
.burger span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 20px; height: 2px;
  background: var(--ink);
  transition: transform .18s ease;
}
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */

.hero { border-bottom: 2px solid var(--ink); }

.hero__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.04fr .96fr;
}

.hero__text {
  padding: 62px 36px 58px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero__badge {
  align-self: flex-start;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #fff;
  background: var(--teal);
  padding: 7px 14px;
  border-radius: 5px;
}

.hero__title {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(36px, 4.3vw, 54px);
  line-height: .9;
  letter-spacing: .005em;
  text-transform: uppercase;
  margin: 22px 0 0;
}
.hero__title em { font-style: normal; color: var(--orange); }

.hero__lede {
  font-size: 17.5px;
  line-height: 1.55;
  color: var(--text-mid);
  margin: 22px 0 0;
  max-width: 438px;
}

.hero__actions {
  display: flex;
  gap: 12px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.hero__media {
  position: relative;
  background: linear-gradient(150deg, var(--gold), var(--orange));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  min-height: 520px;
  overflow: hidden;
}
.hero__media img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  object-position: center center;
  display: block;
  border: 2px solid var(--ink);
  border-radius: 14px;
  box-shadow: 0 14px 34px rgba(20, 17, 14, .3);
}

.note {
  position: absolute;
  font-family: Georgia, 'Times New Roman', serif;
  animation: floatNote 5s ease-in-out infinite;
  pointer-events: none;
}
.note--1 { top: 20px; left: 26px; font-size: 60px; color: rgba(255,255,255,.5); }
.note--2 { bottom: 28px; right: 30px; font-size: 44px; color: rgba(255,255,255,.46); animation-duration: 6s; animation-delay: 1s; }

/* ---------- Bandeau chiffres ---------- */

.stats { background: var(--navy); }
.stats__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 18px 40px;
  justify-content: space-between;
  padding: 28px 36px;
}
.stats__value {
  font-family: var(--display);
  font-weight: 800;
  font-size: 34px;
  color: #fff;
  line-height: 1;
}
.stats__value--accent { color: var(--gold); }
.stats__label { font-size: 12.5px; color: var(--navy-muted); margin-top: 3px; }

/* ---------- Activités ---------- */

.activites { padding: 72px var(--gutter) 80px; }

.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filter {
  font-weight: 700;
  font-size: 14px;
  padding: 9px 16px;
  border-radius: 999px;
  white-space: nowrap;
  transition: background-color .12s, color .12s, border-color .12s;
  background: #fff;
  color: var(--text-muted);
  border: 2px solid var(--border-soft);
}
.filter[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }

.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 30px;
}

.card {
  border-radius: 16px;
  padding: 22px;
  min-height: 184px;
  display: flex;
  flex-direction: column;
  text-align: left;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(20,17,14,.18); }
.card[hidden] { display: none; }
.card__age {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  opacity: .82;
}
.card__title {
  font-family: var(--display);
  font-weight: 800;
  font-size: 25px;
  line-height: .98;
  text-transform: uppercase;
  margin-top: 10px;
}
.card__blurb { font-size: 13.5px; line-height: 1.45; opacity: .92; margin-top: 9px; flex: 1; }
.card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 15px;
  font-size: 12px;
  font-weight: 700;
}
.card__meta span:first-child { opacity: .88; }
.card__more { white-space: nowrap; }

.cards__empty {
  grid-column: 1 / -1;
  padding: 28px;
  border: 2px dashed var(--border-soft);
  border-radius: 16px;
  color: var(--text-muted);
  text-align: center;
}

/* ---------- Tarifs & simulateur ---------- */

.tarifs {
  background: var(--sand);
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  padding: 72px var(--gutter) 80px;
}
.tarifs .section-title { margin: 8px 0 6px; }
.tarifs__lede { font-size: 16px; line-height: 1.55; color: var(--text-muted); max-width: 620px; margin: 0; }

.aside-card {
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 16px;
  padding: 20px 22px;
}
.aside-card--yellow { background: var(--yellow); }
.aside-card__title {
  font-family: var(--display);
  font-weight: 800;
  font-size: 21px;
  text-transform: uppercase;
  color: var(--teal);
}
.aside-card--yellow .aside-card__title { color: var(--ink); }
.aside-card ul { margin: 10px 0 0; padding-left: 18px; font-size: 14px; line-height: 1.7; color: var(--text-mid); }
.aside-card p { margin: 9px 0 0; font-size: 14px; line-height: 1.6; color: #3D3220; }

/* ---------- Tarifs : les trois encarts ---------- */

.tarifs__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 16px;
  align-items: start;
}

.tarif-montants {
  font-size: 15px;
  color: var(--text-mid);
  margin: 12px 0 0 !important;
}
.tarif-montants strong {
  font-family: var(--display);
  font-weight: 800;
  font-size: 27px;
  color: var(--ink);
  vertical-align: -2px;
}
.tarif-ou {
  display: inline-block;
  margin: 0 6px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* ---------- Tarifs : passage à l'action ---------- */

.tarif-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  flex-wrap: wrap;
  margin-top: 24px;
  padding: 26px 28px;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 18px;
  box-shadow: 8px 8px 0 var(--ink);
}
.tarif-cta__text { flex: 1 1 380px; }
.tarif-cta__title {
  font-family: var(--display);
  font-weight: 800;
  font-size: 24px;
  text-transform: uppercase;
  margin: 0;
}
.tarif-cta__text p:last-child {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--text-muted);
  margin: 8px 0 0;
}
.tarif-cta__btn {
  font-family: var(--display);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: .02em;
  color: #fff;
  background: var(--orange);
  padding: 16px 28px;
  border-radius: 9px;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .12s ease, transform .15s ease;
}
.tarif-cta__btn:hover { background: var(--orange-dark); transform: translateY(-2px); }

@media (max-width: 900px) {
  .tarifs__cards { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .tarif-cta { padding: 20px; box-shadow: 5px 5px 0 var(--ink); }
  .tarif-cta__btn { width: 100%; text-align: center; white-space: normal; }
}

/* ---------- Agenda ---------- */

.agenda { background: var(--navy); padding: 70px var(--gutter) 78px; }
.agenda .section-head { align-items: flex-end; gap: 14px; }
.agenda .kicker { color: var(--yellow); }
.agenda .section-title { color: #fff; }
.agenda__link {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--navy-link);
  text-decoration: none;
  transition: color .12s;
}
.agenda__link:hover { color: var(--yellow); }

.agenda__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
.event { background: var(--navy-card); border-radius: 16px; overflow: hidden; }
.event img { width: 100%; height: 190px; object-fit: cover; display: block; }
.event__band { padding: 20px 22px; }
.event__season { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.event__title {
  font-family: var(--display);
  font-weight: 800;
  font-size: 27px;
  text-transform: uppercase;
  line-height: 1;
  margin-top: 6px;
}
.event__body { padding: 18px 22px; font-size: 14px; line-height: 1.55; color: var(--navy-text); }

/* ---------- Lieux ---------- */

.lieux { padding: 72px var(--gutter) 78px; }
/* Grille sur 6 colonnes : chaque carte en occupe 2, soit 3 par rangée.
   Quand il y a exactement 5 salles, les deux de la dernière rangée passent
   à 3 colonnes chacune et remplissent toute la largeur au lieu de laisser
   un vide. La règle se désactive d'elle-même si le nombre de salles change. */
.lieux__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  margin-top: 28px;
}
.lieu { grid-column: span 2; }
.lieu:nth-child(4):nth-last-child(2),
.lieu:nth-child(4):nth-last-child(2) ~ .lieu { grid-column: span 3; }
.lieu { background: #fff; border: 2px solid var(--ink); border-radius: 16px; padding: 20px 22px; }
.lieu__tag {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 999px;
}
.lieu__name {
  font-family: var(--display);
  font-weight: 800;
  font-size: 23px;
  text-transform: uppercase;
  line-height: 1;
  margin-top: 13px;
}
.lieu__addr { font-size: 13.5px; color: var(--text-muted); margin-top: 7px; line-height: 1.45; }

/* ---------- Association ---------- */

.assoc {
  background: var(--cream);
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  padding: 72px var(--gutter) 78px;
}
.assoc__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  gap: 46px;
  align-items: center;
}
.assoc__media {
  position: relative;
  background: var(--teal);
  border: 2px solid var(--ink);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 8px 8px 0 var(--ink);
}
.assoc__frame { height: 380px; overflow: hidden; border-radius: 12px; }
.assoc__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
  display: block;
}
.assoc .section-title { font-size: 44px; }
.assoc__text p { font-size: 16px; line-height: 1.6; color: var(--text-soft); margin: 16px 0 0; max-width: 560px; }
.assoc blockquote {
  margin: 22px 0 0;
  padding-left: 18px;
  border-left: 4px solid var(--orange);
  font-size: 21px;
  line-height: 1.4;
  font-style: italic;
  color: var(--ink);
}
.assoc__author {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .04em;
  color: #7C7064;
  margin-top: 12px;
  text-transform: uppercase;
}

/* ---------- CTA contact ---------- */

.cta { background: var(--yellow); border-bottom: 2px solid var(--ink); padding: 58px var(--gutter); }
.cta__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.cta__title {
  font-family: var(--display);
  font-weight: 900;
  font-size: 52px;
  line-height: .9;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0;
}
.cta p { font-size: 16px; line-height: 1.5; color: #3D3220; margin: 12px 0 0; max-width: 480px; }
.cta__contact { font-size: 14.5px; font-weight: 700; color: var(--ink); margin-top: 16px; }
.cta__contact a { color: inherit; text-decoration: none; }
.cta__contact a:hover { text-decoration: underline; }
.cta__btn {
  font-family: var(--display);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: .02em;
  color: #fff;
  background: var(--ink);
  padding: 16px 32px;
  border-radius: 8px;
  white-space: nowrap;
  transition: background-color .15s;
}
.cta__btn:hover { background: var(--teal); }

/* ---------- Footer ---------- */

.footer { background: var(--ink); padding: 48px var(--gutter) 30px; }
.footer__grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 34px;
}
.footer__logo { height: 64px; width: auto; opacity: .95; }
.footer__about { font-size: 13px; line-height: 1.6; color: var(--text-dim); margin: 14px 0 0; max-width: 240px; }
.footer__title {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--orange);
}
.footer__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 13px;
  font-size: 14px;
  color: #C6BCB0;
  line-height: 1.45;
}
.footer__list--contact { gap: 9px; }
.footer__list a { color: #C6BCB0; text-decoration: none; transition: color .12s; }
.footer__list a:hover { color: #fff; }
.footer__list a.is-highlight { color: var(--yellow); font-weight: 700; }
.footer__list a.is-highlight:hover { color: #fff; }
.footer__bottom {
  max-width: var(--container);
  margin: 32px auto 0;
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 18px;
  font-size: 12.5px;
  color: #7C7064;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.footer__bottom a { color: inherit; text-decoration: none; }
.footer__bottom a:hover { color: #C6BCB0; }

/* ---------- Bandeau maquette ---------- */

.staging-flag {
  background: var(--ink);
  color: var(--yellow);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .04em;
  text-align: center;
  padding: 7px 16px;
}

/* ---------- Modales ---------- */

.overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(20, 17, 14, .6);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 20px;
  overflow: auto;
  animation: fadeIn .2s ease;
}
.overlay[hidden] { display: none; }

.modal {
  width: 100%;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 20px;
  overflow: hidden;
  animation: modalIn .25s ease;
  box-shadow: 0 30px 70px rgba(0,0,0,.4);
}
.modal[hidden] { display: none; }
.modal--activite { max-width: 540px; }

/* Cible de 44x44 (recommandation tactile) avec le glyphe centré, et un
   z-index explicite : les titres voisins portent une opacité < 1, ce qui leur
   crée un contexte d'empilement et les ferait passer devant le bouton. */
.modal__close {
  position: absolute;
  top: 13px;
  right: 15px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  font-size: 22px;
  line-height: 1;
  opacity: .8;
  border-radius: 10px;
  transition: opacity .12s ease, background-color .12s ease;
}
.modal__close:hover,
.modal__close:focus-visible {
  opacity: 1;
  background: color-mix(in srgb, currentColor 15%, transparent);
}

.act__header { padding: 26px 72px 26px 28px; position: relative; }
.act__age { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; opacity: .85; }
.act__title {
  font-family: var(--display);
  font-weight: 900;
  font-size: 38px;
  line-height: .92;
  text-transform: uppercase;
  margin: 6px 0 0;
}
.act__body { padding: 24px 28px 28px; }
.act__detail { font-size: 15.5px; line-height: 1.6; color: var(--text-soft); margin: 0; }
.act__chips { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.chip {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  background: var(--chip);
  border-radius: 999px;
  padding: 8px 14px;
}
.act__actions { display: flex; gap: 11px; margin-top: 24px; flex-wrap: wrap; }
.btn-primary {
  font-family: var(--display);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: .02em;
  color: #fff;
  background: var(--orange);
  padding: 12px 22px;
  border-radius: 8px;
  transition: background-color .12s;
}
.btn-primary:hover { background: var(--orange-dark); }
.btn-ghost {
  font-weight: 700;
  font-size: 14.5px;
  color: var(--text-muted);
  padding: 12px 18px;
  border: 2px solid var(--border);
  border-radius: 8px;
}
.btn-ghost:hover { border-color: var(--text-muted); }

/* ---------- Champs de formulaire ----------
   Conservés pour le formulaire de contact à venir : la mise en forme des
   libellés, champs et cases à cocher est indépendante du parcours d'inscription
   qui les utilisait auparavant. */

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.form-field { font-size: 13px; font-weight: 700; color: var(--text-mid); }
.form-field--wide { grid-column: 1 / -1; }
.form-field input,
.form-field textarea,
.form-field select {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 11px 13px;
  border: 2px solid var(--border);
  border-radius: 9px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  background: #fff;
  color: var(--ink);
}
.form-field select { font-weight: 600; cursor: pointer; }
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus,
.select:focus { border-color: var(--teal); outline: none; }

.form-checks { display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--text-mid); }
.form-checks label { display: flex; align-items: center; gap: 9px; cursor: pointer; }
.form-checks input { width: 17px; height: 17px; accent-color: var(--orange); }

.form-legal { font-size: 12px; color: var(--text-dim); margin: 14px 0 0; line-height: 1.5; }
.form-legal a { color: var(--teal); font-weight: 700; }

@media (max-width: 560px) {
  .form-grid { grid-template-columns: 1fr; }
}


/* ---------- Animations ---------- */

@keyframes floatNote {
  0%, 100% { transform: translateY(0) rotate(0); }
  50%      { transform: translateY(-12px) rotate(-4deg); }
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(18px) scale(.985); }
  to   { opacity: 1; transform: none; }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1180px) {
  .activites, .tarifs, .lieux, .assoc, .agenda, .cta, .footer { --gutter: 24px; }
  .hero__text { padding: 54px 28px 50px; }
}

@media (max-width: 1024px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .assoc__inner { gap: 32px; }
  .assoc .section-title { font-size: 38px; }
}

@media (max-width: 900px) {
  :root { --header-h: 78px; }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 2px solid var(--ink);
    padding: 8px 24px 18px;
    box-shadow: 0 18px 30px rgba(20,17,14,.14);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 13px 4px; border-bottom: 1px solid var(--border-warm); font-size: 16px; }
  .nav a:last-child { border-bottom: 0; }

  .burger { display: flex; }
  .header { position: sticky; }
  .header__inner { position: relative; gap: 12px; padding: 11px 24px; }
  .header__logo img { height: 44px; }
  .header__cta { font-size: 16px; padding: 9px 16px; }

  .hero__inner { grid-template-columns: 1fr; }
  .hero__text { padding: 44px 24px 40px; }
  .hero__lede { max-width: none; }
  .hero__media { min-height: 0; padding: 24px; order: -1; }
  .hero__media img { height: 320px; }
  .note--1 { font-size: 46px; top: 12px; left: 16px; }
  .note--2 { font-size: 34px; bottom: 16px; right: 18px; }

  .section-title { font-size: 38px; }
  .cta__title { font-size: 42px; }

  .agenda__grid { grid-template-columns: repeat(2, 1fr); }
  .lieux__grid { grid-template-columns: repeat(2, 1fr); }
  .lieu,
  .lieu:nth-child(4):nth-last-child(2),
  .lieu:nth-child(4):nth-last-child(2) ~ .lieu { grid-column: auto; }
  .assoc__inner { grid-template-columns: 1fr; }
  .assoc__frame { height: 300px; }

}

@media (max-width: 720px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .stats__inner { gap: 16px 24px; padding: 22px 24px; }
  .stats__value { font-size: 28px; }
  .agenda__grid, .lieux__grid { grid-template-columns: 1fr; }
  .assoc__media { box-shadow: 5px 5px 0 var(--ink); }
  .footer__grid { grid-template-columns: 1fr; gap: 26px; }
  .footer__about { max-width: none; }
}

@media (max-width: 560px) {
  .activites, .tarifs, .lieux, .assoc { padding-top: 54px; padding-bottom: 58px; }
  .agenda { padding-top: 54px; padding-bottom: 58px; }
  .cards { grid-template-columns: 1fr; }
  .hero__actions .btn { flex: 1; text-align: center; font-size: 16px; padding: 13px 16px; }
  .section-title { font-size: 32px; }
  .cta__title { font-size: 34px; }
  .cta__btn { width: 100%; text-align: center; }
  .overlay { padding: 16px 12px 32px; }
  .act__title { font-size: 30px; }
  .act__body { padding-left: 22px; padding-right: 22px; }
  .act__header { padding-left: 22px; padding-right: 64px; }
  .footer__bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .btn:hover, .card:hover { transform: none; }
}

/* ==========================================================================
   Thèmes de couleur
   Les couleurs par élément (cartes d'activité, bandeaux d'événement, étiquettes
   de lieu) passent par ces classes plutôt que par des attributs style="",
   ce qui permet à la CSP d'interdire complètement le style inline.
   ========================================================================== */

.t-orange { background: var(--orange); color: #fff; }
.t-gold   { background: var(--gold);   color: var(--ink); }
.t-yellow { background: var(--yellow); color: var(--ink); }
.t-blue   { background: var(--blue);   color: #fff; }
.t-teal   { background: var(--teal);   color: #fff; }
.t-cream  { background: var(--cream);  color: var(--ink); }

.t-orange .event__season,
.t-blue   .event__season,
.t-teal   .event__season { color: rgba(255, 255, 255, .85); }

.t-gold   .event__season,
.t-yellow .event__season,
.t-cream  .event__season { color: rgba(20, 17, 14, .6); }


/* Condition d'application du quotient familial (plaquette tarifs). */
.tarifs__note {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 620px;
  margin: 12px 0 0;
  padding-left: 14px;
  border-left: 3px solid var(--teal);
}

/* Précision sous un groupe de champs (adhésion, quotient familial). */
.field__hint {
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-dim);
  margin: 8px 0 0;
}
.field__hint[hidden] { display: none; }

.assoc__team {
  font-size: 13.5px;
  color: var(--text-muted);
  margin: 6px 0 0 !important;
}

/* ---------- Partenaires ---------- */

.partenaires { padding: 62px var(--gutter) 66px; }
.partenaires .section-title { font-size: 38px; }

/* Les tuiles ne s'étirent pas : la dernière rangée est centrée plutôt que
   collée à gauche, ce qui évite l'effet « orphelin » quand le nombre de
   partenaires ne remplit pas la rangée. */
.partenaires__list {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}
.partenaire {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 86px;
  padding: 14px 22px;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 14px;
  flex: 0 1 262px;
}
.partenaire img { max-height: 56px; max-width: 100%; width: auto; object-fit: contain; display: block; }

/* Pastille de remplacement tant que le logo officiel n'est pas fourni. */
.partenaire__nom {
  font-size: 13.5px;
  font-weight: 700;
  text-align: center;
  line-height: 1.35;
  color: var(--text-muted);
}

@media (max-width: 720px) {
  .partenaire { flex: 0 1 150px; min-height: 72px; padding: 12px 14px; }
  .partenaire__nom { font-size: 12.5px; }
}

/* Tuile foncée pour les logos fournis uniquement en version blanche. */
.partenaire--sombre { background: var(--ink); }

/* Deux actions dans le bandeau : inscription officielle en ligne (principale)
   et simulateur de tarif (secondaire). */
.cta__actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.cta__btn { display: inline-block; text-decoration: none; }
.cta__btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 2px solid var(--ink);
  font-size: 17px;
  padding: 14px 24px;
}
.cta__btn--ghost:hover { background: var(--ink); color: var(--yellow); }

/* QR code vers le formulaire d'inscription : utile pour poursuivre sur mobile
   depuis un ordinateur, ou lorsque la page est imprimée. Fond clair imposé,
   les lecteurs de QR ont besoin d'un contraste franc. */
.cta__qr {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.35;
  color: #3D3220;
}
.cta__qr img {
  width: 96px;
  height: 96px;
  padding: 8px;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 10px;
  flex-shrink: 0;
}

@media (max-width: 560px) {
  .cta__actions { width: 100%; }
  .cta__qr { justify-content: center; }
}
