:root {
  --ink: #2f3e4f;
  --muted: #64716d;
  --line: #e0d8cf;
  --paper: #f5f2ec;
  --white: #fffdf8;
  --copper: #cb6e2d;
  --copper-dark: #9a4f1d;
  --eucalyptus: #35564a;
  --eucalyptus-dark: #243e36;
  --sand: #e7d5c4;
  --slate: #2f3e4f;
  --shadow: 0 24px 70px rgba(47, 62, 79, 0.14);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Instrument Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border-radius: var(--radius);
  color: var(--white);
  background: var(--slate);
  font-weight: 800;
  text-decoration: none;
  transform: translateY(-150%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

button,
input,
select,
textarea {
  font: inherit;
}

.container {
  width: min(calc(100% - 40px), var(--max));
  margin-inline: auto;
}

.site-header {
  position: fixed;
  z-index: 20;
  inset: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 14px clamp(20px, 4vw, 56px);
  color: var(--paper);
  transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  color: var(--ink);
  background: rgba(245, 242, 236, 0.94);
  box-shadow: 0 1px 0 rgba(47, 62, 79, 0.12);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  text-decoration: none;
}

.brand img {
  width: 190px;
  height: auto;
  border: 0;
  border-radius: 0;
  object-fit: contain;
  background: transparent;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.24));
}

.site-header:not(.is-scrolled):not(.is-open) .brand img {
  filter: brightness(0) invert(95%) sepia(9%) saturate(206%) hue-rotate(338deg) drop-shadow(0 10px 20px rgba(0, 0, 0, 0.28));
}

.site-header.is-scrolled .brand img,
.site-header.is-open .brand img {
  filter: drop-shadow(0 8px 18px rgba(47, 62, 79, 0.12));
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.3vw, 32px);
  font-size: 0.94rem;
  font-weight: 800;
}

.site-nav a {
  position: relative;
  text-decoration: none;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 2px;
  content: "";
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  color: inherit;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  grid-area: 1 / 1;
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  transition: transform 0.2s ease;
}

.menu-toggle span:first-child {
  transform: translateY(-4px);
}

.menu-toggle span:last-child {
  transform: translateY(4px);
}

.menu-toggle[aria-expanded="true"] span:first-child {
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:last-child {
  transform: rotate(-45deg);
}

.hero {
  position: relative;
  display: grid;
  min-height: 82svh;
  overflow: hidden;
  color: var(--white);
  background: var(--slate);
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-media {
  object-fit: cover;
  object-position: center;
  filter: saturate(0.86) contrast(1.06) brightness(0.82);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(47, 62, 79, 0.94) 0%, rgba(47, 62, 79, 0.72) 43%, rgba(47, 62, 79, 0.24) 100%),
    linear-gradient(0deg, rgba(36, 62, 54, 0.58), rgba(36, 62, 54, 0.12) 44%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  align-self: center;
  width: min(calc(100% - 40px), var(--max));
  margin: 92px auto 250px;
}

.kicker,
.eyebrow {
  margin: 0 0 14px;
  color: var(--copper);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: "Newsreader", Georgia, serif;
  letter-spacing: 0;
}

h1 {
  width: min(820px, 100%);
  margin-bottom: 22px;
  font-size: clamp(3.3rem, 8vw, 7.5rem);
  line-height: 0.88;
  color: var(--paper);
}

h2 {
  margin-bottom: 20px;
  font-size: clamp(2.15rem, 4.6vw, 4.7rem);
  line-height: 0.98;
}

h3 {
  margin-bottom: 10px;
  font-size: clamp(1.25rem, 2vw, 1.62rem);
  line-height: 1.08;
}

.hero-copy {
  width: min(650px, 100%);
  margin-bottom: 32px;
  color: rgba(245, 242, 236, 0.88);
  font-size: clamp(1.08rem, 1.7vw, 1.32rem);
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  color: var(--white);
  background: var(--copper);
}

.button-primary:hover {
  background: var(--copper-dark);
}

.button-ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.08);
}

.button-outline {
  color: var(--ink);
  border-color: var(--line);
  background: var(--white);
}

