/* ==========================================================================
   MC Coach Sportif — pages/accueil.css
   Page d'accueil (index.html) uniquement.
   ========================================================================== */

.round-link {
  width: 82px;
  height: 82px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
  transition: 0.4s var(--ease);
}
.round-link span {
  color: var(--gold3);
}
.round-link:hover {
  transform: rotate(-8deg) scale(1.05);
  border-color: var(--gold);
}
.home-hero {
  min-height: 820px;
  padding: 150px 0 55px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 32%, rgba(211, 170, 53, 0.08), transparent 31%),
    linear-gradient(180deg, #fff 0%, #fff 72%, var(--ivory) 100%);
}
.hero-copy h1 {
  font: 800 clamp(62px, 7vw, 98px)/0.9 "Manrope";
  letter-spacing: -0.078em;
  margin: 0;
}
.hero-lead {
  max-width: 520px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
  margin: 28px 0;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.hero-art {
  position: relative;
  height: 580px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-logo-card img {
  width: 285px;
  height: 285px;
  object-fit: contain;
}
.hero-orbit-a {
  width: 490px;
  height: 490px;
}
.hero-orbit-b {
  width: 600px;
  height: 600px;
  border-style: dashed;
  animation-duration: 34s;
  animation-direction: reverse;
}
.hero-glow {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(211, 170, 53, 0.16), transparent 68%);
  filter: blur(4px);
}
.tag-1 {
  top: 9%;
  left: 4%;
}
.tag-3 {
  bottom: 9%;
  left: 12%;
}
.marquee-band {
  overflow: hidden;
  border-top: 1px solid rgba(226, 216, 193, 0.9);
  border-bottom: 1px solid rgba(226, 216, 193, 0.9);
  background: linear-gradient(90deg, #fff, #fcfaf5, #fff);
  height: 62px;
  display: flex;
  align-items: center;
}
.marquee-track span {
  font: 800 13px "Manrope";
  letter-spacing: 0.17em;
}
.marquee-track i {
  font-style: normal;
  color: var(--gold);
}
.section-business {
  background: #fff;
}
.split-heading {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  align-items: end;
  margin-bottom: 55px;
}
.business-copy {
  padding: 52px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.business-copy h3 {
  font: 800 67px/0.88 "Manrope";
  letter-spacing: -0.075em;
  margin: 24px 0;
}
.business-copy h3 em {
  font-family: "Playfair Display";
  font-style: italic;
  font-weight: 500;
}
.business-copy p {
  color: var(--muted);
  max-width: 430px;
  line-height: 1.75;
}
.section-services {
  background: var(--ivory);
}
.service-card {
  min-height: 250px;
  padding: 22px;
  border: 1px solid #e7dfcf;
  background: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: 0.45s var(--ease);
  position: relative;
  overflow: hidden;
}
.service-card::after {
  content: "";
  position: absolute;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  border: 1px solid rgba(211, 170, 53, 0.18);
  right: -90px;
  bottom: -90px;
  transition: 0.5s var(--ease);
}
.service-card:hover {
  transform: translateY(-9px);
  box-shadow: 0 22px 45px rgba(84, 68, 28, 0.09);
  border-color: #dec37a;
}
.service-card:hover::after {
  right: -45px;
  bottom: -45px;
}
.service-card span {
  font-size: 10px;
  color: #8f887d;
}
.service-card strong {
  font: 800 28px "Manrope";
  letter-spacing: -0.05em;
}
.service-card small {
  font-size: 11px;
  color: var(--muted);
}
.service-card i {
  position: absolute;
  right: 18px;
  top: 17px;
  font-style: normal;
  color: var(--gold3);
  font-size: 18px;
}
.section-about-teaser {
  background: linear-gradient(145deg, #fdfbf6, #f4ede0);
}
.about-teaser {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 90px;
  align-items: center;
  min-height: 420px;
}
.about-teaser-word {
  font: 500 190px/0.8 "Playfair Display";
  font-style: italic;
  color: #af8825;
  position: relative;
}
.about-teaser-word::before,
.about-teaser-word::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(211, 170, 53, 0.22);
  animation: spin 20s linear infinite;
}
.about-teaser-word::before {
  width: 300px;
  height: 300px;
  left: -55px;
  top: -45px;
}
.about-teaser-word::after {
  width: 420px;
  height: 420px;
  left: -115px;
  top: -110px;
  border-style: dashed;
  animation-direction: reverse;
}
.about-teaser-copy p {
  color: var(--muted);
  font-size: 16px;
}
/* Diplômes affichés sous « Une approche humaine » */
.about-teaser-creds {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.about-teaser-creds li {
  padding: 9px 13px;
  border: 1px solid #e2d7bd;
  background: rgba(255, 255, 255, 0.7);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold3);
}
.featured-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 480px;
  margin-top: 38px;
  padding: 20px 0;
  border-top: 1px solid rgba(43, 41, 36, 0.18);
  border-bottom: 1px solid rgba(43, 41, 36, 0.18);
  font: 800 18px "Manrope";
  letter-spacing: -0.03em;
}
.section-projects {
  overflow: hidden; /* les décors des téléphones ne dépassent pas sur mobile */
  background: #fff;
}
.project-card {
  min-height: 245px;
  border: 1px solid var(--line);
  padding: 24px;
  display: flex;
  align-items: flex-end;
  gap: 18px;
  position: relative;
  transition: 0.4s var(--ease);
  background: #fff;
}
.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 42px rgba(84, 68, 28, 0.07);
  border-color: #dfc987;
}
.project-card small {
  font-size: 9px;
  letter-spacing: 0.16em;
  color: #9c895d;
}
.project-card h3 {
  font: 800 42px "Manrope";
  letter-spacing: -0.06em;
  margin: 12px 0 5px;
}
.project-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}
@media (max-width: 1000px) {
  .home-hero {
    padding-top: 125px;
  }
  .hero-art {
    height: 470px;
  }
  .hero-orbit-a {
    width: 420px;
    height: 420px;
  }
  .hero-orbit-b {
    width: 510px;
    height: 510px;
  }
  .about-teaser {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}
@media (max-width: 620px) {
  .home-hero {
    padding: 105px 0 42px;
  }
  .hero-copy h1 {
    font-size: 49px;
  }
  .hero-lead {
    font-size: 14px;
  }
  .hero-actions {
    gap: 16px;
  }
  .hero-art {
    height: 370px;
  }
  .hero-orbit-a {
    width: 310px;
    height: 310px;
  }
  .hero-orbit-b {
    width: 370px;
    height: 370px;
  }
  .tag-1 {
    left: 0;
  }
  .tag-3 {
    left: 5px;
  }
  .marquee-band {
    height: 56px;
  }
  .marquee-track span {
    font-size: 10px;
  }
  .split-heading {
    grid-template-columns: 1fr;
    align-items: start;
    margin-bottom: 38px;
  }
  .round-link {
    width: 70px;
    height: 70px;
  }
  .business-copy {
    padding: 30px;
  }
  .business-copy h3 {
    font-size: 50px;
  }
  .business-photo {
    height: 270px;
  }
  .about-teaser {
    grid-template-columns: 1fr;
    gap: 22px;
    min-height: auto;
  }
  .about-teaser-word {
    font-size: 125px;
    min-height: 150px;
  }
  .about-teaser-word::before {
    width: 230px;
    height: 230px;
    left: -35px;
    top: -40px;
  }
  .about-teaser-word::after {
    width: 310px;
    height: 310px;
    left: -80px;
    top: -80px;
  }
  .featured-link {
    font-size: 16px;
  }
}
.hero-art {
  perspective: 1200px;
  transform-style: preserve-3d;
}
.hero-art .hero-orbit {
  transition: transform 0.18s ease-out;
}
.energy-1 {
  width: 56%;
  height: 1px;
  right: 3%;
  top: 24%;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transform: rotate(-24deg);
  animation: energySweep 4.8s ease-in-out infinite;
}
.energy-2 {
  width: 36%;
  height: 1px;
  left: 2%;
  bottom: 25%;
  background: linear-gradient(90deg, transparent, rgba(158, 172, 138, 0.7), transparent);
  transform: rotate(18deg);
  animation: energySweep 5.7s 1.2s ease-in-out infinite reverse;
}
.float-a {
  left: 0;
  top: 32%;
}
.float-b {
  right: 0;
  bottom: 22%;
  animation-delay: 1.6s;
}
.hero-logo-card img {
  position: relative;
  z-index: 2;
}
@keyframes energySweep {
  0%,
  100% {
    opacity: 0.15;
    transform: rotate(-24deg) translateX(-12%);
  }
  50% {
    opacity: 0.9;
    transform: rotate(-24deg) translateX(10%);
  }
}
.split-word {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
}
.split-word > span {
  display: inline-block;
  transform: translateY(110%);
  opacity: 0;
  transition:
    transform 0.72s var(--ease),
    opacity 0.72s ease;
}
.text-reveal.visible .split-word > span {
  transform: none;
  opacity: 1;
}
.text-reveal.visible .split-word:nth-child(2) > span {
  transition-delay: 0.05s;
}
.text-reveal.visible .split-word:nth-child(3) > span {
  transition-delay: 0.1s;
}
.text-reveal.visible .split-word:nth-child(4) > span {
  transition-delay: 0.15s;
}
.about-teaser-word {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 8px;
  z-index: 1;
}
.about-teaser-word .about-teaser-mc {
  position: relative;
  z-index: 2;
}
.about-teaser-word small {
  position: relative;
  z-index: 2;
  margin-left: 18px;
  font:
    600 13px/1 "DM Sans",
    sans-serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #847a68;
}
@media (max-width: 620px) {
  .about-teaser-word small {
    margin-left: 8px;
    font-size: 10px;
  }
}
.hero-logo-card img {
  width: 315px;
  height: 315px;
}
.project-grid-phone {
  align-items: stretch;
}
.project-card--phone {
  min-height: 330px;
  padding: 28px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  align-items: center;
  gap: 24px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(145deg, #fff 0%, #fffdf9 68%, #fbf4e5 100%);
}
.project-card--phone::before {
  content: "";
  position: absolute;
  inset: auto -70px -90px auto;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  border: 1px solid rgba(211, 170, 53, 0.15);
  box-shadow:
    0 0 0 26px rgba(211, 170, 53, 0.035),
    0 0 0 56px rgba(211, 170, 53, 0.02);
  pointer-events: none;
}
.project-card--phone:hover {
  border-color: #dfc987;
  box-shadow: 0 28px 55px rgba(84, 68, 28, 0.09);
}
.project-card--phone .project-content {
  position: relative;
  z-index: 2;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-right: 4px;
}
.project-card--phone .project-content > span {
  align-self: flex-start;
  font-size: 10px;
  color: #9b958a;
  margin-bottom: auto;
}
.project-card--phone .project-content small {
  font-size: 9px;
  letter-spacing: 0.16em;
  color: #9c895d;
}
.project-card--phone .project-content h3 {
  font: 800 40px "Manrope";
  letter-spacing: -0.06em;
  margin: 10px 0 6px;
}
.project-card--phone .project-content p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
  max-width: 260px;
}
.project-card--phone .project-content b {
  position: absolute;
  right: 0;
  top: 0;
  color: var(--gold3);
  font-size: 17px;
}
.project-phone {
  height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1000px;
  position: relative;
  z-index: 2;
}
.phone-shell {
  width: 132px;
  height: 252px;
  border-radius: 28px;
  padding: 7px;
  background: linear-gradient(145deg, #f5eedf, #fff 56%, #e8d49b);
  box-shadow:
    0 25px 36px rgba(95, 72, 21, 0.16),
    inset 0 0 0 1px rgba(211, 170, 53, 0.22);
  position: relative;
  transform: rotate(7deg) translateZ(0);
  transition:
    transform 0.55s var(--ease),
    box-shadow 0.55s var(--ease);
}
.project-card--phone:hover .phone-shell {
  transform: rotate(1deg) translateY(-8px) rotateY(-8deg);
  box-shadow:
    0 34px 50px rgba(95, 72, 21, 0.21),
    inset 0 0 0 1px rgba(211, 170, 53, 0.34);
}
.phone-speaker {
  position: absolute;
  top: 11px;
  left: 50%;
  transform: translateX(-50%);
  width: 42px;
  height: 6px;
  border-radius: 999px;
  background: #b59a55;
  opacity: 0.65;
  z-index: 4;
}
.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 22px;
  background: #fffdf8;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border: 1px solid rgba(211, 170, 53, 0.16);
}
.phone-screen--fit {
  background:
    radial-gradient(circle at 50% 45%, rgba(211, 170, 53, 0.14), transparent 54%),
    linear-gradient(180deg, #fffdf8, #f5eddd);
}
.phone-screen--fit img {
  width: 85%;
  height: 78%;
  object-fit: contain;
  filter: drop-shadow(0 16px 15px rgba(95, 72, 21, 0.2));
  transform: translateY(5px);
  transition: transform 0.5s var(--ease);
}
.project-card--phone:hover .phone-screen--fit img {
  transform: translateY(0) scale(1.045) rotate(-4deg);
}
.phone-screen--app {
  background: linear-gradient(180deg, #fff, #faf7ef);
}
.phone-screen--app img {
  width: 83%;
  height: 74%;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 12px 14px rgba(95, 72, 21, 0.1));
  transition: transform 0.5s var(--ease);
}
.project-card--phone:hover .phone-screen--app img {
  transform: scale(1.035);
}
.phone-screen--shop {
  background:
    radial-gradient(circle at 50% 46%, rgba(211, 170, 53, 0.1), transparent 50%),
    linear-gradient(180deg, #fff, #fbf7ee);
}
.shop-bag {
  width: 62px;
  height: 74px;
  border: 2px solid #b88b23;
  border-radius: 8px 8px 12px 12px;
  position: relative;
  box-shadow: 0 12px 18px rgba(95, 72, 21, 0.12);
  transform: translateY(3px);
  transition:
    transform 0.5s var(--ease),
    box-shadow 0.5s var(--ease);
}
.shop-bag::before {
  content: "";
  position: absolute;
  left: 15px;
  right: 15px;
  top: -20px;
  height: 26px;
  border: 2px solid #b88b23;
  border-bottom: 0;
  border-radius: 16px 16px 0 0;
}
.shop-bag::after {
  content: "";
  position: absolute;
  left: 11px;
  right: 11px;
  top: 28px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #d3aa35, transparent);
}
.shop-bag span {
  position: absolute;
  left: 50%;
  top: 40px;
  width: 22px;
  height: 2px;
  transform: translateX(-50%);
  background: #d3aa35;
  box-shadow: 0 7px 0 #d3aa35;
}
.project-card--phone:hover .shop-bag {
  transform: translateY(-4px) rotate(-3deg);
  box-shadow: 0 18px 24px rgba(95, 72, 21, 0.17);
}
.shop-glow {
  position: absolute;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(211, 170, 53, 0.18), transparent 67%);
  filter: blur(2px);
  animation: shopGlow 3.8s ease-in-out infinite;
}
.phone-shine {
  position: absolute;
  inset: -20% -35%;
  background: linear-gradient(108deg, transparent 35%, rgba(255, 255, 255, 0.7) 48%, transparent 61%);
  transform: translateX(-65%);
  animation: phoneShine 5s ease-in-out infinite;
}
@keyframes phoneShine {
  0%,
  28% {
    transform: translateX(-65%);
  }
  58%,
  100% {
    transform: translateX(65%);
  }
}
@keyframes shopGlow {
  0%,
  100% {
    opacity: 0.45;
    scale: 0.92;
  }
  50% {
    opacity: 0.9;
    scale: 1.08;
  }
}
@media (max-width: 1000px) {
  .hero-logo-card img {
    width: 285px;
    height: 285px;
  }
  .project-card--phone {
    min-height: 320px;
    grid-template-columns: minmax(0, 1fr) 140px;
  }
}
@media (max-width: 620px) {
  .hero-logo-card img {
    width: 220px;
    height: 220px;
  }
  .project-card--phone {
    min-height: 340px;
    grid-template-columns: minmax(0, 1fr) 118px;
    padding: 22px;
    gap: 12px;
  }
  .project-phone {
    height: 250px;
  }
  .phone-shell {
    width: 108px;
    height: 222px;
    border-radius: 24px;
  }
  .phone-screen {
    border-radius: 19px;
  }
  .project-card--phone .project-content h3 {
    font-size: 32px;
  }
  .project-card--phone .project-content p {
    font-size: 11px;
  }
  .phone-speaker {
    width: 34px;
    height: 5px;
    top: 9px;
  }
  .phone-screen--fit img {
    width: 86%;
    height: 76%;
  }
  .phone-screen--app img {
    width: 84%;
    height: 72%;
  }
  .shop-bag {
    width: 52px;
    height: 64px;
  }
  .shop-bag::before {
    left: 12px;
    right: 12px;
  }
  .shop-bag span {
    top: 35px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .phone-shine,
  .shop-glow {
    animation: none !important;
  }
  .phone-shell,
  .phone-screen--fit img,
  .phone-screen--app img,
  .shop-bag {
    transition: none !important;
  }
}
.hero-motto {
  margin: 18px 0 0;
  font-family: var(--font-serif, Georgia, serif);
  font-size: clamp(18px, 2vw, 26px);
  line-height: 1.18;
  letter-spacing: 0.02em;
  color: var(--gold, #ecc440);
  font-style: italic;
}
.universe-subtitle {
  margin-top: 10px;
  font-size: 0.73rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold, #ecc440);
  font-weight: 700;
}
@media (max-width: 760px) {
  .hero-motto {
    font-size: 18px;
    margin-top: 14px;
  }
  .universe-subtitle {
    font-size: 0.66rem;
    letter-spacing: 0.2em;
  }
}
.project-card--application {
  overflow: visible;
}
.project-card--application .phone-screen--app {
  overflow: hidden;
}
.service-grid--other {
  max-width: 980px;
  margin: 0 auto;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  justify-content: center;
}
.project-card--application {
  isolation: isolate;
}
.hero-art .float-a {
  left: 50%;
  top: 4%;
  transform: translate(-50%, -50%);
}
.hero-art .float-b {
  right: 0;
  top: 25%;
  bottom: auto;
  transform: translate(0, -50%);
  z-index: 10;
}
.hero-art .tag-1 {
  left: 4%;
  top: 50%;
  transform: translate(-50%, -50%);
}
.hero-art .tag-3 {
  right: 50%;
  left: auto;
  bottom: 4%;
  transform: translate(50%, 50%);
}
.project-card--application .project-content h3 {
  position: relative;
  z-index: 30;
  left: 0;
  width: max-content;
  max-width: none;
  white-space: nowrap;
  text-shadow:
    0 2px 0 rgba(255, 255, 255, 0.94),
    0 8px 18px rgba(45, 35, 18, 0.1);
  transition:
    transform 0.55s var(--ease),
    letter-spacing 0.55s var(--ease);
}
.project-card--application .project-phone {
  position: relative;
  z-index: 1;
}
.project-card--application:hover .project-content h3 {
  transform: translateY(-3px) rotate(-2deg) scale(1.03);
  letter-spacing: -0.04em;
}
@media (max-width: 1000px) {
  .hero-art .float-b {
    right: 0;
    top: 22%;
    bottom: auto;
    transform: translate(0, -50%);
    z-index: 10;
  }
  .project-card--application .project-content h3 {
    left: 0;
    font-size: 34px;
  }
}
@media (max-width: 760px) {
  .hero-art .float-b {
    right: 0;
    top: 22%;
    bottom: auto;
    transform: translate(0, -50%);
    z-index: 10;
  }
  .project-card--application .project-content h3 {
    left: 0;
    font-size: 30px;
  } /* L'étiquette de gauche reste entièrement visible sur téléphone */
  .hero-art .tag-1 {
    left: 0;
    transform: translate(0, -50%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .project-card--application .project-content h3 {
    transition: none !important;
  }
}

/* Ajustements téléphone ---------------------------------------------------- */
@media (max-width: 620px) {
  /* Autres offres : une carte par ligne pour que les titres restent entiers */
  .service-grid--other {
    grid-template-columns: 1fr;
  }
  .service-card {
    min-height: 170px;
  }
  /* Monogramme MC centré */
  .about-teaser-word {
    justify-self: center;
    text-align: center;
  }
  .about-teaser-creds li {
    font-size: 12px;
  }
  main .project-card--phone .project-content p {
    font-size: 13px;
  }
}
