/* Accelerer.club — accueil /club/ v3 : page beige de la v1 (textes navy, cartes blanches) + hero = fenêtre sombre où tourne la scène
   three.js de la v2 (hyperespace de chevrons). Grands chevrons en parallaxe, courbe exponentielle tracée au défilement, apparitions —
   réglés pour fond clair. Mêmes textes que v1/v2 ; tout reste lisible sans JS.
   Palette casquette JB : navy #232933, corail #E8505B, orange #F28C28, jaune #F5C518, violet #7B4BC4, cyan #2EC4D6, blanc cassé #EDEBE4.
   Classes posées par le <script> du <head> : .js (animations d'apparition), .rm (prefers-reduced-motion : tout est statique). */
@font-face { font-family: "Manrope"; src: url("/club/assets/fonts/Manrope-wght.ttf") format("truetype"); font-weight: 200 800; font-display: swap; }
:root {
  --navy: #232933; --coral: #E8505B; --coral-text: #C73A45; --orange: #F28C28; --yellow: #F5C518; --violet: #7B4BC4; --cyan: #2EC4D6; --off: #EDEBE4;
  --hero: #151a23; --ink: #232933; --muted: #5b6270; --line: #d6d2c7;
  --ease: cubic-bezier(.2, .8, .2, 1);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
html { background: var(--off); }
body { font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--ink); background: transparent; line-height: 1.55;
  -webkit-font-smoothing: antialiased; position: relative; overflow-x: hidden; }
a { color: var(--coral-text); }
::selection { background: rgba(232, 80, 91, .28); color: var(--navy); }
.acc-wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ── Fond : grands chevrons rognés + teintes d'ambiance très légères (calque fixe, parallaxe en JS) ── */
.v2-bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.v2-amb { position: absolute; inset: -10%; background:
  radial-gradient(42% 38% at 90% 30%, rgba(123, 75, 196, .07), transparent 70%),
  radial-gradient(38% 34% at 4% 64%, rgba(46, 196, 214, .08), transparent 70%),
  radial-gradient(40% 36% at 72% 98%, rgba(232, 80, 91, .07), transparent 70%); }
.v2-bc { position: absolute; display: block; overflow: visible; will-change: transform; }
.v2-bc use { stroke-width: var(--w); }
.v2-bc1 { width: 92vmax; height: 92vmax; right: -50vmax; top: 4vh; color: var(--violet); opacity: .07; }
.v2-bc2 { width: 70vmax; height: 70vmax; left: -36vmax; top: 30vh; color: #1aa6b8; opacity: .16; }
.v2-bc3 { width: 120vmax; height: 120vmax; left: -30vmax; top: 120vh; color: var(--coral); opacity: .05; }
.v2-bc4 { width: 56vmax; height: 56vmax; right: -14vmax; top: 92vh; color: var(--orange); opacity: .2; }
.v2-bc5 { width: 64vmax; height: 64vmax; right: -30vmax; top: 190vh; color: #1aa6b8; opacity: .06; }
.v2-bc6 { width: 40vmax; height: 40vmax; left: 8vw; top: 170vh; color: var(--violet); opacity: .16; }

/* ── En-tête sur fond beige (logo clair C5, comme la v1) ── */
.acc-top { display: flex; align-items: center; justify-content: space-between; padding: 22px 0; }
.acc-top img { height: 44px; width: auto; display: block; }
.acc-top a.acc-login { color: var(--navy); font-weight: 700; text-decoration: none; padding: 10px 16px; border-radius: 999px; border: 2px solid var(--navy);
  transition: background .25s, color .25s, transform .25s var(--ease); }
.acc-top a.acc-login:hover { background: var(--navy); color: var(--off); }
.acc-top a.acc-login:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; }

/* ── Hero : carte sombre arrondie (v1) ; scène three.js (canvas) au-dessus d'une illustration SVG statique ── */
.acc-hero.v2-hero { position: relative; overflow: hidden; background: var(--hero); color: var(--off); isolation: isolate;
  width: min(1320px, calc(100% - 32px)); margin: 8px auto 0; border-radius: 32px; min-height: min(calc(100svh - 120px), 720px);
  display: flex; flex-direction: column;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .6), 0 40px 80px -40px rgba(21, 26, 35, .55), 0 18px 36px -22px rgba(21, 26, 35, .35); }
