/* Association Dansemble - feuille de style unique */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("fonts/bricolage.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("fonts/source-serif.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("fonts/source-serif-italic.woff2") format("woff2");
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --ecume: #f3f6f5;
  --ardoise: #1d2933;
  --hortensia: #4a53c4;
  --satin: #f7cdd5;
  --line: rgba(29, 41, 51, 0.2);
  --display: "Bricolage Grotesque", "Trebuchet MS", system-ui, sans-serif;
  --text: "Source Serif 4", Georgia, "Times New Roman", serif;
  --focus: var(--hortensia);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

@view-transition {
  navigation: auto;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 1rem;
}

[hidden] {
  display: none !important;
}

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

body {
  margin: 0;
  background: var(--ecume);
  color: var(--ardoise);
  font-family: var(--text);
  font-size: 1.1875rem;
  line-height: 1.65;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--hortensia);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.2em;
}
a:hover {
  text-decoration-thickness: 0.16em;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 10;
  padding: 0.7rem 1.1rem;
  background: var(--ardoise);
  color: var(--ecume);
  font-family: var(--display);
  font-weight: 600;
}
.skip:focus {
  top: 1rem;
}

.wrap {
  width: min(100% - 2rem, 72rem);
  margin-inline: auto;
}
@media (min-width: 48rem) {
  .wrap {
    width: min(100% - 5rem, 72rem);
  }
}

/* Titres */
h1,
h2,
h3 {
  font-family: var(--display);
  line-height: 1.05;
  margin: 0;
  text-wrap: balance;
}
h2 {
  font-size: clamp(1.9rem, 4.4vw, 3rem);
  font-weight: 750;
  letter-spacing: -0.02em;
}
h3 {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
p {
  margin: 0;
  text-wrap: pretty;
}
.prose {
  max-width: 62ch;
}
.prose > * + * {
  margin-top: 1.1em;
}
.small {
  font-size: 1rem;
  line-height: 1.55;
}

/* En-tete */
.site-header {
  background: rgba(243, 246, 245, 0.9);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
@media (min-width: 52rem) {
  html {
    scroll-padding-top: 5.5rem;
  }
  .site-header {
    position: sticky;
    top: 0;
    z-index: 5;
  }
}
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding-block: 1rem;
}
.brand {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.7rem;
  letter-spacing: -0.04em;
  color: var(--ardoise);
  text-decoration: none;
}
.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.05rem;
}
.nav a {
  color: var(--ardoise);
  text-decoration: none;
  padding-block: 0.35rem;
  border-bottom: 3px solid transparent;
}
.nav a:hover,
.nav a[aria-current="page"] {
  border-bottom-color: var(--hortensia);
}

/* Boutons */
.btn {
  display: inline-block;
  font-family: var(--display);
  font-weight: 650;
  font-size: 1.05rem;
  line-height: 1.1;
  padding: 0.9rem 1.5rem;
  border-radius: 999px;
  border: 2px solid var(--hortensia);
  background: var(--hortensia);
  color: #fff;
  text-decoration: none;
}
.btn:hover {
  background: var(--ardoise);
  border-color: var(--ardoise);
}
.btn--satin {
  background: var(--satin);
  border-color: var(--satin);
  color: var(--ardoise);
}
.btn--satin:hover {
  background: var(--ecume);
  border-color: var(--ecume);
  color: var(--ardoise);
}
.btn--line {
  background: transparent;
  border-color: currentColor;
  color: inherit;
}
.btn--line:hover {
  background: var(--ardoise);
  border-color: var(--ardoise);
  color: var(--ecume);
}
.btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Bandeaux de couleur */
.band {
  padding-block: clamp(3rem, 8vw, 5.5rem);
}
.band--hortensia {
  background: var(--hortensia);
  color: var(--ecume);
  --focus: var(--satin);
}
.band--satin {
  background: var(--satin);
  color: var(--ardoise);
  --focus: var(--ardoise);
}
.band--ardoise {
  background: var(--ardoise);
  color: var(--ecume);
  --focus: var(--satin);
}
.band--hortensia a:not(.btn),
.band--ardoise a:not(.btn),
.band--satin a:not(.btn) {
  color: inherit;
}

