/* ==========================================================================
   MC Coach Sportif — layout.css
   Structure commune à toutes les pages : en-tête, menu, pied de page,
   barre de progression et animation de transition entre les pages.
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 88px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(235, 228, 215, 0.75);
  transition: 0.45s var(--ease);
}
.site-header.scrolled {
  height: 74px;
  box-shadow: 0 12px 36px rgba(79, 62, 20, 0.08);
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo-frame {
  width: 160px;
  height: 75px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.logo-frame img {
  width: 150px;
  height: 75px;
  object-fit: contain;
}
.site-header nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.site-header nav > a {
  font-size: 12px;
  color: #615b52;
  position: relative;
  padding: 8px 0;
}
.site-header nav > a:not(.header-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--gold);
  transition: right 0.35s var(--ease);
}
.site-header nav > a:hover::after,
.site-header nav > a.active::after {
  right: 0;
}
.header-cta {
  border: 1px solid var(--ink);
  padding: 12px 16px !important;
  font-weight: 700;
  color: var(--ink) !important;
}
.header-cta span {
  color: var(--gold3);
}
.menu-toggle {
  display: none;
  border: 0;
  background: none;
  width: 40px;
  height: 40px;
  position: relative;
}
.menu-toggle span {
  position: absolute;
  left: 8px;
  width: 24px;
  height: 1px;
  background: var(--ink);
  transition: 0.3s;
}
.menu-toggle span:first-child {
  top: 15px;
}
.menu-toggle span:last-child {
  top: 24px;
}
.menu-toggle.open span:first-child {
  top: 20px;
  transform: rotate(45deg);
}
.menu-toggle.open span:last-child {
  top: 20px;
  transform: rotate(-45deg);
}
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold3), var(--gold2));
  z-index: 1200;
  width: 0;
}
.transition-circle-ring.ring-1 {
  inset: 18px;
  animation: spin 5.5s linear infinite;
}
.transition-circle-ring.ring-2 {
  inset: 36px;
  border-style: dashed;
  border-color: rgba(158, 172, 138, 0.33);
  animation: spin 8.5s linear infinite reverse;
}
.portal-mark {
  position: absolute;
  font: 500 clamp(36px, 5vw, 72px)/1 "Playfair Display";
  font-style: italic;
  color: rgba(157, 119, 26, 0.22);
  letter-spacing: -0.05em;
}
@media (max-width: 620px) {
  .transition-portal {
    width: 75vw;
    height: 75vw;
  }
}
@media (prefers-reduced-motion: reduce) {
  .page-transition * {
    animation: none !important;
  }
  .page-transition {
    display: none !important;
  }
}
.hero-logo-card {
  width: 390px;
  height: 390px;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  border: 1px solid #f0e8d9;
}
.hero-orbit {
  position: absolute;
  border: 1px solid rgba(211, 170, 53, 0.25);
  border-radius: 50%;
  animation: spin 22s linear infinite;
}
.hero-tag {
  position: absolute;
  background: #fff;
  border: 1px solid var(--line);
  padding: 12px 15px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  box-shadow: 0 18px 38px rgba(74, 59, 26, 0.09);
  z-index: 3;
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 30px;
  white-space: nowrap;
  min-width: max-content;
  animation: marquee 24s linear infinite;
}
@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}
.featured-link b {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold3);
  transition: 0.35s var(--ease);
}
.featured-link:hover b {
  transform: translateX(6px) rotate(-8deg);
  background: var(--gold);
}
.site-footer {
  background: #fbf8ef;
  border-top: 1px solid #ede4d1;
  padding: 55px 0 18px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 45px;
  padding-bottom: 45px;
}
.footer-brand {
  font: 800 20px "Manrope";
}
.footer-grid p {
  font: 500 17px/1.15 "Playfair Display";
  font-style: italic;
  color: #91701d;
}
.footer-grid a {
  display: block;
  font-size: 11px;
  color: #6e685f;
  margin: 0 0 10px;
}
.footer-label {
  font-size: 9px;
  letter-spacing: 0.18em;
  font-weight: 800;
  color: #9a9286;
  margin-bottom: 18px;
}
.footer-bottom {
  border-top: 1px solid #e8dfcb;
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 9px;
  color: #9a9286;
}
.footer-bottom a {
  display: inline;
}
@media (max-width: 1000px) {
  .site-header {
    height: 76px;
  }
  .menu-toggle {
    display: block;
  }
  .site-header nav {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 16px 24px;
    border-bottom: 1px solid var(--line);
  }
  .site-header nav.open {
    display: flex;
  }
  .site-header nav > a {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }
  .header-cta {
    text-align: center;
    margin-top: 10px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-grid > div:last-child {
    grid-column: 1/-1;
  }
}
@media (max-width: 620px) {
  .logo-frame {
    width: 124px;
    height: 60px;
  }
  .logo-frame img {
    width: 120px;
    height: 60px;
  }
  .site-header {
    height: 70px;
  }
  .site-header nav {
    top: 70px;
  }
  .hero-tag {
    padding: 9px 10px;
    font-size: 7px;
  }
  .marquee-track {
    gap: 20px;
    animation-duration: 20s;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid > div:last-child {
    grid-column: auto;
  }
  .footer-bottom {
    flex-direction: column;
  }
  .transition-copy {
    bottom: 8%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .page-transition *,
  .hero-orbit,
  .marquee-track,
  .featured-link b {
    animation: none !important;
  }
}
.has-pointer body::after {
  opacity: 1;
}
.page-transition {
  position: fixed;
  inset: 0;
  z-index: 3000;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  overflow: hidden;
  background: #fff;
  isolation: isolate;
}
.page-transition.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.transition-wash {
  position: absolute;
  inset: -20%;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(255, 255, 255, 0.98) 0%,
    rgba(251, 248, 240, 0.98) 52%,
    rgba(242, 229, 194, 0.96) 100%
  );
  transform: scale(0.35);
  opacity: 0;
}
.page-transition.active .transition-wash {
  animation: washIn 0.85s cubic-bezier(0.16, 0.8, 0.12, 1) both;
}
.transition-orbit {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(211, 170, 53, 0.17);
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
}
.page-transition.active .orbit-a {
  animation:
    orbitIn 1s 0.06s ease-out both,
    slowSpin 9s linear 0.1s infinite;
}
.page-transition.active .orbit-b {
  animation:
    orbitIn 0.9s 0.14s ease-out both,
    slowSpin 6s linear 0.12s infinite reverse;
}
.transition-portal {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(31vw, 360px);
  height: min(31vw, 360px);
  min-width: 220px;
  min-height: 220px;
  transform: translate(-50%, -50%) scale(0.12);
  opacity: 0;
  border-radius: 50%;
  border: 1px solid rgba(211, 170, 53, 0.48);
  background: radial-gradient(circle, #fff 0 52%, #fbf7ed 54%, #f3e7c7 72%, rgba(255, 255, 255, 0) 73%);
  box-shadow:
    0 24px 90px rgba(171, 132, 34, 0.18),
    inset 0 0 46px rgba(211, 170, 53, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
}
.page-transition.active .transition-portal {
  animation: portalBuild 0.9s 0.06s cubic-bezier(0.17, 0.84, 0.24, 1) both;
}
.transition-circle-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(211, 170, 53, 0.28);
}
.portal-core {
  width: 68%;
  height: 68%;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(211, 170, 53, 0.08),
    rgba(255, 255, 255, 0.76) 60%,
    transparent 71%
  );
  box-shadow: 0 0 80px rgba(211, 170, 53, 0.16);
  animation: portalPulse 1.8s ease-in-out infinite;
}
.portal-mark {
  position: absolute;
  font: 500 clamp(38px, 4.6vw, 66px)/1 "Playfair Display";
  font-style: italic;
  color: rgba(157, 119, 26, 0.22);
}
.portal-line {
  position: absolute;
  width: 62%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transform: rotate(-24deg);
  animation: lineSweep 1.6s ease-in-out infinite;
}
.transition-copy {
  position: absolute;
  left: 50%;
  bottom: 10%;
  transform: translate(-50%, 14px);
  text-align: center;
  opacity: 0;
  z-index: 6;
}
.page-transition.active .transition-copy {
  animation: copyIn 0.5s 0.46s cubic-bezier(0.2, 0.75, 0.1, 1) forwards;
}
.transition-copy span {
  display: block;
  font-size: 9px;
  letter-spacing: 0.25em;
  font-weight: 800;
  color: #9d771a;
  margin-bottom: 8px;
}
.transition-copy strong {
  font: 500 clamp(19px, 2.2vw, 30px)/1.1 "Playfair Display";
  font-style: italic;
}
.page-transition.portal-open .transition-portal {
  animation: portalOpen 0.34s cubic-bezier(0.2, 0.8, 0.1, 1) forwards;
}
.page-transition.portal-open .transition-wash {
  animation: washOut 0.42s cubic-bezier(0.2, 0.8, 0.1, 1) forwards;
}
.page-transition.portal-open .transition-copy {
  animation: copyOut 0.2s ease-in forwards;
}
@keyframes washIn {
  0% {
    opacity: 0;
    transform: scale(0.35);
  }
  55% {
    opacity: 1;
    transform: scale(1.02);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes washOut {
  to {
    opacity: 0;
    transform: scale(7);
  }
}
@keyframes orbitIn {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.7);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}
@keyframes portalBuild {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.12) rotate(-18deg);
  }
  65% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.04) rotate(3deg);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1) rotate(0);
  }
}
@keyframes portalPulse {
  0%,
  100% {
    transform: scale(0.96);
    opacity: 0.78;
  }
  50% {
    transform: scale(1.04);
    opacity: 1;
  }
}
@keyframes portalOpen {
  to {
    transform: translate(-50%, -50%) scale(10);
    opacity: 0.04;
  }
}
@keyframes lineSweep {
  0%,
  100% {
    transform: rotate(-24deg) scaleX(0.35);
    opacity: 0.35;
  }
  50% {
    transform: rotate(-24deg) scaleX(1);
    opacity: 0.9;
  }
}
@keyframes copyIn {
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}
@keyframes copyOut {
  to {
    opacity: 0;
    transform: translate(-50%, -6px);
  }
}
.hero-logo-card {
  transform-style: preserve-3d;
  will-change: transform;
}
.hero-logo-card::before {
  content: "";
  position: absolute;
  inset: 10%;
  border: 1px solid rgba(211, 170, 53, 0.22);
  border-radius: 50%;
  animation: heroHalo 4s ease-in-out infinite;
}
.hero-energy {
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(0.2px);
  opacity: 0.7;
}
.hero-float-label {
  position: absolute;
  padding: 9px 12px;
  border: 1px solid rgba(211, 170, 53, 0.24);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(10px);
  font-size: 9px;
  letter-spacing: 0.16em;
  font-weight: 800;
  color: #6d665c;
  box-shadow: 0 14px 30px rgba(108, 86, 33, 0.08);
  animation: floatTag 5.5s ease-in-out infinite;
}
.hero-logo-card {
  position: relative;
  z-index: 2;
}
@keyframes heroHalo {
  0%,
  100% {
    transform: scale(0.92);
    opacity: 0.35;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.85;
  }
}
@keyframes floatTag {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .transition-orbit,
  .transition-circle-ring,
  .portal-core,
  .portal-line,
  .hero-energy,
  .hero-float-label,
  .hero-logo-card::before {
    animation: none !important;
  }
}
.hero-logo-card {
  width: 420px;
  height: 420px;
}
@media (max-width: 1000px) {
  .hero-logo-card {
    width: 370px;
    height: 370px;
  }
}
@media (max-width: 620px) {
  .hero-logo-card {
    width: 275px;
    height: 275px;
  }
}
.hero-float-label,
.hero-tag {
  z-index: 4;
}
.hero-float-label,
.hero-tag {
  white-space: nowrap;
}