.v2-hero-art { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.v2-hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; display: block; opacity: 0; transition: opacity 1.6s var(--ease); }
.v2-hero canvas.on { opacity: 1; }
.v2-hero-veil { position: absolute; inset: 0; z-index: 2; pointer-events: none; background:
  linear-gradient(90deg, rgba(21, 26, 35, .92) 0%, rgba(21, 26, 35, .8) 38%, rgba(21, 26, 35, .2) 64%, rgba(21, 26, 35, 0) 78%),
  linear-gradient(180deg, rgba(21, 26, 35, .35) 0%, rgba(21, 26, 35, 0) 16%, rgba(21, 26, 35, 0) 78%, rgba(21, 26, 35, .5) 100%); }
.v2-hero-in { position: relative; z-index: 3; width: 100%; flex: 1; display: flex; flex-direction: column; }
.v2-hero-copy { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 64px 0 80px; max-width: 680px; }
.acc-eyebrow { font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--yellow); font-size: 14px; margin: 0 0 16px; display: flex; align-items: center; gap: 12px; }
.v2-eb-chev { display: inline-flex; font-size: 22px; line-height: 1; letter-spacing: -.08em; font-weight: 800; }
.v2-eb-chev i { font-style: normal; }
.v2-eb-chev i:nth-child(1) { color: #9a6ee6; } .v2-eb-chev i:nth-child(2) { color: var(--cyan); }
.v2-eb-chev i:nth-child(3) { color: var(--orange); } .v2-eb-chev i:nth-child(4) { color: var(--coral); }
.acc-hero h1 { font-size: clamp(36px, 5.2vw, 62px); line-height: 1.05; letter-spacing: -.02em; margin: 0 0 22px; font-weight: 800; max-width: 13em;
  text-shadow: 0 2px 30px rgba(21, 26, 35, .6); }
.acc-hero h1 em { font-style: normal; color: var(--coral); background: linear-gradient(100deg, #ff6a74 0%, var(--coral) 25%, var(--orange) 60%, var(--yellow) 85%, #ff8a5c 100%);
  background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: v2-sheen 7s ease-in-out infinite alternate; }
@keyframes v2-sheen { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
.acc-hero p.acc-lead { font-size: clamp(17px, 1.5vw, 20px); max-width: 33em; margin: 0 0 32px; color: #d9d6cd; }
.acc-note { font-size: 14px; margin: 16px 0 0; color: #b9b6ad; }

/* Ligne de chevrons verticale à droite du hero (demande JB 25/10) — chevrons pointés vers le haut qui montent */
.v2-bar { position: absolute; top: 0; bottom: 0; right: 18px; width: 14px; z-index: 4; opacity: .95;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='120' viewBox='0 0 14 120'%3E%3Cg fill='none' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 9l5-6 5 6' stroke='%237B4BC4'/%3E%3Cpath d='M2 21l5-6 5 6' stroke='%232EC4D6'/%3E%3Cpath d='M2 33l5-6 5 6' stroke='%23F28C28'/%3E%3Cpath d='M2 45l5-6 5 6' stroke='%23E8505B'/%3E%3Cpath d='M2 57l5-6 5 6' stroke='%23F5C518'/%3E%3Cpath d='M2 69l5-6 5 6' stroke='%237B4BC4'/%3E%3Cpath d='M2 81l5-6 5 6' stroke='%232EC4D6'/%3E%3Cpath d='M2 93l5-6 5 6' stroke='%23F28C28'/%3E%3Cpath d='M2 105l5-6 5 6' stroke='%23E8505B'/%3E%3Cpath d='M2 117l5-6 5 6' stroke='%23F5C518'/%3E%3C/g%3E%3C/svg%3E") 50% 0 / 14px 120px repeat-y;
  animation: v2-bar 3.2s linear infinite;
  -webkit-mask: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent); mask: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent); }
@keyframes v2-bar { to { background-position: 50% -120px; } }
@media (max-width: 600px) { .v2-bar { right: 6px; width: 10px; background-size: 10px 86px; } @keyframes v2-bar { to { background-position: 50% -86px; } } }

/* ── Boutons ── */
.acc-cta { position: relative; display: inline-flex; align-items: center; gap: .1em; color: #fff; font-weight: 800; font-size: 18px; text-decoration: none;
  padding: 16px 26px 16px 28px; border-radius: 999px; overflow: hidden; isolation: isolate;
  background: linear-gradient(100deg, var(--coral) 0%, #ee6a45 55%, var(--orange) 100%); background-size: 160% 100%; background-position: 0 0;
  box-shadow: 0 6px 0 #b33a44, 0 14px 28px -12px rgba(232, 80, 91, .55);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background-position .5s var(--ease), padding .35s var(--ease); -webkit-tap-highlight-color: transparent; }
.acc-cta::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .38) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .8s var(--ease); }
.v2-cta-chev { display: inline-flex; margin-left: .45em; letter-spacing: -.12em; font-size: 1.15em; line-height: 1; }
.v2-cta-chev i { font-style: normal; opacity: .55; transition: transform .35s var(--ease), opacity .35s; }
.v2-cta-chev i:nth-child(2) { opacity: .75; } .v2-cta-chev i:nth-child(3) { opacity: 1; }
.acc-cta:hover, .acc-cta:focus-visible { transform: translateY(-2px); background-position: 100% 0;
  box-shadow: 0 8px 0 #b33a44, 0 22px 40px -14px rgba(232, 80, 91, .6); }
.acc-cta:hover::after, .acc-cta:focus-visible::after { transform: translateX(120%); }
.acc-cta:hover .v2-cta-chev i, .acc-cta:focus-visible .v2-cta-chev i { opacity: 1; }
.acc-cta:hover .v2-cta-chev i:nth-child(1) { transform: translateX(3px); }
.acc-cta:hover .v2-cta-chev i:nth-child(2) { transform: translateX(6px); }
.acc-cta:hover .v2-cta-chev i:nth-child(3) { transform: translateX(9px); }
.acc-cta:hover { padding-right: 34px; }
.acc-cta:active { transform: translateY(5px); transition-duration: .08s; box-shadow: 0 1px 0 #b33a44, 0 6px 14px -8px rgba(232, 80, 91, .6); }
.acc-cta:focus-visible { outline: 3px solid var(--yellow); outline-offset: 4px; }
.acc-band .acc-cta:focus-visible { outline-color: var(--navy); }

/* ── Sections (cartes blanches de la v1) ── */
.v2-flow { position: relative; padding-top: 80px; }
.acc-section { margin: 0 0 72px; position: relative; }
.acc-section h2 { font-size: clamp(28px, 3vw, 36px); letter-spacing: -.015em; line-height: 1.15; margin: 0 0 24px; font-weight: 800; position: relative; z-index: 2; }
.acc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; perspective: 1000px; }
.acc-card { --c: var(--coral); --cg: rgba(232, 80, 91, .14); position: relative; z-index: 2; border-radius: 20px; padding: 24px 24px 26px; overflow: hidden;
  background: #fff; border-top: 6px solid var(--c);
  box-shadow: 0 1px 2px rgba(35, 41, 51, .05), 0 12px 30px -22px rgba(35, 41, 51, .3); transform-style: preserve-3d;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), opacity .8s var(--ease); }
.acc-card::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 0%), var(--cg), transparent 65%); }
.acc-card h3 { margin: 0 0 8px; font-size: 19px; position: relative; z-index: 1; }
.acc-card p { margin: 0; color: var(--muted); font-size: 15.5px; position: relative; z-index: 1; }
.acc-card:hover { box-shadow: 0 2px 4px rgba(35, 41, 51, .05), 0 30px 50px -26px rgba(35, 41, 51, .38), 0 16px 40px -24px var(--c); }
.acc-card:hover::after { opacity: 1; }
.acc-c1 { --c: var(--coral); --cg: rgba(232, 80, 91, .13); } .acc-c2 { --c: var(--orange); --cg: rgba(242, 140, 40, .15); }
.acc-c3 { --c: var(--violet); --cg: rgba(123, 75, 196, .13); } .acc-c4 { --c: var(--cyan); --cg: rgba(46, 196, 214, .17); }

