:root{
  --violet:#5B1AA6;
  --violet2:#3C0A78;
  --purple:#8F39FF;
  --orange:#F2A03A;
  --bg:#0b0616;
  --card: rgba(255,255,255,.10);
  --stroke: rgba(255,255,255,.18);
  --text: #0b0616;
  --muted: rgba(255,255,255,.70);
  --shadow: 0 18px 70px rgba(0,0,0,.45);
}

*{ box-sizing:border-box; }

html, body{ height:100%; }
body{
  margin:0;
  font-family:Poppins, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  overflow:hidden; /* no scroll */
  background:
    radial-gradient(900px 500px at 20% 25%, rgba(242,160,58,.18), rgba(242,160,58,0) 60%),
    radial-gradient(900px 600px at 80% 60%, rgba(143,57,255,.22), rgba(143,57,255,0) 62%),
    linear-gradient(135deg, var(--bg) 0%, #130827 35%, #080310 100%);
  color:var(--text);
}

/* Topbar */
/* HEADER */

.topbar{
background:white;
display:flex;
align-items:center;
justify-content:space-between;
padding:15px 40px;
box-shadow:0 2px 10px rgba(0,0,0,0.05);
}

/* menu horizontal */

.nav a{

color:#2c1b47;   /* violet foncé lisible */
text-decoration:none;

font-weight:500;

margin:0 15px;

transition:0.3s;

}

/* hover */

.nav a:hover{

color:#8F39FF;

}

/* lien actif (optionnel mais recommandé) */

.nav a.active{

color:#F2A03A;
font-weight:600;

}

.logo{ height:44px; width:auto; filter: drop-shadow(0 12px 24px rgba(0,0,0,.35)); }

.nav{
  display:flex; gap:16px;
  flex:1;
  justify-content:center;
  flex-wrap:wrap;
}
.nav a{
  color: rgb(51 43 107 / 86%);;
  text-decoration:none;
  font-weight:700;
  font-size: 13px;
  padding: 8px 10px;
  border-radius: 12px;
  transition: .18s ease;
}

.cta{
  color:#23103f;
  background: linear-gradient(135deg, var(--orange), #ffd18b);
  font-weight:900;
  text-decoration:none;
  padding: 11px 14px;
  border-radius: 999px;
  box-shadow: 0 14px 34px rgba(0,0,0,.38);
  transition: transform .18s ease;
  white-space:nowrap;
}
.cta:hover{ transform: translateY(-1px); }

/* Stage */
.stage{
  height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding-top: 84px; /* keep header space but still no scroll */
}

.cognitive-bg{
position:fixed;
inset:0;
z-index:-2;
display:flex;
align-items:center;
justify-content:center;
opacity:0.08;
}

.hub-bg{
width:900px;
height:900px;
}

.hub-core{
fill:#8F39FF;
animation:pulseHub 6s infinite;
}

.hub-node{
fill:#F2A03A;
}

.hub-link{
stroke:#8F39FF;
stroke-width:3;
stroke-dasharray:8 10;
animation:flow 8s linear infinite;
}

@keyframes flow{
to{
stroke-dashoffset:-200;
}
}

@keyframes pulseHub{
0%{transform:scale(1)}
50%{transform:scale(1.05)}
100%{transform:scale(1)}
}

/* SVG wires */
.wires{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  z-index:0;
}

/* Neural background */
.neural .neuralPath{
  fill:none;
  stroke: rgba(255,255,255,.12);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-dasharray: 10 14;
  animation: dash 10s linear infinite;
}
.neural .neuralGlow{
  fill:none;
  stroke: rgba(143,57,255,.22);
  stroke-width: 7;
  stroke-linecap: round;
  filter: blur(0.2px);
  stroke-dasharray: 18 22;
  animation: dash 14s linear infinite reverse;
}
@keyframes dash{
  to{ stroke-dashoffset: -400; }
}

/* Branches */
.branch{
  fill:none;
  stroke: url(#wireGrad);
  stroke-width: 4.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: .92;
  stroke-dasharray: 8 10;
  animation: branchFlow 2.6s linear infinite;
}
@keyframes branchFlow{
  to{ stroke-dashoffset: -140; }
}

.branch.isActive{
  stroke-width: 6.2;
  opacity: 1;
  stroke-dasharray: 1 0;
  animation: none;
}

/* Center */
.center{
  position:absolute;
  left:50%;
  top:50%;
  transform: translate(-50%,-50%);
  width: min(440px, 44vw);
  aspect-ratio: 1 / 1;
  display:grid;
  place-items:center;
  z-index: 3;
}

.centerHalo{
  position:absolute;
  inset: -8%;
  border-radius: 999px;
  background:
    radial-gradient(circle at 40% 35%, rgba(242,160,58,.22), rgba(242,160,58,0) 55%),
    radial-gradient(circle at 62% 62%, rgba(143,57,255,.26), rgba(143,57,255,0) 60%);
  filter: blur(10px);
  animation: floaty 5.2s ease-in-out infinite;
  z-index:0;
}

.gif{
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 26px 70px rgba(0,0,0,.55));
  z-index:1;
}

.playHint{
  position:absolute;
  width: 76px; height: 76px;
  border:0;
  border-radius: 999px;
  cursor:pointer;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.32), rgba(255,255,255,.06));
  box-shadow: 0 18px 50px rgba(0,0,0,.30);
  opacity:.0; /* hidden: only used to give a “clickable” affordance on hover center */
  transition: opacity .2s ease;
}
.center:hover .playHint{ opacity:.55; }
.playHint::before{
  content:"";
  position:absolute;
  left: 32px; top: 26px;
  width: 0; height: 0;
  border-left: 18px solid rgba(255,255,255,.85);
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
}

