/* ==========================================================================
   NOTRE SYSTÈME : UN CYCLE DE 7 JOURS (fond clair)
   Le rythme d'une semaine en une ligne, puis un bandeau de 5 étapes en flèches
   (semaines 1 à 4, puis « Et ensuite ») qui fonce de l'ivoire au noir.
   Les étapes apparaissent l'une après l'autre (classe .is-vu posée par le script).
   ========================================================================== */
.cy{position:relative; padding-block:clamp(80px,9vw,128px); color:var(--noir); background:#F5F5F1}
/* la grille s'efface en bas, pour se fondre dans les études de cas (même fond) */
.cy::before{content:""; position:absolute; inset:0; pointer-events:none; background:linear-gradient(rgba(8,8,8,.035) 1px, transparent 1px) 0 0/44px 44px, linear-gradient(90deg, rgba(8,8,8,.035) 1px, transparent 1px) 0 0/44px 44px;
  -webkit-mask:linear-gradient(#000 calc(100% - 260px), transparent); mask:linear-gradient(#000 calc(100% - 260px), transparent)}
.cy > .wrap{position:relative}
.cy-tete{max-width:820px; margin:0 auto; text-align:center}
.cy-titre{margin:0; font-family:var(--titre); font-weight:500; font-size:clamp(32px,3.8vw,54px); line-height:1.1; letter-spacing:-.025em; text-wrap:balance}
.cy-titre em{font-style:italic; color:#8C8C86}
.cy-desc{max-width:62ch; margin:20px auto 0; font-size:clamp(16.5px,1.25vw,18.5px); line-height:1.7; color:#4F4F4B}

/* --- Le rythme d'une semaine : 3 colonnes reliées par des flèches ----------------------- */
.cy-rythme{display:grid; grid-template-columns:1fr 44px 1fr 44px 1fr; align-items:start; max-width:1100px; margin:clamp(40px,4.5vw,56px) auto 0; padding:0; list-style:none}
.cy-r{display:grid; justify-items:center; gap:12px; text-align:center}
.cy-r b{padding:6px 13px; border-radius:7px; background:var(--noir); color:var(--ivoire); font-size:13.5px; font-weight:750}
.cy-r span{max-width:30ch; font-size:16.5px; font-weight:600; line-height:1.45; text-wrap:balance}
.cy-fl{position:relative; height:1.5px; margin-top:16px; background:rgba(8,8,8,.35)}
.cy-fl::after{content:""; position:absolute; right:-1px; top:-4px; border:4.5px solid transparent; border-left:6px solid rgba(8,8,8,.35); border-right:0}

/* --- Le bandeau ------------------------------------------------------------------- */
.cy-sprints{--pointe:20px; display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); margin:clamp(36px,4vw,52px) auto 0; padding:0; list-style:none}
.cy-sprint{position:relative; display:flex; flex-direction:column; min-height:172px; margin-right:-10px; padding:26px 16px 24px calc(var(--pointe) + 16px);
  clip-path:polygon(0 0, calc(100% - var(--pointe)) 0, 100% 50%, calc(100% - var(--pointe)) 100%, 0 100%, var(--pointe) 50%)}
.cy-sprint:first-child{padding-left:28px; border-radius:var(--r-carte) 0 0 var(--r-carte); clip-path:polygon(0 0, calc(100% - var(--pointe)) 0, 100% 50%, calc(100% - var(--pointe)) 100%, 0 100%)}
.cy-sprint:last-child{margin-right:0; border-radius:0 var(--r-carte) var(--r-carte) 0; clip-path:polygon(0 0, 100% 0, 100% 100%, 0 100%, var(--pointe) 50%)}
.cy-sprint:nth-child(1){background:#FFFFFF; z-index:5}
.cy-sprint:nth-child(2){background:#EFEFEA; z-index:4}
.cy-sprint:nth-child(3){background:#E3E3DC; z-index:3}
.cy-sprint:nth-child(4){background:#D5D5CD; z-index:2}
.cy-sprint--suite{z-index:1; background:var(--noir); color:var(--ivoire)}
.cy-k{margin:0; font-size:14px; font-weight:600; color:#77776F}
.cy-sprint--suite .cy-k{color:rgba(233,233,228,.6)}
.cy-sprint h3{margin:6px 0 0; font-family:var(--titre); font-weight:500; font-size:clamp(30px,3vw,44px); line-height:1; letter-spacing:-.02em; white-space:nowrap}
.cy-sprint--suite h3{font-size:clamp(22px,2vw,30px); line-height:1.4}
.cy-pied{display:grid; gap:7px; margin:auto 0 0; padding:20px 0 0; list-style:none; font-size:14px; font-weight:600; line-height:1.3}
.cy-pied li{display:flex; align-items:center; gap:9px}
.cy-pied li::before{content:""; flex:none; width:7px; height:7px; border-radius:50%; background:var(--noir)}
.cy-sprint--suite .cy-pied li::before{background:var(--ivoire)}

/* apparition l'une après l'autre */
html.js-reveal .cy-sprint{opacity:0; translate:-14px 0; transition:opacity .6s calc(var(--k) * 140ms), translate .7s cubic-bezier(.2,.8,.2,1) calc(var(--k) * 140ms)}
html.js-reveal .is-vu .cy-sprint{opacity:1; translate:0 0}

.cy-fin{max-width:760px; margin:clamp(44px,5vw,64px) auto 0; text-align:center; font-family:var(--titre); font-weight:500; font-size:clamp(19px,1.8vw,25px); line-height:1.4; letter-spacing:-.015em; text-wrap:balance; color:#55554F}
.cy-fin em{font-style:italic; color:var(--noir)}

/* --- Tablette et mobile : les flèches pointent vers le bas --------------------------- */
@media (max-width:980px){
  .cy-rythme{grid-template-columns:minmax(0,1fr); justify-items:center; gap:10px}
  .cy-fl{width:1.5px; height:18px; margin:0}
  .cy-fl::after{right:-4px; top:auto; bottom:-2px; border:4.5px solid transparent; border-top:6px solid rgba(8,8,8,.35); border-bottom:0}
  .cy-r{gap:8px}
  .cy-sprints{--pointe:14px; grid-template-columns:minmax(0,1fr); max-width:440px}
  .cy-sprint, .cy-sprint:first-child, .cy-sprint:last-child{min-height:0; margin:0 0 -8px; padding:calc(var(--pointe) + 16px) 24px calc(var(--pointe) + 14px); border-radius:0;
    clip-path:polygon(0 0, 50% var(--pointe), 100% 0, 100% calc(100% - var(--pointe)), 50% 100%, 0 calc(100% - var(--pointe)))}
  .cy-sprint:first-child{padding-top:22px; border-radius:var(--r-carte) var(--r-carte) 0 0; clip-path:polygon(0 0, 100% 0, 100% calc(100% - var(--pointe)), 50% 100%, 0 calc(100% - var(--pointe)))}
  .cy-sprint:last-child{margin-bottom:0; padding-bottom:22px; border-radius:0 0 var(--r-carte) var(--r-carte); clip-path:polygon(0 0, 50% var(--pointe), 100% 0, 100% 100%, 0 100%)}
  .cy-pied{padding-top:12px}
  .cy-sprint--suite h3{line-height:1.2}
  html.js-reveal .cy-sprint{translate:0 -10px}
}
@media (prefers-reduced-motion:reduce){ html.js-reveal .cy-sprint{opacity:1; translate:none; transition:none} }
