/* InazukiDark — accueil : mêmes couleurs/dynamique que le hero sur TOUTES les diapositives
   (formateurs, méthode, approches, programme, Discord, tarif) + transitions fluides. */

@property --hx-angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes hxSpin    { to { --hx-angle: 360deg; } }
@keyframes hxFloat   { 0%,100% { transform: translate3d(0,0,0); } 50% { transform: translate3d(0,-8px,0); } }
@keyframes hxShimmer { to { background-position: -200% center; } }
@keyframes hxGlow    { 0%,100% { box-shadow: 0 10px 28px rgba(216,162,74,0.35); } 50% { box-shadow: 0 14px 44px rgba(240,190,110,0.65); } }
@keyframes hxExit    { to { opacity: 0.35; transform: translate3d(0,-34px,0) scale(0.985); } }

:root { --hx-violet: #8b6fd6; --hx-blurple: #7289da; --hx-sun: #b3272c; }
html { scroll-padding-top: 70px; }

/* ---------- barre de progression du défilement ---------- */
#hx-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 70;
  transform-origin: left; transform: scaleX(var(--p, 0));
  background: linear-gradient(90deg, #8b6fd6, #f0be6e 55%, #e5484d);
  box-shadow: 0 0 12px rgba(240,190,110,0.6);
  pointer-events: none;
}

/* ---------- atmosphère par diapositive (halos colorés + léger parallaxe) ---------- */
section.reframe, section.trainers, section.method, section.approaches,
section.curriculum, section.discord, section.pricing {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-bottom: 0;
}
section.reframe::before, section.trainers::before, section.method::before, section.approaches::before,
section.curriculum::before, section.discord::before, section.pricing::before {
  content: "";
  position: absolute;
  inset: -18% -8%;
  z-index: -1;
  pointer-events: none;
  background: var(--atm);
  transform: translate3d(0, calc(var(--sp, 0) * -80px), 0);
  will-change: transform;
}
/* filet lumineux entre deux diapositives (remplace la ligne grise) */
section.reframe::after, section.trainers::after, section.method::after, section.approaches::after,
section.curriculum::after, section.discord::after, section.pricing::after {
  content: "";
  position: absolute;
  left: 6%; right: 6%; bottom: 0; height: 1px;
  z-index: -1;
  background: linear-gradient(90deg, transparent, rgba(216,162,74,0.55) 30%, rgba(139,111,214,0.45) 70%, transparent);
  pointer-events: none;
}
section.reframe    { --atm: radial-gradient(620px 420px at 86% 18%, rgba(179,39,44,0.25), transparent 70%), radial-gradient(520px 420px at 8% 92%, rgba(216,162,74,0.19), transparent 70%); }
section.trainers   { --atm: radial-gradient(560px 460px at 10% 62%, rgba(45,189,126,0.23), transparent 70%), radial-gradient(560px 460px at 90% 62%, rgba(229,72,77,0.23), transparent 70%), radial-gradient(760px 300px at 50% 0%, rgba(216,162,74,0.19), transparent 70%); }
section.method     { --atm: radial-gradient(680px 460px at 82% 28%, rgba(139,111,214,0.31), transparent 70%), radial-gradient(560px 420px at 8% 84%, rgba(216,162,74,0.22), transparent 70%); }
section.approaches { --atm: radial-gradient(620px 500px at 6% 58%, rgba(229,72,77,0.25), transparent 70%), radial-gradient(620px 500px at 94% 58%, rgba(45,189,126,0.25), transparent 70%), radial-gradient(700px 300px at 50% 0%, rgba(139,111,214,0.16), transparent 70%); }
section.curriculum { --atm: radial-gradient(760px 340px at 50% 0%, rgba(216,162,74,0.25), transparent 70%), radial-gradient(560px 460px at 92% 92%, rgba(139,111,214,0.25), transparent 70%), radial-gradient(500px 420px at 4% 80%, rgba(229,72,77,0.12), transparent 70%); }
section.discord    { --atm: radial-gradient(640px 500px at 88% 50%, rgba(114,137,218,0.31), transparent 70%), radial-gradient(520px 380px at 6% 18%, rgba(45,189,126,0.19), transparent 70%); }
section.pricing    { --atm: radial-gradient(540px 540px at 50% 64%, rgba(216,162,74,0.34), transparent 68%), radial-gradient(400px 400px at 50% 64%, rgba(179,39,44,0.34), transparent 60%), radial-gradient(600px 300px at 50% 0%, rgba(139,111,214,0.16), transparent 70%); }

/* ---------- transitions : apparition douce + sortie progressive ---------- */
.reveal {
  opacity: 0;
  transform: translate3d(0, 46px, 0) scale(0.985);
  filter: blur(8px);
  transition: opacity 1.1s cubic-bezier(.16,.8,.3,1), transform 1.1s cubic-bezier(.16,.8,.3,1), filter 1s cubic-bezier(.16,.8,.3,1);
}
.reveal.is-visible { opacity: 1; transform: none; filter: none; }

.reveal .rv {
  opacity: 0;
  transform: translate3d(0, 30px, 0);
  transition: opacity 0.9s cubic-bezier(.16,.8,.3,1), transform 0.9s cubic-bezier(.16,.8,.3,1);
  transition-delay: calc(var(--i, 0) * 90ms + 200ms);
}
.reveal.is-visible .rv { opacity: 1; transform: none; }

/* la diapositive qui s'éloigne s'estompe légèrement (navigateurs compatibles) */
@supports (animation-timeline: view()) {
  section.reveal > .wrap { animation: hxExit linear both; animation-timeline: view(); animation-range: exit 15% exit 100%; }
}

/* ---------- titres de section ---------- */
.kicker::after {
  content: "";
  display: block;
  width: 46px; height: 2px; margin-top: 8px;
  background: linear-gradient(90deg, var(--accent), rgba(216,162,74,0));
  transform-origin: left; transform: scaleX(0);
  transition: transform 1s 0.35s cubic-bezier(.16,.8,.3,1);
}
.reveal.is-visible .kicker::after { transform: none; }
.pricing .kicker::after { margin-inline: auto; background: linear-gradient(90deg, rgba(216,162,74,0), var(--accent), rgba(216,162,74,0)); width: 80px; }
.section-head h2, .reframe h2 {
  background: linear-gradient(180deg, #ffffff 0%, #ecd9b0 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- cartes : verre, lumière tournante, spot sous la souris ---------- */
.trainer-card, .method-item, .approach-card, .phase-block, .discord-card, .reframe-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(165deg, rgba(27,31,39,0.95) 0%, rgba(14,16,21,0.98) 100%);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  box-shadow: 0 30px 70px rgba(0,0,0,0.45);
}
.trainer-card::after, .method-item::after, .approach-card::after, .phase-block::after, .discord-card::after, .reframe-card::after {
  content: "";
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, -20%), var(--spot, rgba(216,162,74,0.16)), transparent 62%);
  opacity: 0.7; transition: opacity 0.3s ease;
}
.trainer-card:hover::after, .method-item:hover::after, .approach-card:hover::after, .phase-block:hover::after, .discord-card:hover::after { opacity: 1; }

