:root {
  --blue: #284d8d;
  --blue-dark: #1e3d73;
  --mint: #72d2b1;
  --lime: #caff00;
  --white: #ffffff;
  --soft-white: rgba(255, 255, 255, 0.76);
  --shadow: 0 24px 70px rgba(8, 22, 48, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

.campus-hero {
  --mouse-x: 50%;
  --mouse-y: 50%;
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 48.25% 51.75%;
  min-height: clamp(430px, 31.25vw, 625px);
  overflow: hidden;
  background:
    radial-gradient(circle at var(--mouse-x) var(--mouse-y), rgba(255,255,255,.12), transparent 22%),
    linear-gradient(135deg, #2c5597 0%, var(--blue) 58%, var(--blue-dark) 100%);
  box-shadow: var(--shadow);
}

.campus-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 42%, rgba(255,255,255,.06) 50%, transparent 58%);
  transform: translateX(-120%);
  animation: lightSweep 8s ease-in-out infinite 1.8s;
}

.campus-hero__content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(34px, 3.3vw, 66px) clamp(30px, 3.2vw, 64px) clamp(34px, 3vw, 58px);
}

.brand {
  display: inline-flex;
  align-self: flex-start;
  flex-direction: column;
  text-decoration: none;
  color: #000;
  line-height: .88;
  transform: translateY(-12px);
  opacity: 0;
  animation: brandIn .8s cubic-bezier(.2,.75,.2,1) forwards .1s;
}

.brand__campus {
  display: inline-block;
  width: fit-content;
  padding: .18em .32em .12em;
  font-size: clamp(24px, 2.05vw, 41px);
  font-weight: 800;
  letter-spacing: -.06em;
  background: var(--lime);
}

.brand__osteopathie {
  margin-top: .17em;
  font-size: clamp(35px, 3.35vw, 67px);
  font-weight: 500;
  letter-spacing: -.055em;
}

.campus-hero__copy {
  max-width: 820px;
  padding-bottom: 3px;
}

.campus-hero h1 {
  margin: 0 0 clamp(16px, 1.35vw, 27px);
  color: var(--white);
  font-size: clamp(40px, 3.4vw, 68px);
  line-height: 1.08;
  letter-spacing: -.035em;
  font-weight: 500;
}

.campus-hero p {
  margin: 0;
  color: var(--soft-white);
  font-size: clamp(20px, 1.55vw, 31px);
  line-height: 1.28;
  letter-spacing: -.018em;
  font-weight: 400;
}

.campus-hero__cta {
  position: relative;
  display: inline-block;
  margin-left: .1em;
  color: var(--mint);
  text-decoration: none;
  white-space: nowrap;
  transition: color .25s ease, transform .25s ease, text-shadow .25s ease;
  animation: ctaPulse 2.8s ease-in-out infinite 3.8s;
}

.campus-hero__cta::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -.12em;
  height: 3px;
  border-radius: 999px;
  background: currentColor;
  transition: right .3s ease;
}

.campus-hero__cta:hover,
.campus-hero__cta:focus-visible {
  color: #9ce6ca;
  transform: translateY(-2px);
  text-shadow: 0 0 24px rgba(114, 210, 177, .75);
  outline: none;
}

.campus-hero__cta:hover::after,
.campus-hero__cta:focus-visible::after {
  right: 0;
}

.campus-hero__media {
  position: relative;
  z-index: 1;
  min-width: 0;
  overflow: hidden;
}

.campus-hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  transform: scale(1.07);
  animation: kenBurns 14s ease-in-out infinite alternate;
  will-change: transform;
}

.campus-hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(20, 48, 93, .16), transparent 18%),
    linear-gradient(180deg, rgba(0,0,0,.05), transparent 30%, rgba(0,0,0,.04));
  pointer-events: none;
}

.campus-hero__badge {
  position: absolute;
  z-index: 5;
  top: clamp(20px, 1.25vw, 26px);
  right: clamp(22px, 2.05vw, 42px);
  width: clamp(190px, 14.4vw, 288px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--mint);
  color: #070707;
  transform: rotate(8deg);
  box-shadow: 0 18px 34px rgba(5, 30, 23, .24);
  animation: badgeFloat 4.5s ease-in-out infinite, badgeIn .85s cubic-bezier(.2,.8,.2,1) both .45s;
  transition: transform .35s ease, box-shadow .35s ease;
}