.hero-values {
  position: absolute;
  z-index: 2;
  right: auto;
  bottom: 0;
  left: 0;
  width: 100%;
  max-width: none;
  transform: none;
  border-radius: 0;
  overflow: hidden;
  background: rgba(245, 242, 236, 0.96);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.section {
  padding: clamp(70px, 9vw, 120px) 0;
}

#instruments,
#instruments-list,
#eveil-musical,
#inscriptions,
#ecole,
#stages,
#contact {
  scroll-margin-top: 92px;
}

.intro-band {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.intro-grid,
.registration-grid,
.story-grid,
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(30px, 6vw, 86px);
  align-items: center;
}

.intro-grid p,
.registration-grid p,
.story-copy p,
.contact-grid p,
.section-heading p,
.split > p {
  color: var(--muted);
  font-size: 1.08rem;
}

.section-heading {
  width: min(800px, 100%);
  margin-bottom: 38px;
}

.section-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.section-links a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 9px 14px;
  border: 1px solid rgba(203, 110, 45, 0.32);
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--white);
  font-size: 0.86rem;
  font-weight: 900;
  text-decoration: none;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 236px));
  align-items: stretch;
  justify-content: center;
}

.values-grid article {
  display: grid;
  justify-items: center;
  align-content: start;
  min-height: 148px;
  padding: 24px 22px 28px;
  text-align: center;
}

.values-grid article + article {
  border-left: 1px solid rgba(203, 110, 45, 0.42);
}

.values-grid strong,
.values-grid small {
  display: block;
}

.values-grid strong {
  margin-top: 10px;
  font-size: 0.86rem;
  font-weight: 900;
  text-transform: uppercase;
}

.values-grid small {
  width: min(170px, 100%);
  margin-top: 8px;
  color: var(--ink);
  font-size: 0.84rem;
  line-height: 1.35;
}

.value-icon {
  display: block;
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.section-heading.split {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.55fr);
  gap: 40px;
  align-items: end;
}

.courses-layout {
  display: grid;
  gap: clamp(34px, 5vw, 64px);
  align-items: start;
}

.course-category {
  min-width: 0;
}

.category-heading {
  min-height: 84px;
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.adn-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 34px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}

.adn-grid article {
  padding: clamp(22px, 3vw, 30px);
  background: var(--white);
}

.adn-grid span {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--copper-dark);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.adn-grid h3 {
  margin-bottom: 12px;
}

.adn-grid p {
  margin: 0;
  color: var(--muted);
}

.category-heading h3 {
  margin: 0;
  font-family: "Newsreader", Georgia, serif;
  font-size: clamp(1.7rem, 2.4vw, 2.35rem);
}

.category-heading p:last-child {
  width: min(760px, 100%);
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 1.02rem;
}

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

.instrument-card {
  display: grid;
  grid-template-rows: 210px 1fr;
  min-height: 360px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 18px 46px rgba(47, 62, 79, 0.08);
}

.instrument-card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
}

.instrument-card > div {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  padding: 24px;
}

.instrument-card p {
  color: var(--muted);
}

.instrument-card a,
.text-link,
.site-footer a {
  color: var(--copper-dark);
  font-weight: 800;
  text-decoration-color: rgba(203, 110, 45, 0.3);
  text-underline-offset: 4px;
}

.awakening-card {
  width: 100%;
  grid-template-rows: none;
  grid-template-columns: minmax(320px, 0.86fr) minmax(0, 1.14fr);
  min-height: auto;
  border-color: rgba(203, 110, 45, 0.34);
  background:
    linear-gradient(180deg, rgba(203, 110, 45, 0.11), rgba(53, 86, 74, 0.08)),
    var(--white);
  box-shadow: 0 24px 62px rgba(47, 62, 79, 0.12);
}

.awakening-card img {
  height: 100%;
  min-height: 330px;
}

.awakening-card > div {
  padding: clamp(28px, 3.4vw, 38px);
}