/* Accueil : le nom en grand */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3rem, 8vw, 6rem) clamp(3.5rem, 8vw, 6rem);
}
.hero .wrap {
  position: relative;
  z-index: 1;
}
.hero h1 {
  font-size: clamp(3.2rem, 16.5vw, 12.5rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.95;
  padding-top: 0.12em;
}
.rhythm span {
  display: inline-block;
  transform: translateY(var(--y, 0));
}
@keyframes land {
  from {
    opacity: 0;
    transform: translateY(calc(var(--y, 0em) + 0.5em));
  }
  to {
    opacity: 1;
    transform: translateY(var(--y, 0));
  }
}
@media (prefers-reduced-motion: no-preference) {
  .rhythm span {
    animation: land 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) both;
    animation-delay: calc(var(--i) * 70ms + 150ms);
  }
}
.hero-lead {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.35rem, 2.7vw, 2rem);
  line-height: 1.25;
  max-width: 26ch;
  margin-top: clamp(1.5rem, 4vw, 2.5rem);
}
.hero .btns {
  margin-top: 2rem;
}
.dancers-art {
  display: block;
  width: min(100% - 2rem, 30rem);
  height: auto;
  margin: 2.5rem auto 0;
}
@media (min-width: 52rem) {
  .dancers-art {
    position: absolute;
    right: 0;
    bottom: -1rem;
    width: min(48rem, 58%);
    margin-top: 0;
  }
  .hero .wrap {
    min-height: 31rem;
  }
}
/* Illustrations abstraites : les petales se deploient, les cercles apparaissent */
.petal {
  transform: rotate(var(--a, 0deg));
}
.dot {
  transform-box: fill-box;
  transform-origin: center;
}
@keyframes unfurl {
  from {
    transform: rotate(0deg);
    opacity: 0;
  }
  to {
    transform: rotate(var(--a, 0deg));
    opacity: 1;
  }
}
@keyframes pop {
  from {
    transform: scale(0.2);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .dancers-art .petal {
    animation: unfurl 1s cubic-bezier(0.2, 0.8, 0.2, 1) both;
    animation-delay: var(--t);
  }
  .dancers-art .dot {
    animation: pop 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) both;
    animation-delay: var(--t);
  }
}

/* Vague */
.wave {
  display: block;
  width: 100%;
  height: clamp(28px, 5vw, 64px);
  margin-bottom: -1px;
}

/* Deux colonnes */
.split {
  display: grid;
  gap: 1.25rem 4rem;
}
@media (min-width: 52rem) {
  .split {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  }
}

/* Groupes d'age */
.ages {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
}
.ages li {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr);
  gap: 0.2rem 1.2rem;
  align-items: center;
  padding-block: 1.2rem;
  border-top: 2px solid var(--ardoise);
}
.ages .pic {
  grid-row: span 2;
  width: 3.5rem;
  height: 3.5rem;
}
.ages strong,
.ages li > span {
  grid-column: 2;
}
.ages li:last-child {
  border-bottom: 2px solid var(--ardoise);
}
.ages strong {
  font-family: var(--display);
  font-weight: 750;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
@media (min-width: 44rem) {
  .ages li {
    grid-template-columns: 4rem minmax(11rem, 15rem) minmax(0, 1fr);
    gap: 0.2rem 2rem;
  }
  .ages .pic {
    grid-row: auto;
    width: 4rem;
    height: 4rem;
  }
  .ages strong {
    grid-column: 2;
  }
  .ages li > span {
    grid-column: 3;
  }
}

/* Etapes d'inscription */
.steps {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
  counter-reset: etape;
}
.steps li {
  counter-increment: etape;
  display: grid;
  grid-template-columns: 2.6rem 1fr;
  gap: 0.25rem 1rem;
  align-items: start;
}
.steps li::before {
  content: counter(etape);
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  background: var(--ardoise);
  color: var(--satin);
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.2rem;
}
.steps .btns {
  margin-top: 0.7rem;
}

/* Pages interieures */
.page-title {
  padding-block: clamp(2.5rem, 7vw, 4.5rem) clamp(2rem, 5vw, 3rem);
}
.page-title h1 {
  font-size: clamp(2.6rem, 8vw, 5.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.98;
}
.page-title p {
  margin-top: 1.25rem;
  max-width: 52ch;
  font-size: 1.3rem;
}

.content-block {
  padding-block: clamp(2rem, 5vw, 3.5rem);
  border-top: 2px solid var(--ardoise);
}
.content-block > h2 {
  margin-bottom: 1.5rem;
}

.office {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem 2rem;
  max-width: 40rem;
}
.office li {
  display: grid;
  grid-template-columns: minmax(9rem, 12rem) 1fr;
  gap: 1rem;
  padding-block: 0.5rem;
  border-bottom: 1px solid var(--line);
}
.office span:first-child {
  font-family: var(--display);
  font-weight: 650;
}

.person {
  display: grid;
  gap: 1.2rem 2rem;
  padding-block: 1.5rem;
}
@media (min-width: 44rem) {
  .person {
    grid-template-columns: 9rem minmax(0, 1fr);
  }
}
.person + .person {
  border-top: 1px solid var(--line);
}
.portrait {
  position: relative;
  width: 9rem;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  background: var(--hortensia);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 800;
  font-size: 2.6rem;
  letter-spacing: -0.03em;
}
.portrait img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.person h3 {
  margin-bottom: 0.3rem;
}
.role {
  font-family: var(--display);
  font-weight: 600;
  color: var(--hortensia);
  margin-bottom: 0.9rem;
}

/* Emploi du temps */
.day {
  display: grid;
  gap: 0.5rem 2rem;
  padding-block: 1.6rem;
  border-top: 2px solid var(--ardoise);
}
.day:last-of-type {
  border-bottom: 2px solid var(--ardoise);
}
.day h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  font-weight: 800;
}
@media (min-width: 52rem) {
  .day {
    grid-template-columns: 12rem minmax(0, 1fr);
  }
}
.sessions {
  list-style: none;
  margin: 0;
  padding: 0;
}
.session {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.2rem 1rem;
  align-items: baseline;
  padding-block: 0.8rem;
  border-bottom: 1px solid var(--line);
}
.session:last-child {
  border-bottom: 0;
}
.session time {
  font-family: var(--display);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.session-name {
  font-family: var(--display);
  font-weight: 650;
  font-size: 1.25rem;
  line-height: 1.2;
}
.session-meta {
  display: block;
  font-size: 1rem;
  line-height: 1.4;
}
.tag {
  justify-self: start;
  margin-top: 0.3rem;
  font-family: var(--display);
  font-weight: 650;
  font-size: 0.85rem;
  padding: 0.15rem 0.75rem;
  border-radius: 999px;
  white-space: nowrap;
}
.tag--moderne {
  background: var(--hortensia);
  color: #fff;
}
.tag--classique {
  background: var(--satin);
  color: var(--ardoise);
}
@media (min-width: 40rem) {
  .session {
    grid-template-columns: 10.5rem 1fr;
  }
  .tag {
    grid-column: 2;
  }
}
@media (min-width: 52rem) {
  .session {
    grid-template-columns: 10.5rem 1fr auto;
  }
  .tag {
    grid-column: 3;
    justify-self: end;
    margin-top: 0;
  }
}

/* Agenda */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
}
.timeline li {
  display: grid;
  gap: 0.2rem 2rem;
  padding-block: 1rem;
  border-top: 1px solid var(--line);
}
.timeline time {
  font-family: var(--display);
  font-weight: 700;
}
.timeline strong {
  font-family: var(--display);
  font-weight: 650;
  font-size: 1.2rem;
}
@media (min-width: 44rem) {
  .timeline li {
    grid-template-columns: 13rem minmax(0, 1fr);
  }
}

/* Reglement */
.rules h2 {
  font-size: 1.5rem;
  margin-top: 2.2rem;
}
.rules h2:first-child {
  margin-top: 0;
}
.rules p {
  margin-top: 0.8rem;
}

/* Pied de page */
.site-footer {
  padding-block: clamp(2.5rem, 6vw, 4rem) 2rem;
  font-size: 1.05rem;
}
.footer-grid {
  display: grid;
  gap: 2rem 3rem;
}
@media (min-width: 52rem) {
  .footer-grid {
    grid-template-columns: 1.3fr 1fr 1fr;
  }
}
.site-footer .brand {
  color: var(--ecume);
  font-size: 2rem;
}
.site-footer h2 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}
.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-footer li + li {
  margin-top: 0.3rem;
}
.legal {
  margin-top: 2.5rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(243, 246, 245, 0.25);
  font-size: 0.95rem;
}

