.site-header {
  height: 108px;
}

.site-header .brand {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  flex: 0 0 auto;
  width: 280px;
  color: #071729;
  font-family: "DM Sans", sans-serif;
  font-weight: 800;
  line-height: 0.86;
  letter-spacing: -0.055em;
}

.site-header .brand-name {
  font-size: 30px;
  white-space: nowrap;
}

.site-header .brand-sportifs {
  color: #2945ff;
  font-size: 30px;
  white-space: nowrap;
}

.site-header nav {
  font-size: 16px;
  font-weight: 800;
}

.hero-visual > img {
  object-position: center center;
}

.hero h1 {
  font-size: clamp(48px, 4.8vw, 70px);
  white-space: nowrap;
}

.ticker {
  padding: 0;
}

.ticker .ticker-track {
  display: flex;
  width: max-content;
  animation: ticker-scroll 26s linear infinite;
}

.ticker .ticker-group {
  display: flex;
  align-items: center;
  justify-content: space-around;
  min-width: 100vw;
  padding: 14px 2vw;
}

.sport-card a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  border-radius: 5px;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  box-shadow: 0 8px 20px rgba(7, 23, 41, 0.16);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sport-card {
  min-height: 330px;
  padding: 24px;
  align-items: center;
  text-align: center;
}

.sport-card h3,
.sport-card > p {
  width: 100%;
}

.sport-card.blue a,
.sport-card.dark a {
  color: #071729;
  background: #fff;
}

.sport-card.lime a,
.sport-card.light a {
  color: #fff;
  background: #071729;
}

.sport-card a:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(7, 23, 41, 0.24);
}

.sport-card.photo-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.sport-card.photo-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(7, 23, 41, 0.5), rgba(7, 23, 41, 0.97));
}

.sport-card.photo-card h3,
.sport-card.photo-card > p {
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.65);
}

.sport-card .course-photo {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 72%;
}

.sport-card p.course-meta {
  margin: 6px 0 18px;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 700;
  opacity: 1;
}

.camp-status {
  cursor: default;
  pointer-events: none;
}

.camps {
  column-gap: 9vw;
  row-gap: 0;
}

.camp-gallery {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: repeat(2, 240px);
  gap: 12px;
  margin-top: 58px;
}

.camp-gallery figure {
  margin: 0;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.92);
  border-radius: 4px;
  box-shadow: 0 16px 32px rgba(7, 23, 41, 0.22);
}

.camp-gallery figure:nth-child(1) {
  grid-column: 1 / 4;
  grid-row: 1 / 3;
}

.camp-gallery figure:nth-child(2) {
  grid-column: 4 / 7;
  grid-row: 1;
}

.camp-gallery figure:nth-child(3) {
  grid-column: 7 / 10;
  grid-row: 1;
}

.camp-gallery figure:nth-child(4) {
  grid-column: 4 / 10;
  grid-row: 2;
}

.camp-gallery figure:nth-child(5) {
  grid-column: 10 / 13;
  grid-row: 1 / 3;
}

.camp-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.camp-gallery figure:hover img {
  transform: scale(1.035);
}

.about-team {
  background: #edf6fb;
  padding-top: 62px;
  padding-bottom: 62px;
}

.about-profile {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  width: min(940px, 100%);
  margin: 0 auto;
  background: transparent;
}

.about-card {
  min-height: 300px;
  padding: 38px;
  background: #fff;
}

.about-founder {
  color: #fff;
  background: #071729;
}

.about-photo-placeholder {
  display: grid;
  place-items: center;
  min-height: 300px;
  color: #5f6c76;
  background:
    linear-gradient(135deg, rgba(16, 134, 232, 0.08), rgba(199, 242, 70, 0.14)),
    #fff;
  border: 2px dashed #9fb4c2;
}

.about-photo-placeholder span {
  padding: 12px 18px;
  border-radius: 999px;
  color: #071729;
  background: #fff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.about-photo {
  width: 300px;
  min-height: 0;
  aspect-ratio: 1;
  justify-self: center;
  margin: 0;
  overflow: hidden;
  background: #071729;
}

.about-photo img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: center 38%;
}

.about-label {
  margin: 0 0 10px;
  color: #1086e8;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.about-founder .about-label {
  color: #c7f246;
}

.about-card h3 {
  margin: 0 0 18px;
  font: 800 31px/1 "Barlow Condensed", sans-serif;
  text-transform: uppercase;
}

.about-card p:last-child {
  margin-bottom: 0;
  color: #5f6c76;
}

.about-founder p:last-child {
  color: #b7c7d3;
}

/* Rythme vertical plus fluide sans comprimer le contenu */
.hero {
  min-height: 610px;
  padding-top: 44px;
  padding-bottom: 56px;
}

.hero-visual > img {
  height: 490px;
}

.section {
  padding-top: 84px;
  padding-bottom: 84px;
}