.acc-steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.acc-steps li { position: relative; z-index: 2; background: #fff; border-radius: 20px; padding: 24px 24px 24px 72px;
  box-shadow: 0 1px 2px rgba(35, 41, 51, .05), 0 12px 30px -22px rgba(35, 41, 51, .3); }
.acc-steps li::before { counter-increment: s; content: counter(s); position: absolute; left: 22px; top: 20px; width: 36px; height: 36px; border-radius: 50%;
  background: var(--navy); color: var(--yellow); font-weight: 800; display: grid; place-items: center; }
.acc-steps li:not(:last-child)::after { content: "›"; position: absolute; right: -13px; top: 50%; transform: translateY(-55%); z-index: 3;
  font-size: 28px; font-weight: 800; color: rgba(35, 41, 51, .3); }

/* Bandeau final (carte blanche v1) : un « graphique » quadrillé où la courbe arrive en flèche sur le bouton */
.v2-last { margin-bottom: 40px; }
.acc-band { position: relative; border-radius: 24px; padding: 40px 40px 124px; display: flex; gap: 28px; align-items: flex-start; justify-content: space-between; flex-wrap: wrap;
  background:
    linear-gradient(rgba(35, 41, 51, .045) 1px, transparent 1px) 0 0 / 100% 40px,
    linear-gradient(90deg, rgba(35, 41, 51, .045) 1px, transparent 1px) 0 0 / 40px 100%,
    #fff;
  box-shadow: 0 1px 2px rgba(35, 41, 51, .05), 0 24px 50px -30px rgba(35, 41, 51, .35); }
