/* =========================================================
   Clara Geoffrion — Étude de cas enrichie (pages /projets/*)
   S'appuie sur les jetons de style.css (thème clair/sombre).
   ========================================================= */

.cs { --w: 1240px; --cs-r: clamp(16px, 2vw, 24px); overflow-x: clip; }
.cs-wrap { max-width: var(--w); margin: 0 auto; padding: 0 var(--gutter); }
.cs em { color: var(--c-accent); }

/* ---------- Barre de progression ---------- */
.cs-progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 60; pointer-events: none; }
.cs-progress i { display: block; height: 100%; background: var(--c-accent); transform-origin: left; transform: scaleX(0); }

/* ---------- Hero ---------- */
.cs-hero { max-width: var(--w); margin: 0 auto; padding: clamp(24px, 5vh, 56px) var(--gutter) clamp(40px, 7vh, 80px); }
.cs-hero .proj-back { margin-bottom: clamp(28px, 5vh, 56px); }
.cs-hero__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(20px, 3vh, 32px); }
.cs-hero__tags .pill:not(.pill--volt) { color: var(--c-titanium); }
.cs-hero__title {
  font-size: clamp(4rem, 15vw, 13.5rem); font-weight: 500; letter-spacing: -.065em; line-height: .86;
  margin-bottom: clamp(24px, 4vh, 44px);
}
.cs-line { display: block; overflow: hidden; padding-bottom: .06em; }
.cs-line > span { display: inline-block; }
.cs-hero__row { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: end; }
.cs-hero__lead { font-size: clamp(1.375rem, 2.6vw, 2.25rem); line-height: 1.2; letter-spacing: -.025em; max-width: 30ch; }
.cs-hero__lead em { font-size: 1.12em; }

.cs-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cs-meta div {
  padding: 16px 18px; border-radius: 14px; background: var(--c-ink); border: 1px solid var(--c-line);
}
.cs-meta dt { font-family: var(--f-mono); font-size: .6875rem; letter-spacing: .12em; text-transform: uppercase; color: var(--c-titanium); margin-bottom: 6px; }
.cs-meta dd { font-size: 1.0625rem; font-weight: 500; letter-spacing: -.01em; }

/* ---------- Couverture vidéo ---------- */
.cs-cover { padding: 0 var(--gutter); margin-bottom: clamp(80px, 14vh, 160px); }
.cs-cover__frame {
  max-width: 1600px; margin: 0 auto; border-radius: var(--cs-r); overflow: hidden; background: #000; line-height: 0;
  transform: scale(var(--cover-s, .92)); transform-origin: 50% 0; will-change: transform;
}
.cs-cover video { width: 100%; height: auto; display: block; }

/* ---------- Libellé de section ---------- */
.cs-label { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-mono); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--c-titanium); }
.cs-label b { font-weight: 500; color: var(--c-accent); }
.cs-label::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c-volt); flex: none; }

/* ---------- Énoncé (mots qui s'allument) ---------- */
.cs-statement { margin-bottom: clamp(72px, 12vh, 140px); }
.cs-statement .cs-label { margin-bottom: clamp(20px, 3vh, 32px); }
.cs-words { font-size: clamp(1.875rem, 4.6vw, 4.25rem); font-weight: 500; letter-spacing: -.04em; line-height: 1.04; max-width: 20ch; }
.cs-words .w { opacity: .18; transition: opacity .5s var(--ease-out); }
.cs-words .w.on { opacity: 1; }
.cs-words em { font-size: 1.12em; letter-spacing: -.01em; }

