:root {
  --fond: #ffffff;
  --texte: #000000;
  --bouton: #5a80fe;
  --bouton-texte: #ffffff;
  --violet: #8246ff;
  --cyan: #29c7fd;
  --wash: #e5f0fe;
  --navy: #003a96;
  --titre: "Poppins", system-ui, sans-serif;
  --corps: "Poppins", system-ui, sans-serif;
  --rayon: 14px;
  --rayon-lg: 22px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ombre: 0 18px 50px rgba(0, 58, 150, 0.1);
  --header: 4.35rem;
}

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

html {
  scroll-behavior: smooth;
}

html,
body {
  background: var(--fond);
  color: var(--texte);
}

body {
  margin: 0;
  font-family: var(--corps);
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
}

button,
input {
  font: inherit;
  color: inherit;
}

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

.skip {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  z-index: 80;
  background: var(--bouton);
  color: var(--bouton-texte);
  font-weight: 700;
  text-decoration: none;
  padding: 0.7rem 1.1rem;
  border-radius: var(--rayon);
}

.skip:focus {
  top: 0.75rem;
}

.wrap {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

@media (min-width: 720px) {
  .wrap {
    width: min(1120px, calc(100% - 4rem));
  }
}

/* Header — white, logo, unique CTA */
.mast {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--fond);
  border-bottom: 1px solid color-mix(in srgb, var(--wash) 80%, #c5d8f8);
}

.mast::before {
  content: "";
  display: block;
  height: 3px;
  background: linear-gradient(90deg, var(--violet), var(--bouton), var(--cyan));
}

.mast-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header);
  padding: 0.7rem 0;
}

.logo {
  display: block;
  height: 40px;
  width: auto;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background: var(--bouton);
  color: var(--bouton-texte);
  font-family: var(--titre);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  border: 0;
  border-radius: var(--rayon);
  padding: 0.78rem 1.25rem;
  cursor: pointer;
  min-height: 46px;
  box-shadow: 0 8px 22px rgba(90, 128, 254, 0.28);
  transition: background 0.25s var(--ease), transform 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}

.cta:hover {
  background: var(--navy);
  box-shadow: 0 10px 26px rgba(0, 58, 150, 0.22);
}

.cta:active {
  transform: translateY(1px);
}

.cta-nav {
  flex-shrink: 0;
  padding-inline: 1.1rem;
}

button.cta {
  width: 100%;
  min-height: 52px;
  font-size: 1.05rem;
  padding: 0.95rem 1.5rem;
}

@media (min-width: 720px) {
  :root {
    --header: 4.85rem;
  }

  .logo {
    height: 52px;
  }

  .cta-nav {
    min-width: 9.5rem;
  }
}

/* Hero */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 2.1rem 0 2.6rem;
  background: var(--wash);
}

.hero-stage {
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.hero-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(8px);
  opacity: 0.9;
}

.orb-a {
  width: min(58vw, 420px);
  height: min(58vw, 420px);
  top: -18%;
  right: -8%;
  background: radial-gradient(circle at 40% 40%, var(--cyan), transparent 68%);
  animation: drift-a 16s var(--ease) infinite alternate;
}

.orb-b {
  width: min(70vw, 520px);
  height: min(70vw, 380px);
  left: -16%;
  bottom: -28%;
  background: radial-gradient(circle at 60% 40%, var(--violet), transparent 70%);
  opacity: 0.35;
  animation: drift-b 20s var(--ease) infinite alternate;
}

.forme {
  display: none;
  position: absolute;
  user-select: none;
}

.forme-1 {
  width: min(42vw, 280px);
  right: 6%;
  top: 8%;
  opacity: 0.28;
  animation: float-1 14s ease-in-out infinite;
}

.forme-2 {
  width: min(28vw, 170px);
  left: 4%;
  bottom: 10%;
  opacity: 0.7;
  animation: float-2 18s ease-in-out infinite;
}