/* Formateurs */
.trainer-card { --spot: color-mix(in srgb, var(--tone) 22%, transparent); box-shadow: 0 30px 70px rgba(0,0,0,0.45), 0 0 0 1px color-mix(in srgb, var(--tone) 24%, transparent); }
.trainer-card::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; z-index: 1;
  background: linear-gradient(90deg, transparent, var(--tone), transparent);
}
.trainer-card:hover { transform: translateY(-6px); box-shadow: 0 40px 90px rgba(0,0,0,0.55), 0 0 70px color-mix(in srgb, var(--tone) 22%, transparent); }
.trainer-card .avatar {
  width: 66px; height: 66px; font-size: 1.5rem;
  background: radial-gradient(circle at 30% 28%, color-mix(in srgb, var(--tone) 38%, #14171c), #12151a);
  border: 2px solid var(--tone);
  box-shadow: 0 0 0 7px color-mix(in srgb, var(--tone) 12%, transparent), 0 0 34px color-mix(in srgb, var(--tone) 42%, transparent);
  animation: hxFloat 6s ease-in-out infinite;
}
.trainer-card h3 { font-size: 1.7rem; background: linear-gradient(180deg, #fff, #ecd9b0); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* La méthode */
.method-statement {
  font-size: clamp(1.7rem, 3.6vw, 2.5rem); max-width: 22ch; line-height: 1.25;
  background: linear-gradient(100deg, #ffffff 0%, #f0be6e 55%, #ffffff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.method-grid { counter-reset: hx; gap: 22px; }
.method-item { counter-increment: hx; border-top: 0; padding: 34px 28px 30px; --spot: rgba(139,111,214,0.20); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.method-item::before {
  content: "0" counter(hx);
  position: absolute; right: 18px; top: 8px;
  font: 800 4.4rem/1 "Fraunces", Georgia, serif; letter-spacing: -0.02em;
  color: transparent; -webkit-text-stroke: 1px rgba(216,162,74,0.32);
}
.method-item:hover { transform: translateY(-6px); box-shadow: 0 40px 90px rgba(0,0,0,0.55), 0 0 60px rgba(139,111,214,0.18); }
.method-term {
  font-size: 1.45rem; position: relative;
  background: linear-gradient(90deg, #f0be6e, #fff3d6, #f0be6e); background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: hxShimmer 5s linear infinite;
}
.method-term::after { content: ""; display: block; width: 36px; height: 2px; margin-top: 10px; background: linear-gradient(90deg, var(--accent), transparent); }

/* Approches */
.approach-card { border-top: 3px solid var(--tone); --spot: color-mix(in srgb, var(--tone) 24%, transparent); box-shadow: 0 30px 80px rgba(0,0,0,0.5), 0 0 0 1px color-mix(in srgb, var(--tone) 26%, transparent); }
.approach-card::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 240px; pointer-events: none;
  background: radial-gradient(420px 220px at 50% 0%, color-mix(in srgb, var(--tone) 22%, transparent), transparent 72%);
}
.approach-card:hover { transform: translateY(-7px); box-shadow: 0 44px 100px rgba(0,0,0,0.6), 0 0 80px color-mix(in srgb, var(--tone) 24%, transparent); }
.approach-card .spark { filter: drop-shadow(0 0 8px var(--tone)); }
.approach-card h3 { font-size: 1.7rem; background: linear-gradient(180deg, #fff, #ecd9b0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.approach-card li::before { box-shadow: 0 0 10px var(--tone); }

/* Programme */
.phase-grid { gap: 18px; }
.phase-block { --ph: #f0be6e; --spot: color-mix(in srgb, var(--ph) 20%, transparent); padding: 24px 20px 14px; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.phase-block:nth-child(2) { --ph: var(--agressive); }
.phase-block:nth-child(3) { --ph: var(--safe); }
.phase-block:nth-child(4) { --ph: #8b6fd6; }
.phase-block::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; z-index: 1; background: linear-gradient(90deg, transparent, var(--ph), transparent); }
.phase-block:hover { transform: translateY(-5px); box-shadow: 0 40px 90px rgba(0,0,0,0.55), 0 0 60px color-mix(in srgb, var(--ph) 20%, transparent); }
.phase-title { color: var(--ph); font-weight: 600; letter-spacing: 0.06em; }
.module { border-radius: 8px; margin-inline: -8px; padding-inline: 8px; transition: background 0.25s ease, transform 0.25s ease; }
.module:hover { background: color-mix(in srgb, var(--ph) 11%, transparent); transform: translateX(5px); }
.module .num { color: var(--ph); }
.module.unlocked .week {
  display: inline-block; padding: 2px 9px; border-radius: 99px; margin-top: 4px;
  background: rgba(240,190,110,0.14); color: var(--accent-strong);
  box-shadow: 0 0 16px rgba(240,190,110,0.28);
}

/* Discord */
.discord-card { --spot: rgba(114,137,218,0.22); border-color: rgba(114,137,218,0.28); background: linear-gradient(170deg, rgba(31,35,52,0.94), rgba(15,17,26,0.98)); box-shadow: 0 30px 80px rgba(0,0,0,0.5), 0 0 70px rgba(114,137,218,0.16); }
.discord-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, transparent, var(--hx-blurple), transparent); }
.discord-card .chan { padding: 12px 10px; border-radius: 8px; position: relative; z-index: 1; transition: background 0.2s ease, transform 0.2s ease; }
.discord-card .chan:hover { background: rgba(114,137,218,0.13); transform: translateX(5px); }
.discord-card .chan::before { color: var(--hx-blurple); }
.discord-card .chan strong { color: #fff; }
.flow-step .dot {
  background: radial-gradient(circle at 30% 30%, rgba(240,190,110,0.4), #14171c);
  border-color: var(--accent); color: #fff3d6;
  box-shadow: 0 0 18px rgba(216,162,74,0.4);
}
.flow-step:not(:last-child)::after { background: linear-gradient(180deg, var(--accent), rgba(216,162,74,0)); }

/* Tarif */
.price-card {
  border-radius: 20px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5), 0 0 110px rgba(216,162,74,0.20), 0 0 0 1px rgba(216,162,74,0.16);
}
.price-card .amount {
  font-size: 4.8rem;
  background: linear-gradient(90deg, var(--accent), #fff3d6 50%, var(--accent)); background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: hxShimmer 4s linear infinite;
}
.price-card .amount sup { -webkit-text-fill-color: var(--accent-strong); }
.price-card .btn-primary { animation: hxGlow 2.6s ease-in-out infinite; }
.price-card .btn-primary:hover { animation: none; }

/* Pied de page */
footer { position: relative; }
footer::before { content: ""; position: absolute; left: 6%; right: 6%; top: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(216,162,74,0.5), rgba(139,111,214,0.4), transparent); }

/* ---------- petits écrans ---------- */
@media (max-width: 860px) {
  .trainer-card, .method-item, .approach-card, .phase-block, .discord-card { border-radius: 14px; }
  .method-item::before { font-size: 3.4rem; }
  .price-card .amount { font-size: 4rem; }
}

/* ---------- accessibilité ---------- */
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal .rv { opacity: 1 !important; transform: none !important; filter: none !important; transition: none !important; }
  section.reveal > .wrap { animation: none !important; }
  .trainer-card .avatar, .method-term, .price-card .amount, .price-card .btn-primary { animation: none !important; }
  section.reframe::before, section.trainers::before, section.method::before, section.approaches::before,
  section.curriculum::before, section.discord::before, section.pricing::before { transform: none; }
}