/* ---------- Chiffres ---------- */
.cs-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 1.6vw, 20px); margin-bottom: clamp(96px, 16vh, 180px); }
.cs-stat { position: relative; padding: clamp(24px, 3vw, 40px); border-radius: var(--cs-r); background: var(--c-ink); border: 1px solid var(--c-line); overflow: hidden; min-height: 240px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.cs-stat__num { font-size: clamp(4rem, 9vw, 8.5rem); font-weight: 500; letter-spacing: -.07em; line-height: .8; margin-bottom: 18px; }
.cs-stat p { color: var(--c-titanium); max-width: 22ch; }
.cs-stat--lime { background: var(--c-volt); border-color: var(--c-volt); color: var(--c-onbright); }
.cs-stat--lime p { color: var(--c-onbright); opacity: .72; }
.cs-stat--coral { background: var(--c-orange); border-color: var(--c-orange); color: var(--c-onbright); }
.cs-stat--coral p { color: var(--c-onbright); opacity: .78; }
.cs-stat .label { color: inherit; opacity: .6; }

/* ---------- Bloc texte (libellé collant + contenu) ---------- */
.cs-block { display: grid; grid-template-columns: minmax(160px, 1fr) 2.4fr; gap: clamp(24px, 6vw, 96px); align-items: start; margin-bottom: clamp(72px, 12vh, 140px); }
.cs-block__aside { position: sticky; top: 32px; }
.cs-block__body { display: grid; gap: 1.25rem; }
.cs-block__body p { line-height: 1.7; max-width: 62ch; opacity: .92; }
.cs-h2 { font-size: clamp(2rem, 4.2vw, 3.75rem); font-weight: 500; letter-spacing: -.045em; line-height: 1; max-width: 18ch; margin-bottom: .5rem; }
.cs-h2 em { font-size: 1.12em; letter-spacing: -.01em; }

/* ---------- Médias ---------- */
.cs-media { margin-bottom: clamp(72px, 12vh, 140px); }
.cs-media__grid { display: grid; gap: clamp(12px, 1.6vw, 20px); }
.cs-media__grid--pair { grid-template-columns: 1fr 1fr; }
.cs-shot { margin: 0; }
.cs-shot__frame { position: relative; border-radius: var(--cs-r); overflow: hidden; background: var(--c-ink); border: 1px solid var(--c-line); }
.cs-shot__frame img { width: 100%; height: auto; display: block; transform: translateY(var(--py, 0)) scale(1.06); will-change: transform; }
.cs-shot figcaption { display: flex; justify-content: space-between; gap: 16px; margin-top: 12px; font-family: var(--f-mono); font-size: .6875rem; letter-spacing: .12em; text-transform: uppercase; color: var(--c-titanium); }

/* ---------- Bande lavande (objectifs) ---------- */
.cs-band { background: var(--c-pale); color: var(--c-onbright); padding: clamp(80px, 14vh, 160px) 0; margin-bottom: clamp(72px, 12vh, 140px); border-radius: clamp(24px, 3vw, 40px); margin-left: clamp(8px, 1vw, 16px); margin-right: clamp(8px, 1vw, 16px); }
.cs-band em { color: #2337D6; }
.cs-band .cs-label { color: rgba(14,15,20,.65); }
.cs-band .cs-label b { color: #2337D6; }
.cs-band .cs-label::before { background: #2337D6; }
.cs-band__head { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 80px); align-items: end; margin-bottom: clamp(40px, 7vh, 72px); }
.cs-band__head .cs-label { margin-bottom: 20px; }
.cs-band__head p { font-size: 1.125rem; line-height: 1.55; opacity: .8; max-width: 44ch; }
.cs-goals { display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(10px, 1.4vw, 16px); }
.cs-goal { grid-column: span 2; padding: clamp(22px, 2.4vw, 32px); border-radius: 18px; background: #FFFFFF; display: flex; flex-direction: column; gap: 40px; min-height: 220px; transition: transform .6s var(--ease-out); }
.cs-goal:nth-child(4), .cs-goal:nth-child(5) { grid-column: span 3; }
.cs-goal:hover { transform: translateY(-6px); }
.cs-goal__num { font-family: var(--f-mono); font-size: .75rem; letter-spacing: .12em; color: #2337D6; display: flex; justify-content: space-between; align-items: center; }
.cs-goal__num i { width: 28px; height: 28px; border-radius: 50%; background: var(--c-volt); display: block; }
.cs-goal:nth-child(even) .cs-goal__num i { background: #FF5C39; }
.cs-goal h3 { font-size: clamp(1.25rem, 1.7vw, 1.5rem); font-weight: 500; letter-spacing: -.025em; line-height: 1.15; margin-top: auto; }
.cs-goal p { font-size: .9375rem; line-height: 1.5; opacity: .72; }

/* ---------- Constat (irritants) ---------- */
.cs-pains { display: grid; gap: 0; margin: clamp(8px, 2vh, 20px) 0 clamp(32px, 6vh, 64px); border-top: 1px solid var(--c-line); }
.cs-pains li { display: grid; grid-template-columns: 150px 1fr; gap: clamp(16px, 3vw, 40px); align-items: baseline; padding: 20px 0; border-bottom: 1px solid var(--c-line); }
.cs-pains__tag { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-mono); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--c-accent); }
.cs-pains__tag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c-orange); flex: none; }
.cs-pains p { line-height: 1.6; opacity: .92; max-width: 58ch; }
@media (max-width: 600px) { .cs-pains li { grid-template-columns: 1fr; gap: 6px; } }

/* ---------- Question + défis ---------- */
.cs-block__body .cs-question { font-size: clamp(1.625rem, 3.2vw, 2.75rem); font-weight: 500; letter-spacing: -.035em; line-height: 1.12; max-width: 26ch; margin-bottom: clamp(24px, 4vh, 40px); }
.cs-question em { font-size: 1.12em; }
.cs-challenges { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(12px, 1.6vw, 20px); }
.cs-challenge { padding: clamp(22px, 2.6vw, 34px); border-radius: var(--cs-r); border: 1px solid var(--c-line); background: var(--c-ink); display: grid; gap: 14px; align-content: start; }
.cs-challenge h3 { font-size: 1.25rem; font-weight: 500; letter-spacing: -.02em; }
.cs-challenge p { color: var(--c-titanium); line-height: 1.6; }
.pill--pale { background: var(--c-pale); border-color: var(--c-pale); color: var(--c-onbright); }
.cs-challenge--wide { grid-column: 1 / -1; }
.cs-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 6px; }
.cs-metrics li { display: grid; gap: 6px; padding: 16px; border-radius: 14px; background: var(--c-black); border: 1px solid var(--c-line); }
.cs-metrics b { font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 500; letter-spacing: -.04em; line-height: 1; color: var(--c-accent); }
.cs-metrics span { font-size: .875rem; line-height: 1.4; color: var(--c-titanium); }
@media (max-width: 760px) { .cs-metrics { grid-template-columns: 1fr 1fr; } }
.pill--coral { background: var(--c-orange); border-color: var(--c-orange); color: var(--c-onbright); }

/* ---------- Bandeau défilant ---------- */
.cs-marquee { background: var(--c-volt); color: var(--c-onbright); padding: clamp(18px, 2.6vh, 28px) 0; margin-bottom: clamp(72px, 12vh, 140px); overflow: hidden; transform: rotate(-1.2deg); margin-left: -2vw; margin-right: -2vw; }
.cs-marquee__track { display: flex; width: max-content; animation: cs-marquee 38s linear infinite; }
.cs-marquee span { display: inline-flex; align-items: center; gap: clamp(20px, 3vw, 40px); padding-right: clamp(20px, 3vw, 40px); font-size: clamp(1.5rem, 3.4vw, 3rem); font-weight: 500; letter-spacing: -.035em; white-space: nowrap; }
.cs-marquee span:nth-child(even) { font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }
.cs-marquee span::after { content: "✦"; font-family: var(--f-sans); font-style: normal; font-size: .5em; }
@keyframes cs-marquee { to { transform: translateX(-50%); } }

/* ---------- Démarche (étapes) ---------- */
.cs-process { margin-bottom: clamp(56px, 9vh, 100px); }
.cs-process__head { display: grid; grid-template-columns: minmax(160px, 1fr) 2.4fr; gap: clamp(24px, 6vw, 96px); margin-bottom: clamp(40px, 7vh, 72px); }
.cs-steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2vw, 28px); padding-top: 36px; }
.cs-steps__line { position: absolute; top: 7px; left: 0; right: 0; height: 2px; background: var(--c-line); }
.cs-steps__line i { display: block; height: 100%; background: var(--c-accent); transform-origin: left; transform: scaleX(var(--line, 0)); }
.cs-step { position: relative; display: grid; gap: 12px; align-content: start; }
.cs-step::before { content: ""; position: absolute; top: -36px; left: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--c-black); border: 2px solid var(--c-accent); transition: background .5s var(--ease-out); }
.cs-step.is-in::before { background: var(--c-accent); }
.cs-step__num { font-family: var(--f-mono); font-size: .75rem; letter-spacing: .12em; color: var(--c-accent); }
.cs-step h3 { font-size: clamp(1.25rem, 1.8vw, 1.625rem); font-weight: 500; letter-spacing: -.03em; line-height: 1.1; }
.cs-step p { color: var(--c-titanium); line-height: 1.6; font-size: .975rem; }

/* ---------- Résultats ---------- */
.cs-results { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(12px, 1.6vw, 20px); margin-top: clamp(16px, 3vh, 32px); }
.cs-result { padding: clamp(22px, 2.4vw, 32px); border-radius: var(--cs-r); background: var(--c-ink); border: 1px solid var(--c-line); display: grid; gap: 18px; align-content: start; }
.cs-result__icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--c-volt); color: var(--c-onbright); }
.cs-result:nth-child(2) .cs-result__icon { background: var(--c-orange); }
.cs-result:nth-child(3) .cs-result__icon { background: var(--c-pale); }
.cs-result__icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cs-result h3 { font-size: 1.1875rem; font-weight: 500; letter-spacing: -.02em; line-height: 1.2; }
.cs-result p { color: var(--c-titanium); line-height: 1.55; font-size: .975rem; }

.cs-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(12px, 1.6vw, 20px); margin-top: clamp(8px, 2vh, 20px); }
.cs-kpis .cs-stat { min-height: 220px; }
.cs-stat__num small { font-size: .32em; letter-spacing: -.02em; font-weight: 500; }
.cs-result:nth-child(4) .cs-result__icon { background: var(--c-navy); color: #fff; }
@media (max-width: 600px) { .cs-kpis { grid-template-columns: 1fr; } }

/* ---------- Citation ---------- */
.cs-quote { margin: 0 auto clamp(80px, 14vh, 160px); text-align: center; max-width: 1000px; padding: 0 var(--gutter); }
.cs-quote__mark { font-family: var(--f-serif); font-size: clamp(5rem, 10vw, 9rem); line-height: .5; color: var(--c-accent); display: block; height: .45em; }
.cs-quote p { font-family: var(--f-serif); font-style: italic; font-size: clamp(1.75rem, 4vw, 3.5rem); line-height: 1.12; letter-spacing: -.015em; }
.cs-quote footer { margin-top: 24px; font-family: var(--f-mono); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--c-titanium); }