.hero-grid {
  display: grid;
  gap: 1.75rem;
}

.kicker {
  margin: 0 0 0.85rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.kicker::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--bouton);
  box-shadow: 0 0 0 0 rgba(90, 128, 254, 0.55);
  animation: live 2.4s ease-out infinite;
  flex-shrink: 0;
}

h1 {
  margin: 0 0 1rem;
  font-family: var(--titre);
  font-weight: 700;
  font-size: clamp(1.85rem, 8vw, 3.45rem);
  line-height: 1.18;
  letter-spacing: -0.03em;
  max-width: 18ch;
  color: var(--texte);
}

.when {
  margin: 0 0 1.1rem;
  font-size: 1.02rem;
  font-weight: 400;
  color: var(--navy);
  max-width: 34ch;
}

.pills {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  max-width: 32rem;
}

.pill {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 0.45rem;
  margin: 0;
  padding: 0.95rem 0.7rem 1rem;
  background: var(--bouton);
  color: #fff;
  border-radius: 16px;
  text-align: center;
  min-height: 5.6rem;
  min-width: 0;
  box-shadow: 0 8px 18px rgba(90, 128, 254, 0.22);
}

.pill svg {
  width: 22px;
  height: 22px;
  color: #fff;
}

.pill b {
  font-family: var(--titre);
  font-weight: 700;
  font-size: clamp(0.92rem, 2.6vw, 1.12rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.trainer {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 0.95rem;
  align-items: center;
  margin: 0 0 1rem;
  padding: 0.9rem 1rem 0.9rem 0.95rem;
  background: var(--fond);
  border: 1px solid #d7e4fb;
  border-radius: 22px;
  box-shadow: 0 14px 32px rgba(0, 58, 150, 0.08);
  position: relative;
  overflow: hidden;
  max-width: 32rem;
}

.trainer::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 7px;
  background: linear-gradient(180deg, var(--violet), var(--bouton), var(--cyan));
}

.trainer-photo {
  width: 120px;
  height: 120px;
  border-radius: 20px;
  object-fit: cover;
  object-position: center 18%;
  flex-shrink: 0;
}

.trainer-copy {
  display: grid;
  gap: 0.28rem;
  min-width: 0;
}

.trainer-name {
  margin: 0;
  font-family: var(--titre);
  font-weight: 700;
  font-size: 1.28rem;
  letter-spacing: -0.02em;
}

.trainer-role {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--navy);
  font-weight: 700;
}

.trainer-meta {
  margin: 0.15rem 0 0;
  font-size: 0.88rem;
  color: var(--texte);
  opacity: 0.78;
}

.elig {
  margin: 0;
  font-size: 0.98rem;
}

.facts {
  display: grid;
  gap: 0.85rem;
  margin: 0;
  font-size: 0.98rem;
}

.facts p {
  margin: 0;
  max-width: 42ch;
}

.with-face {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.face {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 18%;
  flex-shrink: 0;
  box-shadow: 0 0 0 3px var(--fond), 0 0 0 5px color-mix(in srgb, var(--cyan) 55%, var(--violet));
}

/* Form card fills the hero column */
.card {
  background: var(--fond);
  border-radius: var(--rayon-lg);
  padding: 1.3rem 1.15rem 1.35rem;
  box-shadow: var(--ombre);
  position: relative;
  width: 100%;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  border-radius: var(--rayon-lg) var(--rayon-lg) 0 0;
  background: linear-gradient(90deg, var(--violet), var(--bouton), var(--cyan));
}

@media (min-width: 720px) {
  .card {
    padding: 1.65rem 1.55rem 1.7rem;
  }

  .forme-1 {
    opacity: 0.72;
  }
}

@media (min-width: 900px) {
  .hero {
    padding: 2.6rem 0 3.2rem;
  }

  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 2.75rem;
    align-items: start;
  }

  .logo {
    height: 54px;
  }

  h1 {
    font-size: clamp(2.35rem, 4.4vw, 3.55rem);
  }

  .face {
    width: 58px;
    height: 58px;
  }
}