.acc-band::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; pointer-events: none;
  background: linear-gradient(120deg, rgba(46, 196, 214, .55), rgba(123, 75, 196, .3) 40%, rgba(232, 80, 91, .6));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.acc-band p { margin: 0; font-size: clamp(18px, 1.7vw, 21px); line-height: 1.5; max-width: 30em; position: relative; z-index: 2; font-weight: 600; }
.acc-band .acc-cta { z-index: 2; margin-top: 4px; }
.acc-band .acc-cta.arrived { animation: v2-arrive 1.1s var(--ease) 1; }
@keyframes v2-arrive { 0% { box-shadow: 0 6px 0 #b33a44, 0 0 0 0 rgba(232, 80, 91, .45); } 100% { box-shadow: 0 6px 0 #b33a44, 0 0 0 24px rgba(232, 80, 91, 0); } }

/* ── Courbe exponentielle (SVG construit en JS, tracée au défilement) — traits nets, pas de lueur sur fond clair ── */
.v2-curve { position: absolute; left: 0; top: 0; z-index: 1; pointer-events: none; overflow: visible; }
.v2-curve .glow { stroke-width: 10; opacity: .1; }
.v2-curve .core { stroke-width: 3.4; }
.v2-curve .node { fill: var(--off); stroke: rgba(35, 41, 51, .28); stroke-width: 2; transition: fill .5s, stroke .5s, stroke-width .5s; }
.v2-curve .node.on { fill: #1aa6b8; stroke: rgba(46, 196, 214, .3); stroke-width: 7; }
.v2-curve .node.on.v { fill: var(--violet); stroke: rgba(123, 75, 196, .25); }
.v2-curve .head { transition: opacity .3s; }
.v2-curve .arrow { opacity: 0; transition: opacity .35s, transform .6s var(--ease); transform: scale(.3); transform-box: fill-box; transform-origin: 30% 50%; }
.v2-curve.done .arrow { opacity: 1; transform: scale(1); }
.v2-curve.done .head { opacity: 0; }

/* ── Fin de page ── */
.v2-outro { position: relative; height: 240px; overflow: hidden; pointer-events: none; -webkit-mask: linear-gradient(180deg, transparent, #000 60%); mask: linear-gradient(180deg, transparent, #000 60%); }
.v2-outro svg { position: absolute; left: 50%; bottom: 10px; width: min(760px, 92vw); height: auto; transform: translateX(-50%); opacity: .2; overflow: visible; }
.acc-foot { border-top: 1px solid var(--line); padding: 24px 0 40px; font-size: 14px; color: var(--muted); display: flex; gap: 18px; flex-wrap: wrap; position: relative; z-index: 2; }
.acc-foot a { color: var(--muted); text-underline-offset: 3px; }
.acc-foot a:hover { color: var(--navy); }

/* ── Apparitions (seulement avec JS, jamais en mouvement réduit) ── */
.js:not(.rm) .rv { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.js:not(.rm) .rv.in { opacity: 1; transform: none; }
.js:not(.rm) .acc-card.rv.in { transition: transform .5s var(--ease), box-shadow .5s var(--ease), opacity .9s var(--ease); }
.js:not(.rm) .acc-card.rv { transform: translateY(28px) rotateX(8deg); }
.js:not(.rm) .acc-card.rv.in { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--ty, 0px)); }
.js:not(.rm) .v2-in { animation: v2-up 1s var(--ease) both; animation-delay: calc(120ms + var(--i, 0) * 110ms); }
@keyframes v2-up { from { opacity: 0; transform: translateY(18px); } }

@media (prefers-reduced-motion: reduce) {
  .v2-bar, .acc-hero h1 em { animation: none; }
  .acc-cta, .acc-cta::after, .acc-card, .v2-cta-chev i { transition: none; }
}
@media (max-width: 960px) {
  .acc-grid { grid-template-columns: 1fr 1fr; }
  .acc-steps { grid-template-columns: 1fr; }
  .acc-steps li:not(:last-child)::after { content: "›"; right: auto; left: 34px; top: auto; bottom: -24px; transform: rotate(90deg); }
}
@media (max-width: 760px) {
  .acc-hero.v2-hero { min-height: 0; width: calc(100% - 20px); border-radius: 26px; }
  .v2-hero-veil { background: linear-gradient(180deg, rgba(21, 26, 35, .3) 0%, rgba(21, 26, 35, .5) 30%, rgba(21, 26, 35, .86) 60%, rgba(21, 26, 35, .9) 100%); }
  .v2-hero-copy { padding: 230px 0 64px; }
  .v2-hero-art { height: 460px; -webkit-mask: linear-gradient(180deg, #000 55%, transparent); mask: linear-gradient(180deg, #000 55%, transparent); } /* repli SVG : singularité visible en haut */
  .acc-top { padding: 16px 0; }
  .acc-top img { height: 34px; }
  .acc-top a.acc-login { padding: 8px 14px; font-size: 15px; }
  .v2-flow { padding-top: 60px; }
  .acc-section { margin-bottom: 60px; }
  .acc-band { padding: 30px 24px 116px; }
  .v2-outro { height: 140px; }
}
@media (max-width: 560px) {
  .acc-grid { grid-template-columns: 1fr; }
  .acc-cta { font-size: 17px; padding: 15px 22px 15px 24px; }
  .acc-wrap { padding-left: 22px; padding-right: 22px; }
  .acc-hero .acc-wrap { padding-left: 20px; padding-right: 20px; }
  .acc-hero .acc-cta { font-size: 16px; padding: 15px 18px 15px 22px; white-space: nowrap; }
  .acc-hero .acc-cta:hover { padding-right: 24px; }
  .v2-flow.acc-wrap { padding-left: 34px; }
}