/* ---------- Appel à l'action (cobalt + lime) ---------- */
.cs-cta { margin: 0 clamp(8px, 1vw, 16px) clamp(56px, 9vh, 100px); border-radius: clamp(24px, 3vw, 40px); background: var(--c-navy); color: var(--c-volt); padding: clamp(64px, 12vh, 140px) 0; overflow: hidden; position: relative; }
.cs-cta .cs-wrap { display: grid; grid-template-columns: 1.5fr 1fr; gap: 32px; align-items: end; }
.cs-cta .cs-label { color: var(--c-volt); opacity: .85; margin-bottom: 20px; }
.cs-cta .cs-label::before { background: var(--c-volt); }
.cs-cta h2 { font-size: clamp(2.5rem, 6.4vw, 6rem); font-weight: 500; letter-spacing: -.055em; line-height: .95; }
.cs-cta h2 em { color: var(--c-volt); font-size: 1.12em; letter-spacing: -.02em; }
.cs-cta__side { display: grid; gap: 24px; justify-items: start; }
.cs-cta__side p { color: #F3F1EA; opacity: .9; max-width: 34ch; line-height: 1.55; }
.cs-btn { display: inline-flex; align-items: center; gap: 12px; height: 56px; padding: 0 26px; border-radius: 999px; background: var(--c-volt); color: #0E0F14; font-weight: 500; transition: gap .4s var(--ease-out), transform .4s var(--ease-out); }
.cs-btn:hover { gap: 18px; transform: translateY(-2px); }
.cs-cta__orb { position: absolute; right: -6vw; top: -10vw; width: 28vw; height: 28vw; border-radius: 50%; border: 1px solid rgba(228,245,110,.35); pointer-events: none; transform: translateY(var(--py, 0)); }
.cs-cta__orb + .cs-cta__orb { right: 4vw; top: auto; bottom: -14vw; width: 20vw; height: 20vw; }

/* ---------- Projet suivant ---------- */
.cs-next { margin-bottom: clamp(56px, 9vh, 96px); }
.cs-next__main { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 24px; padding: clamp(28px, 4vw, 48px) 0; border-top: 1px solid var(--c-line); border-bottom: 1px solid var(--c-line); margin-bottom: 24px; }
.cs-next__main .cs-label { margin-bottom: 14px; }
.cs-next__title { font-size: clamp(3rem, 10vw, 9rem); font-weight: 500; letter-spacing: -.065em; line-height: .85; transition: color .4s; }
.cs-next__arrow { width: clamp(56px, 7vw, 96px); height: clamp(56px, 7vw, 96px); border-radius: 50%; display: grid; place-items: center; background: var(--c-volt); color: #0E0F14; font-size: clamp(1.5rem, 2.4vw, 2.25rem); transition: transform .6s var(--ease-out); }
.cs-next__main:hover .cs-next__title { color: var(--c-accent); }
.cs-next__main:hover .cs-next__arrow { transform: rotate(-45deg); }
.cs-next .proj-more__grid { grid-template-columns: repeat(3, 1fr); }
.cs-next .proj-more__card { border-radius: 14px; background: var(--c-ink); }
.cs-next .proj-more__card:hover { border-color: var(--c-accent); }

/* =========================================================
   Animations au défilement
   ========================================================= */
.js-anim [data-anim] { opacity: 0; transform: translateY(32px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); transition-delay: var(--d, 0s); }
.js-anim [data-anim="fade"] { transform: none; }
.js-anim [data-anim="left"] { transform: translateX(-32px); }
.js-anim [data-anim].is-in { opacity: 1; transform: none; }

.js-anim [data-stagger] > * { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.js-anim [data-stagger].is-in > * { opacity: 1; transform: none; }
.js-anim [data-stagger].is-in > *:nth-child(2) { transition-delay: .08s; }
.js-anim [data-stagger].is-in > *:nth-child(3) { transition-delay: .16s; }
.js-anim [data-stagger].is-in > *:nth-child(4) { transition-delay: .24s; }
.js-anim [data-stagger].is-in > *:nth-child(5) { transition-delay: .32s; }

/* Image : rideau qui s'ouvre */
.js-anim .cs-shot__frame { clip-path: inset(12% 6% 12% 6% round var(--cs-r)); transition: clip-path 1.2s var(--ease-out); }
.js-anim .cs-shot.is-in .cs-shot__frame { clip-path: inset(0 0 0 0 round var(--cs-r)); }

/* Titre du hero */
.js-anim .cs-line > span { transform: translateY(105%); transition: transform 1.1s var(--ease-out) .1s; }
.js-anim .cs-hero.is-in .cs-line > span { transform: none; }

@media (prefers-reduced-motion: reduce) {
  .cs-marquee__track { animation: none; }
  .cs-cover__frame { transform: none; }
  .cs-shot__frame img { transform: none; }
  .cs-words .w { opacity: 1; }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 960px) {
  .cs-hero__row, .cs-band__head, .cs-cta .cs-wrap, .cs-process__head { grid-template-columns: 1fr; }
  .cs-block { grid-template-columns: 1fr; gap: 16px; }
  .cs-block__aside { position: static; }
  .cs-goals { grid-template-columns: 1fr 1fr; }
  .cs-goal, .cs-goal:nth-child(4), .cs-goal:nth-child(5) { grid-column: span 1; }
  .cs-goal:nth-child(5) { grid-column: span 2; }
  .cs-steps { grid-template-columns: 1fr 1fr; row-gap: 56px; }
  .cs-steps__line { display: none; }
  .cs-step::before { top: -28px; }
  .cs-results { grid-template-columns: 1fr; }
  .cs-stats { grid-template-columns: 1fr 1fr; }
  .cs-stats .cs-stat:last-child { grid-column: span 2; }
}
@media (max-width: 600px) {
  .cs-meta { grid-template-columns: 1fr 1fr; }
  .cs-stats, .cs-challenges, .cs-media__grid--pair, .cs-goals, .cs-steps { grid-template-columns: 1fr; }
  .cs-stats .cs-stat:last-child, .cs-goal:nth-child(5) { grid-column: auto; }
  .cs-stat { min-height: 180px; }
  .cs-next .proj-more__grid { grid-template-columns: 1fr; }
  .cs-next__main { grid-template-columns: 1fr; }
  .cs-cta__orb { display: none; }
}

/* Prototype Figma intégré : téléphone libre + texte
   L'iframe est rendu à 500×900 (le téléphone y mesure 375×779, centré),
   puis mis à l'échelle et recadré sur le contour du téléphone. */
.cs-proto { display: grid; grid-template-columns: 1fr auto; gap: clamp(32px, 7vw, 120px); align-items: center; margin-bottom: clamp(72px, 12vh, 140px); }
.cs-proto__text { display: grid; gap: 1.25rem; max-width: 52ch; }
.cs-proto__hint { font-family: var(--f-mono); font-size: .6875rem; letter-spacing: .12em; text-transform: uppercase; color: var(--c-titanium); }
.cs-proto__device { --s: .82; position: relative; width: calc(375px * var(--s)); height: calc(778px * var(--s)); border-radius: calc(58px * var(--s)); overflow: hidden; }
.cs-proto__device iframe { position: absolute; left: calc(-62.5px * var(--s)); top: calc(-61px * var(--s)); width: 500px; height: 900px; border: 0; display: block; transform: scale(var(--s)); transform-origin: 0 0; }
@media (max-width: 1100px) { .cs-proto__device { --s: .72; } }
@media (max-width: 760px) {
  .cs-proto { grid-template-columns: 1fr; }
  .cs-proto__device { justify-self: center; --s: .75; }
}

/* Démarche en 5 étapes */
@media (min-width: 961px) { .cs-steps--5 { grid-template-columns: repeat(5, 1fr); } }
.cs-cover img { width: 100%; height: auto; display: block; }
.cs-pains--personas li { grid-template-columns: 220px 1fr; }
@media (max-width: 600px) { .cs-pains--personas li { grid-template-columns: 1fr; } }

/* ---------- Écrans dans un ordinateur portable (+ carrousel) ---------- */
.cs-device { margin: 0 auto; max-width: 1120px; }
.cs-laptop { position: relative; padding: 0 6%; }
.cs-laptop__lid {
  background: #0c0d11; border: 1px solid #2a2c33; border-bottom: 0;
  border-radius: clamp(10px, 1.6vw, 22px) clamp(10px, 1.6vw, 22px) 0 0;
  padding: clamp(8px, 1.6%, 20px) clamp(8px, 1.6%, 20px) clamp(10px, 2.2%, 26px);
  box-shadow: 0 40px 80px -40px rgba(0,0,0,.55);
}
.cs-laptop__screen { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #fff; border-radius: 3px; }
.cs-laptop__screen > img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.cs-laptop__base {
  position: relative; height: clamp(10px, 1.5vw, 20px);
  background: linear-gradient(#dcdde1, #a9abb2 70%, #8d8f96);
  border-radius: 0 0 clamp(10px, 1.6vw, 22px) clamp(10px, 1.6vw, 22px) / 0 0 100% 100%;
  margin: 0 -6%;
}
.cs-laptop__base::before { content: ""; position: absolute; left: 50%; top: 0; width: 14%; height: 45%; transform: translateX(-50%); background: #9c9ea5; border-radius: 0 0 8px 8px; }
.cs-device figcaption { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 20px; padding: 0 6%; font-family: var(--f-mono); font-size: .6875rem; letter-spacing: .12em; text-transform: uppercase; color: var(--c-titanium); }
.cs-device figcaption b { font-weight: inherit; color: var(--c-accent); }

.cs-carousel { position: absolute; inset: 0; overflow: hidden; touch-action: pan-y; cursor: grab; }
.cs-carousel__track { display: flex; height: 100%; transition: transform .8s var(--ease-out); }
.cs-carousel__track img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; user-select: none; -webkit-user-drag: none; }
.cs-carousel__ctrl { display: inline-flex; align-items: center; gap: 12px; }
.cs-carousel__btn { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--c-line); background: transparent; color: var(--c-ink-text, currentColor); font: inherit; font-size: .875rem; cursor: pointer; transition: border-color .3s, color .3s; }
.cs-carousel__btn:hover, .cs-carousel__btn:focus-visible { border-color: var(--c-accent); color: var(--c-accent); }
.cs-carousel__dots { display: inline-flex; gap: 6px; }
.cs-carousel__dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 99px; background: var(--c-line); cursor: pointer; transition: width .4s var(--ease-out), background .3s; }
.cs-carousel__dots button[aria-current="true"] { width: 24px; background: var(--c-accent); }
@media (max-width: 600px) {
  .cs-laptop, .cs-device figcaption { padding: 0 2%; }
  .cs-laptop__base { margin: 0 -2%; }
  .cs-device figcaption { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) { .cs-carousel__track { transition: none; } }

/* ---------- Vitrine colorée (carrousel dans un ordinateur) ---------- */
.cs-showcase {
  position: relative; overflow: hidden; margin: 0;
  display: grid; justify-items: center; gap: clamp(24px, 4vh, 40px);
  padding: clamp(24px, 4vw, 56px) clamp(16px, 6vw, 96px) clamp(28px, 5vw, 56px);
  border-radius: clamp(24px, 3vw, 40px);
  background: #2337D6;
  color: #fff;
}
.cs-showcase::before { /* fine grille décorative */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .14;
  background-image: linear-gradient(rgba(255,255,255,.5) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.5) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(70% 70% at 50% 40%, #000, transparent);
  -webkit-mask-image: radial-gradient(70% 70% at 50% 40%, #000, transparent);
}
.cs-showcase > * { position: relative; }
.cs-showcase__head { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.cs-showcase__tag { font-family: var(--f-mono); font-size: .6875rem; letter-spacing: .14em; text-transform: uppercase; color: #0E0F14; background: var(--c-volt); padding: 8px 14px; border-radius: 99px; }
.cs-showcase .cs-laptop { width: 100%; max-width: 980px; padding: 0 6%; }
.cs-showcase .cs-laptop__lid { box-shadow: 0 50px 90px -30px rgba(8,12,60,.7); }
.cs-showcase .cs-carousel__btn { border-color: rgba(255,255,255,.35); color: #fff; background: rgba(255,255,255,.06); }
.cs-showcase .cs-carousel__btn:hover, .cs-showcase .cs-carousel__btn:focus-visible { border-color: var(--c-volt); color: #0E0F14; background: var(--c-volt); }
.cs-showcase .cs-carousel__dots button { background: rgba(255,255,255,.35); }
.cs-showcase .cs-carousel__dots button[aria-current="true"] { background: var(--c-volt); }
@media (max-width: 600px) { .cs-showcase .cs-laptop { padding: 0 2%; } }

/* ---------- Vitrine lavande ---------- */
.cs-showcase--pale {
  background: #DCD6F7;
  color: #0E0F14;
}
.cs-showcase--pale::before { opacity: .22; background-image: linear-gradient(rgba(35,55,214,.35) 1px, transparent 1px), linear-gradient(90deg, rgba(35,55,214,.35) 1px, transparent 1px); }
.cs-showcase--pale .cs-showcase__tag { background: #2337D6; color: #fff; }

/* ---------- Animation « Opérations en lot » (reproduction du prototype) ---------- */
.bo { --k: 1; position: relative; width: 100%; max-width: 1000px; aspect-ratio: 1000 / 640; }
.bo-stage { position: absolute; left: 0; top: 0; width: 1000px; height: 640px; transform: scale(var(--k)); transform-origin: 0 0;
  font-family: 'Roboto', system-ui, sans-serif; color: #1B1F2A; font-size: 15px; line-height: 1.35; }
.bo-modal { position: absolute; left: 70px; top: 20px; width: 860px; height: 600px; background: #fff; border-radius: 10px; overflow: hidden;
  box-shadow: 0 40px 80px -30px rgba(14,15,40,.45), 0 0 0 1px rgba(14,15,40,.06); }
.bo-scr { position: absolute; inset: 0; display: flex; flex-direction: column; opacity: 0; visibility: hidden; transform: translateX(24px); transition: opacity .45s ease, transform .55s cubic-bezier(.2,.8,.2,1), visibility 0s .55s; }
.bo-scr.is-on { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.bo-scr header { display: flex; justify-content: space-between; align-items: center; padding: 22px 30px; border-bottom: 1px solid #E6E8EE; color: #1F5BFF; font-size: 19px; font-weight: 500; }
.bo-scr header i { font-style: normal; font-size: 18px; }
.bo-body { flex: 1; padding: 20px 30px; overflow: hidden; }
.bo-scr footer { display: flex; justify-content: flex-end; gap: 12px; padding: 16px 30px; border-top: 1px solid #E6E8EE; }
.bo-lead { margin: 0 0 14px; font-size: 15px; }
.bo-label { margin: 18px 0 10px; font-size: 11px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: #3B4152; }
.bo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bo-card { position: relative; display: grid; grid-template-columns: 40px 1fr 14px; gap: 14px; align-items: center; padding: 14px 16px; border: 1px solid #E3E6EC; border-radius: 8px; transition: background .25s, border-color .25s, box-shadow .25s; }
.bo-card b { display: block; font-size: 15px; font-weight: 500; }
.bo-card small { display: block; font-size: 12.5px; color: #4A5060; }
.bo-chev { font-style: normal; font-size: 22px; color: #5B6170; }
.bo-ico { width: 40px; height: 40px; border-radius: 8px; display: grid; place-items: center; background: #E9EFFE; color: #1F5BFF; }
.bo-ico svg { width: 20px; height: 20px; }
.bo-ico--grey { background: #EEF0F4; color: #4A5060; }
.bo-card--danger .bo-ico { background: #FDE7E7; color: #D32F2F; }
.bo-card.is-hover { background: #EEF3FF; border-color: #1F5BFF; box-shadow: 0 0 0 1px #1F5BFF inset; }
.bo-card.is-hover b, .bo-card.is-hover .bo-chev { color: #1F5BFF; }

.bo-thead, .bo-row { display: grid; grid-template-columns: 230px 330px 1fr; gap: 16px; align-items: center; }
.bo-thead { font-size: 11px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: #3B4152; padding-bottom: 10px; border-bottom: 1px solid #E6E8EE; }
.bo-row { padding: 9px 0; border-bottom: 1px solid #EEF0F4; }
.bo-orig { display: grid; grid-template-columns: 54px 1fr; column-gap: 8px; }
.bo-orig em { grid-row: span 2; font-style: normal; font-size: 13px; color: #5B6170; font-family: 'Geist Mono', monospace; padding-top: 1px; }
.bo-orig b { font-weight: 500; font-size: 14.5px; }
.bo-orig small { font-size: 12px; color: #5B6170; }
.bo-seg { display: grid; grid-template-columns: 1.2fr 1fr .8fr; border: 1px solid #C9CEDA; border-radius: 5px; overflow: hidden; font-size: 13px; font-weight: 500; }
.bo-seg > span { padding: 8px 6px; text-align: center; border-left: 1px solid #C9CEDA; transition: background .25s, color .25s; }
.bo-seg > span:first-child { border-left: 0; }
.bo-seg > span.on { background: #1F5BFF; color: #fff; }
.bo-new { position: relative; color: #9AA0AE; font-size: 14px; }
.bo-field { display: none; align-items: center; height: 36px; padding: 0 12px; border: 1px solid #C9CEDA; border-radius: 5px; color: #1B1F2A; font-size: 13.5px; transition: border-color .25s; }
.bo-field::before { content: "⌕"; margin-right: 8px; color: #5B6170; font-size: 16px; }
.bo-val { display: none; font-weight: 500; }
.bo-ph { color: #8A90A0; }
.is-replace .bo-field { display: flex; }
.is-open .bo-field { border-color: #1F5BFF; box-shadow: 0 0 0 1px #1F5BFF inset; }
.is-picked .bo-ph { display: none; }
.is-picked .bo-val { display: inline; }
.bo-dd { position: absolute; z-index: 3; left: 0; right: 0; top: 40px; display: grid; background: #fff; border: 1px solid #E3E6EC; border-radius: 6px; box-shadow: 0 16px 32px -12px rgba(14,15,40,.3); opacity: 0; transform: translateY(-6px); pointer-events: none; transition: opacity .25s, transform .25s; }
.is-open .bo-dd { opacity: 1; transform: none; }
.bo-dd span { padding: 10px 12px; font-size: 13.5px; color: #1B1F2A; font-family: 'Geist Mono', monospace; transition: background .2s; }
.bo-dd span i { font-style: normal; font-family: 'Roboto', system-ui, sans-serif; margin-left: 10px; }
.bo-dd span.is-hover { background: #EEF3FF; }

.bo-btn { display: inline-flex; align-items: center; padding: 10px 16px; border-radius: 5px; background: #1F5BFF; color: #fff; font-size: 14px; font-weight: 500; transition: transform .15s, background .25s; }
.bo-btn--ghost { background: #fff; color: #1F5BFF; box-shadow: 0 0 0 1px #9DB6FF inset; }
.bo-btn--dark { background: #16213F; }
.is-picked [data-k="continue"] { background: #1F5BFF; }
.is-press { transform: scale(.96); }

.bo-recap { display: grid; gap: 4px; padding: 16px 18px; background: #F4F6F9; border-radius: 8px; font-size: 14px; }
.bo-recap b { font-weight: 500; }
.bo-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 16px 0; }
.bo-stats > div { display: flex; gap: 14px; align-items: center; padding: 16px; border: 1px solid #E3E6EC; border-radius: 8px; }
.bo-stats b { display: block; font-size: 24px; font-weight: 700; }
.bo-stats small { font-size: 13px; color: #4A5060; }
.bo-note { margin: 0; font-size: 13.5px; color: #4A5060; }

.bo-center { display: grid; place-content: center; justify-items: center; gap: 10px; text-align: center; }
.bo-center b { font-size: 20px; font-weight: 500; }
.bo-center small { font-size: 14px; color: #4A5060; }
.bo-spin { width: 34px; height: 34px; border-radius: 50%; border: 3px solid #DCE5FF; border-top-color: #1F5BFF; animation: bo-spin .8s linear infinite; margin-bottom: 6px; }
@keyframes bo-spin { to { transform: rotate(360deg); } }
.bo-bar { width: 320px; height: 6px; border-radius: 9px; background: #EEF0F4; overflow: hidden; margin-top: 10px; }
.bo-bar i { display: block; height: 100%; width: 0; background: #1F5BFF; border-radius: inherit; }
[data-s="progress"].is-on .bo-bar i { width: 100%; transition: width 2s cubic-bezier(.4,.1,.3,1) .2s; }
.bo-check { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: #E3F6EA; color: #1E9E52; margin-bottom: 6px; transform: scale(.4); opacity: 0; }
.bo-check svg { width: 32px; height: 32px; }
[data-s="done"].is-on .bo-check { transform: none; opacity: 1; transition: transform .6s cubic-bezier(.3,1.6,.5,1) .15s, opacity .3s .15s; }

.bo-cursor { position: absolute; left: 0; top: 0; width: 26px; height: 26px; z-index: 5; transform: translate(var(--cx, 940px), var(--cy, 600px)); transition: transform .85s cubic-bezier(.45,.05,.25,1); filter: drop-shadow(0 2px 3px rgba(0,0,0,.25)); transition: transform .85s cubic-bezier(.45,.05,.25,1), opacity .4s; }
.bo-cursor.is-click { animation: bo-click .3s ease; }
@keyframes bo-click { 50% { scale: .82; } }

/* ---------- Vitrine lime : mosaïque du design system ---------- */
.cs-showcase--volt {
  background: #E4F56E;
  color: #0E0F14;
}
.cs-showcase--volt::before { opacity: .18; background-image: linear-gradient(rgba(14,15,20,.35) 1px, transparent 1px), linear-gradient(90deg, rgba(14,15,20,.35) 1px, transparent 1px); }
.cs-showcase--volt .cs-showcase__tag { background: #0E0F14; color: #E4F56E; }
.cs-ds { width: 100%; display: grid; grid-template-columns: 1.7fr 1fr; gap: clamp(10px, 1.4vw, 18px); }
.cs-ds__tile { background: #fff; border-radius: clamp(12px, 1.4vw, 18px); padding: clamp(10px, 1.6vw, 22px); box-shadow: 0 30px 60px -36px rgba(14,15,40,.45); display: grid; place-items: center; overflow: hidden; }
.cs-ds__tile img { width: 100%; height: auto; display: block; }
.cs-ds__tile--wide { grid-column: 1 / -1; }
.cs-ds__tile--tall img { max-width: 340px; }
@media (max-width: 700px) { .cs-ds { grid-template-columns: 1fr; } }

/* ---------- Avant / après ---------- */
.cs-ba { display: grid; grid-template-columns: 1fr; gap: clamp(40px, 7vh, 72px); }
.cs-ba__item { margin: 0; display: grid; gap: 14px; }
.cs-ba__tag { justify-self: start; font-family: var(--f-mono); font-size: .6875rem; letter-spacing: .14em; text-transform: uppercase; color: #0E0F14; padding: 8px 14px; border-radius: 999px; }
.cs-ba__tag--before { background: var(--c-orange); }
.cs-ba__tag--after { background: var(--c-volt); }
.cs-ba__frame { border-radius: clamp(14px, 1.6vw, 20px); overflow: hidden; border: 1px solid var(--c-line); }
.cs-ba__frame img { width: 100%; height: auto; display: block; }
.cs-ba__item:first-child .cs-ba__frame img { filter: saturate(.75); }
.cs-ba figcaption { font-family: var(--f-mono); font-size: .6875rem; letter-spacing: .12em; text-transform: uppercase; color: var(--c-titanium); }
@media (max-width: 760px) { .cs-ba { grid-template-columns: 1fr; } }

/* Projet suivant : grande carte avec aperçu */
.cs-next__main {
  grid-template-columns: 1fr 1.25fr; grid-template-rows: 1fr auto; align-items: stretch; gap: clamp(16px, 3vw, 40px);
  padding: clamp(12px, 1.4vw, 18px); padding-left: clamp(24px, 3.5vw, 48px);
  background: var(--c-ink); border: 1px solid var(--c-line); border-radius: var(--cs-r);
  transition: border-color .4s;
}
.cs-next__main > div { grid-column: 1; grid-row: 1; align-self: start; padding-top: clamp(16px, 2.6vw, 36px); }
.cs-next__main > .cs-next__arrow { grid-column: 1; grid-row: 2; justify-self: start; margin-bottom: clamp(12px, 2vw, 30px); }
.cs-next__img { grid-column: 2; grid-row: 1 / span 2; display: block; aspect-ratio: 16 / 10; border-radius: calc(var(--cs-r) - 6px); overflow: hidden; background: var(--c-ink-2); }
.cs-next__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1s var(--ease-out); }
.cs-next__title { font-size: clamp(2.75rem, 7vw, 6.5rem); }
.cs-next__main:hover { border-color: var(--c-accent); }
.cs-next__main:hover .cs-next__img img { transform: scale(1.05); }
@media (max-width: 760px) {
  .cs-next__main { grid-template-columns: 1fr; grid-template-rows: auto; padding: 12px 12px 24px; }
  .cs-next__img { grid-column: 1; grid-row: 1; }
  .cs-next__main > div { grid-row: 2; padding: 0 8px; }
  .cs-next__main > .cs-next__arrow { grid-row: 3; margin: 0 8px; }
}
.cs-next__head { margin-bottom: clamp(24px, 4vh, 40px); }
.cs-next__main > div { padding-top: clamp(20px, 3vw, 44px); }
.cs-next { --w: 1240px; --cs-r: clamp(16px, 2vw, 24px); margin-top: clamp(56px, 10vh, 120px); }
.cs-next em { color: var(--c-accent); }

/* Objectifs : variante à 6 cartes (3 × 2) */
.cs-goals--6 .cs-goal, .cs-goals--6 .cs-goal:nth-child(4), .cs-goals--6 .cs-goal:nth-child(5) { grid-column: span 2; }
@media (max-width: 960px) {
  .cs-goals--6 .cs-goal, .cs-goals--6 .cs-goal:nth-child(4), .cs-goals--6 .cs-goal:nth-child(5) { grid-column: span 1; }
}
.cs-stat__num--long { font-size: clamp(3rem, 5.6vw, 5.5rem); white-space: nowrap; }
.cs-ds__tile--tall img[src*="avril-ui-couleurs"] { max-width: 260px; }
/* Mosaïque à hauteur égale : les tuiles du milieu ne dépassent pas la hauteur des bandes */
.cs-ds--even { grid-template-columns: 1fr 1fr; }
.cs-ds--even .cs-ds__tile:not(.cs-ds__tile--wide) img { width: auto; max-width: 100%; max-height: clamp(180px, 22vw, 300px); }

/* Avant : deux images côte à côte */
.cs-ba--pair { grid-template-columns: 1fr 1fr; gap: clamp(12px, 2vw, 28px); }
@media (max-width: 760px) { .cs-ba--pair { grid-template-columns: 1fr; } }

/* Vitrine nuit : écrans mobiles */
.cs-showcase--night { background: #000; color: #F3F1EA; }
.cs-showcase--night::before { opacity: .08; }
.cs-showcase--night .cs-showcase__tag { background: var(--c-volt); color: #0E0F14; }
.cs-phones { width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(8px, 2vw, 32px); align-items: end; }
.cs-phones img { width: 100%; height: auto; display: block; }
.cs-phones img:nth-child(2) { transform: translateY(-6%); }
@media (max-width: 600px) { .cs-phones { grid-template-columns: 1fr 1fr; } .cs-phones img:nth-child(3) { display: none; } .cs-phones img:nth-child(2) { transform: none; } }

/* Carrousel d'images de processus (sans ordinateur) */
.cs-slides { position: relative; width: 100%; aspect-ratio: 2400 / 1850; border-radius: clamp(12px, 1.4vw, 18px); overflow: hidden; background: #141d3f; }
.cs-slides .cs-carousel__track img { object-fit: contain; object-position: center; }
.cs-slides .cs-carousel__track img { box-sizing: border-box; padding: clamp(14px, 4%, 48px); }
.cs-stat__num--long { font-size: clamp(2.75rem, 4.6vw, 4.75rem); }
/* Chiffres longs (9 500, 13 000) : taille relative à la carte, avec une marge à droite */
.cs-stat:has(.cs-stat__num--long) { container-type: inline-size; }
.cs-stat__num--long { font-size: clamp(2.75rem, 24cqi, 6.5rem); }
.cs-stat__num--long { font-size: clamp(2.75rem, 33cqi, 7rem); }
/* Tous les chiffres des cartes : même taille dans une rangée, proportionnelle à la carte */
.cs-stat { container-type: inline-size; }
.cs-stat__num, .cs-stat__num--long { font-size: clamp(2.75rem, 33cqi, 7rem); white-space: nowrap; }

/* ---------- Avant : deux interfaces annotées côte à côte (Cone CRM) ---------- */
.cs-duo { justify-items: stretch; text-align: left; }
.cs-duo__title { margin: 0; font-weight: 500; font-size: clamp(2rem, 4.2vw, 3.75rem); line-height: 1; letter-spacing: -.03em; color: #0E0F14; }
.cs-duo__title em { font-family: var(--f-serif); font-style: italic; font-weight: 400; font-size: 1.12em; color: #2337D6; }
.cs-duo__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 3vw, 48px); }
.cs-duo__col { display: grid; gap: 18px; align-content: start; }
.cs-duo__name { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; font-size: clamp(1.25rem, 1.8vw, 1.625rem); font-weight: 500; letter-spacing: -.02em; color: #0E0F14; }
.cs-duo__name span { font-family: var(--f-mono); font-size: .6875rem; letter-spacing: .12em; text-transform: uppercase; color: #3A3C4A; font-weight: 400; }
.cs-duo__frame { position: relative; border-radius: 14px; background: #fff; border: 1px solid rgba(14,15,20,.12); }
.cs-duo__frame img { display: block; width: 100%; height: auto; border-radius: 13px; }
.cs-duo__pin, .cs-duo__notes li::before {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 99px;
  background: #FF5C39; color: #0E0F14; font-family: var(--f-mono); font-size: .8125rem; font-weight: 500;
}
.cs-duo__pin { position: absolute; transform: translate(-50%, -50%); box-shadow: 0 0 0 4px rgba(255,92,57,.25); }
.cs-duo__notes { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: duo; }
.cs-duo__notes li { counter-increment: duo; display: grid; grid-template-columns: 30px 1fr; gap: 14px; align-items: center; font-size: 1rem; line-height: 1.4; color: #0E0F14; }
.cs-duo__notes li::before { content: counter(duo); }
@media (max-width: 1024px) {
  .cs-duo__grid { grid-template-columns: 1fr; gap: 40px; }
  .cs-duo__pin { width: 24px; height: 24px; font-size: .6875rem; }
}
/* Version cobalt (par défaut) */
.cs-duo .cs-duo__title, .cs-duo .cs-duo__name, .cs-duo .cs-duo__notes li { color: #fff; }
.cs-duo .cs-duo__title em { color: var(--c-volt); }
.cs-duo .cs-duo__name span { color: rgba(255,255,255,.72); }
.cs-duo .cs-duo__frame { border-color: rgba(255,255,255,.2); box-shadow: 0 40px 80px -40px rgba(8,12,60,.7); }
.cs-duo .cs-duo__pin { box-shadow: 0 0 0 4px rgba(255,255,255,.35); }
/* Aligner les deux colonnes (titre, capture, notes) */
.cs-duo__col { grid-row: span 3; grid-template-rows: subgrid; row-gap: 18px; }
.cs-duo__name { flex-direction: column; align-items: flex-start; }
.cs-duo__frame img { aspect-ratio: 16 / 9; object-fit: cover; object-position: top left; }
@media (max-width: 1024px) { .cs-duo__col { grid-row: auto; grid-template-rows: none; } }

/* ---------- La démarche en images (Cone CRM) : diapositives à la marque ---------- */
.cs-slides--dm { aspect-ratio: auto; background: #F5F2EC; color: #0E0F14; }
.cs-slides--dm .cs-carousel { position: relative; inset: auto; height: auto; }
.cs-slides--dm .cs-carousel__track { height: auto; align-items: stretch; }
.dm { flex: 0 0 100%; box-sizing: border-box; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(24px, 4vw, 56px); align-items: center; padding: clamp(24px, 4vw, 56px); min-height: clamp(360px, 40vw, 600px); }
.dm__text { display: grid; gap: 14px; align-content: center; }
.dm__step, .dm__label { font-family: var(--f-mono); font-size: .6875rem; letter-spacing: .14em; text-transform: uppercase; color: #5A5B66; }
.dm__step { justify-self: start; color: #0E0F14; background: var(--c-volt); padding: 7px 12px; border-radius: 99px; }
.dm__title { margin: 0; font-weight: 500; font-size: clamp(1.5rem, 2.6vw, 2.5rem); line-height: 1.02; letter-spacing: -.03em; }
.dm__title em { font-family: var(--f-serif); font-style: italic; font-weight: 400; font-size: 1.12em; color: #2337D6; }
.dm__text p { margin: 0; font-size: 1rem; line-height: 1.5; color: #3A3C4A; max-width: 36ch; }
.dm__visual { margin: 0; border-radius: 14px; overflow: hidden; background: #fff; border: 1px solid rgba(14,15,20,.12); }
.cs-slides--dm .dm__visual img { display: block; width: 100%; height: auto; padding: 0; object-fit: initial; }
.dm__visual--pair { position: relative; background: none; border: 0; overflow: visible; aspect-ratio: 16 / 10.5; }
.cs-slides--dm .dm__visual--pair img { position: absolute; width: 74%; height: auto; border-radius: 12px; border: 1px solid rgba(14,15,20,.12); }
.cs-slides--dm .dm__visual--pair img:first-child { left: 0; top: 0; }
.cs-slides--dm .dm__visual--pair img:last-child { right: 0; bottom: 0; box-shadow: 0 30px 60px -30px rgba(14,15,20,.5); }
.dm__principles { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: dm; }
.dm__principles li { counter-increment: dm; display: grid; grid-template-columns: auto 1fr; column-gap: 20px; row-gap: 4px; padding: clamp(16px, 2vw, 24px); background: #fff; border: 1px solid rgba(14,15,20,.12); border-radius: 14px; }
.dm__principles li::before { content: "0" counter(dm); grid-row: span 2; font-family: var(--f-serif); font-style: italic; font-size: clamp(2rem, 3vw, 2.75rem); line-height: 1; color: #2337D6; }
.dm__principles b { font-weight: 500; font-size: clamp(1rem, 1.4vw, 1.25rem); letter-spacing: -.01em; }
.dm__principles span { font-size: .9375rem; line-height: 1.45; color: #3A3C4A; }
.dm__cycle { display: grid; gap: 18px; min-width: 0; }
.dm__stages { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; counter-reset: st; }
.dm__stages li { counter-increment: st; position: relative; display: grid; gap: 8px; align-content: start; min-height: 112px; padding: 16px; background: #2337D6; color: #fff; border-radius: 14px; font-weight: 500; font-size: clamp(.875rem, 1.1vw, 1rem); line-height: 1.25; }
.dm__stages li::before { content: "0" counter(st); font-family: var(--f-mono); font-size: .6875rem; letter-spacing: .12em; color: var(--c-volt); }
.dm__status { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.dm__status > div { display: grid; gap: 12px; padding: 16px; background: #fff; border: 1px solid rgba(14,15,20,.12); border-radius: 14px; }
.dm__status p { margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.dm__status i { font-style: normal; font-size: .875rem; padding: 6px 12px; border-radius: 99px; background: #DCD6F7; color: #0E0F14; }
@media (max-width: 860px) {
  .dm { grid-template-columns: 1fr; align-content: start; }
  .dm__stages { grid-template-columns: 1fr 1fr; }
  .dm__stages li { min-height: 0; }
  .dm__status { grid-template-columns: 1fr; }
}
.dm > * { min-width: 0; } .dm__stages li { hyphens: auto; overflow-wrap: anywhere; }
/* Étapes du cycle : liste verticale, sans coupure de mots */
.dm__stages { grid-template-columns: 1fr; gap: 6px; }
.dm__stages li { display: flex; align-items: baseline; gap: 16px; min-height: 0; padding: 12px 18px; hyphens: manual; overflow-wrap: normal; }
@media (max-width: 860px) { .dm__stages { grid-template-columns: 1fr; } }

/* ---------- Séparateur de volet (projet en deux parties) ---------- */
.cs-part { display: grid; gap: 14px; justify-items: start; padding-top: clamp(48px, 7vw, 96px); padding-bottom: clamp(8px, 2vw, 24px); border-top: 1px solid var(--c-line, rgba(255,255,255,.14)); }
.cs-part__num { font-family: var(--f-mono); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: #0E0F14; background: var(--c-volt); padding: 8px 14px; border-radius: 99px; }
.cs-part__title { margin: 0; font-weight: 500; font-size: clamp(2.75rem, 7vw, 6.5rem); line-height: .95; letter-spacing: -.035em; }
.cs-part__title em { font-family: var(--f-serif); font-style: italic; font-weight: 400; font-size: 1.12em; color: var(--c-accent, #9AA6FF); }
.cs-part__lead { margin: 0; max-width: 52ch; font-size: clamp(1rem, 1.3vw, 1.25rem); line-height: 1.5; opacity: .8; }
.cs-part { margin-bottom: clamp(40px, 6vw, 96px); }

/* Écrans de téléphone dans les diapositives */
.dm__phones { display: flex; justify-content: center; align-items: center; gap: clamp(12px, 2.5vw, 32px); }
.cs-slides--dm .dm__phones img { display: block; flex: 0 1 auto; width: auto; height: clamp(320px, 34vw, 520px); max-width: 46%; object-fit: contain; padding: 0; border-radius: clamp(18px, 2vw, 30px); box-shadow: 0 30px 60px -30px rgba(14,15,20,.55), 0 0 0 1px rgba(14,15,20,.1); }
.dm__visual--wide { width: 100%; }
.dm__visual--wide img { display: block; width: 100%; height: auto; }
@media (max-width: 860px) { .cs-slides--dm .dm__phones img { height: auto; width: 46%; max-width: 220px; } }
.cs-showcase--nodots .cs-carousel__dots { display: none; }
.cs-stat__arrow { display: inline-block; font-size: .42em; vertical-align: .55em; margin: 0 .12em; font-weight: 400; opacity: .7; }
.cs-stat__arrow { font-family: var(--f-serif); font-style: italic; font-size: .45em; vertical-align: .3em; opacity: 1; margin: 0 .2em; }
.cs-stat__arrow { font-family: inherit; font-style: normal; font-weight: inherit; font-size: .45em; vertical-align: .3em; }
.cs-stat__arrow { font-size: 1em; vertical-align: baseline; margin: 0 .08em; opacity: 1; }
.cs-stat__arrow { margin: 0 .2em; }


/* ---------- Prototype en vidéo (même mise en page que Sednove, sans clic) ---------- */
.cs-proto__phone { justify-self: end; width: calc(375px * .82); padding: 9px; border-radius: 46px; background: #0E0F14; box-shadow: 0 0 0 1px rgba(243,241,234,.14), 0 40px 80px -36px rgba(0,0,0,.6); }
.cs-proto__phone video { display: block; width: 100%; height: auto; aspect-ratio: 390 / 844; border-radius: 37px; background: #2337D6; }
@media (max-width: 1100px) { .cs-proto__phone { width: calc(375px * .72); } }
@media (max-width: 760px) { .cs-proto__phone { justify-self: center; width: calc(375px * .75); } }
/* Cartes chiffres : trois cartes de même taille jusqu'au mobile */
@media (min-width: 601px) {
  .cs-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cs-stats .cs-stat:last-child { grid-column: auto; }
}

/* ---------- Deux sites côte à côte (Cavendish) ---------- */
.cs-sites { justify-items: stretch; }
.cs-sites__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(14px, 2vw, 24px); }
.cs-sites__card { display: grid; gap: 18px; align-content: start; padding: clamp(22px, 3vw, 40px); background: #F5F2EC; color: #0E0F14; border-radius: clamp(16px, 1.6vw, 22px); }
.cs-sites__kicker { font-family: var(--f-mono); font-size: .6875rem; letter-spacing: .12em; text-transform: uppercase; color: #3A3C4A; overflow-wrap: anywhere; }
.cs-sites__num { margin: 0; font-weight: 500; font-size: clamp(3rem, 6vw, 5.5rem); line-height: .9; letter-spacing: -.04em; }
.cs-sites__num span { font-family: var(--f-serif); font-style: italic; font-weight: 400; font-size: .5em; letter-spacing: 0; color: #2337D6; }
.cs-sites dl { margin: 0; display: grid; border-top: 1px solid rgba(14,15,20,.12); }
.cs-sites dl > div { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid rgba(14,15,20,.12); }
.cs-sites dt { font-family: var(--f-mono); font-size: .6875rem; letter-spacing: .12em; text-transform: uppercase; color: #5A5B66; padding-top: 3px; }
.cs-sites dd { margin: 0; font-size: 1rem; line-height: 1.45; }
@media (max-width: 860px) { .cs-sites__grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .cs-sites dl > div { grid-template-columns: 1fr; gap: 4px; } }

/* ---------- Maquettes qui défilent toutes seules (Cavendish) ---------- */
.cs-scrollpages { width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 28px); }
.cs-scrollpage { margin: 0; display: grid; gap: 12px; }
.cs-scrollpage__frame { position: relative; aspect-ratio: 3 / 4; border-radius: clamp(12px, 1.2vw, 18px); overflow: hidden; background: #fff; box-shadow: 0 30px 60px -36px rgba(14,15,20,.5), 0 0 0 1px rgba(14,15,20,.1); }
.cs-scrollpage__frame img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0%; animation: cs-scrollpage 18s ease-in-out var(--delay, 0s) infinite alternate; }
.cs-scrollpage figcaption { font-family: var(--f-mono); font-size: .6875rem; letter-spacing: .12em; text-transform: uppercase; color: #0E0F14; }
@keyframes cs-scrollpage { 0%, 8% { object-position: 50% 0%; } 92%, 100% { object-position: 50% 100%; } }
@media (prefers-reduced-motion: reduce) { .cs-scrollpage__frame img { animation: none; } }
@media (max-width: 760px) { .cs-scrollpages { grid-template-columns: 1fr; } .cs-scrollpage__frame { aspect-ratio: 4 / 5; } }

/* Mobile : espaces entre sections réduits */
@media (max-width: 768px) {
  .cs > :is(.cs-cover, .cs-statement, .cs-stats, .cs-block, .cs-media, .cs-band, .cs-marquee, .cs-process, .cs-proto, .cs-next) { margin-bottom: 64px; }
  .cs-part { padding-top: 56px; margin-bottom: 40px; }
}

/* Mode clair : les vidéos au fond papier (Cone, Sednove) se détachent de la page */
:root[data-theme="light"] .cs-cover__frame { box-shadow: 0 0 0 1px rgba(14,15,20,.14), 0 50px 100px -50px rgba(14,15,20,.35); }

/* Carrousels de diapositives : hauteur selon la diapositive affichée */
.cs-slides--dm .cs-carousel__track { align-items: flex-start; }
.cs-slides--dm .cs-carousel { transition: height .5s var(--ease-out, ease); }
.cs-slides--dm .dm { min-height: 0; }
@media (min-width: 861px) { .cs-slides--dm .dm { min-height: clamp(360px, 40vw, 600px); } }