form {
  display: grid;
  gap: 0.7rem;
}

label {
  display: grid;
  gap: 0.28rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--navy);
}

.lbl {
  display: inline;
  line-height: 1.3;
}

.req {
  color: var(--bouton);
}

.opt {
  font-weight: 400;
  color: var(--texte);
  opacity: 0.55;
}

input {
  width: 100%;
  padding: 0.7rem 0.9rem;
  background: var(--fond);
  border: 1px solid #d7e4fb;
  border-radius: 10px;
  color: var(--texte);
  font-size: 16px;
  font-weight: 400;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

input::placeholder {
  color: transparent;
}

input:hover {
  border-color: var(--bouton);
}

input:focus {
  outline: none;
  border-color: var(--bouton);
  box-shadow: 0 0 0 3px rgba(90, 128, 254, 0.18);
}

input:user-invalid:not(:focus) {
  border-color: var(--violet);
}

 .rgpd {
  margin: 0.05rem 0 0;
  font-size: 0.76rem;
  font-weight: 400;
  line-height: 1.45;
  color: var(--texte);
  opacity: 0.62;
}

.ok {
  margin: 0;
  font-family: var(--titre);
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.4;
  color: var(--navy);
}

.ok[hidden],
form[hidden],
.success-box[hidden] {
  display: none !important;
}

.success-box {
  display: none;
  gap: 1rem;
  justify-items: start;
  padding: 0.35rem 0 0.2rem;
}

.success-box.is-done {
  display: grid;
}

.success-mark {
  width: 52px;
  height: 52px;
}

.success-mark circle {
  fill: var(--wash);
  stroke: var(--bouton);
  stroke-width: 2;
}

.success-mark path {
  fill: none;
  stroke: var(--navy);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 36;
  stroke-dashoffset: 36;
}

.is-done .success-mark path {
  animation: check 0.55s var(--ease) 0.12s forwards;
}

.cta-stack {
  display: grid;
  gap: 12px;
}

.cta-stack .cta {
  box-shadow: none;
}

.ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  padding: 0.7rem 1.1rem;
  border: 0;
  border-radius: var(--rayon);
  background: var(--wash);
  color: var(--navy);
  font-family: var(--titre);
  font-size: 0.9em;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.ghost:hover {
  color: var(--bouton);
}

@media (min-width: 720px) {
  .pills {
    grid-template-columns: repeat(4, 1fr);
    max-width: none;
  }

  .pill {
    min-height: 6.1rem;
    padding: 1rem 0.65rem 1.05rem;
  }

  .pill b {
    font-size: 1.05rem;
  }

  .trainer {
    grid-template-columns: 140px 1fr;
  }

  .trainer-photo {
    width: 140px;
    height: 140px;
  }
}

/* Two blocs */
.blocs {
  padding: 2.6rem 0 3rem;
  background: var(--fond);
}

.acts {
  display: grid;
  gap: 1rem;
}

.act {
  background: var(--fond);
  border: 1px solid #dbe8fb;
  border-radius: 18px;
  padding: 1.4rem 1.3rem 1.5rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 28px rgba(0, 58, 150, 0.05);
  position: relative;
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
    border-color 0.35s var(--ease);
}

.act::after {
  content: "";
  position: absolute;
  width: 140px;
  height: 140px;
  right: -48px;
  top: -58px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--wash), transparent 70%);
  pointer-events: none;
}

.act:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--cyan) 55%, #dbe8fb);
  box-shadow: 0 16px 36px rgba(0, 58, 150, 0.09);
}

.prog-title {
  margin: 0 0 1.35rem;
  font-family: var(--titre);
  font-weight: 700;
  font-size: clamp(1.35rem, 3.2vw, 1.85rem);
  letter-spacing: -0.02em;
  color: var(--texte);
}