.awakening-category {
  position: relative;
  padding-top: clamp(34px, 5vw, 58px);
  border: 1px solid rgba(203, 110, 45, 0.24);
  border-right: 0;
  border-left: 0;
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(203, 110, 45, 0.08), transparent 38%),
    rgba(245, 242, 236, 0.68);
}

.awakening-category .category-heading {
  min-height: 84px;
  border-color: rgba(203, 110, 45, 0.34);
}

.awakening-category .eyebrow,
.awakening-card .tag {
  color: var(--eucalyptus);
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  margin-bottom: 14px;
  color: var(--copper-dark);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.11em;
}

.registration-band {
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(53, 86, 74, 0.52), rgba(47, 62, 79, 0) 52%),
    var(--slate);
}

.registration-band .eyebrow,
.registration-band p {
  color: rgba(255, 255, 255, 0.78);
}

.registration-points {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 26px 0 0;
  list-style: none;
}

.registration-points li {
  position: relative;
  padding-left: 28px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.02rem;
  font-weight: 700;
}

.registration-points li::before {
  position: absolute;
  top: 0.68em;
  left: 0;
  width: 14px;
  height: 2px;
  content: "";
  background: var(--sand);
}

.helloasso-panel {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(203, 110, 45, 0.12), rgba(53, 86, 74, 0.08)),
    rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
}

.registration-band .helloasso-panel {
  color: var(--ink);
}

.helloasso-card {
  display: grid;
  align-content: center;
  min-height: 360px;
  padding: clamp(28px, 4vw, 44px);
}

.helloasso-card h3 {
  margin-bottom: 16px;
  font-family: "Newsreader", Georgia, serif;
  font-size: clamp(2rem, 4vw, 3rem);
}

.helloasso-card p {
  color: var(--muted);
}

.helloasso-card .button {
  justify-self: start;
  margin-top: 12px;
}

.check-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 26px 0 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 30px;
  color: var(--ink);
  font-weight: 700;
}

.check-list li::before {
  position: absolute;
  top: 0.68em;
  left: 0;
  width: 16px;
  height: 2px;
  content: "";
  background: var(--copper);
}

.location-panel {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.location-panel img {
  width: 100%;
  height: 330px;
  object-fit: cover;
}

.location-content {
  padding: 28px;
}

.location-content p {
  color: var(--muted);
}

.activity-band {
  background:
    linear-gradient(135deg, rgba(53, 86, 74, 0.16), rgba(203, 110, 45, 0.08) 48%, transparent),
    #e9e4da;
}

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

.gallery-grid figure {
  position: relative;
  min-height: 340px;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(53, 86, 74, 0.28);
  border-radius: var(--radius);
  background: var(--eucalyptus);
  box-shadow: 0 22px 54px rgba(47, 62, 79, 0.12);
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.04);
  transition: transform 0.45s ease;
}

.gallery-grid figure:hover img {
  transform: scale(1.04);
}

.gallery-grid figcaption {
  position: absolute;
  right: 14px;
  bottom: 14px;
  left: 14px;
  padding: 14px 16px;
  border-radius: var(--radius);
  color: var(--white);
  font-weight: 900;
  background: rgba(53, 86, 74, 0.86);
  backdrop-filter: blur(10px);
}

.gallery-grid figure:nth-child(2) figcaption {
  background: rgba(203, 110, 45, 0.88);
}

.gallery-grid figure:nth-child(3) figcaption {
  background: rgba(47, 62, 79, 0.88);
}

.contact-section {
  background:
    linear-gradient(90deg, rgba(203, 110, 45, 0.1), transparent 42%),
    var(--paper);
}

.contact-form {
  display: grid;
  gap: 14px;
  padding: clamp(20px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 18px 48px rgba(47, 62, 79, 0.08);
}

.contact-form label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-weight: 800;
}

.contact-form label[hidden] {
  display: none;
}

.form-honeypot {
  position: absolute;
  left: -100vw;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form span {
  font-size: 0.84rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 13px 14px;
  color: var(--ink);
  background: var(--paper);
  outline: 0;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--copper);
  box-shadow: 0 0 0 4px rgba(203, 110, 45, 0.14);
}

