/* Section « Le système » : seul → partage → équipe → cadre → sortie (08/10/2026).
   Récit au défilement : visuel collant à gauche (illustration + schéma réseau), étapes à droite. */
.sys-section { padding-block: 120px 80px; position: relative; }
.sys-head { max-width: 760px; margin-bottom: 70px; }
.sys-head h2 { font: 700 clamp(38px, 5vw, 66px)/1.02 var(--display); letter-spacing: -.035em; margin-top: 18px; }
.sys-head p { color: var(--muted); font-size: 17px; line-height: 1.65; margin-top: 22px; max-width: 600px; }

.sys-layout { display: grid; grid-template-columns: 1.08fr 1fr; gap: 80px; align-items: start; }
.sys-visual { position: sticky; top: 110px; }
.sys-frame { position: relative; aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); box-shadow: 0 40px 90px -40px #3765f580; }
.sys-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.04); transition: opacity .7s ease, transform 1.2s ease; }
.sys-frame img.on { opacity: 1; transform: scale(1); }
.sys-frame::after { content: ""; position: absolute; inset: auto 0 0 0; height: 40%; background: linear-gradient(transparent, #080c19d9); pointer-events: none; }
.sys-badge { position: absolute; left: 18px; bottom: 16px; z-index: 2; display: flex; gap: 10px; align-items: center; font: 600 12px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.sys-badge b { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 13px; }

.sys-diagram { margin-top: 0; border-radius: 20px; border: 1px solid var(--line); background: radial-gradient(circle at 50% 45%, #16224a 0%, #0d1324 70%); padding: 10px; }
.sys-diagram svg { display: block; width: 100%; height: auto; max-height: calc(100vh - 110px - 56.25vw * .46 - 70px); min-height: 170px; }
.sys-node { transition: transform 1s cubic-bezier(.2,.75,.2,1), opacity .6s ease; transform-box: view-box; }
.sys-node circle { transition: fill .6s ease, r .6s ease, stroke .6s ease; }
.sys-node text { font: 600 10px var(--body); fill: #e9eefc; text-anchor: middle; pointer-events: none; transition: opacity .5s ease; }
.sys-link { stroke: #91b5ff; stroke-width: 1.2; opacity: 0; transition: opacity .6s ease; }
.sys-link.on { opacity: .45; }
.sys-link.strain { stroke: #f86a77; stroke-dasharray: 4 4; animation: sys-dash 1.2s linear infinite; }
.sys-link.team { stroke: #a5eebc; stroke-width: 1.6; }
@keyframes sys-dash { to { stroke-dashoffset: -16; } }
.sys-pod { fill: none; stroke: #91b5ff40; stroke-width: 1.2; stroke-dasharray: 3 5; opacity: 0; transition: opacity .6s ease; }
.sys-pod.on { opacity: 1; }
.sys-frame-box, .sys-timeline, .sys-star { opacity: 0; transition: opacity .7s ease; }
.sys-frame-box.on, .sys-timeline.on, .sys-star.on { opacity: 1; }
.sys-legend { display: flex; justify-content: space-between; gap: 12px; padding: 4px 10px 6px; font: 500 10px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.sys-legend span.on { color: var(--ink); }

.sys-steps { display: grid; }
.sys-step { min-height: 72vh; display: flex; flex-direction: column; justify-content: center; padding-block: 30px; opacity: .32; transition: opacity .5s ease; }
.sys-step.active { opacity: 1; }
.sys-step-num { font: 600 12px/1 var(--mono); letter-spacing: .14em; color: #a0b8f7; text-transform: uppercase; }
.sys-step h3 { font: 700 clamp(28px, 3.2vw, 42px)/1.06 var(--display); letter-spacing: -.03em; margin: 14px 0 16px; }
.sys-step h3 span { color: var(--blue); }
.sys-step p { color: var(--muted); font-size: 16.5px; line-height: 1.7; max-width: 470px; }
.sys-step ul { list-style: none; padding: 0; margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.sys-step li { font: 500 12.5px var(--body); padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); background: #ffffff08; }
.sys-step .sys-mobile-img { display: none; }

/* Courbe : plus on est, plus le projet tient */
.sys-curve { margin-top: 90px; display: grid; grid-template-columns: .9fr 1.1fr; gap: 60px; align-items: center; padding: 44px; border-radius: 26px; border: 1px solid var(--line); background: linear-gradient(135deg, #101a3a, #0b1020); }
.sys-curve h3 { font: 700 clamp(28px, 3vw, 40px)/1.08 var(--display); letter-spacing: -.03em; margin-top: 14px; }
.sys-curve h3 span { color: var(--blue); }
.sys-curve p { color: var(--muted); line-height: 1.65; margin-top: 16px; }
.sys-curve small { display: block; margin-top: 14px; color: #7f879b; font-size: 12px; }
.sys-curve svg { width: 100%; height: auto; }
.sys-curve .c-path { fill: none; stroke: url(#sysgrad); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 900; stroke-dashoffset: 900; transition: stroke-dashoffset 2.2s cubic-bezier(.3,.7,.2,1); }
.sys-curve .c-area { fill: url(#sysarea); opacity: 0; transition: opacity 1.2s ease .8s; }
.sys-curve.in .c-path { stroke-dashoffset: 0; }
.sys-curve.in .c-area { opacity: 1; }
.sys-curve .c-dot { fill: #f5f5f0; opacity: 0; transition: opacity .4s ease; }
.sys-curve.in .c-dot { opacity: 1; }
.sys-curve .c-dot:nth-of-type(2) { transition-delay: .5s; } .sys-curve .c-dot:nth-of-type(3) { transition-delay: 1s; }
.sys-curve .c-dot:nth-of-type(4) { transition-delay: 1.5s; } .sys-curve .c-dot:nth-of-type(5) { transition-delay: 2s; }
.sys-curve text { font: 600 12px var(--body); fill: #c9cfde; }
.sys-curve text.ax { font: 500 10px var(--mono); letter-spacing: .08em; fill: #7f879b; text-transform: uppercase; }

@media (max-width: 980px) {
  .sys-layout { grid-template-columns: 1fr; gap: 0; }
  .sys-visual { position: sticky; top: 92px; z-index: 5; }
  .sys-frame { display: none; }
  .sys-diagram { max-width: 420px; margin: 0 auto 10px; padding: 4px; backdrop-filter: blur(8px); background: #0d1324f2; box-shadow: 0 12px 30px -10px #000; }
  .sys-diagram svg { max-height: 150px; min-height: 0; }
  .sys-legend { display: none; }
  .sys-step { min-height: 0; opacity: 1; padding-block: 34px; }
  .sys-step .sys-mobile-img { display: block; border-radius: 16px; border: 1px solid var(--line); margin-bottom: 20px; aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
  .sys-curve { grid-template-columns: 1fr; padding: 28px 22px; gap: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  .sys-node, .sys-link, .sys-frame img, .sys-curve .c-path, .sys-curve .c-area { transition: none !important; animation: none !important; }
  .sys-curve .c-path { stroke-dashoffset: 0; }
}

/* Lisibilité du sous-titre du héros sur l'image */
.hero-intro { text-shadow: 0 2px 14px #000, 0 0 3px #000; }

/* --- Avatars des membres (08/10/2026) --- */
.sys-diagram svg { max-height: none; min-height: 0; overflow: visible; }
.sys-av { transition: transform 1.1s cubic-bezier(.2,.75,.2,1), opacity .6s ease; transform-box: view-box; }
.sys-av image { transition: filter .5s ease; }
.av-ring { fill: #0d1324; stroke-width: 2.2; transition: stroke-width .4s ease; }
.sys-av.named .av-ring { stroke-width: 2.6; }
.av-name, .av-role { text-anchor: middle; opacity: 0; transition: opacity .5s ease .3s; pointer-events: none; }
.av-name { font: 600 9.5px var(--body); fill: #f5f5f0; }
.av-role { font: 600 7px var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.sys-av.named .av-name, .sys-av.named .av-role { opacity: 1; }
.av-pulse { fill: none; stroke: #a5eebc; stroke-width: 2; opacity: 0; transform-box: fill-box; transform-origin: center; }
.sys-av.match .av-pulse { animation: av-pulse 1.5s ease-out 2 .4s; }
.sys-av.match .av-ring { stroke-width: 3.2; }
@keyframes av-pulse { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(2.3); opacity: 0; } }
.sys-task { transition: transform 1s cubic-bezier(.2,.75,.2,1), opacity .5s ease; transform-box: view-box; }
.sys-task text { font: 600 9px var(--body); text-anchor: middle; pointer-events: none; }
.sys-link { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .9s ease, opacity .5s ease; }
.sys-link.on { stroke-dashoffset: 0; opacity: .5; }
.sys-link.share { stroke: #ffd36e; stroke-width: 1.3; }
.sys-link.share.on { opacity: .55; }
.sys-link.strain { stroke-dasharray: 4 4; stroke-dashoffset: 0; }
.sys-link.faint { stroke: #91b5ff; stroke-dasharray: 2 4; stroke-dashoffset: 0; }
.sys-link.faint.on { opacity: .35; }
.sys-game { opacity: 0; transition: transform .9s cubic-bezier(.2,.8,.2,1.15), opacity .6s ease; transform-box: view-box; filter: drop-shadow(0 10px 18px #00000090); }
.sys-game.on { opacity: 1; transform: translate(var(--x), var(--y)) scale(1); }
.game-shadow { fill: #000; opacity: .5; }
.game-title { font: 700 9.5px var(--display); fill: #f5f5f0; text-anchor: middle; }
.game-chip { fill: #a5eebc; }
.game-chip-t { font: 700 6.5px var(--mono); letter-spacing: .1em; fill: #0d1324; text-anchor: middle; }
.sys-you { opacity: 0; transition: opacity .7s ease .9s; }
.sys-you.on { opacity: 1; }
.you-ring { fill: #3765f5; stroke: #f5f5f0; stroke-width: 1.5; stroke-dasharray: 3 3; animation: you-spin 12s linear infinite; transform-box: fill-box; transform-origin: center; }
@keyframes you-spin { to { transform: rotate(360deg); } }
.you-t { font: 600 9px var(--body); fill: #f5f5f0; text-anchor: middle; }
.sys-timeline .tl { font: 500 7px var(--mono); letter-spacing: .06em; fill: #a0b8f7; text-transform: uppercase; }
.sys-caption { font: 600 9px var(--mono); letter-spacing: .1em; text-transform: uppercase; fill: #a0b8f7; text-anchor: middle; }
.sys-frame { margin-top: 0; margin-bottom: 14px; aspect-ratio: 21 / 9; }
.sys-frame img { object-position: center 35%; }
@media (max-width: 980px) {
  .sys-diagram svg { max-height: 210px; }
  .sys-frame { display: none; }
}

/* Porte Discord : d'où arrivent les nouveaux membres (étape 2) */
.sys-door { opacity: 0; transition: opacity .5s ease; }
.sys-door.on { opacity: 1; }
.door-box { fill: #5865f2; }
.door-t { font: 700 6.5px var(--mono); letter-spacing: .12em; fill: #fff; text-anchor: middle; }
.door-s { font: 500 5.5px var(--body); fill: #ffffffcc; text-anchor: middle; }
.sys-av.arrive .av-ring { stroke-width: 3.4; }
.sys-link.flash { stroke: #f5f5f0; stroke-width: 2.2; transition: stroke-dashoffset .35s ease, opacity .4s ease, stroke 1.2s ease .5s, stroke-width 1.2s ease .5s; }
.sys-link.flash.on { stroke: #ffd36e; stroke-width: 1.3; opacity: .55; }