/* Nodes */
.node{
  position:absolute;
  z-index:4;
  text-decoration:none;
  color: var(--text);
  padding: 12px 14px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,.11), rgba(255,255,255,.06));
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 14px 40px rgba(0,0,0,.26);
  backdrop-filter: blur(10px);
  min-width: 220px;
  max-width: 340px;
  transform: translate(-50%,-50%);
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.node .title{
  display:block;
  font-weight: 900;
  letter-spacing:.01em;
  font-size: 16px;
  line-height: 1.1;
}
.node .meta{
  display:block;
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}

.node:hover{
  transform: translate(-50%,-50%) scale(1.03);
  border-color: rgba(242,160,58,.55);
  background: linear-gradient(180deg, rgba(242,160,58,.18), rgba(143,57,255,.10));
}

/* Positions (percent-based; branches recalc by JS anyway) */
.n-prendre     { left:50%; top:12%; }
.n-comprendre  { left:14%; top:45%; }
.n-rassembler  { left:86%; top:38%; }
.n-performer   { left:80%; top:68%; }
.n-celebrer    { left:50%; top:90%; min-width: 300px; }

/* Tagline */
.tagline{
  position:absolute;
  left:50%;
  top: 6%;
  transform: translate(-50%,-50%);
  z-index:2;
  font-weight:800;
  font-size: 13px;
  color: rgba(255,255,255,.72);
  text-align:center;
  width: min(760px, 92%);
  pointer-events:none;
  opacity: .0; /* optional: we can reveal later */
}

/* Premium float (subtle) */
@keyframes floaty{
  0%,100%{ transform: translateY(0); }
  50%{ transform: translateY(-10px); }
}

/* Entrance animation */
.hub .node{
  opacity:0;
  transform: translate(-50%,-50%) scale(.92);
}
.hub.isReady .node{
  opacity:1;
  transform: translate(-50%,-50%) scale(1);
  transition: opacity .6s ease, transform .6s cubic-bezier(.2,.9,.2,1), border-color .18s ease, background .18s ease;
}
.hub.isReady .node:nth-of-type(1){ transition-delay: .05s; }
.hub.isReady .node:nth-of-type(2){ transition-delay: .15s; }
.hub.isReady .node:nth-of-type(3){ transition-delay: .25s; }
.hub.isReady .node:nth-of-type(4){ transition-delay: .35s; }
.hub.isReady .node:nth-of-type(5){ transition-delay: .45s; }