.contact-form select {
  min-height: 52px;
  appearance: none;
}

.contact-form textarea {
  resize: vertical;
}

.form-feedback {
  min-height: 1.4em;
  margin: 0;
  color: var(--copper-dark);
  font-size: 0.92rem;
  font-weight: 800;
}

.site-footer {
  padding: 34px 0;
  border-top: 1px solid var(--line);
  background: var(--white);
}

.form-result {
  display: grid;
  min-height: 100svh;
  place-items: center;
  padding: 24px;
  background: var(--paper);
}

.form-result section {
  width: min(680px, 100%);
  padding: clamp(28px, 5vw, 52px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.form-result h1 {
  width: auto;
  color: var(--ink);
  font-size: clamp(2.4rem, 6vw, 4.4rem);
}

.footer-logo {
  width: 190px;
  height: auto;
  margin-bottom: 8px;
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-grid p {
  margin: 6px 0 0;
  color: var(--muted);
}

.footer-grid div:last-child {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: flex-end;
}

@media (max-width: 980px) {
  .site-header {
    min-height: 70px;
  }

  .menu-toggle {
    display: grid;
  }

  .site-nav {
    position: absolute;
    top: calc(100% - 1px);
    right: 16px;
    left: 16px;
    display: grid;
    gap: 0;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    color: var(--ink);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .site-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-nav a {
    padding: 13px 14px;
    border-radius: 6px;
  }

  .site-nav a:hover {
    background: var(--paper);
  }

  .site-nav a::after {
    display: none;
  }

  .hero-inner {
    margin-top: 96px;
    margin-bottom: 34px;
  }

  .hero-values {
    position: relative;
    right: auto;
    bottom: auto;
    left: auto;
    width: 100%;
    max-width: none;
    margin: 0 auto;
    transform: none;
  }

  .intro-grid,
  .registration-grid,
  .story-grid,
  .contact-grid,
  .section-heading.split {
    grid-template-columns: 1fr;
  }

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

  .values-grid article {
    border-bottom: 1px solid rgba(203, 110, 45, 0.28);
  }

  .values-grid article + article {
    border-left: 0;
  }

  .values-grid article:nth-child(2n) {
    border-left: 1px solid rgba(203, 110, 45, 0.28);
  }

  .values-grid article:last-child {
    grid-column: 1 / -1;
    border-bottom: 0;
    border-left: 0;
  }

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

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

  .awakening-card {
    grid-template-columns: 1fr;
  }

  .awakening-card img {
    height: 250px;
  }

  .courses-layout {
    grid-template-columns: 1fr;
  }

  .category-heading {
    min-height: auto;
  }

  .awakening-category {
    position: static;
    padding-top: 34px;
  }

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

  .gallery-grid figure,
  .gallery-grid figure:not(:first-child) {
    min-height: 340px;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(calc(100% - 28px), var(--max));
  }

  .site-header {
    padding-inline: 14px;
  }

  .brand img {
    width: 150px;
    height: auto;
  }

  .hero {
    min-height: auto;
  }

  .hero-inner {
    width: min(calc(100% - 28px), var(--max));
    margin-top: 92px;
    margin-bottom: 34px;
  }

  h1 {
    font-size: clamp(2.75rem, 14vw, 3.85rem);
    line-height: 0.92;
  }

  .hero-values {
    position: relative;
    right: auto;
    bottom: auto;
    left: auto;
    width: 100%;
    max-width: none;
    margin: 0 auto;
    transform: none;
    border-radius: 0;
  }

  .hero-values article {
    padding: 18px 14px 20px;
  }

  .section {
    padding: 64px 0;
  }

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

  .instrument-card {
    grid-template-rows: 230px 1fr;
  }

  .awakening-card {
    grid-template-rows: none;
  }

  .instrument-card img,
  .awakening-card img {
    height: 230px;
  }

  .awakening-card {
    grid-template-columns: 1fr;
  }

  .contact-actions,
  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .footer-grid,
  .footer-grid div:last-child {
    align-items: flex-start;
    flex-direction: column;
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
