/* « Comment ça se passe » (Sacha, 14/10/2026) : recopie de la section « Le quotidien, aujourd'hui » de getmaply.com,
   mesures relevées le 14/10/2026 (planches/comment-ca-se-passe/INVENTAIRE.md). Adaptations décidées par Sacha :
   polices du site (celles d'insyder.io depuis le 14/10/2026), bleu → vert feuille, 3 étapes au lieu de 4. Fond : le crème ligné de toute la page (pages.css).
   Pas de vert sapin (règle du site, 14/10/2026) : textes en quasi-noir #111, comme le gris-noir de getmaply.
   Sans la classe ccsp--anime (pas de JavaScript, mouvement réduit) : les étapes sont simplement empilées. */
.ccsp {
  --ccsp-feuille: #5CA87C; --ccsp-encre: #111;
  --ccsp-marge: clamp(16px, .43rem + 2.857vw, 40px);
  position: relative; color: var(--ccsp-encre);
}
.ccsp__espace { height: clamp(4rem, 3.143rem + 4.286vw, 7rem); }
.ccsp__contenu { display: flex; flex-direction: column; row-gap: 4rem; padding-bottom: 4rem; }
.ccsp__entete { display: flex; flex-direction: column; align-items: center; width: calc(100% - 2 * var(--ccsp-marge)); max-width: 90rem; margin: 0 auto; text-align: center; }
.ccsp__surtitre { display: inline-flex; align-items: center; gap: clamp(.875rem, .82rem + .27vw, 1rem); margin: 0 0 clamp(1.75rem, 1.679rem + .357vw, 2rem);
  font: 500 17px/1.3 var(--police-texte); text-transform: uppercase; color: var(--ccsp-encre); }
.ccsp__marqueur { flex: none; width: .7rem; height: .7rem; border-radius: 2px; background: color-mix(in srgb, var(--ccsp-feuille), white 40%); }
.ccsp__titre { margin: 0; max-width: 860px; font: 600 clamp(2.5rem, 1.7rem + 3.2vw, 4rem)/1.2 var(--police-titre); letter-spacing: -.023em; text-wrap: balance; color: var(--ccsp-encre); }
.ccsp__mot { display: inline-block; position: relative; will-change: transform, opacity; }

/* Statique (pas d'animation) : une colonne d'étapes, chiffres à gauche */
.ccsp__regle { width: calc(100% - 2 * var(--ccsp-marge)); max-width: 60rem; margin: 0 auto; }
.ccsp__traits { display: none; }
.ccsp__liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 3rem; }
.ccsp__carte-int { display: flex; align-items: center; gap: clamp(1.25rem, 1.18rem + .357vw, 1.5rem); }
.ccsp__numero { flex: none; font: 600 10rem/1 var(--police-titre); letter-spacing: -.023em; color: var(--ccsp-encre); }
.ccsp__etape { margin: 0; font: 600 clamp(1.95rem, 1.3rem + 2.2vw, 3rem)/1.2 var(--police-titre); letter-spacing: -.023em; color: var(--ccsp-encre); }
.ccsp__phrase { margin: .75rem 0 0; max-width: 396px; font: 500 16px/1.3 var(--police-texte); color: var(--texte-doux); }

/* Animé : la recopie de getmaply (section haute, règle collante, piste qui glisse, cartes en zigzag) */
.ccsp--anime { height: 320vh; overflow: clip; }
.ccsp--anime .ccsp__contenu { height: 90%; row-gap: 20rem; padding-bottom: 7rem; } /* 4rem chez getmaply ; 7rem pour que l'étape 3 (carte du bas) ne soit jamais coupée */
.ccsp--anime .ccsp__regle { position: sticky; top: 40vh; width: 100%; max-width: none; display: flex; justify-content: center; padding-block: 40px; }
.ccsp--anime .ccsp__cadre { display: flex; width: calc(100% - 2 * var(--ccsp-marge)); height: 100px; container-type: inline-size; }
.ccsp--anime .ccsp__piste { position: relative; z-index: 3; display: flex; height: 100%; will-change: transform; }
.ccsp--anime .ccsp__traits { position: absolute; inset: 0; z-index: 0; display: block;
  width: 100%; min-width: 350vh; height: 100%; pointer-events: none; }
.ccsp__trait { position: absolute; top: 0; width: 5px; height: 100%; border-radius: 999px; background: rgb(17 17 17 / .2); }
.ccsp__trait--large { width: 10px; background: var(--ccsp-feuille); transform: scaleY(2); }
.ccsp--anime .ccsp__liste { display: flex; align-items: center; justify-content: flex-start; gap: 8rem; margin: 0 -100cqw 0 0; padding-left: 4rem; }
.ccsp--anime .ccsp__carte { position: relative; display: flex; align-items: center; justify-content: flex-start; flex: none; margin-right: 8rem; }
.ccsp--anime .ccsp__carte--bas { bottom: -200%; }
.ccsp--anime .ccsp__carte--haut { top: -200%; }
.ccsp--anime .ccsp__carte-int { width: 70vh; justify-content: center; }
.ccsp--anime .ccsp__numero { font-size: 15rem; }

@media (max-width: 991px) {
  .ccsp--anime .ccsp__regle { padding-block: 16px; }
  .ccsp--anime .ccsp__carte { width: 30rem; }
}
@media (max-width: 767px) {
  .ccsp__numero { font-size: 7rem; }
  .ccsp--anime { height: 240vh; }
  /* Alternance et grands chiffres de GetMaply. Seuls les espacements mobiles
     s'adaptent à nos textes plus longs et à la barre de contact. */
  .ccsp--anime .ccsp__contenu { row-gap: 13rem; padding-bottom: 14rem; }
  .ccsp--anime .ccsp__cadre { height: calc(15svh - 32px); }
  .ccsp--anime .ccsp__carte { width: auto; margin-right: 0; }
  .ccsp--anime .ccsp__carte--bas { bottom: calc(-1 * var(--ccsp-decalage, 250%)); }
  .ccsp--anime .ccsp__carte--haut { top: calc(-1 * var(--ccsp-decalage, 250%)); }
  .ccsp--anime .ccsp__carte-int { width: 100cqw; align-items: flex-start; justify-content: flex-start; gap: clamp(.5rem, .46rem + .18vw, .625rem); }
  .ccsp--anime .ccsp__numero { font-size: 10rem; }
}

.ccsp__espace, .ccsp__contenu { position: relative; z-index: 1; }
