/* ============================================================
   OPTERIA : page « Bobby Comptable » (07/10/2026, demande Axel) : la facette gestion financière de l'écosystème Bobby.
   Chargée après da-cerveau.css et da-bobby-cm.css (cartes grises, cadres peints, maquettes blanches, notification, boutons).
   Même gabarit et même rythme que /bobby-webmaster : démos jouées dans de vraies interfaces miniatures, sans section collante.
   Animations : cerveau.js (data-scene : classes e1, e2… cumulées et data-etape) et comptable.js (apparition, transcription, montants).
   Transform, opacity, clip-path seulement ; les maquettes restent blanches la nuit.
   ============================================================ */
.page-cpt { --cpt-orange: #FB4D17; --cpt-vert: #2f7d3e; --cpt-ambre: #b45309; }
.cpt-tel, .cpt-fen, .cpt-ecran, .cpt-relance__in, .cpt-relais__carte, .cpt-notif { --paper: #fff; --ink: #292929; --texte: #353535; --muet: rgba(53,53,53,.7); color-scheme: light; }
.cpt-ok { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--cpt-vert); }
.cpt-ok i, .cpt-puces i, .cpt-tel__fait i, .cpt-mail__part i, .cpt-relais__doc em i { display: inline-grid; place-items: center; flex: none; width: 15px; height: 15px; border-radius: 50%; background: var(--vert, #3aa655); color: #fff; font-size: 9px; font-style: normal; font-weight: 500; }
.cpt-demande { padding: 8px 11px; border-radius: 12px 12px 4px 12px; background: #191919; color: #fff; font-size: 12.5px; line-height: 1.35; }
.cpt-ico { display: inline-block; flex: none; width: 22px; height: 22px; border-radius: 6px; background: #f1f1f3 50% 50% / 14px no-repeat; }
.cpt-ico--mail { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23191919' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m4 7 8 6 8-6'/%3E%3C/svg%3E"); }
.cpt-ico--drive { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23191919' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 7a2 2 0 0 1 2-2h4l2 2h8a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z'/%3E%3C/svg%3E"); }
.cpt-ico--banque { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23191919' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 10 12 4l9 6'/%3E%3Cpath d='M5 10v8M9.5 10v8M14.5 10v8M19 10v8M3.5 20.5h17'/%3E%3C/svg%3E"); }
.cpt-ico--fact { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23191919' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 3h9l4 4v14H6z'/%3E%3Cpath d='M15 3v4h4M9 12h7M9 16h7'/%3E%3C/svg%3E"); }
.cv-fiche[class*="cpt-"] .cv-fiche__lab small { margin-left: auto; font-size: 12px; font-weight: 400; color: #8a8a90; }
.cv-fiche[class*="cpt-"] [class*="cpt-"], .cv-fiche[class*="cpt-"] li, .cpt-ecran [class*="cpt-"], .cpt-relance__in [class*="cpt-"], .cpt-relais__in [class*="cpt-"] { transition: opacity .45s ease, transform .45s cubic-bezier(.22,1,.36,1), background-color .35s ease, border-color .35s ease, color .35s ease, clip-path .6s ease, max-height .5s ease; }

/* ---------- Rythme serré, comme /bobby-webmaster ---------- */
.page-cpt .cv-hero { padding: 72px 0 36px; }
.page-cpt .cv-sec { padding: 56px 0; }
.page-cpt .cv-intro { padding: 40px 0 8px; }
.page-cpt .bcm-tete { margin-bottom: 30px; }
.page-cpt .sec.cv-faq { padding: 56px 0; }
.page-cpt .cv-trois { margin-top: 0; }
.cpt-intro .boucle__intro { max-width: 1040px; }

/* ---------- Premier écran : le téléphone et la facture qui se compose ---------- */
.cpt-scene { position: relative; margin-top: 52px; padding: 44px 48px; border-radius: var(--r); background: var(--gris-cadre); overflow: hidden; isolation: isolate; text-align: left; }
html.js .cpt-scene { opacity: 0; transform: translateY(24px) scale(.985); transition: opacity 1s ease .25s, transform 1.2s cubic-bezier(.22,1,.36,1) .25s; }
html.js .cpt-scene.is-in { opacity: 1; transform: none; }
html[data-theme="nuit"] .cpt-scene { box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); }
.cpt-studio { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 28px; align-items: center; max-width: 1040px; margin: 0 auto; color: #0d0f14; font-size: 14px; line-height: 1.4; }
.cpt-studio p { margin: 0; }

/* le téléphone */
.cpt-tel { display: flex; flex-direction: column; height: 490px; padding: 7px; border-radius: 38px; background: #111; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.cpt-tel > * { background: #fff; }
.cpt-tel__tete { display: flex; align-items: center; gap: 10px; padding: 26px 16px 12px; border-radius: 31px 31px 0 0; border-bottom: 1px solid #efefed; }
.cpt-tel__tete .cv-av { width: 32px; height: 32px; } .cpt-tel__tete .cv-av svg { width: 19px; height: 19px; }
.cpt-tel__tete b { display: block; font-size: 14px; font-weight: 500; }
.cpt-tel__tete small { display: flex; align-items: center; gap: 5px; font-size: 11.5px; color: #6b6b70; }
.cpt-tel__tete small i { width: 6px; height: 6px; border-radius: 50%; background: var(--vert, #3aa655); }
.cpt-tel__fil { flex: 1; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; padding: 12px 12px 8px; background: #f6f5f2; overflow: hidden; }
.cpt-tel__jour { align-self: center; padding: 2px 9px; border-radius: 999px; background: #fff; font-size: 10.5px; color: #8a8a90; }
.cpt-vocal { display: flex; align-items: center; gap: 9px; width: 220px; padding: 9px 12px 9px 9px; border-radius: 16px 16px 4px 16px; background: #191919; color: #fff; }
.cpt-vocal__lecture { flex: none; width: 26px; height: 26px; border-radius: 50%; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 7v10l8-5z' fill='%23191919'/%3E%3C/svg%3E") 58% 50% / 15px no-repeat; }
.cpt-onde { flex: 1; display: flex; align-items: center; gap: 2px; height: 24px; }
.cpt-onde i { flex: 1; height: 100%; border-radius: 2px; background: rgba(255,255,255,.35); transform: scaleY(var(--h, .4)); }
.cpt-onde i:nth-child(3n) { --h: .75; } .cpt-onde i:nth-child(4n+1) { --h: .3; } .cpt-onde i:nth-child(5n+2) { --h: .95; } .cpt-onde i:nth-child(7n) { --h: .55; }
.cpt-vocal small { font-size: 11px; opacity: .75; font-variant-numeric: tabular-nums; }
.cpt-transcrit { width: 236px; padding: 8px 11px; border-radius: 12px; background: #fff; box-shadow: none; font-size: 12.5px; line-height: 1.4; color: #3a3a40; }
.cpt-transcrit__lab { display: block; margin-bottom: 2px; font-size: 10.5px; font-weight: 500; color: #8a8a90; text-transform: uppercase; letter-spacing: .06em; }
.cpt-transcrit__txt { display: block; min-height: 3.6em; }
.cpt-tel__points { align-self: flex-start; }
.cpt-tel__bobby { align-self: flex-start; width: 244px; padding: 9px 12px; border-radius: 16px 16px 16px 4px; background: #fff; box-shadow: none; font-size: 12.5px; line-height: 1.4; }
.cpt-tel__bobby b { font-weight: 500; }
.cpt-tel__choix { display: flex; align-items: center; gap: 6px; margin-top: 8px !important; min-height: 26px; }
.cpt-tel__btn { padding: 5px 12px; border-radius: 999px; background: #f1f1f3; font-size: 11.5px; font-weight: 500; transition: transform .2s ease, background .2s ease; }
.cpt-tel__btn--oui { background: #191919; color: #fff; }
.cpt-tel__fait { display: none; align-items: center; gap: 6px; font-size: 12px; color: var(--cpt-vert); }
.cpt-tel__saisie { display: flex; align-items: center; gap: 8px; padding: 10px 12px 18px; border-radius: 0 0 31px 31px; border-top: 1px solid #efefed; }
.cpt-tel__saisie span { flex: 1; height: 32px; padding: 0 12px; border-radius: 999px; background: #f2f2f4; font-size: 12.5px; line-height: 32px; color: #9a9aa0; }
.cpt-tel__saisie i { flex: none; width: 32px; height: 32px; border-radius: 50%; background: #191919 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round'%3E%3Crect x='9' y='3' width='6' height='11' rx='3'/%3E%3Cpath d='M5.5 11a6.5 6.5 0 0 0 13 0M12 17.5V21'/%3E%3C/svg%3E") 50% 50% / 16px no-repeat; }

/* la fenêtre du logiciel de facturation et la facture */
.cpt-fen { border-radius: 16px; background: #fff; box-shadow: none; overflow: hidden; }
.cpt-fen__barre { display: flex; align-items: center; gap: 14px; height: 46px; padding: 0 14px; border-bottom: 1px solid #ececea; }
.cpt-fen__titre { flex: 1; min-width: 0; font-size: 12.5px; color: #6b6b70; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cpt-fen__titre span { margin: 0 4px; color: #b0b0b5; } .cpt-fen__titre b { font-weight: 500; color: #0d0f14; }
.cpt-fen__etat { display: grid; justify-items: end; }
.cpt-et { grid-area: 1 / 1; display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-style: normal; font-weight: 500; white-space: nowrap; opacity: 0; transform: scale(.9); transition: opacity .3s ease, transform .4s cubic-bezier(.3,1.4,.5,1); }
.cpt-et--vide { background: #f1f1f3; color: #55555a; }
.cpt-et--prep { background: rgba(251,77,23,.1); color: #c2410c; }
.cpt-et--prep::before { content: ""; width: 9px; height: 9px; border-radius: 50%; border: 1.6px solid currentColor; border-top-color: transparent; animation: bcm-tourne .8s linear infinite; }
.cpt-et--valid { background: rgba(43,92,196,.1); color: #2b5cc4; }
.cpt-et--ok { background: rgba(58,166,85,.12); color: var(--cpt-vert); }
.cpt-studio:not(.e3) .cpt-et--vide, .cpt-studio.e3:not(.e7) .cpt-et--prep, .cpt-studio.e7:not(.e8) .cpt-et--valid, .cpt-studio.e8 .cpt-et--ok { opacity: 1; transform: none; }
.cpt-facture { position: relative; display: flex; flex-direction: column; gap: 14px; min-height: 410px; padding: 22px 26px 20px; font-size: 12.5px; color: #2a2a2e; }
.cpt-facture::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--cpt-orange); transform: scaleX(0); transform-origin: left; transition: transform .8s cubic-bezier(.65,0,.35,1); }
.cpt-studio.e3 .cpt-facture::before { transform: none; }
.cpt-f { opacity: 0; transform: translateY(8px); transition: opacity .5s ease, transform .55s cubic-bezier(.22,1,.36,1); }
.cpt-studio.e3 .cpt-f--tete, .cpt-studio.e4 .cpt-f--client, .cpt-studio.e5 .cpt-f--lignes, .cpt-studio.e6 .cpt-f--totaux, .cpt-studio.e6 .cpt-f--mentions { opacity: 1; transform: none; }
.cpt-studio.e6 .cpt-f--mentions { transition-delay: .35s; }
.cpt-f--tete { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.cpt-f__marque { display: flex; gap: 10px; align-items: center; }
.cpt-f__logo { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 10px; background: #191919; color: #fff; font-size: 13px; font-weight: 500; letter-spacing: .02em; }
.cpt-f__marque b { display: block; font-size: 14px; font-weight: 500; color: #0d0f14; }
.cpt-f small { display: block; font-size: 11px; color: #8a8a90; }
.cpt-f__num { text-align: right; } .cpt-f__num b { display: block; font-size: 22px; font-weight: 500; letter-spacing: -.02em; line-height: 1.1; color: #0d0f14; }
.cpt-f--client { display: flex; justify-content: space-between; gap: 16px; padding: 12px 14px; border-radius: 10px; background: #f6f6f4; }
.cpt-f--client b { display: block; margin-top: 1px; font-size: 14px; font-weight: 500; color: #0d0f14; }
.cpt-f--client span { display: block; font-size: 11.5px; color: #6b6b70; }
.cpt-f__echeance { text-align: right; }
.cpt-f__entete, .cpt-f__ligne { display: grid; grid-template-columns: minmax(0, 1fr) 40px 110px; gap: 10px; align-items: baseline; }
.cpt-f__entete { padding-bottom: 6px; border-bottom: 1px solid #ececea; font-size: 10.5px; color: #8a8a90; text-transform: uppercase; letter-spacing: .05em; }
.cpt-f__entete span:nth-child(n+2), .cpt-f__ligne span:nth-child(n+2) { text-align: right; }
.cpt-f__ligne { padding: 10px 0; border-bottom: 1px solid #f0f0ef; font-size: 13px; }
.cpt-f__ligne span:first-child { font-weight: 500; color: #0d0f14; } .cpt-f__ligne small { font-weight: 400; }
.cpt-f--totaux { align-self: flex-end; width: 250px; display: flex; flex-direction: column; gap: 4px; }
.cpt-f--totaux p { display: flex; justify-content: space-between; font-size: 12.5px; color: #55555a; }
.cpt-f--totaux .cpt-f__ttc { margin-top: 4px; padding: 9px 12px; border-radius: 10px; background: #191919; color: #fff; font-size: 13px; }
.cpt-f__ttc b { font-size: 16px; font-weight: 500; font-variant-numeric: tabular-nums; }
.cpt-f--mentions { margin-top: auto !important; padding-top: 10px; border-top: 1px dashed #e4e4e2; font-size: 10.5px; line-height: 1.45; color: #8a8a90; }

/* la scène : 1 le vocal, 2 la transcription, 3 en-tête, 4 client, 5 ligne, 6 totaux, 7 « je l'envoie ? », 8 envoyée */
.cpt-vocal, .cpt-transcrit, .cpt-tel__points, .cpt-tel__bobby { opacity: 0; transform: translateY(6px); transition: opacity .45s ease, transform .45s cubic-bezier(.22,1,.36,1); }
.cpt-studio.e1 .cpt-vocal, .cpt-studio.e2 .cpt-transcrit, .cpt-studio.e3:not(.e7) .cpt-tel__points, .cpt-studio.e7 .cpt-tel__bobby { opacity: 1; transform: none; }
.cpt-studio.e7 .cpt-tel__points { display: none; }
.cpt-studio.e1:not(.e2) .cpt-onde i { animation: cpt-onde .9s ease-in-out infinite; }
.cpt-onde i:nth-child(2n) { animation-delay: -.3s !important; } .cpt-onde i:nth-child(3n) { animation-delay: -.6s !important; }
@keyframes cpt-onde { 0%, 100% { transform: scaleY(var(--h, .4)); } 50% { transform: scaleY(calc(1.15 - var(--h, .4))); } }
.cpt-studio.e2 .cpt-onde i { background: rgba(255,255,255,.85); }
.cpt-studio.e8 .cpt-tel__btn { display: none; }
.cpt-studio.e8 .cpt-tel__fait { display: inline-flex; animation: cv-pose .5s cubic-bezier(.3,1.4,.5,1); }
.cpt-notif { right: 30px; bottom: 24px; }
.cpt-notif .bcm-notif__ico img { width: 18px; height: 18px; }
.cpt-studio.e8 ~ .cpt-notif { opacity: 1; transform: none; transition-delay: .5s; }

/* ---------- Bento : cartes grises, cadre peint, interface miniature, légende ---------- */
.cpt-bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.cpt-case { display: flex; flex-direction: column; gap: 16px; padding: 14px; border-radius: 24px; background: var(--gris-carte); }
.cpt-case--large { grid-column: span 2; }
.cpt-case__txt { padding: 0 6px 8px; }
.cpt-case__txt h3 { margin: 0; font-size: 17px; font-weight: 400; letter-spacing: -.01em; line-height: 1.4; color: var(--ink); }
.cpt-case__txt p { margin: 2px 0 0; font-size: 15.5px; line-height: 1.5; color: var(--muet); }
.cpt-cadre { position: relative; display: grid; place-items: center; height: 320px; padding: 20px 16px; border-radius: 18px; background: var(--gris-cadre); overflow: hidden; isolation: isolate; }
.cpt-cadre--petit { height: 270px; }
.cpt-cadre .cv-fiche { max-width: 300px; padding: 14px; }
.cpt-cadre .cv-fiche > * + * { margin-top: 10px; }

/* justificatifs : la boîte mail, les pièces qui partent dans les bons dossiers du drive */
.cpt-cadre .cpt-justif { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 14px; max-width: 610px; }
.cpt-cadre .cpt-justif > * + * { margin-top: 0; }
.cpt-boite, .cpt-drive { display: flex; flex-direction: column; gap: 9px; min-width: 0; }
.cpt-boite__liste, .cpt-drive__dossiers { display: flex; flex-direction: column; gap: 6px; }
.cpt-piece { position: relative; display: grid; grid-template-columns: 38px minmax(0, 1fr); align-items: center; gap: 9px; padding: 6px 8px 6px 6px; border-radius: 10px; border: 1px solid rgba(11,11,11,.08); }
.cpt-piece__vign { position: relative; display: block; width: 38px; height: 46px; border-radius: 6px; background: #f3f1ec var(--p) 50% 40% / cover no-repeat; box-shadow: none; transition: transform .7s cubic-bezier(.65,0,.35,1), opacity .5s ease !important; }
.cpt-piece__vign--pdf { display: flex; flex-direction: column; gap: 3px; padding: 7px 6px; box-sizing: border-box; background: #fff; border: 1px solid #ececea; box-shadow: none; }
.cpt-piece__vign--pdf i { height: 3px; border-radius: 2px; background: #e2e2e5; } .cpt-piece__vign--pdf i:first-child { width: 60%; background: var(--cpt-orange); } .cpt-piece__vign--pdf i:nth-child(3) { width: 75%; }
.cpt-piece__vign--pdf em { position: absolute; left: 3px; bottom: 3px; padding: 0 3px; border-radius: 3px; background: #c2410c; color: #fff; font-size: 7.5px; font-style: normal; font-weight: 500; }
.cpt-piece__txt { min-width: 0; font-size: 12px; line-height: 1.3; }
.cpt-piece__txt b { display: block; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cpt-piece__txt small { display: block; font-size: 11px; color: #8a8a90; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cpt-piece__dest { position: absolute; right: 7px; top: 7px; padding: 1px 7px; border-radius: 999px; background: rgba(58,166,85,.12); color: var(--cpt-vert); font-size: 10px; font-weight: 500; opacity: 0; transform: scale(.8); }
.cpt-piece__dest::before { content: "→ "; }
.cpt-drive__chemin { font-weight: 400; color: #8a8a90; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cpt-dos { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 7px 9px; border-radius: 10px; background: #f6f6f4; font-size: 12.5px; }
.cpt-dos i { width: 24px; height: 19px; border-radius: 4px; background: #e9c46a; position: relative; transition: transform .4s cubic-bezier(.3,1.6,.5,1) !important; }
.cpt-dos i::before { content: ""; position: absolute; left: 0; top: -3px; width: 10px; height: 5px; border-radius: 2px 2px 0 0; background: #e0b54f; }
.cpt-dos b { font-weight: 500; } .cpt-dos small { display: inline-grid; grid-auto-flow: column; gap: 3px; font-size: 11px; color: #8a8a90; }
.cpt-dos small > span { grid-area: 1 / 1; }
.cpt-dos__n2 { opacity: 0; } .cpt-dos__n, .cpt-dos__n2 { transition: opacity .3s ease !important; }
.cpt-manque { display: flex; align-items: flex-start; gap: 8px; margin-top: 2px !important; padding: 8px 10px; border-radius: 10px; background: rgba(251,77,23,.07); border: 1px solid rgba(251,77,23,.3); font-size: 12px; line-height: 1.35; opacity: 0; transform: translateY(6px); }
.cpt-manque b { display: block; font-weight: 500; color: #c2410c; } .cpt-manque small { display: block; font-size: 11px; color: #6b6b70; }
.cpt-manque__ico { display: grid; place-items: center; flex: none; width: 17px; height: 17px; border-radius: 50%; background: var(--cpt-orange); color: #fff; font-size: 11px; font-weight: 600; }
/* 1, 3, 5 : la pièce est lue (contour), 2, 4, 6 : elle part dans son dossier, qui s'agrandit ; 7 : l'alerte */
.cpt-justif.e1 .cpt-piece--1, .cpt-justif.e3 .cpt-piece--2, .cpt-justif.e5 .cpt-piece--3 { border-color: rgba(251,77,23,.45); background: rgba(251,77,23,.03); }
.cpt-justif.e2 .cpt-piece--1, .cpt-justif.e4 .cpt-piece--2, .cpt-justif.e6 .cpt-piece--3 { border-color: rgba(11,11,11,.08); background: transparent; }
.cpt-justif.e2 .cpt-piece--1 .cpt-piece__vign, .cpt-justif.e4 .cpt-piece--2 .cpt-piece__vign, .cpt-justif.e6 .cpt-piece--3 .cpt-piece__vign { animation: cpt-envol .8s cubic-bezier(.65,0,.35,1); }
@keyframes cpt-envol { 0% { transform: none; opacity: 1; } 55% { transform: translate(260px, 20px) scale(.5) rotate(8deg); opacity: 0; } 56% { transform: none; opacity: 0; } 100% { transform: none; opacity: 1; } }
.cpt-justif.e2 .cpt-piece--1 .cpt-piece__dest, .cpt-justif.e4 .cpt-piece--2 .cpt-piece__dest, .cpt-justif.e6 .cpt-piece--3 .cpt-piece__dest { opacity: 1; transform: none; }
.cpt-justif.e2 .cpt-dos--1 .cpt-dos__n, .cpt-justif.e4 .cpt-dos--2 .cpt-dos__n, .cpt-justif.e6 .cpt-dos--3 .cpt-dos__n { opacity: 0; }
.cpt-justif.e2 .cpt-dos--1 .cpt-dos__n2, .cpt-justif.e4 .cpt-dos--2 .cpt-dos__n2, .cpt-justif.e6 .cpt-dos--3 .cpt-dos__n2 { opacity: 1; }
.cpt-justif[data-etape="2"] .cpt-dos--1, .cpt-justif[data-etape="4"] .cpt-dos--2, .cpt-justif[data-etape="6"] .cpt-dos--3 { background: rgba(58,166,85,.1); }
.cpt-justif[data-etape="2"] .cpt-dos--1 i, .cpt-justif[data-etape="4"] .cpt-dos--2 i, .cpt-justif[data-etape="6"] .cpt-dos--3 i { animation: cpt-bond .5s ease .35s; }
@keyframes cpt-bond { 50% { transform: scale(1.18); } }
.cpt-justif.e7 .cpt-manque { opacity: 1; transform: none; }

/* devis : la demande, le devis qui se remplit avec ce que Bobby sait du client */
.cpt-devis .cpt-demande { opacity: 0; transform: translateY(6px); }
.cpt-devis__doc { display: flex; flex-direction: column; gap: 7px; padding: 11px 12px; border-radius: 12px; border: 1px solid #ececea; border-top: 3px solid var(--cpt-orange); clip-path: inset(0 0 100% 0); }
.cpt-devis__tete { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; } .cpt-devis__tete b { font-weight: 500; } .cpt-devis__tete small { font-size: 11.5px; color: #8a8a90; }
.cpt-devis__ligne { display: flex; justify-content: space-between; gap: 8px; padding: 7px 9px; border-radius: 8px; background: #f6f6f4; font-size: 12.5px; opacity: 0; } .cpt-devis__ligne b { font-weight: 500; white-space: nowrap; }
.cpt-devis__memo { display: flex; align-items: center; gap: 7px; font-size: 11.5px; color: #55555a; opacity: 0; transform: translateX(-6px); }
.cpt-devis__memo i { flex: none; width: 14px; height: 14px; border-radius: 4px; background: #191919 url("/assets/da/bobby-tete-blanc.svg") 50% 50% / 10px no-repeat; }
.cpt-devis.e1 .cpt-demande, .cpt-devis.e3 .cpt-devis__ligne, .cpt-devis.e4 .cpt-devis__memo:nth-of-type(3), .cpt-devis.e5 .cpt-devis__memo:nth-of-type(4), .cpt-devis.e6 .cpt-ok { opacity: 1; transform: none; }
.cpt-devis.e2 .cpt-devis__doc { clip-path: inset(0 0 0 0); transition: clip-path .8s cubic-bezier(.65,0,.35,1) !important; }
.cv-fiche .cpt-ok { opacity: 0; transform: translateY(4px); }

/* alertes : l'écran verrouillé, les notifications de Bobby arrivent seules */
.cpt-ecran { display: flex; flex-direction: column; gap: 7px; width: min(100%, 300px); height: 286px; color: #0d0f14; font-size: 12.5px; line-height: 1.4; }
.cpt-ecran p { margin: 0; }
.cpt-ecran__heure { margin-bottom: 4px !important; text-align: center; color: #fff; font-size: 38px; font-weight: 500; letter-spacing: -.03em; line-height: 1; text-shadow: 0 2px 18px rgba(0,0,0,.18); }
.cpt-ecran__heure small { display: block; margin-top: 3px; font-size: 12px; font-weight: 400; letter-spacing: 0; }
.cpt-alerte { display: flex; flex-direction: column; gap: 3px; max-height: 0; padding: 0 12px; border-radius: 16px; background: rgba(255,255,255,.95); box-shadow: none; overflow: hidden; opacity: 0; transform: translateY(-10px) scale(.97);
  transition: max-height .55s cubic-bezier(.22,1,.36,1), padding .55s cubic-bezier(.22,1,.36,1), opacity .4s ease, transform .55s cubic-bezier(.3,1.3,.5,1) !important; }
.cpt-alerte b { font-weight: 500; }
.cpt-alerte__tete { display: flex; align-items: center; gap: 7px; font-size: 11.5px; }
.cpt-alerte__tete .cv-av { width: 18px; height: 18px; border-radius: 5px; } .cpt-alerte__tete .cv-av svg { width: 12px; height: 12px; }
.cpt-alerte__tete small { margin-left: auto; color: #8a8a90; font-size: 10.5px; }
.cpt-ecran.e1 .cpt-alerte--3, .cpt-ecran.e2 .cpt-alerte--2, .cpt-ecran.e3 .cpt-alerte--1 { max-height: 120px; padding: 9px 12px 10px; opacity: 1; transform: none; }
.cpt-ecran.e3 .cpt-alerte--1 { box-shadow: 0 0 0 2px rgba(251,77,23,.5); }

/* trésorerie : la question, la réponse, le tableau de bord */
.cpt-cadre .cpt-treso { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 16px; align-items: start; max-width: 610px; }
.cpt-cadre .cpt-treso > * + * { margin-top: 0; }
.cpt-treso__conv { display: flex; flex-direction: column; gap: 8px; }
.cpt-treso__q { align-self: flex-end; padding: 8px 11px; border-radius: 14px 14px 4px 14px; background: #191919; color: #fff; font-size: 12.5px; opacity: 0; transform: translateY(6px); }
.cpt-treso__points { opacity: 0; }
.cpt-treso__r { display: flex; gap: 7px; font-size: 12.5px; line-height: 1.4; opacity: 0; transform: translateY(6px); }
.cpt-treso__r > span:last-child { padding: 8px 10px; border-radius: 4px 14px 14px 14px; background: #f2f2f4; }
.cpt-tdb { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 12px; border: 1px solid #ececea; opacity: .35; transition: opacity .5s ease !important; }
.cpt-tdb__tete { display: flex; justify-content: space-between; align-items: baseline; font-size: 12.5px; } .cpt-tdb__tete b { font-weight: 500; } .cpt-tdb__tete small { font-size: 11px; color: #8a8a90; }
.cpt-tdb__solde small { display: block; font-size: 11px; color: #8a8a90; }
.cpt-tdb__solde b { font-size: 24px; font-weight: 500; letter-spacing: -.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.cpt-tdb__courbe { display: block; width: 100%; height: 54px; overflow: visible; }
.cpt-tdb__aire { fill: rgba(251,77,23,.1); opacity: 0; transition: opacity .6s ease .6s; }
.cpt-tdb__trait { fill: none; stroke: var(--cpt-orange); stroke-width: 2; stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.2s cubic-bezier(.65,0,.35,1); }
.cpt-tdb__tuiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
.cpt-tdb__tuiles p { display: flex; flex-direction: column; padding: 7px 8px; border-radius: 9px; background: #f6f6f4; opacity: 0; transform: translateY(6px); }
.cpt-tdb__tuiles small { font-size: 10px; color: #8a8a90; white-space: nowrap; }
.cpt-tdb__tuiles b { font-size: 13px; font-weight: 500; white-space: nowrap; }
.cpt-tdb__tuiles em { font-size: 10px; font-style: normal; color: #8a8a90; }
.cpt-tdb__retard { background: rgba(251,77,23,.08) !important; } .cpt-tdb__retard b { color: #c2410c; }
.cpt-tdb__tuiles p:nth-child(2) { transition-delay: .12s !important; } .cpt-tdb__tuiles p:nth-child(3) { transition-delay: .24s !important; }
.cpt-treso.e1 .cpt-treso__q, .cpt-treso.e3 .cpt-treso__r, .cpt-treso.e4 .cpt-tdb__tuiles p { opacity: 1; transform: none; }
.cpt-treso.e2:not(.e3) .cpt-treso__points { opacity: 1; }
.cpt-treso.e3 .cpt-treso__points { display: none; }
.cpt-treso.e3 .cpt-tdb { opacity: 1; }
.cpt-treso.e3 .cpt-tdb__trait { stroke-dashoffset: 0; } .cpt-treso.e3 .cpt-tdb__aire { opacity: 1; }
.cpt-treso.e5 .cpt-tdb__retard { box-shadow: 0 0 0 1.5px rgba(251,77,23,.5); }

/* les outils */
.cpt-outils { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; margin-top: 6px; padding: 16px 20px; border-radius: 24px; background: var(--gris-carte); }
.cpt-outils p { margin: 0; font-size: 15.5px; color: var(--muet); } .cpt-outils p b { font-weight: 500; color: var(--ink); }
.cpt-outils__liste { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.cpt-outils__liste li { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px 0 7px; border-radius: 999px; background: var(--paper); font-size: 13.5px; color: var(--ink); }
.cpt-outils__liste em { padding: 1px 7px; border-radius: 999px; background: rgba(58,166,85,.12); color: var(--cpt-vert); font-size: 11px; font-style: normal; font-weight: 500; }
html[data-theme="nuit"] .cpt-outils__liste em { color: #7fd08f; }
.cpt-outils__ico { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: #191919; color: #fff; }
.cpt-outils__ico svg { width: 14px; height: 14px; }
html[data-theme="nuit"] .cpt-outils__ico { background: #fff; color: #141414; }

/* ---------- Duos (encaissements, expert-comptable, écosystème) ---------- */
.cpt-encaisse .cv-duo__txt, .cpt-eco .cv-duo__txt { padding: 0 32px 0 0; }
.cpt-expert .cv-duo__txt { padding: 0 0 0 32px; }
.cpt-puces { display: flex; flex-direction: column; gap: 12px; margin: 26px 0 0; padding: 0; list-style: none; }
.cpt-puces li { display: flex; gap: 12px; font-size: 16px; line-height: 1.5; color: var(--muet); }
.cpt-puces li i { margin-top: 4px; }
.cpt-puces b { font-weight: 500; color: var(--ink); }
.cpt-toile { position: relative; display: grid; place-items: center; min-height: 440px; padding: 28px 22px; border-radius: var(--r); background: var(--gris-cadre); overflow: hidden; isolation: isolate; }

/* rapprochement : chaque ligne du relevé se relie à sa facture */
.cpt-toile .cpt-rappro { max-width: 540px; padding: 14px; }
.cpt-rappro > * + * { margin-top: 7px; }
.cpt-rappro__entete, .cpt-rappro__ligne { display: grid; grid-template-columns: minmax(0, 1fr) 34px minmax(0, 1fr); align-items: center; }
.cpt-rappro__entete { margin-bottom: 9px !important; font-size: 12.5px; font-weight: 500; }
.cpt-rappro__entete > span { display: flex; align-items: center; gap: 7px; min-width: 0; }
.cpt-rappro__entete em { padding: 1px 7px; border-radius: 999px; background: rgba(58,166,85,.12); color: var(--cpt-vert); font-size: 10px; font-style: normal; white-space: nowrap; }
.cpt-mvt, .cpt-fac { position: relative; display: flex; flex-direction: column; min-width: 0; padding: 8px 10px; border-radius: 10px; border: 1px solid rgba(11,11,11,.08); }
.cpt-mvt { background: #fafaf8; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.cpt-mvt small, .cpt-fac small { font-size: 10.5px; color: #6b6b70; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cpt-mvt small { font-size: 10px; letter-spacing: -.01em; }
.cpt-mvt b { font-size: 13px; font-weight: 500; color: var(--cpt-vert); }
.cpt-fac b { font-size: 13px; font-weight: 500; }
.cpt-statut { position: absolute; right: 8px; bottom: 8px; display: grid; justify-items: end; }
.cpt-statut em { grid-area: 1 / 1; padding: 1px 7px; border-radius: 999px; font-size: 10px; font-style: normal; font-weight: 500; white-space: nowrap; transition: opacity .3s ease, transform .4s cubic-bezier(.3,1.4,.5,1) !important; }
.cpt-statut__att { background: #f1f1f3; color: #6b6b70; }
.cpt-statut__ok { background: rgba(58,166,85,.14); color: var(--cpt-vert); opacity: 0; transform: scale(.7); }
.cpt-statut__ok::before { content: "✓ "; }
.cpt-statut__ecart { background: rgba(251,77,23,.12); color: #c2410c; opacity: 0; transform: scale(.7); }
.cpt-lien { position: relative; height: 2px; margin: 0 3px; border-radius: 2px; background: rgba(11,11,11,.08); }
.cpt-lien i { position: absolute; inset: 0; border-radius: 2px; background: var(--vert, #3aa655); transform: scaleX(0); transform-origin: left; transition: transform .5s cubic-bezier(.65,0,.35,1) !important; }
.cpt-lien::after { content: ""; position: absolute; right: -3px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: var(--vert, #3aa655); opacity: 0; transform: scale(.3); transition: opacity .2s ease .4s, transform .3s ease .4s; }
.cpt-rappro__ligne--3 .cpt-lien i, .cpt-rappro__ligne--3 .cpt-lien::after { background: var(--cpt-orange); }
.cpt-rappro__pied { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 11px !important; padding-top: 10px; border-top: 1px solid #f0f0ef; opacity: 0; transform: translateY(4px); }
.cpt-rappro__pied .cpt-ok { opacity: 1; transform: none; }
.cpt-rappro__ecart { padding: 2px 8px; border-radius: 999px; background: rgba(251,77,23,.1); color: #c2410c; font-size: 11.5px; font-weight: 500; }
.cpt-rappro.e1 .cpt-rappro__ligne--1 .cpt-mvt, .cpt-rappro.e3 .cpt-rappro__ligne--2 .cpt-mvt { border-color: rgba(58,166,85,.5); box-shadow: 0 0 0 3px rgba(58,166,85,.1); }
.cpt-rappro.e5 .cpt-rappro__ligne--3 .cpt-mvt { border-color: rgba(251,77,23,.5); box-shadow: 0 0 0 3px rgba(251,77,23,.1); }
.cpt-rappro.e2 .cpt-rappro__ligne--1 .cpt-lien i, .cpt-rappro.e4 .cpt-rappro__ligne--2 .cpt-lien i, .cpt-rappro.e6 .cpt-rappro__ligne--3 .cpt-lien i { transform: none; }
.cpt-rappro.e2 .cpt-rappro__ligne--1 .cpt-lien::after, .cpt-rappro.e4 .cpt-rappro__ligne--2 .cpt-lien::after, .cpt-rappro.e6 .cpt-rappro__ligne--3 .cpt-lien::after { opacity: 1; transform: none; }
.cpt-rappro.e2 .cpt-rappro__ligne--1 .cpt-fac, .cpt-rappro.e4 .cpt-rappro__ligne--2 .cpt-fac { border-color: rgba(58,166,85,.5); background: rgba(58,166,85,.05); transition-delay: .35s !important; }
.cpt-rappro.e6 .cpt-rappro__ligne--3 .cpt-fac { border-color: rgba(251,77,23,.5); background: rgba(251,77,23,.04); transition-delay: .35s !important; }
.cpt-rappro.e2 .cpt-rappro__ligne--1 .cpt-statut__att, .cpt-rappro.e4 .cpt-rappro__ligne--2 .cpt-statut__att, .cpt-rappro.e6 .cpt-rappro__ligne--3 .cpt-statut__att { opacity: 0; transform: scale(.7); }
.cpt-rappro.e2 .cpt-rappro__ligne--1 .cpt-statut__ok, .cpt-rappro.e4 .cpt-rappro__ligne--2 .cpt-statut__ok, .cpt-rappro.e6 .cpt-rappro__ligne--3 .cpt-statut__ecart { opacity: 1; transform: none; transition-delay: .4s !important; }
.cpt-rappro.e7 .cpt-rappro__pied { opacity: 1; transform: none; }

/* ---------- Relances : la frise, le ton qui monte, le mail du moment, le paiement ---------- */
.cpt-relance { position: relative; padding: 34px 40px; border-radius: var(--r); background: var(--gris-cadre); overflow: hidden; isolation: isolate; }
.cpt-relance__in { max-width: 980px; margin: 0 auto; color: #0d0f14; font-size: 13px; line-height: 1.45; }
.cpt-relance__in p { margin: 0; }
.cpt-frise { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 0 0 18px; padding: 16px 10px 14px; border-radius: 18px; background: #fff; list-style: none; box-shadow: none; }
.cpt-jalon { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; }
.cpt-jalon i { width: 14px; height: 14px; margin-bottom: 6px; border-radius: 50%; background: #fff; border: 2px solid #d6d6db; transition: background-color .35s ease, border-color .35s ease, transform .4s cubic-bezier(.3,1.6,.5,1) !important; }
.cpt-jalon b { font-size: 13px; font-weight: 500; color: #8a8a90; } .cpt-jalon small { font-size: 11px; color: #a0a0a6; }
.cpt-frise__piste { position: absolute; left: 10%; right: 10%; top: 22px; height: 2px; background: #ececef; }
.cpt-frise__fil { position: absolute; inset: 0; background: linear-gradient(90deg, #f0a35e, var(--cpt-orange) 70%, #d9361b); transform: scaleX(0); transform-origin: left; transition: transform .9s cubic-bezier(.65,0,.35,1) !important; }
.cpt-relance__in.e2 .cpt-frise__fil { transform: scaleX(.25); } .cpt-relance__in.e4 .cpt-frise__fil { transform: scaleX(.5); } .cpt-relance__in.e5 .cpt-frise__fil { transform: scaleX(.75); }
.cpt-relance__in.e6 .cpt-frise__fil { transform: scaleX(1); background: linear-gradient(90deg, #f0a35e, var(--cpt-orange) 60%, var(--vert, #3aa655) 90%); }
.cpt-relance__in.e1 .cpt-jalon--0 i { border-color: #191919; background: #191919; }
.cpt-relance__in.e2 .cpt-jalon--1 i { border-color: #f0a35e; background: #f0a35e; }
.cpt-relance__in.e4 .cpt-jalon--2 i { border-color: var(--cpt-orange); background: var(--cpt-orange); }
.cpt-relance__in.e5 .cpt-jalon--3 i { border-color: #d9361b; background: #d9361b; }
.cpt-relance__in.e6 .cpt-jalon--4 i { border-color: var(--vert, #3aa655); background: var(--vert, #3aa655); transform: scale(1.25); }
.cpt-relance__in.e1 .cpt-jalon--0 :is(b, small), .cpt-relance__in.e2 .cpt-jalon--1 :is(b, small), .cpt-relance__in.e4 .cpt-jalon--2 :is(b, small), .cpt-relance__in.e5 .cpt-jalon--3 :is(b, small), .cpt-relance__in.e6 .cpt-jalon--4 :is(b, small) { color: #0d0f14; }
.cpt-relance__in.e6 .cpt-jalon--4 b { color: var(--cpt-vert); }
.cpt-relance__in[data-etape="2"] .cpt-jalon--1 i, .cpt-relance__in[data-etape="3"] .cpt-jalon--1 i, .cpt-relance__in[data-etape="4"] .cpt-jalon--2 i, .cpt-relance__in[data-etape="5"] .cpt-jalon--3 i { transform: scale(1.3); }
.cpt-relance__corps { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 18px; align-items: stretch; }
.cpt-mail { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; border-radius: 16px; background: #fff; box-shadow: none; }
.cpt-mail__tete { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 9px; border-bottom: 1px solid #f0f0ef; font-size: 12px; }
.cpt-mail__a { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .cpt-mail__a small, .cpt-ton small { margin-right: 6px; color: #8a8a90; font-size: 11px; }
.cpt-ton { display: inline-flex; align-items: center; gap: 3px; flex: none; }
.cpt-ton i { width: 16px; height: 6px; border-radius: 3px; background: #ececef; transition: background-color .35s ease !important; }
.cpt-relance__in.e2 .cpt-ton i:nth-of-type(1) { background: #f0a35e; }
.cpt-relance__in.e4 .cpt-ton i:nth-of-type(-n+2) { background: var(--cpt-orange); }
.cpt-relance__in.e5 .cpt-ton i { background: #d9361b; }
.cpt-relance__in.e6 .cpt-ton i:nth-of-type(n) { background: #ececef; }
.cpt-mail__pile { display: grid; min-height: 118px; }
.cpt-mail__v { grid-area: 1 / 1; display: flex; flex-direction: column; gap: 5px; opacity: 0; transform: translateY(8px); color: #3a3a40; }
.cpt-mail__objet { font-size: 14px; font-weight: 500; color: #0d0f14; }
.cpt-relance__in[data-etape="2"] .cpt-mail__v--1, .cpt-relance__in[data-etape="3"] .cpt-mail__v--1, .cpt-relance__in[data-etape="4"] .cpt-mail__v--2, .cpt-relance__in[data-etape="5"] .cpt-mail__v--3, .cpt-relance__in[data-etape="6"] .cpt-mail__v--4 { opacity: 1; transform: none; transition-delay: .2s !important; }
.cpt-relance__in:not(.e2) .cpt-mail { opacity: .55; }
.cpt-paye { padding: 10px 12px 10px 44px; position: relative; border-radius: 12px; background: rgba(58,166,85,.08); }
.cpt-paye .cpt-mail__objet { color: var(--cpt-vert); }
.cpt-paye__ico { position: absolute; left: 12px; top: 11px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--vert, #3aa655); color: #fff; font-size: 12px; }
.cpt-mail__pied { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 9px; border-top: 1px solid #f0f0ef; }
.cpt-pj { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px 3px 4px; border-radius: 8px; border: 1px solid #ececea; font-size: 11.5px; color: #55555a; }
.cpt-pj i { width: 16px; height: 18px; border-radius: 3px; background: #c2410c; position: relative; }
.cpt-pj i::after { content: ""; position: absolute; left: 3px; right: 3px; top: 5px; height: 2px; background: rgba(255,255,255,.8); box-shadow: 0 4px 0 rgba(255,255,255,.8); }
.cpt-mail__envoi { display: grid; justify-items: end; }
.cpt-mail__envoi em { grid-area: 1 / 1; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-style: normal; white-space: nowrap; transition: opacity .3s ease !important; }
.cpt-mail__attente { padding: 3px 10px; border-radius: 999px; background: rgba(43,92,196,.1); color: #2b5cc4; font-weight: 500; }
.cpt-mail__part { color: var(--cpt-vert); opacity: 0; }
.cpt-relance__in[data-etape="3"] .cpt-mail__attente, .cpt-relance__in[data-etape="6"] .cpt-mail__attente { opacity: 0; }
.cpt-relance__in[data-etape="3"] .cpt-mail__part { opacity: 1; animation: cv-pose .5s cubic-bezier(.3,1.4,.5,1); }
.cpt-relance__in[data-etape="6"] .cpt-mail__pied { opacity: 0; }
.cpt-relance__regles { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; list-style: none; }
.cpt-relance__regles li { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 2px; padding: 11px 14px; border-radius: 14px; background: rgba(255,255,255,.88); box-shadow: none; }
.cpt-relance__regles b { font-size: 13.5px; font-weight: 500; } .cpt-relance__regles span { font-size: 12.5px; color: #55555a; }

/* ---------- Le dossier pour l'expert-comptable ---------- */
.cpt-toile .cpt-dossier { max-width: 400px; padding: 16px; }
.cpt-dossier > * + * { margin-top: 12px; }
.cpt-dossier__tete { display: grid; grid-template-columns: 38px minmax(0, 1fr); align-items: center; gap: 10px; }
.cpt-dossier__tete b { display: block; font-size: 14.5px; font-weight: 500; } .cpt-dossier__tete small { font-size: 12px; color: #8a8a90; }
.cpt-dossier__ico { width: 38px; height: 32px; border-radius: 6px; background: #e9c46a; position: relative; }
.cpt-dossier__ico::before { content: ""; position: absolute; left: 0; top: -4px; width: 15px; height: 7px; border-radius: 3px 3px 0 0; background: #e0b54f; }
.cpt-dossier__pct { grid-column: 1 / -1; font-style: normal; }
.cpt-dossier__barre { display: block; height: 5px; border-radius: 3px; background: #ececef; overflow: hidden; }
.cpt-dossier__barre i { display: block; height: 100%; border-radius: 3px; background: var(--vert, #3aa655); transform: scaleX(0); transform-origin: left; transition: transform .6s cubic-bezier(.65,0,.35,1) !important; }
.cpt-dossier.e1 .cpt-dossier__barre i { transform: scaleX(.25); } .cpt-dossier.e2 .cpt-dossier__barre i { transform: scaleX(.5); } .cpt-dossier.e3 .cpt-dossier__barre i { transform: scaleX(.75); } .cpt-dossier.e5 .cpt-dossier__barre i { transform: scaleX(1); }
.cpt-dossier__liste { display: flex; flex-direction: column; gap: 5px; }
.cpt-dl { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 10px; border: 1px solid rgba(11,11,11,.08); font-size: 13px; }
.cpt-dl span { font-weight: 500; } .cpt-dl small { font-size: 11.5px; color: #8a8a90; display: inline-grid; } .cpt-dl small > span { grid-area: 1 / 1; font-weight: 400; transition: opacity .3s ease !important; }
.cpt-dl__apres { opacity: 0; }
.cpt-dl i { width: 18px; height: 18px; border-radius: 50%; border: 1.6px solid #d6d6db; display: grid; place-items: center; font-size: 10px; font-style: normal; color: #fff; transition: background-color .3s ease, border-color .3s ease !important; }
.cpt-dl i::after { content: "✓"; opacity: 0; transition: opacity .2s ease .1s; }
.cpt-dossier.e1 .cpt-dl--1 i, .cpt-dossier.e2 .cpt-dl--2 i, .cpt-dossier.e3 .cpt-dl--3 i, .cpt-dossier.e5 .cpt-dl--4 i { background: var(--vert, #3aa655); border-color: var(--vert, #3aa655); }
.cpt-dossier.e1 .cpt-dl--1 i::after, .cpt-dossier.e2 .cpt-dl--2 i::after, .cpt-dossier.e3 .cpt-dl--3 i::after, .cpt-dossier.e5 .cpt-dl--4 i::after { opacity: 1; }
.cpt-dossier.e4:not(.e5) .cpt-dl--4 { border-color: rgba(251,77,23,.5); background: rgba(251,77,23,.04); }
.cpt-dossier.e4:not(.e5) .cpt-dl--4 small { color: #c2410c; }
.cpt-dossier.e5 .cpt-dl__avant { opacity: 0; } .cpt-dossier.e5 .cpt-dl__apres { opacity: 1; color: var(--cpt-vert); }
.cpt-dossier__note { display: flex; margin-top: 8px !important; align-items: center; gap: 7px; min-height: 18px; font-size: 12px; color: #55555a; opacity: 0; transform: translateY(4px); }
.cpt-dossier__note::before { content: ""; flex: none; width: 16px; height: 16px; border-radius: 5px; background: #191919 url("/assets/da/bobby-tete-blanc.svg") 50% 50% / 11px no-repeat; }
.cpt-dossier.e4 .cpt-dossier__note { opacity: 1; transform: none; }
.cpt-dossier__pied { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 30px; padding-top: 12px; border-top: 1px solid #f0f0ef; }
.cpt-dossier__pied .bcm-btn { opacity: .35; }
.cpt-dossier.e5 .cpt-dossier__pied .bcm-btn { opacity: 1; }
.cpt-dossier.e6 .cpt-dossier__pied .bcm-btn { transform: scale(.94); background: #333; }
.cpt-dossier.e7 .cpt-dossier__pied .bcm-btn { display: none; }
.cpt-dossier__pied .cpt-ok { display: none; }
.cpt-dossier.e7 .cpt-dossier__pied .cpt-ok { display: flex; opacity: 1; transform: none; animation: cv-pose .5s cubic-bezier(.3,1.4,.5,1); }

/* ---------- Vous décidez : accès bancaire, validation, règles ---------- */
.cpt-acces__liste, .cpt-valid__liste { display: flex; flex-direction: column; gap: 6px; }
.cpt-acces__liste li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; border-radius: 10px; border: 1px solid rgba(11,11,11,.08); font-size: 12.5px; }
.cpt-acces__liste em { flex: none; display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; background: #f1f1f3; color: #8a8a90; font-size: 10.5px; font-style: normal; font-weight: 500; }
.cpt-acces.e1 .cpt-acces__oui { border-color: rgba(58,166,85,.45); } .cpt-acces.e1 .cpt-acces__oui em { background: rgba(58,166,85,.14); color: var(--cpt-vert); }
.cpt-acces.e2 .cpt-acces__non span { color: #a0a0a6; text-decoration: line-through; text-decoration-color: rgba(194,65,12,.6); }
.cpt-acces.e2 .cpt-acces__non em { background: rgba(194,65,12,.1); color: #c2410c; }
.cpt-acces__non em::before { content: ""; width: 8px; height: 9px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 11' fill='none' stroke='%23c2410c' stroke-width='1.6'%3E%3Crect x='1' y='5' width='8' height='5.5' rx='1.2' fill='%23c2410c'/%3E%3Cpath d='M3 5V3.4a2 2 0 0 1 4 0V5'/%3E%3C/svg%3E") 50% 50% / contain no-repeat; display: none; }
.cpt-acces.e2 .cpt-acces__non em::before { display: block; }
.cpt-acces__sceau { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; background: #191919; color: #fff; font-size: 12px; font-weight: 500; opacity: 0; transform: scale(.85); }
.cpt-acces__sceau i { width: 14px; height: 14px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.6-6.5 10-6.5S22 12 22 12s-3.6 6.5-10 6.5S2 12 2 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") 50% 50% / contain no-repeat; }
.cpt-acces.e3 .cpt-acces__sceau { opacity: 1; transform: none; transition: opacity .4s ease, transform .5s cubic-bezier(.3,1.5,.5,1) !important; }
.cpt-valid__liste li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; border: 1px solid rgba(11,11,11,.08); font-size: 12.5px; }
.cpt-valid__liste b { display: block; font-weight: 500; } .cpt-valid__liste small { display: block; font-size: 11px; color: #8a8a90; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cpt-valid__liste em { grid-area: 1 / 2; justify-self: end; font-style: normal; transition: opacity .3s ease, transform .3s ease !important; }
.cpt-valid__btn { padding: 4px 10px; border-radius: 999px; background: #191919; color: #fff; font-size: 11px; font-weight: 500; }
.cpt-valid__ok { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--vert, #3aa655); color: #fff; font-size: 11px; opacity: 0; transform: scale(.6); }
.cpt-valid.e1 li:nth-child(1) .cpt-valid__btn, .cpt-valid.e2 li:nth-child(2) .cpt-valid__btn { opacity: 0; transform: scale(.8); }
.cpt-valid.e1 li:nth-child(1) .cpt-valid__ok, .cpt-valid.e2 li:nth-child(2) .cpt-valid__ok { opacity: 1; transform: none; }
.cpt-valid.e1 li:nth-child(1), .cpt-valid.e2 li:nth-child(2) { border-color: rgba(58,166,85,.45); }
.cpt-valid.e3 .cpt-ok { opacity: 1; transform: none; }
.cpt-regles ul { display: flex; flex-direction: column; gap: 6px; }
.cpt-regles li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 10px; border-radius: 10px; border: 1px solid rgba(11,11,11,.08); font-size: 12.5px; line-height: 1.3; }
.cpt-regles.e1 li:nth-child(1) .cv-interr, .cpt-regles.e2 li:nth-child(2) .cv-interr, .cpt-regles.e3 li:nth-child(3) .cv-interr { background: #191919; }
.cpt-regles.e1 li:nth-child(1) .cv-interr::after, .cpt-regles.e2 li:nth-child(2) .cv-interr::after, .cpt-regles.e3 li:nth-child(3) .cv-interr::after { transform: translateX(10px); }
.cpt-main .bcm-liens { margin-top: 20px; }

/* ---------- L'écosystème : le devis signé côté Administratif devient une facture côté Comptable ---------- */
.cpt-liens { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin: 26px 0 0; padding: 0; list-style: none; }
.cpt-liens a { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 10px; height: 100%; padding: 11px 14px; border-radius: 14px; background: var(--gris-carte); color: var(--ink); transition: background-color .2s ease; }
.cpt-liens a:hover { background: var(--gris-cadre); }
.cpt-liens b { font-size: 15px; font-weight: 500; } .cpt-liens small { grid-column: 1; font-size: 13px; color: var(--muet); }
.cpt-liens span { grid-row: 1 / 3; grid-column: 2; transition: transform .2s ease; } .cpt-liens a:hover span { transform: translateX(3px); }
.cpt-relais { position: relative; display: grid; place-items: center; min-height: 380px; padding: 28px 22px; border-radius: var(--r); background: var(--gris-cadre); overflow: hidden; isolation: isolate; }
.cpt-relais__in { display: grid; grid-template-columns: minmax(0, 1fr) 118px minmax(0, 1fr); align-items: center; width: 100%; max-width: 580px; color: #0d0f14; font-size: 13px; line-height: 1.4; }
.cpt-relais__in p { margin: 0; }
.cpt-relais__carte { display: flex; flex-direction: column; gap: 10px; padding: 12px; border-radius: 16px; background: #fff; box-shadow: none; opacity: 0; transform: translateY(10px); transition: opacity .5s ease, transform .6s cubic-bezier(.22,1,.36,1) !important; }
.cpt-relais__lab { display: flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 500; }
.cpt-relais__tuile { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; } .cpt-relais__tuile svg { width: 18px; height: 18px; }
.cpt-relais__doc { display: flex; flex-direction: column; gap: 4px; padding: 10px; border-radius: 10px; border: 1px solid #ececea; }
.cpt-relais__doc b { font-size: 13px; font-weight: 500; } .cpt-relais__doc small { font-size: 11.5px; color: #8a8a90; }
.cpt-relais__sig { margin: 4px 0 2px; padding-bottom: 2px; border-bottom: 1px solid #d6d6db; font-family: "Brush Script MT", "Segoe Script", cursive; font-size: 19px; line-height: 1.1; color: #2b3f8c; }
.cpt-relais__doc em { display: flex; align-items: center; gap: 6px; font-size: 11.5px; font-style: normal; color: var(--cpt-vert); }
.cpt-relais__lignes { display: flex; flex-direction: column; gap: 4px; margin: 3px 0; } .cpt-relais__lignes i { height: 5px; border-radius: 3px; background: #ececef; } .cpt-relais__lignes i:nth-child(2) { width: 82%; } .cpt-relais__lignes i:nth-child(3) { width: 64%; }
.cpt-relais__total { display: flex; justify-content: space-between; padding: 6px 8px; border-radius: 7px; background: #191919; color: #fff; font-size: 11.5px; } .cpt-relais__total b { font-size: 12.5px; }
.cpt-relais__doc .cpt-relais__pret { color: #2b5cc4; }
.cpt-relais__compta .cpt-relais__doc { border-top: 3px solid var(--cpt-orange); }
.cpt-relais__coeur { display: flex; align-items: center; justify-content: center; position: relative; height: 100%; }
.cpt-relais__fil { position: relative; flex: 1; height: 2px; background: rgba(255,255,255,.7); overflow: hidden; }
.cpt-relais__fil i { position: absolute; top: 0; left: 0; width: 40%; height: 100%; background: var(--cpt-orange); transform: translateX(-110%); }
.cpt-relais__memoire { display: grid; justify-items: center; gap: 6px; flex: none; }
.cpt-relais__memoire img { box-sizing: content-box; width: 30px; height: 30px; padding: 9px; border-radius: 14px; background: #191919; box-shadow: none; transition: transform .4s cubic-bezier(.3,1.5,.5,1), box-shadow .4s ease; }
.cpt-relais__memoire b { position: absolute; top: calc(50% + 34px); left: 50%; transform: translateX(-50%); font-size: 10px; font-weight: 500; white-space: nowrap; padding: 2px 8px; border-radius: 999px; background: rgba(255,255,255,.85); }
.cpt-relais__admin, .cpt-relais__in.e4 .cpt-relais__compta { opacity: 1; transform: none; }
.cpt-relais__in.e2 .cpt-relais__fil:first-child i { animation: cpt-file 1s cubic-bezier(.65,0,.35,1) both; }
.cpt-relais__in.e3 .cpt-relais__memoire img { transform: scale(1.1); box-shadow: 0 0 0 6px rgba(251,77,23,.25); }
.cpt-relais__in.e3 .cpt-relais__fil:last-child i { animation: cpt-file 1s cubic-bezier(.65,0,.35,1) both; }
@keyframes cpt-file { to { transform: translateX(260%); } }

/* ---------- Comment ça démarre ---------- */
.cpt-etapes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 0; padding: 0; list-style: none; }
.cpt-etapes li { padding: 20px 22px 22px; border-radius: 24px; background: var(--gris-carte); }
.cpt-etapes li > span { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #191919; color: #fff; font-size: 14px; font-weight: 500; }
html[data-theme="nuit"] .cpt-etapes li > span { background: #fff; color: #141414; }
.cpt-etapes h3 { margin: 14px 0 0; font-size: 17px; font-weight: 500; letter-spacing: -.01em; color: var(--ink); }
.cpt-etapes p { margin: 4px 0 0; font-size: 15.5px; line-height: 1.55; color: var(--muet); }
.cpt-demarre .bcm-liens { margin-top: 22px; }

/* ---------- Mouvement réduit : tout est posé ---------- */
@media (prefers-reduced-motion: reduce) {
  html.js .cpt-scene { opacity: 1; transform: none; transition: none; }
  .cpt-studio *, .cpt-studio *::before, .cpt-notif, .cv-fiche[class*="cpt-"] *, .cv-fiche[class*="cpt-"] *::after, .cpt-ecran *, .cpt-relance__in *, .cpt-relais__in * { transition: none !important; animation: none !important; }
}

/* ---------- Tablette ---------- */
@media (max-width: 1100px) {
  .cpt-studio { grid-template-columns: 270px minmax(0, 1fr); gap: 20px; }
  .cpt-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cpt-case--large { grid-column: span 2; }
}
@media (max-width: 960px) {
  .page-cpt .cv-sec, .page-cpt .sec.cv-faq { padding: 44px 0; }
  .page-cpt .cv-hero { padding: 52px 0 28px; }
  .cpt-scene { padding: 32px 24px; }
  .cpt-encaisse .cv-duo__txt, .cpt-eco .cv-duo__txt, .cpt-expert .cv-duo__txt { padding: 0; }
  .cpt-expert .cpt-toile { order: 2; }
  .cpt-relance { padding: 26px 22px; }
  .cpt-relance__corps { grid-template-columns: minmax(0, 1fr); }
  .cpt-etapes { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Téléphone (390 px) ---------- */
@media (max-width: 720px) {
  .page-cpt .cv-sec, .page-cpt .sec.cv-faq { padding: 36px 0; }
  .page-cpt .cv-hero { padding: 40px 0 20px; }
  .page-cpt .bcm-tete { margin-bottom: 22px; }
  .page-cpt .cv-intro { padding: 28px 0 4px; }
  .cpt-scene { margin: 36px calc(var(--gutter) * -1 + 8px) 0; padding: 14px 10px 68px; border-radius: 18px; }
  .cpt-studio { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .cpt-tel { height: auto; padding: 5px; border-radius: 26px; }
  .cpt-tel__tete { padding: 12px 14px 10px; border-radius: 21px 21px 0 0; }
  .cpt-tel__fil { min-height: 236px; border-radius: 0 0 21px 21px; }
  .cpt-tel__saisie { display: none; }
  .cpt-vocal { width: 210px; } .cpt-transcrit { width: 240px; max-width: 88%; } .cpt-tel__bobby { width: auto; max-width: 92%; }
  .cpt-fen__barre { gap: 8px; height: 42px; padding: 0 10px; }
  .cpt-fen__barre .bcm-studio__points { display: none; }
  .cpt-facture { min-height: 0; gap: 10px; padding: 14px 14px 14px; }
  .cpt-f__marque small:last-child, .cpt-f--client span, .cpt-f--mentions { display: none; }
  .cpt-f__logo { width: 32px; height: 32px; font-size: 11.5px; }
  .cpt-f__num b { font-size: 17px; }
  .cpt-f--client { padding: 9px 11px; }
  .cpt-f__entete, .cpt-f__ligne { grid-template-columns: minmax(0, 1fr) 26px 88px; gap: 6px; }
  .cpt-f__ligne { font-size: 12px; }
  .cpt-f--totaux { width: 100%; }
  .cpt-notif { left: 50%; right: auto; bottom: 14px; transform: translate(-50%, 12px) scale(.96); white-space: nowrap; }
  .cpt-studio.e8 ~ .cpt-notif { transform: translate(-50%, 0); }
  .cpt-bento { grid-template-columns: minmax(0, 1fr); }
  .cpt-case--large { grid-column: auto; }
  .cpt-case { padding: 10px; border-radius: 20px; }
  .cpt-cadre { height: auto; min-height: 280px; padding: 18px 12px; }
  .cpt-cadre .cpt-justif, .cpt-cadre .cpt-treso { grid-template-columns: minmax(0, 1fr); }
  @keyframes cpt-envol { 0% { transform: none; opacity: 1; } 55% { transform: translate(40px, 150px) scale(.5) rotate(8deg); opacity: 0; } 56% { transform: none; opacity: 0; } 100% { transform: none; opacity: 1; } }
  .cpt-case__txt p, .cpt-puces li { font-size: 15px; }
  .cpt-outils { padding: 14px; border-radius: 20px; }
  .cpt-outils__liste li { height: auto; min-height: 30px; padding: 4px 12px 4px 6px; font-size: 12.5px; }
  .cpt-toile { min-height: 0; padding: 22px 10px; border-radius: 20px; }
  .cpt-toile .cpt-rappro { padding: 10px; }
  .cpt-rappro__entete, .cpt-rappro__ligne { grid-template-columns: minmax(0, 1fr) 16px minmax(0, 1fr); }
  .cpt-rappro__entete { font-size: 11.5px; } .cpt-rappro__entete .cpt-ico { display: none; }
  .cpt-mvt, .cpt-fac { padding: 7px 7px 7px 8px; }
  .cpt-mvt small { white-space: normal; font-size: 9.5px; line-height: 1.25; }
  .cpt-fac small { white-space: normal; line-height: 1.25; }
  .cpt-statut { position: static; justify-items: start; margin-top: 3px; }
  .cpt-rappro__pied { flex-wrap: wrap; }
  .cpt-relance { padding: 16px 10px; border-radius: 20px; }
  .cpt-frise { padding: 12px 4px 10px; margin-bottom: 10px; }
  .cpt-jalon b { font-size: 12px; } .cpt-jalon small { display: none; }
  .cpt-frise__piste { top: 18px; }
  .cpt-mail { padding: 12px; } .cpt-mail__pile { min-height: 140px; }
  .cpt-tdb__tuiles small { white-space: normal; line-height: 1.2; }
  .cpt-pj { white-space: nowrap; }
  .cpt-mail__a small { display: none; }
  .cpt-relance__regles li { padding: 10px 12px; }
  .cpt-liens { grid-template-columns: minmax(0, 1fr); }
  .cpt-relais { min-height: 0; padding: 22px 14px; border-radius: 20px; }
  .cpt-relais__in { grid-template-columns: minmax(0, 1fr); max-width: 300px; }
  .cpt-relais__coeur { flex-direction: column; height: 120px; }
  .cpt-relais__fil { flex: 1; width: 2px; height: auto; }
  .cpt-relais__fil i { width: 100%; height: 40%; transform: translateY(-110%); }
  .cpt-relais__memoire b { top: 50%; left: calc(50% + 34px); transform: translateY(-50%); }
  .cpt-relais__in.e2 .cpt-relais__fil:first-child i, .cpt-relais__in.e3 .cpt-relais__fil:last-child i { animation-name: cpt-file-v; }
  @keyframes cpt-file-v { to { transform: translateY(260%); } }
  .cpt-etapes li { padding: 16px 18px 18px; border-radius: 20px; }
}