.section-head {
  margin-bottom: 44px;
}

.camps-copy > p:not(.eyebrow) {
  margin-top: 22px;
  margin-bottom: 22px;
}

.camp-gallery {
  grid-template-rows: repeat(2, 220px);
  margin-top: 42px;
}

.about-team {
  padding-top: 50px;
  padding-bottom: 50px;
}

.partners {
  gap: 7vw;
}

.registration {
  padding-top: 80px;
  padding-bottom: 80px;
}

#activites,
#camps,
#apropos,
#partenaires,
#inscriptions {
  scroll-margin-top: 108px;
}

footer > div {
  gap: 4px;
}

footer {
  padding: 20px 5vw;
}

footer .footer-logo {
  width: 158px;
  height: auto;
}

footer > div a {
  font-size: clamp(17px, 1.35vw, 21px);
  font-weight: 800;
  line-height: 1.45;
}

@keyframes ticker-scroll {
  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 950px) {
  .site-header nav {
    inset: 108px 0 auto;
  }

  .about-profile {
    grid-template-columns: 1fr;
  }

  .about-card,
  .about-photo-placeholder {
    min-height: 0;
  }

  .about-photo-placeholder {
    aspect-ratio: 4 / 3;
  }

  .about-photo {
    width: min(300px, 100%);
    min-height: 0;
    aspect-ratio: 1;
  }

  .about-photo img {
    min-height: 0;
  }
}

/* Infolettre */
.registration {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(420px, 1.1fr);
  gap: clamp(42px, 7vw, 100px);
  align-items: center;
}

.registration .newsletter-copy {
  max-width: 690px;
}

.newsletter-form {
  background: #fff;
  color: var(--navy);
  padding: clamp(24px, 3vw, 40px);
  border-radius: 4px;
  box-shadow: 0 18px 50px rgba(7, 23, 41, .18);
}

.newsletter-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.newsletter-form label:not(.consent) {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 16px;
  font-size: 13px;
  font-weight: 800;
}

.newsletter-form label > span {
  font-weight: 500;
  color: #65727d;
}

.newsletter-form input:not([type="checkbox"]),
.newsletter-form textarea {
  width: 100%;
  border: 1px solid #cbd8df;
  border-radius: 3px;
  background: #f7fbfd;
  color: var(--navy);
  font: 500 16px/1.4 var(--body);
  padding: 12px 14px;
}

.newsletter-form textarea {
  min-height: 105px;
  resize: vertical;
}

.newsletter-form input:focus,
.newsletter-form textarea:focus {
  outline: 3px solid rgba(16, 134, 232, .2);
  border-color: var(--blue);
}

.newsletter-form .consent {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  align-items: start;
  margin: 2px 0 20px;
  font-size: 12px;
  line-height: 1.45;
  color: #465561;
}

.newsletter-form .consent input {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: var(--blue);
}

.newsletter-form .btn {
  border: 0;
  cursor: pointer;
  font: 800 14px var(--body);
}

.form-success {
  margin: 0 0 18px !important;
  padding: 12px 14px;
  border-radius: 3px;
  background: #e8f8bf;
  color: #213108;
  font-size: 14px !important;
  font-weight: 700;
}

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

  .newsletter-form {
    width: 100%;
    max-width: 720px;
  }
}

@media (max-width: 650px) {
  .site-header {
    height: 88px;
  }

  .site-header .brand {
    flex-basis: auto;
    width: 215px;
  }

  .site-header .brand-name {
    font-size: 23px;
  }

  .site-header .brand-sportifs {
    font-size: 23px;
  }

  .site-header nav {
    inset: 88px 0 auto;
  }

  .hero {
    min-height: 0;
    padding-top: 38px;
    padding-bottom: 48px;
  }

  .section {
    padding-top: 60px;
    padding-bottom: 60px;
  }

  .section-head {
    margin-bottom: 30px;
  }

  .about-team {
    padding-top: 42px;
    padding-bottom: 42px;
  }

  .registration {
    padding-top: 60px;
    padding-bottom: 60px;
  }

  .hero h1 {
    font-size: clamp(32px, 10vw, 44px);
  }

  .about-team {
    padding-top: 42px;
    padding-bottom: 42px;
  }

  footer > div a {
    font-size: 18px;
    overflow-wrap: anywhere;
  }

  footer .footer-logo {
    width: 132px;
  }

  footer {
    padding: 18px 5vw;
  }

  .camp-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
    grid-auto-rows: auto;
    gap: 8px;
    margin-top: 32px;
  }

  .camp-gallery figure:nth-child(n) {
    grid-column: auto;
    grid-row: auto;
    aspect-ratio: 1 / 1;
  }

  .camp-gallery figure:nth-child(2) {
    display: none;
  }

  .newsletter-form .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .newsletter-form .btn {
    width: 100%;
  }
}
