/* ==========================================================================
   MC Coach Sportif — components.css
   Éléments réutilisés sur plusieurs pages : boutons, liens, sur-titres (eyebrow),
   titres de section, cartes, animations d'apparition, scènes des pages intérieures.
   ========================================================================== */

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "DM Sans", sans-serif;
  overflow-x: hidden;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  letter-spacing: 0.22em;
  font-weight: 800;
  color: #8a8277;
  margin-bottom: 18px;
}
.eyebrow b {
  width: 32px;
  height: 1px;
  background: var(--gold);
  display: inline-block;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 16px 20px;
  border: 1px solid transparent;
  font-size: 12px;
  font-weight: 800;
  transition:
    transform 0.28s var(--ease),
    box-shadow 0.35s,
    background 0.35s;
}
.btn-gold {
  background: var(--gold);
  color: var(--ink);
  box-shadow: 0 16px 34px rgba(211, 170, 53, 0.22);
}
.btn-gold:hover {
  background: var(--gold2);
  box-shadow: 0 22px 44px rgba(211, 170, 53, 0.27);
}
.text-link,
.under-cta {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 12px;
  font-weight: 800;
  padding-bottom: 5px;
  border-bottom: 1px solid rgba(43, 41, 36, 0.6);
}
.text-link span,
.under-cta span {
  transition: transform 0.3s var(--ease);
}
.text-link:hover span,
.under-cta:hover span {
  transform: translateX(5px);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
  min-height: 625px;
}
.hero-copy h1 em,
.split-heading h2 em,
.section-intro h2 em,
.about-teaser-copy h2 em,
.cta-inner h2 em,
.inner-hero h1 em,
.fiscal-hero h2 em,
.mc-move-copy h2 em,
.about-copy h2 em,
.future-panel h2 {
  font-family: "Playfair Display";
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.055em;
}
.section {
  padding: 120px 0;
}
.split-heading h2,
.section-intro h2,
.about-teaser-copy h2 {
  font: 800 clamp(46px, 5.5vw, 74px)/0.94 "Manrope";
  letter-spacing: -0.075em;
  margin: 0;
}
.business-card {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  min-height: 490px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.mini-label {
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--gold3);
  font-weight: 800;
}
.business-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92);
}
.under-cta {
  margin-top: 26px;
  width: max-content;
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.about-teaser-copy h2 {
  margin: 0 0 18px;
}
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.cta-band {
  padding: 105px 0;
  background: linear-gradient(90deg, #f5efdf, #fbfaf6);
}
.cta-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 30px;
}
.cta-inner h2 {
  font: 800 clamp(48px, 6vw, 76px)/0.92 "Manrope";
  letter-spacing: -0.075em;
  margin: 0;
}
.inner-hero {
  overflow: hidden; /* les cercles décoratifs ne dépassent pas sur mobile */
  padding: 170px 0 90px;
  background: linear-gradient(180deg, #fff 0%, #fff 65%, var(--ivory) 100%);
}
.inner-hero-grid {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  align-items: center;
  gap: 70px;
}
.inner-hero h1 {
  font: 800 clamp(56px, 6.7vw, 90px)/0.9 "Manrope";
  letter-spacing: -0.075em;
  margin: 0;
}
.inner-hero p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 530px;
  margin: 26px 0 0;
}
.inner-hero-art {
  height: 420px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.inner-hero-art::after {
  content: "";
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(211, 170, 53, 0.14), transparent 68%);
}
.inner-hero-label {
  position: absolute;
  bottom: 22px;
  font-size: 9px;
  letter-spacing: 0.22em;
  color: var(--gold3);
  font-weight: 800;
}
.compact-section {
  padding-top: 95px;
}
.mc-move-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 34px;
  align-items: stretch;
}
.mc-move-photo {
  min-height: 470px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.mc-move-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (max-width: 620px) {
  .mc-move-photo {
    min-height: 300px;
  }
}
.mc-move-copy {
  padding: 34px 0;
}
.mc-move-copy h2 {
  font: 800 clamp(44px, 5.2vw, 68px)/0.95 "Manrope";
  letter-spacing: -0.07em;
  margin: 0 0 18px;
}
.mc-move-copy p {
  max-width: 520px;
  color: var(--muted);
  line-height: 1.75;
}
.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 25px 0;
}
.pill-row span {
  padding: 9px 12px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 10px;
  color: #6f685f;
}
.section-intro {
  max-width: 720px;
  margin-bottom: 48px;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.two-col {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 80px;
}
.format-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.fiscal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.goal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.class-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.about-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 85px;
  align-items: center;
}
.portrait-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.diploma-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.future-panel h2 {
  font-size: 76px;
  line-height: 0.9;
  margin: 25px 0 10px;
}
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 90px;
  align-items: start;
}
.contact-copy h1 em,
.legal-wrap h1 em {
  font-family: "Playfair Display";
  font-style: italic;
  font-weight: 500;
}
/* Le contenu n'est caché (pour l'animation d'apparition) que si les scripts fonctionnent.
   Sans JavaScript, ou si un script ne se charge pas, tout reste visible. */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.8s var(--ease),
    transform 0.8s var(--ease);
}
.js .reveal.visible {
  opacity: 1;
  transform: none;
}
.delay-1 {
  transition-delay: 0.08s;
}
.delay-2 {
  transition-delay: 0.16s;
}
.delay-3 {
  transition-delay: 0.24s;
}
.magnetic {
  transition: transform 0.18s ease;
}
@media (max-width: 1000px) {
  .hero-grid,
  .inner-hero-grid,
  .business-card,
  .mc-move-grid,
  .two-col,
  .fiscal-grid,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 45px;
  }
  .service-grid {
    grid-template-columns: 1fr 1fr;
  }
  .project-grid {
    grid-template-columns: 1fr 1fr;
  }
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
  .format-grid,
  .class-grid,
  .diploma-grid,
  .small-qual-grid,
  .goal-grid {
    grid-template-columns: 1fr 1fr;
  }
  .process-grid {
    grid-template-columns: 1fr 1fr;
  }
  .contact-grid {
    gap: 45px;
  }
}
@media (max-width: 620px) {
  .hero-grid {
    min-height: auto;
  }
  .section {
    padding: 85px 0;
  }
  .split-heading h2,
  .section-intro h2,
  .about-teaser-copy h2 {
    font-size: 43px;
  }
  .business-card {
    min-height: auto;
  }
  .service-grid,
  .project-grid,
  .stats-grid,
  .format-grid,
  .class-grid,
  .small-qual-grid,
  .goal-grid,
  .diploma-grid,
  .process-grid {
    grid-template-columns: 1fr;
  }
  .cta-band {
    padding: 78px 0;
  }
  .cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .inner-hero {
    padding: 120px 0 70px;
  }
  .inner-hero-grid {
    gap: 25px;
  }
  .inner-hero h1 {
    font-size: clamp(38px, 11.5vw, 48px);
  }
  .inner-hero-grid > * {
    min-width: 0;
  }
  .inner-hero-art {
    height: 260px;
  }
  .mc-move-copy h2 {
    font-size: 44px;
  }
  .stats-grid {
    gap: 10px;
  }
  .future-panel h2 {
    font-size: 56px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
  .magnetic {
    transform: none !important;
  }
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
  background:
    radial-gradient(circle at 12% 12%, rgba(211, 170, 53, 0.055), transparent 24%),
    radial-gradient(circle at 88% 70%, rgba(158, 172, 138, 0.04), transparent 28%);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1400;
  opacity: 0;
  background: radial-gradient(
    500px circle at var(--mx, 50%) var(--my, 50%),
    rgba(211, 170, 53, 0.085),
    transparent 62%
  );
  transition: opacity 0.35s ease;
}
.orbit-a {
  width: min(72vw, 760px);
  height: min(72vw, 760px);
}
.orbit-b {
  width: min(48vw, 500px);
  height: min(48vw, 500px);
  border-color: rgba(158, 172, 138, 0.22);
}
.ring-1 {
  inset: 15px;
  animation: slowSpin 5s linear infinite;
}
.ring-2 {
  inset: 31px;
  border-style: dashed;
  border-color: rgba(158, 172, 138, 0.4);
  animation: slowSpin 7s linear infinite reverse;
}
.ring-3 {
  inset: 55px;
  border-color: rgba(211, 170, 53, 0.18);
  animation: slowSpin 11s linear infinite;
}
@keyframes slowSpin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}
.section {
  position: relative;
}
.section::before {
  content: "";
  position: absolute;
  left: 5%;
  right: 5%;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(211, 170, 53, 0.16), transparent);
  transform: scaleX(0.15);
  transform-origin: center;
  transition: transform 1.1s var(--ease);
}
.section.in-view::before {
  transform: scaleX(1);
}
.tilt-card {
  transform-style: preserve-3d;
  will-change: transform;
  transition:
    transform 0.22s var(--ease),
    box-shadow 0.35s;
}
.tilt-card:hover {
  box-shadow: 0 22px 54px rgba(108, 86, 33, 0.12);
}
.tilt-card > * {
  transform: translateZ(8px);
}
.business-photo img,
.mc-move-photo img,
.portrait-card img {
  transition:
    transform 0.8s var(--ease),
    filter 0.8s ease;
}
.business-card:hover .business-photo img,
.mc-move-grid:hover .mc-move-photo img,
.portrait-card:hover img {
  transform: scale(1.045);
  filter: saturate(1.04);
}
@media (prefers-reduced-motion: reduce) {
  body::after {
    display: none !important;
  }
  .tilt-card {
    transform: none !important;
  }
  .section::before {
    transition: none;
  }
  .business-photo img,
  .mc-move-photo img,
  .portrait-card img {
    transition: none;
  }
}
.small-qual-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
@media (max-width: 620px) {
  .small-qual-grid {
    grid-template-columns: 1fr;
  }
}
.scene-art {
  height: 440px !important;
  position: relative;
  perspective: 1200px;
  transform-style: preserve-3d;
  overflow: visible;
  isolation: isolate;
}
.scene-orbit {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  pointer-events: none;
  transform-style: preserve-3d;
}
.scene-orbit-a {
  width: 320px;
  height: 320px;
  border: 1px solid rgba(211, 170, 53, 0.28);
  box-shadow: 0 0 40px rgba(211, 170, 53, 0.08);
  animation: sceneOrbitA 16s linear infinite;
}
.scene-orbit-b {
  width: 390px;
  height: 390px;
  border: 1px dashed rgba(158, 172, 138, 0.34);
  animation: sceneOrbitB 22s linear infinite reverse;
}
.scene-orbit-c {
  width: 235px;
  height: 235px;
  border: 1px solid rgba(211, 170, 53, 0.18);
  animation: sceneOrbitC 9s linear infinite;
}
.scene-floor {
  position: absolute;
  left: 50%;
  bottom: 56px;
  width: 280px;
  height: 62px;
  transform: translateX(-50%) rotateX(68deg);
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(117, 98, 49, 0.13), rgba(117, 98, 49, 0) 70%);
  filter: blur(4px);
  pointer-events: none;
}
.scene-object {
  position: absolute;
  left: 50%;
  top: 49%;
  transform: translate3d(-50%, -50%, 0) perspective(900px) rotateX(calc(var(--sx, 0) * 1deg))
    rotateY(calc(var(--sy, 0) * 1deg)) rotateZ(calc(var(--sz, 0) * 1deg));
  transform-style: preserve-3d;
  will-change: transform, translate;
  transition: transform 0.18s var(--ease);
  cursor: pointer;
  outline: none;
}
.scene-object:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 16px;
  border-radius: 24px;
}
.scene-energy {
  position: absolute;
  height: 1px;
  pointer-events: none;
  filter: blur(0.2px);
}
.energy-top {
  width: 180px;
  right: 5%;
  top: 22%;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transform: rotate(-24deg);
  animation: sceneEnergyA 4.4s ease-in-out infinite;
}
.energy-bottom {
  width: 145px;
  left: 5%;
  bottom: 23%;
  background: linear-gradient(90deg, transparent, rgba(158, 172, 138, 0.72), transparent);
  transform: rotate(20deg);
  animation: sceneEnergyB 5.6s 1s ease-in-out infinite;
}
.hg-sand {
  position: absolute;
  left: 55px;
  width: 80px;
  background: linear-gradient(180deg, #efcf73, #b8871d);
  z-index: 3;
  filter: drop-shadow(0 4px 5px rgba(120, 86, 15, 0.13));
}
.hg-stream {
  position: absolute;
  left: 94px;
  top: 117px;
  width: 3px;
  height: 83px;
  border-radius: 99px;
  background: linear-gradient(180deg, #d3aa35, rgba(211, 170, 53, 0.18));
  z-index: 4;
  animation: sandStream 5s linear infinite;
}
@keyframes sceneOrbitA {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}
@keyframes sceneOrbitB {
  to {
    transform: translate(-50%, -50%) rotate(-360deg);
  }
}
@keyframes sceneOrbitC {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}
@keyframes sceneEnergyA {
  0%,
  100% {
    opacity: 0.25;
    transform: translateX(-22px) rotate(-24deg);
  }
  50% {
    opacity: 0.95;
    transform: translateX(24px) rotate(-24deg);
  }
}
@keyframes sceneEnergyB {
  0%,
  100% {
    opacity: 0.18;
    transform: translateX(18px) rotate(20deg);
  }
  50% {
    opacity: 0.75;
    transform: translateX(-22px) rotate(20deg);
  }
}
@keyframes sandStream {
  0% {
    opacity: 1;
    height: 82px;
  }
  86% {
    opacity: 1;
    height: 82px;
  }
  100% {
    opacity: 0;
    height: 10px;
  }
}
@media (max-width: 760px) {
  .scene-art {
    height: 350px !important;
    margin-top: 18px;
  }
  .scene-orbit-a {
    width: 250px;
    height: 250px;
  }
  .scene-orbit-b {
    width: 300px;
    height: 300px;
  }
  .scene-orbit-c {
    width: 190px;
    height: 190px;
  }
  .scene-floor {
    bottom: 36px;
    width: 220px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .scene-orbit,
  .scene-object,
  .scene-energy,
  .hg-sand,
  .hg-stream {
    animation: none !important;
  }
}
.scene-art::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 170px;
  height: 170px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(211, 170, 53, 0.17),
    rgba(211, 170, 53, 0.05) 42%,
    transparent 72%
  );
  filter: blur(3px);
  z-index: -1;
  animation: sceneGlow 3.6s ease-in-out infinite;
}
.scene-boost .scene-object {
  scale: 1.08;
}
.scene-boost .scene-orbit-c {
  animation-duration: 2.5s;
}
.scene-boost .scene-energy {
  animation-duration: 0.8s;
}
@keyframes sceneGlow {
  0%,
  100% {
    opacity: 0.55;
    scale: 0.92;
  }
  50% {
    opacity: 1;
    scale: 1.08;
  }
}
.scene-3d-object {
  width: 330px;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-style: preserve-3d;
  will-change: transform;
}
.scene-3d-object .scene-fallback {
  display: none;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}
.scene-360-hint.hidden {
  opacity: 0;
  transform: translateX(-50%) translateY(5px);
}
@keyframes hgTurnV11 {
  0% {
    transform: translateY(-2px) rotateY(0deg);
  }
  100% {
    transform: translateY(-2px) rotateY(180deg);
  }
}

/* Ajustements téléphone ---------------------------------------------------- */
@media (max-width: 620px) {
  /* Grands titres proportionnels à l'écran : aucun mot ne dépasse ni n'est coupé */
  main .hero-copy h1,
  main .inner-hero h1,
  main .contact-copy h1,
  main .legal-wrap h1,
  main .split-heading h2,
  main .section-intro h2,
  main .about-teaser-copy h2,
  main .cta-inner h2,
  main .mc-move-copy h2,
  main .about-copy h2,
  main .about-fieldwork-copy h2,
  main .fiscal-hero h2,
  main .association-intro h2 {
    font-size: clamp(32px, 10.4vw, 46px);
  }
  main .partnership-box h2 {
    font-size: clamp(28px, 8.6vw, 40px);
  }
  /* Liens texte : zone plus grande pour le doigt */
  .text-link,
  .under-cta {
    padding-top: 12px;
  }
  /* Cartes plus compactes */
  .class-card {
    min-height: 0;
  }
  .class-card h3 {
    margin-top: 26px;
  }
  .class-card p {
    font-size: 14px;
  }
}

/* Bloc tarif (pages Coaching et Associations) ------------------------------ */
.tarif-section {
  background: var(--ivory);
}
.tarif-card {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 50px;
  align-items: center;
  padding: 52px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.tarif-card h2 {
  font: 800 clamp(34px, 3.6vw, 48px) / 0.95 "Manrope";
  letter-spacing: -0.07em;
  margin: 0;
}
.tarif-card h2 em {
  font-family: "Playfair Display";
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.055em;
}
.tarif-price {
  margin: 28px 0 0;
  padding: 22px 26px;
  border-left: 3px solid var(--gold);
  background: var(--ivory);
  display: grid;
  gap: 4px;
}
.tarif-price small {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold3);
}
.tarif-price strong {
  font: 800 52px/1 "Manrope";
  letter-spacing: -0.06em;
  color: var(--gold3);
}
.tarif-price span {
  font-size: 14px;
  color: var(--muted);
}
.tarif-points {
  list-style: none;
  margin: 0 0 30px;
  padding: 0;
  border-top: 1px solid var(--line);
}
.tarif-points li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  line-height: 1.55;
}
.tarif-points li::before {
  content: "✓";
  color: var(--gold);
  font-weight: 800;
}
@media (max-width: 1000px) {
  .tarif-card {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}
@media (max-width: 620px) {
  .tarif-card {
    padding: 30px 22px;
  }
  main .tarif-card h2 {
    font-size: clamp(30px, 9.4vw, 40px);
  }
  .tarif-price strong {
    font-size: 44px;
  }
}

/* Tablette : dans une grille de 2 colonnes, une dernière carte seule prend toute la largeur */
@media (min-width: 621px) and (max-width: 1000px) {
  .project-grid > :last-child:nth-child(odd),
  .format-grid > :last-child:nth-child(odd),
  .diploma-grid > :last-child:nth-child(odd),
  .small-qual-grid > :last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}