.act-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.7rem;
}

.act-n {
  display: inline-block;
  font-family: var(--titre);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  background: linear-gradient(90deg, var(--violet), var(--bouton), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.act-time {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.02em;
}

.act h3 {
  margin: 0 0 0.55rem;
  font-family: var(--titre);
  font-weight: 700;
  font-size: 1.08rem;
  line-height: 1.35;
  letter-spacing: -0.015em;
}

.act-lead {
  margin: 0 0 0.7rem;
  font-size: 0.95rem;
  line-height: 1.45;
}

.act ul {
  margin: 0;
  padding: 0 0 0 1.1rem;
  display: grid;
  gap: 0.4rem;
  font-size: 0.92rem;
  line-height: 1.45;
}

.act li {
  padding-left: 0.15rem;
}

@media (min-width: 760px) {
  .acts {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1.15rem;
  }

  .blocs {
    padding: 3.1rem 0 3.6rem;
  }

  .act {
    padding: 1.5rem 1.35rem 1.55rem;
  }

  .act h3 {
    font-size: 1.1rem;
  }
}

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

  .forme-1,
  .forme-2 {
    display: none;
  }

  .orb-a,
  .orb-b {
    opacity: 0.22;
  }
}

/* Footer */
.foot {
  background: var(--wash);
  padding: 1.7rem 0 2.1rem;
}

.foot-inner {
  display: grid;
  gap: 1.15rem;
}

.qualiopi {
  display: grid;
  gap: 0.7rem;
  justify-items: start;
}

.qualiopi img {
  width: 160px;
  height: auto;
}

.qualiopi-mention {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--texte);
  opacity: 0.78;
  max-width: 62ch;
}

.legal {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.65;
}

.legal a {
  text-decoration: none;
  color: var(--navy);
  font-weight: 700;
}

.legal a:hover {
  color: var(--bouton);
}

/* Motion */
@keyframes live {
  0% {
    box-shadow: 0 0 0 0 rgba(90, 128, 254, 0.5);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(90, 128, 254, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(90, 128, 254, 0);
  }
}

@keyframes drift-a {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(-4%, 8%, 0) scale(1.08);
  }
}

@keyframes drift-b {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(6%, -6%, 0) scale(1.12);
  }
}

@keyframes float-1 {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(-8deg);
  }
  50% {
    transform: translate3d(-12px, 18px, 0) rotate(6deg);
  }
}

@keyframes float-2 {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(8deg);
  }
  50% {
    transform: translate3d(14px, -16px, 0) rotate(-4deg);
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes check {
  to {
    stroke-dashoffset: 0;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .rise > *:nth-child(1) {
    animation: rise 0.7s var(--ease) both;
  }
  .rise > *:nth-child(2) {
    animation: rise 0.75s var(--ease) 0.07s both;
  }
  .rise > *:nth-child(3) {
    animation: rise 0.8s var(--ease) 0.14s both;
  }
  .rise > *:nth-child(4) {
    animation: rise 0.85s var(--ease) 0.2s both;
  }

  .card {
    animation: rise 0.85s var(--ease) 0.12s both;
  }

  .act {
    animation: rise 0.7s var(--ease) both;
  }

  .act:nth-child(2) {
    animation-delay: 0.1s;
  }
}

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

  .kicker::before,
  .orb-a,
  .orb-b,
  .forme-1,
  .forme-2,
  .card,
  .act,
  .rise > *,
  .success-mark path {
    animation: none !important;
  }

  .cta,
  .act,
  input {
    transition: none;
  }

  .act:hover {
    transform: none;
  }

  .success-mark path {
    stroke-dashoffset: 0;
  }
}

@media (max-width: 379px) {
  .cta-nav {
    padding-inline: 0.85rem;
    font-size: 0.88rem;
  }

  .logo {
    height: 34px;
  }
}