.campus-hero__badge:hover {
  transform: rotate(2deg) translateY(-6px) scale(1.025);
  box-shadow: 0 25px 46px rgba(5, 30, 23, .32);
}

.campus-hero__badge-ring {
  width: 88%;
  height: 88%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  border: 3px solid #0d1915;
  border-radius: 50%;
  text-align: center;
  font-size: clamp(20px, 1.58vw, 31px);
  line-height: 1.08;
  font-weight: 800;
}

.campus-hero__badge-small {
  font-size: .9em;
}

.campus-hero__badge strong {
  display: block;
  margin: -.02em 0 -.04em;
  font-size: clamp(50px, 4.2vw, 84px);
  line-height: 1;
  font-weight: 500;
}

.campus-hero__glow {
  position: absolute;
  z-index: 0;
  border-radius: 50%;
  filter: blur(30px);
  opacity: .18;
  pointer-events: none;
}

.campus-hero__glow--one {
  width: 420px;
  height: 420px;
  left: -190px;
  top: -210px;
  background: #82a8ff;
  animation: drift 10s ease-in-out infinite alternate;
}

.campus-hero__glow--two {
  width: 360px;
  height: 360px;
  left: 26%;
  bottom: -260px;
  background: #79d8be;
  animation: drift 12s ease-in-out infinite alternate-reverse;
}

.reveal-item {
  opacity: 0;
  transform: translateX(-36px);
  animation: copyIn .9s cubic-bezier(.2,.8,.2,1) forwards .35s;
}

.demo-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 80px 28px 120px;
  color: #24344d;
}

.demo-content h2 {
  font-size: clamp(34px, 4vw, 54px);
  margin: 0 0 16px;
}

.demo-content p {
  font-size: 20px;
  line-height: 1.65;
}

@keyframes brandIn {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes copyIn {
  to { opacity: 1; transform: translateX(0); }
}

@keyframes badgeIn {
  from { opacity: 0; scale: .72; }
  to { opacity: 1; scale: 1; }
}

@keyframes badgeFloat {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -10px; }
}

@keyframes kenBurns {
  0% { transform: scale(1.07) translate3d(0, 0, 0); }
  100% { transform: scale(1.13) translate3d(-1.4%, -.8%, 0); }
}

@keyframes ctaPulse {
  0%, 100% { text-shadow: 0 0 0 rgba(114,210,177,0); }
  50% { text-shadow: 0 0 18px rgba(114,210,177,.52); }
}

@keyframes lightSweep {
  0%, 76%, 100% { transform: translateX(-120%); }
  90% { transform: translateX(120%); }
}

@keyframes drift {
  to { transform: translate3d(40px, 24px, 0) scale(1.12); }
}

@media (max-width: 1080px) {
  .campus-hero {
    grid-template-columns: 52% 48%;
  }

  .campus-hero__content {
    padding-right: 34px;
  }

  .campus-hero h1 {
    font-size: clamp(38px, 5vw, 58px);
  }

  .campus-hero p {
    font-size: clamp(19px, 2.25vw, 26px);
  }

  .campus-hero__badge {
    width: clamp(165px, 19vw, 220px);
  }
}

@media (max-width: 760px) {
  .campus-hero {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }

  .campus-hero__media {
    order: 1;
    height: min(72vw, 210px);
  }

  .campus-hero__content {
    order: 2;
    min-height: 430px;
    padding: 34px 24px 42px;
  }

  .brand {
    margin-bottom: 54px;
  }

  .brand__campus {
    font-size: clamp(24px, 8vw, 36px);
  }

  .brand__osteopathie {
    font-size: clamp(36px, 11vw, 54px);
  }

  .campus-hero h1 {
    font-size: clamp(38px, 11.4vw, 58px);
  }

  .campus-hero p {
    font-size: clamp(20px, 5.8vw, 28px);
  }

  .campus-hero__badge {
    top: 18px;
    right: 16px;
    width: clamp(145px, 38vw, 190px);
  }

  .campus-hero__badge-ring {
    font-size: clamp(17px, 4.8vw, 23px);
    border-width: 2px;
  }

  .campus-hero__badge strong {
    font-size: clamp(43px, 12vw, 59px);
  }

  .desktop-only {
    display: none;
  }
}

@media (max-width: 420px) {
  .campus-hero__content {
    min-height: 460px;
  }

  .campus-hero__cta {
    display: block;
    width: fit-content;
    margin: .18em 0 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}