/* Filtres de l'emploi du temps */
.filters {
  display: grid;
  gap: 1rem 3rem;
  margin-bottom: 2rem;
}
@media (min-width: 52rem) {
  .filters {
    grid-template-columns: auto auto 1fr;
    align-items: end;
  }
}
.filters fieldset {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}
.filters legend {
  width: 100%;
  padding: 0;
  margin-bottom: 0.5rem;
  font-family: var(--display);
  font-weight: 650;
}
.filters button {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.1;
  padding: 0.55rem 1.05rem;
  border-radius: 999px;
  border: 2px solid var(--ardoise);
  background: transparent;
  color: var(--ardoise);
  cursor: pointer;
}
.filters button:hover {
  background: var(--satin);
}
.filters button[aria-pressed="true"] {
  background: var(--ardoise);
  color: var(--ecume);
}
.filters .count {
  font-family: var(--display);
  font-weight: 600;
}
.today {
  display: inline-block;
  margin-left: 0.7rem;
  padding: 0.1rem 0.7rem;
  border-radius: 999px;
  background: var(--satin);
  font-size: 0.85rem;
  font-weight: 650;
  vertical-align: middle;
}

/* Accueil : bandeau photo (danseuse sur fond noir) */
.hero--photo {
  background: #000;
  color: var(--ecume);
  --focus: var(--satin);
  min-height: clamp(34rem, 52vw, 50rem);
  display: flex;
  align-items: center;
  padding-block: clamp(2rem, 5vw, 4rem);
}
.hero--photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("/assets/hero-sm.webp") right bottom / auto 100% no-repeat;
}
@media (min-width: 40rem) {
  .hero--photo::before {
    background-image: url("/assets/hero.webp");
  }
}
.hero--photo .wrap {
  min-height: 0;
}
.hero--photo h1 {
  font-size: clamp(3.2rem, 11vw, 9.5rem);
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.5);
}
.hero--photo .hero-lead {
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.7);
}
@media (max-width: 39.99rem) {
  .hero--photo {
    align-items: flex-start;
    padding-bottom: 22rem;
  }
  .hero--photo::before {
    background-position: 62% bottom;
    background-size: auto 21rem;
  }
}

img.pic {
  object-fit: contain;
  width: 3.5rem;
  height: 3.5rem;
}
@media (min-width: 40rem) {
  img.pic {
    width: 4rem;
    height: 4rem;
  }
}
