/* CamsLAB — Lettre prénom (onglet Lettres de l'éditeur) */
.clabl { margin: 0 0 18px; padding: 14px; border: 1px solid #ECE4D9; border-radius: 14px; background: #FEF9F4; font-family: inherit; }
.clabl h4 { margin: 0 0 4px; font-size: 16px; font-weight: 700; color: #2B2522; }
.clabl-hint { margin: 6px 0 0; font-size: 12px; color: #6B6158; line-height: 1.4; }
.clabl-row { display: flex; gap: 12px; margin-top: 12px; }
.clabl-row label, .clabl-lab { display: block; font-weight: 600; font-size: 13px; color: #2B2522; }
.clabl-lab { margin: 14px 0 6px; }
.clabl #clabl-lettre { display: block; width: 64px; height: 44px; margin-top: 4px; border: 1px solid #DDD3C6; border-radius: 10px; text-align: center; font-size: 22px; font-weight: 700; text-transform: uppercase; background: #fff; }
.clabl-step { display: inline-flex; align-items: center; margin-top: 4px; border: 1px solid #DDD3C6; border-radius: 10px; background: #fff; overflow: hidden; }
.clabl-step button { width: 38px; height: 42px; border: 0; background: none; font-size: 18px; cursor: pointer; }
.clabl-step b { min-width: 30px; text-align: center; font-size: 16px; }
.clabl-check { display: flex; align-items: center; gap: 8px; margin: 14px 0 0; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.clabl-check input { width: 18px; height: 18px; accent-color: #B54892; margin: 0; }
.clabl-suite-w { display: grid; grid-template-columns: 1fr; gap: 6px; margin-top: 8px; }
.clabl-suite-w input, .clabl-suite-w select { width: 100%; height: 40px; padding: 0 10px; border: 1px solid #DDD3C6; border-radius: 9px; background: #fff; font-size: 14px; }
.clabl-fonts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.clabl-font { display: flex; flex-direction: column; align-items: center; padding: 6px 2px; border: 1px solid #DDD3C6; border-radius: 10px; background: #fff; cursor: pointer; }
.clabl-font b { font-size: 26px; line-height: 1.1; color: #B54892; }
.clabl-font small { font-size: 10px; color: #6B6158; }
.clabl-font.on { border-color: #B54892; box-shadow: 0 0 0 2px #F7E8F2; }
.clabl-fonds { display: flex; flex-wrap: wrap; gap: 6px; }
.clabl-fond { width: 34px; height: 34px; border-radius: 50%; border: 1px solid #DDD3C6; cursor: pointer; background-size: 60px; padding: 0; }
.clabl-fond.on { box-shadow: 0 0 0 2px #fff, 0 0 0 4px #B54892; }
.clabl-go { width: 100%; margin-top: 16px; min-height: 46px; border: 0; border-radius: 11px; background: #B54892; color: #fff; font-weight: 700; font-size: 15px; cursor: pointer; }
.clabl-go:hover { background: #9A3A7B; }
.clabl-go:disabled { opacity: .6; cursor: wait; }

/* Lettres-calques : modèle non compatible */
.lm-incompat { max-width: 270px; text-align: center; font-family: inherit; }
.lm-incompat-ico { display: grid; place-items: center; width: 60px; height: 60px; margin: 0 auto 14px; border-radius: 16px; background: #F7E8F2; color: #9A3A7B; }
.lm-incompat h3 { margin: 0 0 8px; font-size: 16px; font-weight: 700; color: #2B2522; line-height: 1.35; }
.lm-incompat p { margin: 0 0 16px; font-size: 13px; color: #6B6158; line-height: 1.5; }
.lm-incompat-btn { width: 100%; min-height: 44px; border: 0; border-radius: 11px; background: #B54892; color: #fff; font-weight: 700; font-size: 14px; cursor: pointer; }
.lm-incompat-btn:hover { background: #9A3A7B; }
/* Fenêtre de confirmation */
#clabl-modal { position: fixed; inset: 0; z-index: 2147483647; display: grid; place-items: center; padding: 20px; background: rgba(43, 37, 34, .45); font-family: inherit; }
.clabl-modal-box { width: min(420px, 100%); padding: 22px 22px 18px; border-radius: 16px; background: #fff; box-shadow: 0 24px 60px rgba(0, 0, 0, .25); }
.clabl-modal-box h3 { margin: 0 0 8px; font-size: 18px; font-weight: 700; color: #2B2522; }
.clabl-modal-box p { margin: 0 0 18px; font-size: 14px; color: #6B6158; line-height: 1.5; }
.clabl-modal-act { display: grid; gap: 8px; }
.clabl-modal-act button { min-height: 44px; border-radius: 11px; font-weight: 600; font-size: 14px; cursor: pointer; border: 1px solid #DDD3C6; background: #fff; color: #2B2522; }
.clabl-modal-act .clabl-m-prim { background: #B54892; border-color: #B54892; color: #fff; }
.clabl-modal-act .clabl-m-danger { color: #B3261E; border-color: #F0C9C5; }
.clabl-modal-act .clabl-m-ghost { border-color: transparent; color: #6B6158; }

.clabl *, .clabl *::before, .clabl *::after { box-sizing: border-box; }
.clabl > .clabl-hint:first-child { margin-top: 0; }

/* Prénom hors placement libre : « Mode non compatible » */
#step5 { position: relative; }
.clabl-verrou { position: absolute; inset: 0; z-index: 50; display: flex; align-items: flex-start; justify-content: center; padding: 70px 20px 20px; background: rgba(254, 249, 244, .97); backdrop-filter: blur(3px); }
.clabl-verrou-in { max-width: 270px; text-align: center; }
.clabl-verrou-ico { display: grid; place-items: center; width: 60px; height: 60px; margin: 0 auto 14px; border-radius: 16px; background: #F7E8F2; color: #9A3A7B; }
.clabl-verrou h3 { margin: 0 0 8px; font-size: 16px; font-weight: 700; color: #2B2522; line-height: 1.35; }
.clabl-verrou p { margin: 0 0 16px; font-size: 13px; color: #6B6158; line-height: 1.5; }
#clabl.clabl-off { pointer-events: none; }

/* Taille de la lettre */
.clabl-taille { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 10px; margin: 12px 0 4px; font-size: 13px; font-weight: 600; color: #2B2522; }
.clabl-taille span { grid-column: 1 / -1; }
.clabl-taille input { width: 100%; accent-color: #B54892; }
.clabl-taille b { min-width: 46px; text-align: right; color: #9A3A7B; }
/* Poignée de déplacement du bloc lettre + prénom */
.clabl-poignee { position: absolute; z-index: 95; width: 28px; height: 28px; padding: 0; display: grid; place-items: center; border: 2px solid #fff; border-radius: 50%;
    background: #B54892; color: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.3); cursor: grab; touch-action: none; }
.clabl-poignee.actif { cursor: grabbing; background: #9A3A7B; }
#cp-device-ori-to-print .clabl-poignee, #cp-device-ori-to-show .clabl-poignee, [data-cdv2-step="3"] .clabl-poignee { display: none !important; }