/* Responsive: on small screens, switch to stacked ring layout */
@media (max-width: 820px){
  .nav{ display:none; } /* keep hero clean */
  .hub{ height: min(740px, calc(100vh - 110px)); }
  .node{ min-width: 200px; max-width: 86vw; }
  .n-comprendre{ left:18%; top:48%; }
  .n-rassembler{ left:82%; top:46%; }
  .n-performer{ left:74%; top:72%; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .neuralPath, .neuralGlow, .branch, .centerHalo{ animation:none !important; }
  .node, .cta, .nav a{ transition:none !important; }
}

/* RUBAN D'INFORMATION */

.info-ribbon{

position:absolute;
top:67px;
left:0;
width:100%;
height:42px;

background:linear-gradient(
90deg,
#5B1AA6,
#8F39FF,
#5B1AA6
);

overflow:hidden;

border-bottom:1px solid rgba(255,255,255,0.15);

display:flex;
align-items:center;

z-index:9;

}

/* bande qui défile */

.ribbon-track{

display:flex;
gap:60px;
white-space:nowrap;

animation:scrollRibbon 25s linear infinite;

font-weight:600;
font-size:14px;
color:white;

}

/* texte */

.ribbon-track span{

display:inline-block;
opacity:0.95;

}

.ribbon-track span::after{
content:" ✦ ";
color:#F2A03A;
margin-left:20px;
}

/* animation */

@keyframes scrollRibbon{

0%{
transform:translateX(0);
}

100%{
transform:translateX(-50%);
}

}

/* FOOTER */

.footer{

position:absolute;
bottom:0;
left:0;

width:100%;
height:60px;

display:flex;
align-items:center;
justify-content:center;

background:linear-gradient(
180deg,
rgba(0,0,0,0),
rgba(0,0,0,0.65)
);

border-top:1px solid rgba(255,255,255,0.15);

z-index:8;

}

/* texte */

.footer-content{

font-size:14px;
font-weight:500;

color:rgba(255,255,255,0.85);

text-align:center;

letter-spacing:0.3px;

}

.page{

display:flex;

height:calc(100vh - 130px);

}

.sidebar{

width:260px;

background:#1e0d3b;

padding:40px 25px;

display:flex;
flex-direction:column;

gap:15px;

}

.menu-title{

color:#F2A03A;

font-weight:600;

margin-bottom:20px;

}

.menu-item{

text-decoration:none;

color:white;

padding:12px 15px;

border-radius:8px;

transition:0.3s;

}

.menu-item:hover{

background:#8F39FF;

}

.menu-item.active{

background:#F2A03A;

color:#1e0d3b;

font-weight:600;

}

.content{

flex:1;

padding:60px;

background:white;

overflow:auto;

}

.content h1{

font-size:42px;

margin-bottom:20px;

}

.intro{

font-size:18px;

margin-bottom:40px;

color:#444;

}

.content-grid{

display:grid;

grid-template-columns:1fr 1fr;

gap:40px;

}

.card{

background:#f4f4f4;

padding:30px;

border-radius:10px;

}

.page-layout{

display:flex;

height:calc(100vh - 130px);

}

.page-content{

flex:1;

background:white;

padding:60px;

overflow:auto;

}

.page-content h1{

font-size:42px;

margin-bottom:20px;

}

.intro{

font-size:18px;

margin-bottom:40px;

color:#444;

}

.content-block{

font-size:16px;

line-height:1.6;

}

/* SIDEBAR */

.sidebar{

width:270px;
background:#1e0d3b;

padding:40px 25px;

position:relative;

}

/* menu */

.menu{

display:flex;
flex-direction:column;
gap:8px;

position:relative;

}

/* liens */

.menu-link{

display:flex;
align-items:center;

gap:14px;

padding:14px 16px;

color:white;

text-decoration:none;

border-radius:10px;

font-weight:500;

transition:all .3s ease;

position:relative;

}

/* icône */

.icon{

font-size:20px;

}

/* hover */

.menu-link:hover{

background:#8F39FF;

transform:translateX(6px);

}

/* actif */

.menu-link.active{

color:#1e0d3b;

background:#F2A03A;

font-weight:600;

}

/* indicateur lumineux */

.menu-indicator{

position:absolute;

left:-10px;

width:6px;
height:40px;

background:linear-gradient(
180deg,
#F2A03A,
#8F39FF
);

border-radius:6px;

transition:0.4s ease;

}

/* Shell : sidebar + contenu + overlay */
.page-shell{
  position: relative;
  display:flex;
  height: calc(100vh - 130px); /* header+ruban ; adapte si besoin */
}

/* SVG overlay au-dessus mais non cliquable */
.neuro-overlay{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  pointer-events:none;
  z-index: 5; /* au-dessus du fond, sous les interactions */
}

/* Courbe neuronale */
.neuro-path{
  fill:none;
  stroke: url(#neuroGrad);
  stroke-width: 4.5;
  stroke-linecap: round;
  filter: url(#neuroGlow);
  opacity: 0;                /* cachée par défaut */
  stroke-dasharray: 1;       /* sera recalculé en JS */
  stroke-dashoffset: 1;      /* sera recalculé en JS */
  transition: opacity .15s ease;
}

/* Impulsion */
.neuro-dot{
  fill: #F2A03A;
  filter: url(#neuroGlow);
  opacity: 0;
  transition: opacity .15s ease;
}

/* Quand actif (classe ajoutée par JS) */
.neuro-overlay.is-on .neuro-path,
.neuro-overlay.is-on .neuro-dot{
  opacity: 1;
}

/* Option : rendre l’impulsion plus “vivante” */
.neuro-dot{
  box-shadow: 0 0 20px rgba(242,160,58,.8);
}

.about-hero{

display:flex;
align-items:center;
justify-content:center;

gap:80px;

padding:100px;

background:#f5f5f7;

}

.about-photo img{

width:260px;
border-radius:50%;

box-shadow:0 10px 30px rgba(0,0,0,0.2);

}

.about-intro{

max-width:600px;

}

.about-intro h1{

font-size:44px;
color:#2c1b47;

}

.about-intro h2{

color:#8F39FF;
margin-bottom:20px;

}

.mission{

text-align:center;

padding:80px;

background:#8F39FF;

color:white;

}

.mission h2{

font-size:32px;

margin-bottom:20px;

}

.approche{

padding:100px;

background:white;

text-align:center;

}

.approche-grid{

display:grid;

grid-template-columns:repeat(3,1fr);

gap:40px;

margin-top:50px;

}

.approche-card{

background:#f4f4f4;

padding:30px;

border-radius:12px;

}

.outils{

padding:100px;

background:#F2A03A;

color:white;

text-align:center;

}

.outils ul{

list-style:none;

margin-top:30px;

}

.outils li{

margin:10px 0;

font-size:18px;

}

#neural-bg{

position:fixed;
top:0;
left:0;

width:100%;
height:100%;

z-index:-1;

background:#0f0622;

}

.timeline{

padding:120px;

color:white;

text-align:center;

}

.timeline-line{

display:flex;
justify-content:space-between;

margin-top:80px;

position:relative;

}

.timeline-line::before{

content:"";

position:absolute;

top:20px;

left:0;
width:100%;
height:4px;

background:#8F39FF;

}

.timeline-item{

width:200px;

}

.timeline-item h3{

color:#F2A03A;

}

.approche-hero{

text-align:center;

padding:120px 40px;

background:linear-gradient(135deg,#2c1b47,#8F39FF);

color:white;

}

.approche-hero h1{

font-size:46px;
margin-bottom:20px;

}

.approche-pillars{

padding:100px 60px;

text-align:center;

background:white;

}

.pillars-grid{

display:grid;

grid-template-columns:repeat(3,1fr);

gap:40px;

margin-top:60px;

}

.pillar{

background:#f4f4f8;

padding:30px;

border-radius:14px;

}
.atelier{

padding:100px;

background:#f7f7fb;

text-align:center;

}

.atelier-steps{

display:grid;

grid-template-columns:repeat(4,1fr);

gap:30px;

margin-top:50px;

}

.step{

background:white;

padding:25px;

border-radius:12px;

}
.benefices{

padding:100px;

background:#F2A03A;

color:white;

text-align:center;

}

.benefices ul{

list-style:none;

margin-top:30px;

}

.benefices li{

margin:12px 0;

font-size:18px;

}
