/* ===== Kultur'Access — couleurs du logo : rose & orange, tons clairs ===== */
:root {
  --orange: #ef7d3a;
  --orange-dark: #d8621f;
  --pink: #ee74c5;
  --pink-dark: #d4509f;
  --yellow: #f7d13c;
  --leaf: #7fd44c;
  --cream: #fff7ef;
  --blush: #ffe6f4;
  --peach: #ffe9d9;
  --ink: #2c1a26;
  --muted: #6d5864;
  --radius: 28px;
  --shadow: 0 10px 30px rgba(44, 26, 38, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: "DM Sans", system-ui, -apple-system, sans-serif;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: "Baloo 2", "Arial Rounded MT Bold", sans-serif; line-height: 1.1; margin: 0 0 .5em; }
h2 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; }
h3 { font-size: 1.5rem; font-weight: 800; }
p { margin: 0 0 1em; }
a { color: inherit; }

.container { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }
.section { padding-block: clamp(4rem, 9vw, 7rem); position: relative; }
.section__intro { color: var(--muted); max-width: 55ch; }
.big { font-size: 1.2rem; font-weight: 500; }

.tag {
  display: inline-block;
  font-weight: 700; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase;
  background: var(--orange); color: #fff;
  padding: .35em 1em; border-radius: 99px; margin-bottom: 1rem;
}
.tag--pink { background: var(--pink); }
.tag--light { background: #fff; color: var(--orange-dark); }

/* ----- Boutons ----- */
.btn {
  display: inline-block;
  font-family: "Baloo 2", sans-serif; font-weight: 800; font-size: 1.1rem;
  text-decoration: none; color: #fff;
  background: var(--pink);
  border: 3px solid var(--ink);
  padding: .55em 1.4em; border-radius: 99px;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform .15s, box-shadow .15s;
  cursor: pointer;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.btn--ghost { background: #fff; color: var(--ink); }
.btn--small { font-size: .95rem; padding: .35em 1.1em; box-shadow: 3px 3px 0 var(--ink); }
.btn--full { width: 100%; }

/* ----- Navigation ----- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .7rem clamp(1rem, 4vw, 2.5rem);
  background: rgba(255, 247, 239, .92);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid rgba(44, 26, 38, .06);
}
.nav__brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; font-family: "Baloo 2", sans-serif; font-weight: 800; font-size: 1.4rem; }
.nav__logo { width: 46px; height: 46px; object-fit: contain; background: #fff; border-radius: 50%; padding: 3px; }
.nav__menu { display: flex; align-items: center; gap: 1.6rem; }
.nav__menu a:not(.btn) { text-decoration: none; font-weight: 700; position: relative; }
.nav__menu a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -4px; height: 3px;
  background: var(--orange); border-radius: 3px; transition: right .2s;
}
.nav__menu a:not(.btn):hover::after, .nav__menu a.active::after { right: 0; }
.nav__toggle { display: none; background: none; border: 0; padding: .5rem; cursor: pointer; }
.nav__toggle span { display: block; width: 26px; height: 3px; margin: 5px 0; background: var(--ink); border-radius: 3px; transition: .2s; }

/* ----- Hero ----- */
.hero {
  position: relative; overflow: hidden;
  background: var(--orange);
  color: #fff; text-align: center;
  min-height: min(88vh, 760px);
  display: grid; place-items: center;
  padding: 6rem 1.25rem 8rem;
}
.hero__inner { position: relative; z-index: 2; max-width: 900px; }
.hero .tag { background: #fff; color: var(--orange-dark); }
.hero__title {
  font-size: clamp(2.2rem, 10.5vw, 8.5rem);
  overflow-wrap: anywhere; font-weight: 800; letter-spacing: -.01em;
  text-transform: uppercase; margin: 0;
  text-shadow: 0 6px 0 rgba(0, 0, 0, .12);
}
.hero__lead { font-size: clamp(1.2rem, 3vw, 1.7rem); font-weight: 500; margin: .5rem 0 2rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }

.blob { position: absolute; z-index: 1; }
.blob--pink { background: var(--pink); border-radius: 58% 42% 55% 45% / 50% 60% 40% 50%; }
.blob--leaf { background: var(--leaf); border-radius: 0 100% 0 100%; }
.blob--sand { background: #e8a55a; border-radius: 45% 55% 60% 40% / 55% 45% 55% 45%; }
.hero__b1 { width: clamp(160px, 22vw, 300px); aspect-ratio: 1.2; top: 8%; right: 6%; animation: float 7s ease-in-out infinite; }
.hero__b2 { width: clamp(70px, 9vw, 120px); aspect-ratio: .8; top: 20%; left: 12%; transform: rotate(-20deg); animation: float 6s ease-in-out infinite reverse; }
.hero__b3 { width: clamp(180px, 25vw, 340px); aspect-ratio: 1; bottom: -12%; left: -6%; }
.squiggle { position: absolute; z-index: 1; fill: none; stroke: var(--yellow); stroke-width: 9; stroke-linecap: round; }
.hero__sq { width: clamp(60px, 8vw, 100px); bottom: 12%; right: 8%; }
.wave { position: absolute; bottom: -1px; left: 0; width: 100%; height: 60px; fill: var(--cream); z-index: 2; }

@keyframes float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -14px; }
}

/* ----- Mission ----- */
.mission__grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.mission__logo {
  background: #fff; border-radius: 50%; aspect-ratio: 1; display: grid; place-items: center;
  padding: 12%; box-shadow: var(--shadow);
  position: relative;
}
.mission__logo::before {
  content: ""; position: absolute; inset: -18px; z-index: -1;
  background: var(--blush); border-radius: 55% 45% 50% 50% / 45% 55% 45% 55%;
}
.mission__logo img { width: 100%; height: auto; }

/* ----- Projets ----- */
.projets { background: var(--blush); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.6rem; margin-top: 2.5rem; }
.card {
  position: relative; background: #fff;
  border: 3px solid var(--ink); border-radius: var(--radius);
  padding: 2rem 1.8rem 1.5rem;
  box-shadow: 6px 6px 0 var(--accent);
  transition: transform .2s;
}
.card:hover { transform: translateY(-4px) rotate(-.5deg); }
.card--orange { --accent: var(--orange); }
.card--pink { --accent: var(--pink); }
.card--yellow { --accent: var(--yellow); }
.card--green { --accent: var(--leaf); }
.card__num {
  position: absolute; top: -20px; right: 22px;
  width: 44px; height: 44px; display: grid; place-items: center;
  background: var(--accent); border: 3px solid var(--ink); border-radius: 50%;
  font-family: "Baloo 2", sans-serif; font-weight: 800; font-size: 1.3rem;
}
.card__icon { font-size: 2.4rem; display: block; margin-bottom: .4rem; }
.card__kicker { font-weight: 700; color: var(--muted); }
.card p:last-child { margin-bottom: 0; }

/* ----- À venir ----- */
.events { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1rem; }
.event {
  display: flex; gap: 1.5rem; align-items: center;
  background: #fff; border-radius: var(--radius); padding: 1.4rem 1.6rem; box-shadow: var(--shadow);
}
.event__date {
  flex: none; width: 88px; aspect-ratio: 1; border-radius: 22px;
  background: var(--pink); color: #fff;
  display: grid; place-content: center; text-align: center;
  font-family: "Baloo 2", sans-serif; font-weight: 800; line-height: 1;
}
.event__date span { font-size: 2rem; }
.event__date small { font-size: .8rem; text-transform: uppercase; }
.event h3 { margin-bottom: .25em; }
.event p { margin: 0; color: var(--muted); }

/* ----- Retour en images ----- */
.retour { background: var(--peach); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.2rem; margin-top: 2rem; }
.gallery figure { margin: 0; background: #fff; padding: .7rem .7rem 1rem; border-radius: 6px; box-shadow: var(--shadow); transform: rotate(-1.5deg); }
.gallery figure:nth-child(even) { transform: rotate(1.5deg); }
.gallery img { aspect-ratio: 4/3; object-fit: cover; width: 100%; border-radius: 3px; }
.gallery figcaption { font-size: .9rem; margin-top: .5rem; text-align: center; }
.empty {
  grid-column: 1 / -1; text-align: center;
  background: #fff; border: 3px dashed var(--orange); border-radius: var(--radius);
  padding: 3rem 1.5rem;
}
.empty__icon { font-size: 3rem; display: block; margin-bottom: .5rem; }
.empty p { color: var(--muted); max-width: 48ch; margin-inline: auto; }

/* ----- Inscription ----- */
.inscription { background: var(--pink); color: #fff; }
.inscription__grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.form {
  background: #fff; color: var(--ink);
  border: 3px solid var(--ink); border-radius: var(--radius);
  box-shadow: 8px 8px 0 var(--ink);
  padding: clamp(1.4rem, 4vw, 2.2rem);
  display: grid; gap: 1rem;
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form label { font-weight: 700; font-size: .95rem; display: grid; gap: .35rem; }
.form input[type="text"], .form input[type="email"], .form input[type="tel"], .form input[type="date"] {
  font: inherit; font-weight: 400; color: var(--ink);
  padding: .7em .9em; border: 2px solid #e5d6de; border-radius: 14px; background: var(--cream);
  width: 100%;
}
.form input:focus-visible { outline: 3px solid var(--orange); outline-offset: 1px; border-color: transparent; }
.form input.invalid { border-color: #d93636; background: #fff3f3; }
fieldset { border: 0; padding: 0; margin: 0; }
legend { font-weight: 700; font-size: .95rem; margin-bottom: .5rem; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { display: inline-block !important; cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-block; font-weight: 500;
  padding: .4em .9em; border: 2px solid #e5d6de; border-radius: 99px; background: var(--cream);
  transition: .15s;
}
.chip input:checked + span { background: var(--orange); border-color: var(--orange); color: #fff; }
.chip input:focus-visible + span { outline: 3px solid var(--pink); outline-offset: 2px; }
.consent { display: flex !important; grid-template-columns: none; gap: .6rem !important; align-items: flex-start; font-weight: 400 !important; font-size: .88rem !important; color: var(--muted); }
.consent input { margin-top: .3em; accent-color: var(--orange); width: 18px; height: 18px; flex: none; }
.form__error { color: #c62828; font-weight: 700; margin: 0; }
.form__success { background: var(--leaf); color: var(--ink); font-weight: 700; padding: 1rem; border-radius: 16px; text-align: center; margin: 0; }
[hidden] { display: none !important; }

/* ----- Adhésion ----- */
.adherer__box {
  text-align: center; max-width: 760px;
  background: #fff; border: 3px solid var(--ink); border-radius: var(--radius);
  box-shadow: 8px 8px 0 var(--orange);
  padding: clamp(2rem, 6vw, 3.5rem) clamp(1.4rem, 5vw, 3rem);
}
.adherer__icon { font-size: 3rem; display: block; margin-bottom: .5rem; }
.adherer__note { color: var(--muted); }
.adherer .btn { margin-top: .5rem; }

/* ----- Pied de page ----- */
.footer { background: var(--ink); color: #fff; padding-block: 2.5rem; }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.footer p { margin: 0; }
.footer__small { opacity: .6; font-size: .9rem; }

/* ----- Animation d'apparition ----- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s, transform .6s; }
.reveal.visible { opacity: 1; transform: none; }

/* ----- Responsive ----- */
@media (max-width: 860px) {
  .nav__toggle { display: block; }
  .nav__menu {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 1.1rem; padding: 1.5rem;
    background: var(--cream); border-bottom: 3px solid var(--ink);
    display: none;
  }
  .nav__menu.open { display: flex; }
  .nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .mission__grid, .inscription__grid { grid-template-columns: 1fr; }
  .mission__logo { max-width: 280px; margin-inline: auto; }
}
@media (max-width: 520px) {
  .form__row { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .event { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
